This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR target/8340
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 22 Nov 2002 11:41:15 -0800
- Subject: Re: [PATCH] Fix PR target/8340
- References: <200211221728.33554.ebotcazou@libertysurf.fr>
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>