Originally from Bernd Schmidt
authorStuart Henderson <shenders@gcc.gnu.org>
Tue, 3 May 2011 13:57:15 +0000 (13:57 +0000)
committerStuart Henderson <shenders@gcc.gnu.org>
Tue, 3 May 2011 13:57:15 +0000 (13:57 +0000)
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.

From-SVN: r173307

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

index 444b6b15c356824effeebbb7631bd96013557868..b597068d36491e9f68c815e661f5fea1774cca01 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 fc97805d65966b0f84b4221af3c7fb0e7657c085..40f1168ae7d2e5c670a6bfcc7f9bfadf80b06e78 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 6428b063477e65eb2de5de172a373afbc2cae01a..e1bc5ce4dd910859166bd917422f9d6f6cf5cd10 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