Commit 7c0ffd09 by Richard Sandiford Committed by Richard Sandiford

invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.

gcc/
	* doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
	* c-cppbuiltin.c (c_cpp_builtins): Define them.

From-SVN: r123104
parent 9f296620
2007-03-21 Richard Sandiford <richard@codesourcery.com>
* doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
* c-cppbuiltin.c (c_cpp_builtins): Define them.
2007-03-20 Mark Mitchell <mark@codesourcery.com> 2007-03-20 Mark Mitchell <mark@codesourcery.com>
* config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define. * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
......
...@@ -532,6 +532,11 @@ c_cpp_builtins (cpp_reader *pfile) ...@@ -532,6 +532,11 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_int_value ("__pic__", flag_pic); builtin_define_with_int_value ("__pic__", flag_pic);
builtin_define_with_int_value ("__PIC__", flag_pic); builtin_define_with_int_value ("__PIC__", flag_pic);
} }
if (flag_pie)
{
builtin_define_with_int_value ("__pie__", flag_pie);
builtin_define_with_int_value ("__PIE__", flag_pie);
}
if (flag_iso) if (flag_iso)
cpp_define (pfile, "__STRICT_ANSI__"); cpp_define (pfile, "__STRICT_ANSI__");
......
...@@ -14210,6 +14210,10 @@ generated position independent code can be only linked into executables. ...@@ -14210,6 +14210,10 @@ generated position independent code can be only linked into executables.
Usually these options are used when @option{-pie} GCC option will be Usually these options are used when @option{-pie} GCC option will be
used during linking. used during linking.
@option{-fpie} and @option{-fPIE} both define the macros
@code{__pie__} and @code{__PIE__}. The macros have the value 1
for @option{-fpie} and 2 for @option{-fPIE}.
@item -fno-jump-tables @item -fno-jump-tables
@opindex fno-jump-tables @opindex fno-jump-tables
Do not use jump tables for switch statements even where it would be Do not use jump tables for switch statements even where it would be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment