Mercurial > hg > CbC > CbC_gcc
diff gcc/doc/cppopts.texi @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/doc/cppopts.texi Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/doc/cppopts.texi Thu Oct 25 07:37:49 2018 +0900 @@ -1,4 +1,4 @@ -@c Copyright (C) 1999-2017 Free Software Foundation, Inc. +@c Copyright (C) 1999-2018 Free Software Foundation, Inc. @c This is part of the CPP and GCC manuals. @c For copying conditions, see the file gcc.texi. @@ -200,7 +200,7 @@ is understood to specify a target object file. Since @option{-E} is not implied, @option{-MD} can be used to generate -a dependency output file as a side-effect of the compilation process. +a dependency output file as a side effect of the compilation process. @item -MMD @opindex MMD @@ -287,6 +287,17 @@ Note that @code{-ftrack-macro-expansion=2} is activated by default. +@item -fmacro-prefix-map=@var{old}=@var{new} +@opindex fmacro-prefix-map +When preprocessing files residing in directory @file{@var{old}}, +expand the @code{__FILE__} and @code{__BASE_FILE__} macros as if the +files resided in directory @file{@var{new}} instead. This can be used +to change an absolute path to a relative path by using @file{.} for +@var{new} which can result in more reproducible builds that are +location independent. This option also affects +@code{__builtin_FILE()} during compilation. See also +@option{-ffile-prefix-map}. + @item -fexec-charset=@var{charset} @opindex fexec-charset @cindex character set, execution @@ -392,7 +403,7 @@ like @option{-C}, except that comments contained within macros are also passed through to the output file where the macro is expanded. -In addition to the side-effects of the @option{-C} option, the +In addition to the side effects of the @option{-C} option, the @option{-CC} option causes all C++-style comments inside a macro to be converted to C-style comments. This is to prevent later use of that macro from inadvertently commenting out the remainder of @@ -534,4 +545,3 @@ belongs to. When used from GCC without @option{-E}, this option has no effect. -