public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: inline-asm/4823: gcc reports internal compiler error on legal code
@ 2003-01-08 1:36 Wolfgang Bangerth
0 siblings, 0 replies; only message in thread
From: Wolfgang Bangerth @ 2003-01-08 1:36 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: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: inline-asm/4823: gcc reports internal compiler error on legal
code
Date: Tue, 7 Jan 2003 19:33:19 -0600 (CST)
This is also visible on x86-linux. A short testcase is this:
---------------------------------
void f() {
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)"
);
}
-------------------------
It crashes like so:
tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/gcc temp.c
temp.c: In function `f':
temp.c:3: error: output constraint 0 cannot be specified together with
"st" clobber
temp.c:11: internal compiler error: in convert_regs_1, at reg-stack.c:2740
The crash is in fact a regression since it worked in gcc2.95. gcc3.0.4
issued this, differing, message:
tmp/g> /home/bangerth/bin/gcc-3.0.4/bin/gcc temp.c
temp.c: In function `f':
temp.c:11: Internal compiler error in emit_swap_insn, at reg-stack.c:951
gcc3.2 crashes (with the internal error replaced with "bailing out"), as
well as 3.3 and 3.4.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-08 1:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-08 1:36 inline-asm/4823: gcc reports internal compiler error on legal code Wolfgang Bangerth
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).