public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/64868] New: C front-end rejects valid syntax.
@ 2015-01-29 20:38 u17263 at att dot net
  2015-02-04 19:12 ` [Bug c/64868] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: u17263 at att dot net @ 2015-01-29 20:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64868

            Bug ID: 64868
           Summary: C front-end rejects valid syntax.
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: u17263 at att dot net

Created attachment 34620
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34620&action=edit
test case

gcc version: 5.0.0 / svn: r220249

gcc -Wall -fopenmp -c bug-9.c
bug-9.c: In function ‘foo’:
bug-9.c:12:22: error: invalid form of ‘#pragma omp atomic’ before ‘;’ token
     fgot = 1.0 / fgot;
>From gcc-bugs-return-475451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 29 20:40:47 2015
Return-Path: <gcc-bugs-return-475451-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29196 invoked by alias); 29 Jan 2015 20:40:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29133 invoked by uid 55); 29 Jan 2015 20:40:42 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/64717] -fsanitize=vptr leads to warning:=?UTF-8?Q? ‘?=<anonymous>=?UTF-8?Q?’ may be used uninitialized in this function ?=[-Wmaybe-uninitialized]
Date: Thu, 29 Jan 2015 20:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64717-4-ZgeCbmpeKD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64717-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64717-4@http.gcc.gnu.org/bugzilla/>
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: 2015-01/txt/msg03445.txt.bz2
Content-length: 640

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd717

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 29 20:40:07 2015
New Revision: 220262

URL: https://gcc.gnu.org/viewcvs?rev"0262&root=gcc&view=rev
Log:
    PR c++/64717
    * cp-ubsan.c (cp_ubsan_instrument_vptr): Don't wrap vptr
    into SAVE_EXPR.

    * g++.dg/ubsan/pr64717-1.C: New test.
    * g++.dg/ubsan/pr64717-2.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr64717-1.C
    trunk/gcc/testsuite/g++.dg/ubsan/pr64717-2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-ubsan.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/64868] C front-end rejects valid syntax.
  2015-01-29 20:38 [Bug c/64868] New: C front-end rejects valid syntax u17263 at att dot net
@ 2015-02-04 19:12 ` jakub at gcc dot gnu.org
  2015-02-04 22:33 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-04 19:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64868

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-02-04
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34667
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34667&action=edit
gcc5-pr64868.patch

Untested fix.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/64868] C front-end rejects valid syntax.
  2015-01-29 20:38 [Bug c/64868] New: C front-end rejects valid syntax u17263 at att dot net
  2015-02-04 19:12 ` [Bug c/64868] " jakub at gcc dot gnu.org
@ 2015-02-04 22:33 ` jakub at gcc dot gnu.org
  2015-02-04 22:39 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-04 22:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64868

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb  4 22:32:36 2015
New Revision: 220420

URL: https://gcc.gnu.org/viewcvs?rev=220420&root=gcc&view=rev
Log:
    PR c/64824
    PR c/64868
gcc/c/
    * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
gcc/cp/
    * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.
gcc/c-family/
    * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
    instead of RDIV_EXPR.  Use build_binary_op instead of
    build2_loc.
libgomp/
    * testsuite/libgomp.c/pr64824.c: New test.
    * testsuite/libgomp.c/pr64868.c: New test.
    * testsuite/libgomp.c++/pr64824.C: New test.
    * testsuite/libgomp.c++/pr64868.C: New test.

Added:
    trunk/libgomp/testsuite/libgomp.c++/pr64824.C
    trunk/libgomp/testsuite/libgomp.c++/pr64868.C
    trunk/libgomp/testsuite/libgomp.c/pr64824.c
    trunk/libgomp/testsuite/libgomp.c/pr64868.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-omp.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/libgomp/ChangeLog


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/64868] C front-end rejects valid syntax.
  2015-01-29 20:38 [Bug c/64868] New: C front-end rejects valid syntax u17263 at att dot net
  2015-02-04 19:12 ` [Bug c/64868] " jakub at gcc dot gnu.org
  2015-02-04 22:33 ` jakub at gcc dot gnu.org
@ 2015-02-04 22:39 ` jakub at gcc dot gnu.org
  2015-02-11 14:44 ` jakub at gcc dot gnu.org
  2015-10-08 16:03 ` tschwinge at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-04 22:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64868

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/64868] C front-end rejects valid syntax.
  2015-01-29 20:38 [Bug c/64868] New: C front-end rejects valid syntax u17263 at att dot net
                   ` (2 preceding siblings ...)
  2015-02-04 22:39 ` jakub at gcc dot gnu.org
@ 2015-02-11 14:44 ` jakub at gcc dot gnu.org
  2015-10-08 16:03 ` tschwinge at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-11 14:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64868

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 11 14:44:10 2015
New Revision: 220622

URL: https://gcc.gnu.org/viewcvs?rev=220622&root=gcc&view=rev
Log:
    Backported from mainline
    2015-02-04  Jakub Jelinek  <jakub@redhat.com>

    PR c/64824
    PR c/64868
    * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
    instead of RDIV_EXPR.  Use build_binary_op instead of
    build2_loc.

    * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.

    * parser.c (cp_parser_omp_atomic): Handle RDIV_EXPR.

    * testsuite/libgomp.c/pr64824.c: New test.
    * testsuite/libgomp.c/pr64868.c: New test.
    * testsuite/libgomp.c++/pr64824.C: New test.
    * testsuite/libgomp.c++/pr64868.C: New test.

Added:
    branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/pr64824.C
    branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c++/pr64868.C
    branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/pr64824.c
    branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/pr64868.c
Modified:
    branches/gcc-4_9-branch/gcc/c-family/ChangeLog
    branches/gcc-4_9-branch/gcc/c-family/c-omp.c
    branches/gcc-4_9-branch/gcc/c/ChangeLog
    branches/gcc-4_9-branch/gcc/c/c-parser.c
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/parser.c
    branches/gcc-4_9-branch/libgomp/ChangeLog


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c/64868] C front-end rejects valid syntax.
  2015-01-29 20:38 [Bug c/64868] New: C front-end rejects valid syntax u17263 at att dot net
                   ` (3 preceding siblings ...)
  2015-02-11 14:44 ` jakub at gcc dot gnu.org
@ 2015-10-08 16:03 ` tschwinge at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2015-10-08 16:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64868

--- Comment #5 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Anything left to be done here?


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-08 16:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29 20:38 [Bug c/64868] New: C front-end rejects valid syntax u17263 at att dot net
2015-02-04 19:12 ` [Bug c/64868] " jakub at gcc dot gnu.org
2015-02-04 22:33 ` jakub at gcc dot gnu.org
2015-02-04 22:39 ` jakub at gcc dot gnu.org
2015-02-11 14:44 ` jakub at gcc dot gnu.org
2015-10-08 16:03 ` tschwinge at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).