From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26501 invoked by alias); 7 Apr 2003 20:16:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26483 invoked by uid 71); 7 Apr 2003 20:16:00 -0000 Date: Mon, 07 Apr 2003 20:16:00 -0000 Message-ID: <20030407201600.26482.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Jan Hubicka Subject: Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu Reply-To: Jan Hubicka X-SW-Source: 2003-04/txt/msg00306.txt.bz2 List-Id: The following reply was made to PR target/10340; it has been noted by GNATS. From: Jan Hubicka To: Raja R Harinath Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, Jan Hubicka 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 > > * 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@cs.umn.edu