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]
Other format: [Raw text]

Re: [PATCH] Fix PR target/8340


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

> Hi,
> 
> The compiler ICEs on mainline (and silently generates illegal code on 
> gcc-3_2-branch) when compiling, in PIC mode, asm directives that clobber the 
> PIC register. Richard Henderson suggested that expand_asm_operands should 
> complain about the PIC register being clobbered instead (a much demanded 
> diagnostic, according to PR c/4106, PR c/6897 and PR c/8546).
> 
> Bootstrapped/regtested on i586-redhat-linux-gnu (c,c++,objc,f77 mainline).
> OK to install ? What of gcc-3_2-branch ?

This is OK, but not for mainline, only for b-i-b.  It will introduce
regressions in ports that (wrongly) don't define
PIC_OFFSET_TABLE_REGNUM to be INVALID_REGNUM when not using PIC.  In
particular, I see that MIPS, ia64, and alpha all define
PIC_OFFSET_TABLE_REGNUM unconditionally.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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