From 44fb48ef0bbad0fd5b83c47fabac1fc66367fb3e Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Tue, 3 May 2011 13:57:15 +0000 Subject: [PATCH] Originally from Bernd Schmidt 2011-05-03 Stuart Henderson 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 | 7 +++++++ gcc/config/bfin/bfin.c | 5 +++++ gcc/config/bfin/uclinux.h | 2 ++ 3 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 444b6b15c35..b597068d364 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-05-03 Stuart Henderson + + 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 Originally From Bernd Schmidt diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index fc97805d659..40f1168ae7d 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 6428b063477..e1bc5ce4dd9 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 -- 2.30.2