public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18164] New: ICE on trivial invalid asm
@ 2004-10-26 19:53 jsm28 at gcc dot gnu dot org
2004-10-26 19:56 ` [Bug c/18164] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2004-10-26 19:53 UTC (permalink / raw)
To: gcc-bugs
void
f (void)
{
int x;
asm ("" : "" (x));
}
yields an ICE (discovered while attempting to disallow wide strings in asms)
t.c: In function 'f':
t.c:5: error: output operand constraint lacks '='
t.c:5: error: output operand constraint lacks '='
t.c:5: error: invalid lvalue in asm output 0
t.c:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This appears to be fairly recent:
: Search converges between 2004-10-09-014001-trunk (#585) and
2004-10-09-161001-trunk (#586).
--
Summary: ICE on trivial invalid asm
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
@ 2004-10-26 19:56 ` pinskia at gcc dot gnu dot org
2004-10-26 20:02 ` [Bug middle-end/18164] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-26 19:56 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |error-recovery, ice-on-
| |invalid-code
Summary|ICE on trivial invalid asm |[4.0 Regression] ICE on
| |trivial invalid asm
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
2004-10-26 19:56 ` [Bug c/18164] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-26 20:02 ` pinskia at gcc dot gnu dot org
2004-10-28 3:11 ` bje at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-26 20:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-26 20:02 -------
Confirmed, we are ICE in the gimplifer:
#0 0xffff8cc0 in __memcpy ()
#1 0x006176a4 in build_string (len=-1, str=0x4248e0d5 "\177?????????") at /Users/pinskia/src/ipa-
out/gcc/gcc/tree.c:755
#2 0x0011b254 in gimplify_asm_expr (expr_p=0x42477fc8, pre_p=0xbfffe4a4, post_p=0xbfffe4a8) at
/Users/pinskia/src/ipa-out/gcc/gcc/gimplify.c:3193
constraint_len is 0 at this point.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-26 20:02:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
2004-10-26 19:56 ` [Bug c/18164] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-26 20:02 ` [Bug middle-end/18164] " pinskia at gcc dot gnu dot org
@ 2004-10-28 3:11 ` bje at gcc dot gnu dot org
2004-11-25 19:04 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-10-28 3:11 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |bje at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-10-28 3:11 ` bje at gcc dot gnu dot org
@ 2004-11-25 19:04 ` pinskia at gcc dot gnu dot org
2004-11-29 2:20 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-25 19:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-25 19:04 -------
Sorry Ben to steal another bug from you but I fixed it.
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg02173.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|bje at gcc dot gnu dot org |pinskia at gcc dot gnu dot
| |org
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-25 19:04 ` pinskia at gcc dot gnu dot org
@ 2004-11-29 2:20 ` pinskia at gcc dot gnu dot org
2004-11-29 2:22 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 2:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-29 02:20 -------
Fixed by:
2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/18164
* gimplify.c (gimplify_asm_expr): If the length of an output operand
is zero, do not process it, just let it go through.
2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.dg/pr18164.c: New test.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-11-29 2:20 ` pinskia at gcc dot gnu dot org
@ 2004-11-29 2:22 ` cvs-commit at gcc dot gnu dot org
2004-11-29 12:58 ` hp at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-29 2:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-29 02:21 -------
Subject: Bug 18164
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-11-29 02:21:28
Modified files:
gcc : ChangeLog gimplify.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr18164.c
Log message:
2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/18164
* gimplify.c (gimplify_asm_expr): If the length of an output operand
is zero, do not process it, just let it go through.
2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.dg/pr18164.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6615&r2=2.6616
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&r1=2.87&r2=2.88
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4672&r2=1.4673
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr18164.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-11-29 2:22 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-29 12:58 ` hp at gcc dot gnu dot org
2004-11-29 13:19 ` hp at gcc dot gnu dot org
2004-11-29 13:28 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2004-11-29 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hp at gcc dot gnu dot org 2004-11-29 12:58 -------
The test-case is flawed; at least not robust enough for all bison.
I get:
Excess errors:
/gcc/testsuite/gcc.dg/pr18164.c:6: error: syntax error before ':' token
FC2, bison-1.875c-1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-11-29 12:58 ` hp at gcc dot gnu dot org
@ 2004-11-29 13:19 ` hp at gcc dot gnu dot org
2004-11-29 13:28 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2004-11-29 13:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hp at gcc dot gnu dot org 2004-11-29 13:19 -------
...no, not a bison issue. It's the testsuite integration that's wrong.
(How did you test it?) You need to adjust for the automatically added "-ansi".
A dg-options "" should do it. Oh, and I'll have to fix the dg-error typo.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/18164] [4.0 Regression] ICE on trivial invalid asm
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-11-29 13:19 ` hp at gcc dot gnu dot org
@ 2004-11-29 13:28 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-29 13:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-29 13:28 -------
Subject: Bug 18164
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hp@gcc.gnu.org 2004-11-29 13:27:11
Modified files:
gcc/testsuite : ChangeLog
gcc/testsuite/gcc.dg: pr18164.c
Log message:
PR middle-end/18164
* gcc.dg/pr18164.c: Add dg-options "". Correct typo in dg-error.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4674&r2=1.4675
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr18164.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18164
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-11-29 13:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 19:53 [Bug c/18164] New: ICE on trivial invalid asm jsm28 at gcc dot gnu dot org
2004-10-26 19:56 ` [Bug c/18164] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-26 20:02 ` [Bug middle-end/18164] " pinskia at gcc dot gnu dot org
2004-10-28 3:11 ` bje at gcc dot gnu dot org
2004-11-25 19:04 ` pinskia at gcc dot gnu dot org
2004-11-29 2:20 ` pinskia at gcc dot gnu dot org
2004-11-29 2:22 ` cvs-commit at gcc dot gnu dot org
2004-11-29 12:58 ` hp at gcc dot gnu dot org
2004-11-29 13:19 ` hp at gcc dot gnu dot org
2004-11-29 13:28 ` cvs-commit at gcc dot gnu dot org
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).