From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9503 invoked by alias); 2 Apr 2010 12:15:29 -0000 Received: (qmail 9174 invoked by uid 48); 2 Apr 2010 12:15:10 -0000 Date: Fri, 02 Apr 2010 12:15:00 -0000 Message-ID: <20100402121510.9173.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/42509] [4.5 Regression] bootstrap failure in stage3 (integer overflow in preprocessor expression) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2010-04/txt/msg00199.txt.bz2 ------- Comment #21 from rguenth at gcc dot gnu dot org 2010-04-02 12:15 ------- Or rather the code tries to account for that but fails to notice that the spill-slot decl isn't really a decl. Thus the following is better: Index: gcc/alias.c =================================================================== --- gcc/alias.c (revision 157942) +++ gcc/alias.c (working copy) @@ -2147,6 +2147,11 @@ nonoverlapping_memrefs_p (const_rtx x, c if (exprx == 0 || expry == 0) return 0; + /* We can only handle real decls, not the fake spill slot. */ + if (exprx == get_spill_slot_decl (false) + || expry == get_spill_slot_decl (false)) + return 0; + /* If both are field references, we may be able to determine something. */ if (TREE_CODE (exprx) == COMPONENT_REF && TREE_CODE (expry) == COMPONENT_REF -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42509