public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/5878: gcc 3.1 breaks on C code generated by the Mercury compiler
@ 2002-03-12 21:43 rth
0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-03-12 21:43 UTC (permalink / raw)
To: fjh, gcc-bugs, gcc-prs, mercury-bugs, rth
Synopsis: gcc 3.1 breaks on C code generated by the Mercury compiler
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Tue Mar 12 21:43:38 2002
State-Changed-Why:
http://gcc.gnu.org/ml/gcc-patches/2002-03/msg00746.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5878
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/5878: gcc 3.1 breaks on C code generated by the Mercury compiler
@ 2002-03-12 21:16 rth
0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-03-12 21:16 UTC (permalink / raw)
To: fjh, gcc-bugs, gcc-prs, mercury-bugs, nobody, rth
Synopsis: gcc 3.1 breaks on C code generated by the Mercury compiler
Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-By: rth
Responsible-Changed-When: Tue Mar 12 21:16:08 2002
Responsible-Changed-Why:
.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5878
^ permalink raw reply [flat|nested] 3+ messages in thread
* optimization/5878: gcc 3.1 breaks on C code generated by the Mercury compiler
@ 2002-03-07 19:36 Fergus Henderson
0 siblings, 0 replies; 3+ messages in thread
From: Fergus Henderson @ 2002-03-07 19:36 UTC (permalink / raw)
To: gcc-gnats; +Cc: mercury-bugs
>Number: 5878
>Category: optimization
>Synopsis: gcc 3.1 breaks on C code generated by the Mercury compiler
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Mar 07 19:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Fergus Henderson <fjh@cs.mu.oz.au>
>Release: 3.1 20020304 (prerelease)
>Organization:
>Environment:
Reading specs from /tmp/fjh/install/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: configure --prefix=/tmp/fjh/install
Thread model: single
gcc version 3.1 20020304 (prerelease)
>Description:
gcc 3.1 gets an internal error when compiling the attached
file with optimization enabled.
This is a regression from gcc 2.95.3.
The output is:
bash$ gcc -O mercury-gcc3.1.c
mercury-gcc3.1.c: In function `f':
mercury-gcc3.1.c:22: Internal compiler error in verify_local_live_at_start, at flow.c:606
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile the attached file with `gcc -c -O',
e.g. `gcc -c -O bug.c'.
void *dummy (void *);
register void *reg __asm__ ("ebx");
void
f (void)
{
goto *dummy (&&foo);
for (;;)
{
foo:
(reg) = (void *) 1;
if (!reg)
goto baz;
reg = (&&bar);
}
bar:
baz:
reg = 0;
}
>Fix:
A work-around is to compile without `-O'.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="mercury-gcc3.1.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="mercury-gcc3.1.c"
dm9pZCAqZHVtbXkgKHZvaWQgKik7CnJlZ2lzdGVyIHZvaWQgKnJlZyBfX2FzbV9fICgiZWJ4Iik7
Cgp2b2lkCmYgKHZvaWQpCnsKICBnb3RvICpkdW1teSAoJiZmb28pOwogIGZvciAoOzspCiAgICB7
CiAgICBmb286CiAgICAgIChyZWcpID0gKHZvaWQgKikgMTsKCiAgICAgIGlmICghcmVnKQoJZ290
byBiYXo7CgogICAgICByZWcgPSAoJiZiYXIpOwogICAgfQoKYmFyOgpiYXo6CiAgcmVnID0gMDsK
fQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-13 5:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-12 21:43 optimization/5878: gcc 3.1 breaks on C code generated by the Mercury compiler rth
-- strict thread matches above, loose matches on Subject: below --
2002-03-12 21:16 rth
2002-03-07 19:36 Fergus Henderson
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).