From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20528 invoked by alias); 7 Apr 2003 20:06:01 -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 20504 invoked by uid 71); 7 Apr 2003 20:06:01 -0000 Date: Mon, 07 Apr 2003 20:06:00 -0000 Message-ID: <20030407200601.20503.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Raja R Harinath Subject: Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu Reply-To: Raja R Harinath X-SW-Source: 2003-04/txt/msg00305.txt.bz2 List-Id: The following reply was made to PR target/10340; it has been noted by GNATS. From: Raja R Harinath To: gcc-gnats@gcc.gnu.org Cc: nobody@gcc.gnu.org, Jan Hubicka Subject: Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu Date: Mon, 07 Apr 2003 15:00:44 -0500 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' - Hari -- Raja R Harinath ------------------------------ harinath@cs.umn.edu