aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@codesourcery.com>2004-11-16 22:42:21 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2004-11-16 22:42:21 +0000
commitd3f2f8aec2d6873c7ba01bc0e0b6143af1a3702a (patch)
tree79035d20c9e8fef72d7cb52c21330c99321be03a /gcc
parent0b4349327228aa12a34dbb4d940ee313a488d327 (diff)
downloadgcc-d3f2f8aec2d6873c7ba01bc0e0b6143af1a3702a.zip
gcc-d3f2f8aec2d6873c7ba01bc0e0b6143af1a3702a.tar.gz
gcc-d3f2f8aec2d6873c7ba01bc0e0b6143af1a3702a.tar.bz2
re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)
2004-11-16 Daniel Jacobowitz <dan@codesourcery.com> Mark Mitchell <mark@codesourcery.com> PR target/6123 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if PIC. Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r90770
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sol2.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 72729f4..6000893 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
+ Mark Mitchell <mark@codesourcery.com>
+
+ PR target/6123
+ * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
+ __pic__ if PIC.
+
2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
* regmove.c (regmove_optimize): Use lowpart_subreg instead of
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 07994e2..86d359c 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -72,6 +72,11 @@ Boston, MA 02111-1307, USA. */
builtin_define ("_LARGEFILE64_SOURCE=1"); \
builtin_define ("__EXTENSIONS__"); \
} \
+ if (flag_pic) \
+ { \
+ builtin_define ("__PIC__"); \
+ builtin_define ("__pic__"); \
+ } \
TARGET_SUB_OS_CPP_BUILTINS(); \
} while (0)