From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21211 invoked by alias); 3 Feb 2014 00:03:52 -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 21185 invoked by uid 48); 3 Feb 2014 00:03:46 -0000 From: "chengniansun at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60036] New: Spurious signedness conversion warning with relational operator Date: Mon, 03 Feb 2014 00:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chengniansun at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00096.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60036 Bug ID: 60036 Summary: Spurious signedness conversion warning with relational operator Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chengniansun at gmail dot com Gcc-trunk emits a signedness conversion warning for the statement "f ^=3D f= n1() > a;". However, as the value of "fn1() > a" is either 1 or 0, the warning is = not true.=20 Moreover, Gcc-4.8 and 4.7 do not output this warning. And if I change the statement to "f =3D f ^ (fn1() > a);", gcc-trunk does not emit this warning, either. $: cat conversion-for-boolean.c extern int fn1(); unsigned fn(int a) { unsigned f =3D 9; f ^=3D fn1() > a; return f; } $: gcc-trunk -c -Wconversion -std=3Dc11 conversion-for-boolean.c conversion-for-boolean.c: In function =E2=80=98fn=E2=80=99: conversion-for-boolean.c:4:5: warning: conversion to =E2=80=98unsigned int= =E2=80=99 from =E2=80=98int=E2=80=99 may change the sign of the result [-Wsign-conversion] f ^=3D fn1() > a; ^ $: gcc-4.8 -c -Wconversion -std=3Dc11 conversion-for-boolean.c $: gcc-4.7 -c -Wconversion -std=3Dc11 conversion-for-boolean.c $: gcc-trunk --version gcc-trunk (GCC) 4.9.0 20140131 (experimental) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. >>From gcc-bugs-return-442340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 03 01:40:36 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3922 invoked by alias); 3 Feb 2014 01:40:34 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3880 invoked by uid 48); 3 Feb 2014 01:40:29 -0000 From: "alexa.gerancho at hushmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58854] [4.8 regression] "sub sp, fp, #40" hoisted above frame accesses Date: Mon, 03 Feb 2014 01:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: alexa.gerancho at hushmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ramana at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 2014-02/txt/msg00097.txt.bz2 Content-length: 567 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854 Alexa changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexa.gerancho at hushmail dot com --- Comment #13 from Alexa --- *** Bug 260998 has been marked as a duplicate of this bug. *** Seen live from the domain http://volichat.com/adult-chat-rooms Marked for reference. Resolved as fixed @bugzilla.