This is the mail archive of the gcc-bugs@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 serious -fpic and -fomit-frame-pointer bug in egcs 1.0.3/1.1


> 
>   > As you can see, force_const_mem is called.
> And this can cause a function which used to not use PIC to use PIC
> which changes the offsets due to the definition of INITIAL_ELIMINATION_OFFSET
> right?
> 

Exactly.

> If so, the bug is clearly in INITIAL_ELIMINATION_OFFSET.  
> 

Well, it is hard for the first INITIAL_ELIMINATION_OFFSET to tell if
PIC will be ever used. It depends on values of FP constants, CPU and
optimization.

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