public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
@ 2003-04-07 20:06 Raja R Harinath
0 siblings, 0 replies; 4+ messages in thread
From: Raja R Harinath @ 2003-04-07 20:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/10340; it has been noted by GNATS.
From: Raja R Harinath <harinath@cs.umn.edu>
To: gcc-gnats@gcc.gnu.org
Cc: nobody@gcc.gnu.org, Jan Hubicka <jh@suse.cz>
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 <jh@suse.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'
- Hari
--
Raja R Harinath ------------------------------ harinath@cs.umn.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
@ 2003-04-07 20:38 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-04-07 20:38 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, harinath, nobody
Synopsis: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Apr 7 20:38:55 2003
State-Changed-Why:
Duplicate of 10327
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10340
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
@ 2003-04-07 20:16 Jan Hubicka
0 siblings, 0 replies; 4+ messages in thread
From: Jan Hubicka @ 2003-04-07 20:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/10340; it has been noted by GNATS.
From: Jan Hubicka <jh@suse.cz>
To: Raja R Harinath <harinath@cs.umn.edu>
Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org,
Jan Hubicka <jh@suse.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@suse.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@cs.umn.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
@ 2003-04-07 19:06 harinath
0 siblings, 0 replies; 4+ messages in thread
From: harinath @ 2003-04-07 19:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 10340
>Category: target
>Synopsis: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 07 19:06:02 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: harinath@cs.umn.edu
>Release: gcc version 3.4 20030404 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Compiling the following simple program:
static struct { int i; int j; } s;
int fnV (int, ...);
void fnA (void)
{
fnV(s.j, fnV(s.j));
}
with -fPIC -O1 or -fPIC -O2 gives:
$ gcc -c -fPIC -O1 foo.c
/tmp/ccxT9xXg.s: Assembler messages:
/tmp/ccxT9xXg.s:13: Error: suffix or operands invalid for `lea'
The assemblers I tried were
GNU assembler version 2.12.90.0.1 (i386-linux) using BFD version 2.12.90.0.1 20020307 Debian/GNU Linux
GNU assembler version 2.13.90 (i686-pc-linux-gnu) using BFD version 2.13.90 20030407
>How-To-Repeat:
gcc -c -fPIC -O1 foo.c
gcc -c -fPIC -O2 foo.c
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="foo.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.c"
c3RhdGljIHN0cnVjdCB7IGludCBpOyBpbnQgajsgfSBzOwoKaW50IGZuViAoaW50LCAuLi4pOwp2
b2lkIGZuQSAodm9pZCkKewogIGZuVihzLmosIGZuVihzLmopKTsKfQo=
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-07 20:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-07 20:06 target/10340: Vararg functions, -fPIC and invalid assembly on i686-pc-linux-gnu Raja R Harinath
-- strict thread matches above, loose matches on Subject: below --
2003-04-07 20:38 bangerth
2003-04-07 20:16 Jan Hubicka
2003-04-07 19:06 harinath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).