From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17337 invoked by alias); 28 Nov 2013 11:42:05 -0000 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 Received: (qmail 17296 invoked by uid 48); 28 Nov 2013 11:42:02 -0000 From: "amylaar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59327] warning in expand_used_vars Date: Thu, 28 Nov 2013 11:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: amylaar at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg02894.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59327 --- Comment #2 from Jorn Wolfgang Rennecke --- sz is HOST_WIDE_INT, ASAN_RED_ZONE_SIZE is an int literal, and data.asan_alignb is an unsigned int. With 32 bit int and HOST_WIDE_INT, this results in a 32 bit signed/unsigned comparison. When building a target with need_64bit_hwint (according to config.gcc), on a host with 32 bit int, the right hand side of the comparison gets sign extended to HOST_WIDE_INT, thus the warning will not show up when testing such a combination / bootstrapping such a host/target.