This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: A patch for -fpic and -fomit-frame-pointer on x86
- To: law at cygnus dot com
- Subject: Re: A patch for -fpic and -fomit-frame-pointer on x86
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 13 Jul 1998 22:36:08 -0700 (PDT)
- Cc: egcs-patches at cygnus dot com
> > I think the following patch may be more appropriate given what we
> > can do. Basically it says it is not safe to assume we can have fp
> > constatnt as operand with PIC.
> I do not think any of your patches are a complete solution -- can't
> non-floating point constants in other instructions cause the same
> problem?
>
I don't think so. It can only happen to fp constants on Intel. The
whole mess is caused by that only 2 or 3 fp constants are allowed
as the immediate operands. In fact, there are no operands at all
at the asm level. Intel has a few special instructions to load
those fp constants.
--
H.J. Lu (hjl@gnu.org)