bfin.h (TARGET_CPU_CPP_BUILTINS): Define __FDPIC__ as necessary.
authorBernd Schmidt <bernd.schmidt@analog.com>
Mon, 3 Dec 2007 16:29:18 +0000 (16:29 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 3 Dec 2007 16:29:18 +0000 (16:29 +0000)
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __FDPIC__ as
necessary.

From-SVN: r130583

gcc/ChangeLog
gcc/config/bfin/bfin.h

index 102f980d69fa0425812ad4e8dbff907cfa83e181..50f6691dfb0842d51256fa8d80e3cf58a8a8f34d 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-27  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __FDPIC__ as
+       necessary.
+
 2007-12-03  Razya Ladelsky <razya@il.ibm.com>
 
     * doc/invoke.texi (fipa-cp, fipa-matrix-reorg): Add documentation.
index b568d9a05eb17684ee2746149b020bd433dd5b48..446c74d1759f517b1f13204f3fb162500ac2955f 100644 (file)
@@ -123,7 +123,10 @@ extern int target_flags;
        builtin_define ("__WORKAROUND_SPECULATIVE_SYNCS");              \
                                                \
       if (TARGET_FDPIC)                                \
-       builtin_define ("__BFIN_FDPIC__");      \
+       {                                       \
+         builtin_define ("__BFIN_FDPIC__");    \
+         builtin_define ("__FDPIC__");         \
+       }                                       \
       if (TARGET_ID_SHARED_LIBRARY             \
          && !TARGET_SEP_DATA)                  \
        builtin_define ("__ID_SHARED_LIB__");   \