From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1974 invoked by alias); 5 Aug 2007 20:57:40 -0000 Received: (qmail 32690 invoked by uid 48); 5 Aug 2007 20:57:27 -0000 Date: Sun, 05 Aug 2007 20:57:00 -0000 Message-ID: <20070805205727.32689.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/32988] [4.3 Regression] ICE in build2_stat, at tree.c:3081 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00302.txt.bz2 ------- 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