aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/bfin
diff options
context:
space:
mode:
authorStuart Henderson <shenders@gcc.gnu.org>2011-05-03 13:57:15 +0000
committerStuart Henderson <shenders@gcc.gnu.org>2011-05-03 13:57:15 +0000
commit44fb48ef0bbad0fd5b83c47fabac1fc66367fb3e (patch)
tree1c55d915e92779683ab754cc3de8608f58d2e136 /gcc/config/bfin
parent1a3a9152b23751bf38d2c4874614fbad252f09f7 (diff)
downloadgcc-44fb48ef0bbad0fd5b83c47fabac1fc66367fb3e.zip
gcc-44fb48ef0bbad0fd5b83c47fabac1fc66367fb3e.tar.gz
gcc-44fb48ef0bbad0fd5b83c47fabac1fc66367fb3e.tar.bz2
Originally from Bernd Schmidt
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
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r--gcc/config/bfin/bfin.c5
-rw-r--r--gcc/config/bfin/uclinux.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c
index fc97805..40f1168 100644
--- a/gcc/config/bfin/bfin.c
+++ b/gcc/config/bfin/bfin.c
@@ -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");
diff --git a/gcc/config/bfin/uclinux.h b/gcc/config/bfin/uclinux.h
index 6428b06..e1bc5ce 100644
--- a/gcc/config/bfin/uclinux.h
+++ b/gcc/config/bfin/uclinux.h
@@ -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