diff options
| author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-25 17:05:26 +0000 |
|---|---|---|
| committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-25 17:05:26 +0000 |
| commit | ced0033c14d68a05c1c36a2fb82eded2df85d966 (patch) | |
| tree | 1f224c14b7ac39455d012723def26bd3ca7b12b3 | |
| parent | 5c9c131f3aed1b7d78fea1a09b9ce9241304320b (diff) | |
| download | ppe42-gcc-ced0033c14d68a05c1c36a2fb82eded2df85d966.tar.gz ppe42-gcc-ced0033c14d68a05c1c36a2fb82eded2df85d966.zip | |
* config/bfin/bfin.c (override_options): Reorder tests so that
flag_pic gets enabled for -msep-data.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131829 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/bfin/bfin.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 824f85aa2be..4ad2970ea6e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 0a6a9ecdddc..f50c09f9a99 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. */ |

