This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for -fpic and -fomit-frame-pointer on x86


>   > 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]