2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
authorshenders <shenders@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2011 13:57:15 +0000 (13:57 +0000)
committershenders <shenders@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 May 2011 13:57:15 +0000 (13:57 +0000)
        Originally from Bernd Schmidt
        * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
        * config/bfin/bfin.c (override_options): Test it and error if
        TARGET_FDPIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173307 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/bfin/bfin.c
gcc/config/bfin/uclinux.h

index 444b6b1..b597068 100644 (file)
@@ -1,3 +1,10 @@
+2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
+
+       Originally from Bernd Schmidt
+       * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
+       * config/bfin/bfin.c (override_options): Test it and error if
+       TARGET_FDPIC.
+
 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
 
        Originally From Bernd Schmidt
index fc97805..40f1168 100644 (file)
@@ -2672,6 +2672,11 @@ bfin_option_override (void)
   if (TARGET_OMIT_LEAF_FRAME_POINTER)
     flag_omit_frame_pointer = 1;
 
+#ifdef SUBTARGET_FDPIC_NOT_SUPPORTED
+  if (TARGET_FDPIC)
+    error ("-mfdpic is not supported, please use a bfin-linux-uclibc target");
+#endif
+
   /* Library identification */
   if (global_options_set.x_bfin_library_id && ! TARGET_ID_SHARED_LIBRARY)
     error ("-mshared-library-id= specified without -mid-shared-library");
index 6428b06..e1bc5ce 100644 (file)
@@ -39,3 +39,5 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
 #undef TARGET_SUPPORTS_SYNC_CALLS
 #define TARGET_SUPPORTS_SYNC_CALLS 1
+
+#define SUBTARGET_FDPIC_NOT_SUPPORTED