Fix x86-64 PIC

Jakub Jelinek jakub@redhat.com
Tue Oct 29 12:47:00 GMT 2002


On Tue, Oct 29, 2002 at 09:41:07PM +0100, Jan Hubicka wrote:
> > Could you please post some testcases of source lousy code?
> > I'd like to know what valid 32-bit sign extended values my recent x86_64_sign_extended_value
> > changes don't catch.
> 
> static int t;
> q()
> {
>   t=1;
> }
> &t is not sign_extended_value, but t(%rip) is valid and recognized by the
> pic_operand later.

With -O2 -fpic I get:
q:
	movl    $1, t(%rip)
        ret
t is a x86_64_sign_extended_value in CM_SMALL_PIC model (since 2002-10-21).

	Jakub



More information about the Gcc-patches mailing list