This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internalcompiler error on legal code
- From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 24 Mar 2003 19:46:02 -0000
- Subject: Re: inline-asm/4823: [3.2/3.3/3.4 regression] gcc reports internalcompiler error on legal code
- Reply-to: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
The following reply was made to PR inline-asm/4823; it has been noted by GNATS.
From: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org,
rudd at cyberoptics dot com, gcc-prs at gcc dot gnu dot org, rodrigc at gcc dot gnu dot org,
jh at suse dot 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