From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10394 invoked by alias); 16 Mar 2010 08:57:46 -0000 Received: (qmail 10360 invoked by uid 48); 16 Mar 2010 08:57:34 -0000 Date: Tue, 16 Mar 2010 08:57:00 -0000 Message-ID: <20100316085734.10359.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/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: "ramana 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-03/txt/msg01442.txt.bz2 ------- Comment #7 from ramana at gcc dot gnu dot org 2010-03-16 08:57 ------- (In reply to comment #6) > As Matthias said this is a --with-mode=thumb issue, people not using this > option have no issue bootstraping natively on arm: > > http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01254.html > http://gcc.gnu.org/ml/gcc-testresults/2010-03/msg01186.html > I spent some time last night playing with this and have a smaller testcase as below where the stage2 pre-processor seems to generate a warning which is wrong. $>cat /tmp/test.c #if 3 * -2 != 6 #error #endif /tmp/test.c:1:12: warning: integer overflow in preprocessor expression /tmp/test.c:2:2: error: #error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42509