* [Bug c/32988] [4.3.0 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
@ 2007-08-04 16:09 ` michelin60 at gmail dot com
2007-08-04 16:10 ` michelin60 at gmail dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from michelin60 at gmail dot com 2007-08-04 16:09 -------
Created an attachment (id=14022)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14022&action=view)
failing *.i
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/32988] [4.3.0 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
2007-08-04 16:09 ` [Bug c/32988] " michelin60 at gmail dot com
@ 2007-08-04 16:10 ` michelin60 at gmail dot com
2007-08-04 16:11 ` michelin60 at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from michelin60 at gmail dot com 2007-08-04 16:10 -------
Created an attachment (id=14023)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14023&action=view)
OK *.I
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/32988] [4.3.0 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
2007-08-04 16:09 ` [Bug c/32988] " michelin60 at gmail dot com
2007-08-04 16:10 ` michelin60 at gmail dot com
@ 2007-08-04 16:11 ` michelin60 at gmail dot com
2007-08-05 19:38 ` [Bug middle-end/32988] [4.3 " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-04 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from michelin60 at gmail dot com 2007-08-04 16:11 -------
Created an attachment (id=14024)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14024&action=view)
Failing *.s
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
` (2 preceding siblings ...)
2007-08-04 16:11 ` michelin60 at gmail dot com
@ 2007-08-05 19:38 ` pinskia at gcc dot gnu dot org
2007-08-05 20:57 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-05 19:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-08-05 19:38 -------
This is most likely my fault.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|c |middle-end
Keywords| |ice-on-valid-code
Summary|[4.3.0 Regression] ICE in |[4.3 Regression] ICE in
|build2_stat, at tree.c:3081 |build2_stat, at tree.c:3081
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
` (3 preceding siblings ...)
2007-08-05 19:38 ` [Bug middle-end/32988] [4.3 " pinskia at gcc dot gnu dot org
@ 2007-08-05 20:57 ` pinskia at gcc dot gnu dot org
2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-05 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-08-05 20:57 -------
Reduced testcase:
enum zone_type {
ZONE_DMA,
ZONE_NORMAL,
ZONE_MOVABLE,
MAX_NR_ZONES
};
static unsigned long arch_zone_lowest_possible_pfn[MAX_NR_ZONES];
static unsigned long arch_zone_highest_possible_pfn[MAX_NR_ZONES];
void free_area_init_nodes(unsigned long *max_zone_pfn)
{
enum zone_type i;
for (i = 1; i < MAX_NR_ZONES; i++)
{
if (i == ZONE_MOVABLE)
continue;
unsigned long _x = (max_zone_pfn[i]);
unsigned long _y = (arch_zone_lowest_possible_pfn[i]);
arch_zone_highest_possible_pfn[i] = _x > _y ? _x : _y;
}
}
---------- CUT --------
The problem is just in the checking and nothing else. I am fixing this right
now and it is not just a PowerPC problem, the ICE is also on i386-apple-darwin
with the reduced testcase.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
GCC build triplet|rs600 |
GCC host triplet|rs600 |
GCC target triplet|rs600 |
Last reconfirmed|0000-00-00 00:00:00 |2007-08-05 20:57:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
` (4 preceding siblings ...)
2007-08-05 20:57 ` pinskia at gcc dot gnu dot org
@ 2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
2007-08-06 3:24 ` pinskia at gcc dot gnu dot org
2007-08-06 3:24 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-05 21:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2007-08-05 21:00 -------
Patch which I am testing:
Index: tree.c
===================================================================
--- tree.c (revision 127225)
+++ tree.c (working copy)
@@ -3077,7 +3077,7 @@ build2_stat (enum tree_code code, tree t
if (code == POINTER_PLUS_EXPR && arg0 && arg1 && tt)
gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0))
- && TREE_CODE (TREE_TYPE (arg1)) == INTEGER_TYPE
+ && INTEGRAL_TYPE_P (TREE_TYPE (arg1))
&& useless_type_conversion_p (sizetype, TREE_TYPE (arg1)));
t = make_node_stat (code PASS_MEM_STAT);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
` (5 preceding siblings ...)
2007-08-05 21:00 ` pinskia at gcc dot gnu dot org
@ 2007-08-06 3:24 ` pinskia at gcc dot gnu dot org
2007-08-06 3:24 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06 3:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2007-08-06 03:24 -------
Subject: Bug 32988
Author: pinskia
Date: Mon Aug 6 03:24:19 2007
New Revision: 127237
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127237
Log:
2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/32988
* tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
for INTEGRAL_TYPE_P.
2007-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/32988
* gcc.c-torture/compile/pr32988.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr32988.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081
2007-08-04 16:07 [Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081 michelin60 at gmail dot com
` (6 preceding siblings ...)
2007-08-06 3:24 ` pinskia at gcc dot gnu dot org
@ 2007-08-06 3:24 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06 3:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2007-08-06 03:24 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988
^ permalink raw reply [flat|nested] 9+ messages in thread