public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internal compiler error on legal code
@ 2003-03-24 19:46 Steven Bosscher
0 siblings, 0 replies; 2+ messages in thread
From: Steven Bosscher @ 2003-03-24 19:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR inline-asm/4823; it has been noted by GNATS.
From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
rudd@cyberoptics.com, gcc-prs@gcc.gnu.org, rodrigc@gcc.gnu.org,
jh@suse.cz
Cc:
Subject: Re: inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internal
compiler error on legal code
Date: Mon, 24 Mar 2003 20:41:28 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4823
For Wolfgang's smaller testcase:
---------------------------------
void
f (void)
{
double result;
asm volatile (
" faddp %0, %1 \n\t"
: "=&t" (result)
: "u" (result),
"0" (result)
: "%st", "%st(1)", "%st(2)", "%st(3)",
"%st(4)", "%st(5)", "%st(6)", "%st(7)"
);
}
------------------------
we now don't crash. Instead we bail out with an error.
# gcc-3.3 -c 4823.c
4823.c: In function `f':
4823.c:5: error: output constraint 0 cannot be specified together with
"st" clobber
4823.c:8: confused by earlier errors, bailing out
# gcc-3.3 -c 4823.c -O
4823.c: In function `f':
4823.c:5: error: output constraint 0 cannot be specified together with
"st" clobber
4823.c:8: confused by earlier errors, bailing out
# gcc-3.3 -c 4823.c -O2
4823.c: In function `f':
4823.c:5: error: output constraint 0 cannot be specified together with
"st" clobber
4823.c:8: confused by earlier errors, bailing out
Honza, is this the correct behavior?
Greetz
Steven
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internal compiler error on legal code
@ 2003-03-24 23:16 Jan Hubicka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Hubicka @ 2003-03-24 23:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR inline-asm/4823; it has been noted by GNATS.
From: Jan Hubicka <jh@suse.cz>
To: Steven Bosscher <s.bosscher@student.tudelft.nl>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
rudd@cyberoptics.com, gcc-prs@gcc.gnu.org, rodrigc@gcc.gnu.org,
jh@suse.cz
Subject: Re: inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internal compiler error on legal code
Date: Mon, 24 Mar 2003 23:38:02 +0100
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4823
>
> For Wolfgang's smaller testcase:
>
> ---------------------------------
> void
> f (void)
> {
> double result;
> asm volatile (
> " faddp %0, %1 \n\t"
> : "=&t" (result)
> : "u" (result),
> "0" (result)
> : "%st", "%st(1)", "%st(2)", "%st(3)",
> "%st(4)", "%st(5)", "%st(6)", "%st(7)"
> );
> }
> ------------------------
>
> we now don't crash. Instead we bail out with an error.
>
> # gcc-3.3 -c 4823.c
> 4823.c: In function `f':
> 4823.c:5: error: output constraint 0 cannot be specified together with
> "st" clobber
> 4823.c:8: confused by earlier errors, bailing out
> # gcc-3.3 -c 4823.c -O
> 4823.c: In function `f':
> 4823.c:5: error: output constraint 0 cannot be specified together with
> "st" clobber
> 4823.c:8: confused by earlier errors, bailing out
> # gcc-3.3 -c 4823.c -O2
> 4823.c: In function `f':
> 4823.c:5: error: output constraint 0 cannot be specified together with
> "st" clobber
> 4823.c:8: confused by earlier errors, bailing out
>
> Honza, is this the correct behavior?
Hmm, not really "confused by earlier errors, bailing out" means that
compiler segfaulted. It is different failure - the reg-stack is not
really good at dealing with missformed asm constrains. I believe I've
sent a patch some time ago for similar problem, will try to dig it out,
but probably next week - this week is bit too hectic for me.
Honza
>
> Greetz
> Steven
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-24 22:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 19:46 inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internal compiler error on legal code Steven Bosscher
2003-03-24 23:16 Jan Hubicka
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).