From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26797 invoked by alias); 14 Feb 2014 14:17:16 -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 26775 invoked by uid 48); 14 Feb 2014 14:17:12 -0000 From: "jp.deplaix at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60195] New: Strange warnings using atomic types Date: Fri, 14 Feb 2014 14:17: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: jp.deplaix 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 attachments.created 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/msg01316.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60195 Bug ID: 60195 Summary: Strange warnings using atomic types Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jp.deplaix at gmail dot com Created attachment 32134 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D32134&action=3Dedit Test case Two warnings are raised while compiling the attached test-case. The first one in the function f: warning: variable 'y' set but not used but clearly it is. For example if you replace atomic_int by int here, the warning desapears. The second one in the function g at the line of =C2=AB y =3D 0 =C2=BB: warning: right-hand operand of comma has no effect this warning make no sense, since there is no comma at this line. This was experienced with gcc 4.9.0 20140111 for the first warning and gcc 4.9.0 20140213 for both warnings. >>From gcc-bugs-return-443560-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 14 14:32:36 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4897 invoked by alias); 14 Feb 2014 14:32:35 -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 4844 invoked by uid 55); 14 Feb 2014 14:32:32 -0000 From: "tejohnson at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/60175] ICE on gcc.dg/asan/nosanitize-and-inline.c Date: Fri, 14 Feb 2014 14:32: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: tejohnson at google 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: 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/msg01317.txt.bz2 Content-length: 1058 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60175 --- Comment #4 from Teresa Johnson --- On Fri, Feb 14, 2014 at 1:01 AM, y.gribov at samsung dot com wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60175 > > Yury Gribov changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |hubicka at gcc dot gnu.org, > | |tejohnson at google dot com > > --- Comment #3 from Yury Gribov --- > Adding Jan and Teresa (who worked on this piece of code) to comment on proposed > patch. The patch looks good to me, but I can't approve. The other calls to combine_probabilities from this module look ok to me, but this one should be apply_probability as you note. Thanks, Teresa > > -- > You are receiving this mail because: > You are on the CC list for the bug.