This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Blackfin: Define __FDPIC__ with -mfdpic
- From: Bernd Schmidt <bernds_cb1 at t-online dot de>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 03 Dec 2007 17:30:33 +0100
- Subject: Blackfin: Define __FDPIC__ with -mfdpic
The uClibc folks have decided they'd rather have a single __FDPIC__
preprocessor define than target-specific __BFIN_FDPIC__ or __FRV_FDPIC__
variants. I've committed the following to make the bfin port define it.
Bernd
--
This footer brought to you by insane German lawmakers.
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft Muenchen, Registergericht Muenchen HRB 40368
Geschaeftsfuehrer Thomas Wessel, William A. Martin, Margaret Seif
Index: ChangeLog
===================================================================
--- ChangeLog (revision 130582)
+++ ChangeLog (working copy)
@@ -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: config/bfin/bfin.h
===================================================================
--- config/bfin/bfin.h (revision 130582)
+++ config/bfin/bfin.h (working copy)
@@ -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__"); \