aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/bfin
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2008-01-25 17:05:26 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2008-01-25 17:05:26 +0000
commitfb7c3b0519b6496d9ed2b712e919d0ccbf8cceb5 (patch)
tree1f224c14b7ac39455d012723def26bd3ca7b12b3 /gcc/config/bfin
parentdd3b33d7730a9d11c2cd809df030fc59ac5ca232 (diff)
downloadgcc-fb7c3b0519b6496d9ed2b712e919d0ccbf8cceb5.zip
gcc-fb7c3b0519b6496d9ed2b712e919d0ccbf8cceb5.tar.gz
gcc-fb7c3b0519b6496d9ed2b712e919d0ccbf8cceb5.tar.bz2
bfin.c (override_options): Reorder tests so that flag_pic gets enabled for -msep-data.
* config/bfin/bfin.c (override_options): Reorder tests so that flag_pic gets enabled for -msep-data. From-SVN: r131829
Diffstat (limited to 'gcc/config/bfin')
-rw-r--r--gcc/config/bfin/bfin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c
index 0a6a9ec..f50c09f 100644
--- a/gcc/config/bfin/bfin.c
+++ b/gcc/config/bfin/bfin.c
@@ -2469,9 +2469,6 @@ override_options (void)
if (bfin_lib_id_given && ! TARGET_ID_SHARED_LIBRARY)
error ("-mshared-library-id= specified without -mid-shared-library");
- if (TARGET_ID_SHARED_LIBRARY && flag_pic == 0)
- flag_pic = 1;
-
if (stack_limit_rtx && TARGET_STACK_CHECK_L1)
error ("Can't use multiple stack checking methods together.");
@@ -2486,6 +2483,9 @@ override_options (void)
if (TARGET_SEP_DATA)
target_flags |= MASK_ID_SHARED_LIBRARY | MASK_LEAF_ID_SHARED_LIBRARY;
+ if (TARGET_ID_SHARED_LIBRARY && flag_pic == 0)
+ flag_pic = 1;
+
/* There is no single unaligned SI op for PIC code. Sometimes we
need to use ".4byte" and sometimes we need to use ".picptr".
See bfin_assemble_integer for details. */