This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
- From: Jan Hubicka <jh at suse dot cz>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 7 Apr 2003 20:16:00 -0000
- Subject: Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
- Reply-to: Jan Hubicka <jh at suse dot cz>
The following reply was made to PR target/10340; it has been noted by GNATS.
From: Jan Hubicka <jh at suse dot cz>
To: Raja R Harinath <harinath at cs dot umn dot edu>
Cc: gcc-gnats at gcc dot gnu dot org, nobody at gcc dot gnu dot org,
Jan Hubicka <jh at suse dot cz>
Subject: Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
Date: Mon, 7 Apr 2003 22:06:20 +0200
> Hi,
>
> This bug seems to be related to:
>
> Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh at suse dot cz>
>
> * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
>
> Since the testcase is so small, I'll repeat it here:
>
> --8<--
> static struct { int i; int j; } s;
>
> int fnV (int, ...);
> void fnA (void)
> {
> fnV(s.j, fnV(s.j));
> }
> --8<--
>
> $ gcc -fPIC -O2 -c foo.c
> /tmp/cc4zCzUj.s: Assembler messages:
> /tmp/cc4zCzUj.s:12: Error: suffix or operands invalid for `lea'
I've sent a fix for this minute ago.
Honza
>
> - Hari
> --
> Raja R Harinath ------------------------------ harinath at cs dot umn dot edu