diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-06-16 12:13:23 +0000 |
---|---|---|
committer | Richard Sandiford <richard@codesourcery.com> | 2006-06-16 12:13:23 +0000 |
commit | 4d8111641fe325ba138cc52b3836aa7876bab2c0 (patch) | |
tree | 4a226ec24cfb2bcec106d57dbb47417ae383c372 | |
parent | 0eb9f899597bd6dd1014880ac54afc7a9028b709 (diff) |
gcc/
* config/m68k/m68k.c (override_options): Don't check FL_PCREL_16
for -msep-data and -mid-shared-library.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl/coldfire-4_1@114718 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | ChangeLog.csl | 6 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index f563f6d7c5d..23aebaeadd5 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,6 +1,12 @@ 2006-06-16 Richard Sandiford <richard@codesourcery.com> gcc/ + * config/m68k/m68k.c (override_options): Don't check FL_PCREL_16 + for -msep-data and -mid-shared-library. + +2006-06-16 Richard Sandiford <richard@codesourcery.com> + + gcc/ * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Don't use indirect or pc-relative references to code or globals if either TARGET_SEP_DATA or TARGET_ID_SHARED_LIBRARY is in effect. diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 09e4b9640c5..b5a61a04f79 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -620,11 +620,8 @@ override_options (void) * -fpic but it hasn't been tested properly. */ if (TARGET_SEP_DATA || TARGET_ID_SHARED_LIBRARY) - { - if ((flags & FL_PCREL_16)) - error ("-msep-data or -mid-shared-library are not currently supported on selected cpu because they require -fPIC"); - flag_pic = 2; - } + flag_pic = 2; + /* -mpcrel -fPIC uses 32-bit pc-relative displacements. Raise an error if the target does not support them. */ if (TARGET_PCREL && (flags & FL_PCREL_16) && flag_pic == 2) |