]> gcc.gnu.org Git - gcc.git/commitdiff
bfin.c (override_options): Reorder tests so that flag_pic gets enabled for -msep...
authorBernd Schmidt <bernd.schmidt@analog.com>
Fri, 25 Jan 2008 17:05:26 +0000 (17:05 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 25 Jan 2008 17:05:26 +0000 (17:05 +0000)
* config/bfin/bfin.c (override_options): Reorder tests so that
flag_pic gets enabled for -msep-data.

From-SVN: r131829

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 824f85aa2be5a4de8691ddd94f9fd616bb493391..4ad2970ea6ec0d3417c4c260c51dd5549997d6d9 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin.c (override_options): Reorder tests so that
+       flag_pic gets enabled for -msep-data.
+
 2008-01-25  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/32244
index 0a6a9ecdddc3deddf9df2c688bb2c052b5768be8..f50c09f9a99189d3e0e8b3f4851e76c39a2bbac1 100644 (file)
@@ -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.  */
This page took 0.071558 seconds and 5 git commands to generate.