diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1996-07-09 21:42:13 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1996-07-09 21:42:13 +0000 |
commit | a72734717c6437270db05b0423c99c99fcaf7798 (patch) | |
tree | 910cf690f0755a78ca8252b502f17af3a242a618 /gcc | |
parent | 8e98b1dc81670806481a1d2f87ad655af891dffc (diff) | |
download | gcc-a72734717c6437270db05b0423c99c99fcaf7798.zip gcc-a72734717c6437270db05b0423c99c99fcaf7798.tar.gz gcc-a72734717c6437270db05b0423c99c99fcaf7798.tar.bz2 |
Make fp constants hard if -fpic
From-SVN: r12420
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index ea35f4c..408661c 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -666,6 +666,10 @@ easy_fp_constant (op, mode) if (TARGET_SOFT_FLOAT && mode != DImode) return 1; + /* If we are using V.4 style PIC, consider all constants to be hard */ + if (flag_pic && (DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS)) + return 0; + if (mode == DFmode) { long k[2]; |