public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
@ 2005-11-30 0:40 ghazi at gcc dot gnu dot org
2005-11-30 0:44 ` [Bug c/25169] " ghazi at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-30 0:40 UTC (permalink / raw)
To: gcc-bugs
On i686-unknown-linux-gnu with the 4.0.x branch, I'm getting tree checking
failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c. From the
logfile, the errors in 20040203-1.c are of this form:
20040203-1.c:17: internal compiler error: tree check: expected class
'constant', have 'unary' (nop_expr) in build_c_cast, at c-typeck.c:3330
The errors from cast-*.c are of this form:
cast-1.c:25: internal compiler error: tree check: expected class 'constant',
have 'declaration' (var_decl) in build_c_cast, at c-typeck.c:3330
It was clean as of here:
http://gcc.gnu.org/ml/gcc-testresults/2005-11/msg00301.html
It started happening here:
http://gcc.gnu.org/ml/gcc-testresults/2005-11/msg00360.html
To reproduce, configure with --enable-checking=yes,rtl then bootstrap the 4.0
branch and run the testsuite.
The 4.1 branch and mainline are all clean for some reason.
--
Summary: [4.0 regression] tree checking failures in
gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Keywords: ice-checking
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25169
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/25169] [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
2005-11-30 0:40 [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c ghazi at gcc dot gnu dot org
@ 2005-11-30 0:44 ` ghazi at gcc dot gnu dot org
2005-11-30 3:21 ` ghazi at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-30 0:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ghazi at gcc dot gnu dot org 2005-11-30 00:44 -------
Based on the date it started failing, I'm guessing it was this patch that
triggered it:
2005-11-07 Paolo Bonzini <bonzini@gnu.org>
PR c/24599
* c-typeck.c (build_c_cast): Try using a shared constant, and see
if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
(readonly_error): Fix formatting error.
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bonzini at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25169
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/25169] [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
2005-11-30 0:40 [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c ghazi at gcc dot gnu dot org
2005-11-30 0:44 ` [Bug c/25169] " ghazi at gcc dot gnu dot org
@ 2005-11-30 3:21 ` ghazi at gcc dot gnu dot org
2005-11-30 8:15 ` bonzini at gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-30 3:21 UTC (permalink / raw)
To: gcc-bugs
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25169
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/25169] [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
2005-11-30 0:40 [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c ghazi at gcc dot gnu dot org
2005-11-30 0:44 ` [Bug c/25169] " ghazi at gcc dot gnu dot org
2005-11-30 3:21 ` ghazi at gcc dot gnu dot org
@ 2005-11-30 8:15 ` bonzini at gnu dot org
2005-11-30 16:32 ` bonzini at gcc dot gnu dot org
2005-12-01 14:05 ` ghazi at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2005-11-30 8:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bonzini at gnu dot org 2005-11-30 08:15 -------
I have an obvious patch, which is to invert the CONSTANT_CLASS_P and
TREE_CONSTANT_OVERFLOW tests in line 3330.
Will commit after bootstrapping/testing succeeds.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25169
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/25169] [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
2005-11-30 0:40 [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c ghazi at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-11-30 8:15 ` bonzini at gnu dot org
@ 2005-11-30 16:32 ` bonzini at gcc dot gnu dot org
2005-12-01 14:05 ` ghazi at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-11-30 16:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bonzini at gnu dot org 2005-11-30 16:32 -------
Subject: Bug 25169
Author: bonzini
Date: Wed Nov 30 16:32:52 2005
New Revision: 107721
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107721
Log:
2005-11-30 Paolo Bonzini <bonzini@gnu.org>
PR c/25169
* c-typeck.c (build_c_cast): Test CONSTANT_CLASS_P before
accessing fields that are only defined for constants.
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/c-typeck.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25169
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/25169] [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c
2005-11-30 0:40 [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c ghazi at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-11-30 16:32 ` bonzini at gcc dot gnu dot org
@ 2005-12-01 14:05 ` ghazi at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-12-01 14:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ghazi at gcc dot gnu dot org 2005-12-01 14:05 -------
My results from last night confirm it's fixed now, thanks.
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25169
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-12-01 14:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 0:40 [Bug c/25169] New: [4.0 regression] tree checking failures in gcc.dg/20040203-1.c, cast-1.c, cast-2.c, cast-3.c ghazi at gcc dot gnu dot org
2005-11-30 0:44 ` [Bug c/25169] " ghazi at gcc dot gnu dot org
2005-11-30 3:21 ` ghazi at gcc dot gnu dot org
2005-11-30 8:15 ` bonzini at gnu dot org
2005-11-30 16:32 ` bonzini at gcc dot gnu dot org
2005-12-01 14:05 ` ghazi 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).