diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-03-21 09:07:19 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-03-21 09:07:19 +0000 |
commit | 7c0ffd09f85799e9ce4b8625b7e951c6f2fd2ae5 (patch) | |
tree | 852f997ceb3609aa6610cf48316a27f5c8e6614a /gcc/c-cppbuiltin.c | |
parent | 9f2966203fa776ec02ce2963ca1c6aeb1473234b (diff) | |
download | gcc-7c0ffd09f85799e9ce4b8625b7e951c6f2fd2ae5.tar.gz |
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
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r-- | gcc/c-cppbuiltin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index 0239a1c3af8..e9f608eff2e 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -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); } + if (flag_pie) + { + builtin_define_with_int_value ("__pie__", flag_pie); + builtin_define_with_int_value ("__PIE__", flag_pie); + } if (flag_iso) cpp_define (pfile, "__STRICT_ANSI__"); |