This is the mail archive of the gcc-prs@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: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu


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


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