summaryrefslogtreecommitdiff
path: root/gcc/c-cppbuiltin.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-03-21 09:07:19 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-03-21 09:07:19 +0000
commit7c0ffd09f85799e9ce4b8625b7e951c6f2fd2ae5 (patch)
tree852f997ceb3609aa6610cf48316a27f5c8e6614a /gcc/c-cppbuiltin.c
parent9f2966203fa776ec02ce2963ca1c6aeb1473234b (diff)
downloadgcc-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.c5
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__");