public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* inline-asm/10123: inconsistent operand constraints cause ICE at -O0
@ 2003-03-17 14:56 gccmail
0 siblings, 0 replies; 3+ messages in thread
From: gccmail @ 2003-03-17 14:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 10123
>Category: inline-asm
>Synopsis: inconsistent operand constraints cause ICE at -O0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon Mar 17 14:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jonah Graham
>Release: gcc version 3.3 20030303 (prerelease)
>Organization:
>Environment:
i686-pc-cygwin
>Description:
When a register constraint that is an EXTRA_CONSTRAINT for the machine and the extra constraint only accepts a constant, an ICE occurs in instantiate_virtual_regs_1, at function.c:4087, but only when compiled with -O0. An example is 'e' on x86. (This run is from 3.3, but it also occurs in 3.1.)
int main(int argc, char **argv)
{
asm volatile ("" : "=e" (argc) : );
return 0;
}
$ ./xgcc -B. -v
Reading specs from ./specs
Configured with: /cygdrive/q/csp/taz/gcc-20030303/configure --enable-languages=c
Thread model: single
gcc version 3.3 20030303 (prerelease)
>How-To-Repeat:
$ cat extra_constraint.c
int main(int argc, char **argv)
{
asm volatile ("" : "=e" (argc) : );
return 0;
}
$ cat immed_constraint.c
int main(int argc, char **argv)
{
asm volatile ("" : "=I" (argc) : );
return 0;
}
$ ./xgcc -B. -O0 extra_constraint.c
extra_constraint.c: In function `main':
extra_constraint.c:5: internal compiler error: in instantiate_virtual_regs_1, at function.c:4087
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$ ./xgcc -B. -O1 extra_constraint.c
extra_constraint.c: In function `main':
extra_constraint.c:3: error: inconsistent operand constraints in an `asm'
$ ./xgcc -B. -O0 immed_constraint.c
immed_constraint.c: In function `main':
immed_constraint.c:3: error: inconsistent operand constraints in an `asm'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: inline-asm/10123: inconsistent operand constraints cause ICE at -O0
@ 2003-03-18 0:35 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-03-18 0:35 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gccmail, nobody
Synopsis: inconsistent operand constraints cause ICE at -O0
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Mar 18 00:35:27 2003
State-Changed-Why:
On request of submitter
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10123
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: inline-asm/10123: inconsistent operand constraints cause ICE at -O0
@ 2003-03-17 21:06 Jonah Graham
0 siblings, 0 replies; 3+ messages in thread
From: Jonah Graham @ 2003-03-17 21:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR inline-asm/10123; it has been noted by GNATS.
From: "Jonah Graham" <gccmail@whalesolutions.ca>
To: <gccmail@whalesolutions.ca>, <gcc-gnats@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>
Cc:
Subject: Re: inline-asm/10123: inconsistent operand constraints cause ICE at -O0
Date: Mon, 17 Mar 2003 21:02:42 -0000
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=10123
Earlier I filed the above bug report, but now I think that 10012 and 9910
are still the same issue. All three of them try assigning to the 'e'
constraint, which is a constant type extra constraint on x86.
Perhaps two of the three can be closed. Probably mine (10123) and 10012 as
there is much less information in them.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-18 0:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-17 14:56 inline-asm/10123: inconsistent operand constraints cause ICE at -O0 gccmail
2003-03-17 21:06 Jonah Graham
2003-03-18 0:35 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).