This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r231415 - in /trunk/gcc: c/ChangeLog c/c-parser...
- From: dmalcolm at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 08 Dec 2015 17:03:26 -0000
- Subject: r231415 - in /trunk/gcc: c/ChangeLog c/c-parser...
Author: dmalcolm
Date: Tue Dec 8 17:03:26 2015
New Revision: 231415
URL: https://gcc.gnu.org/viewcvs?rev=231415&root=gcc&view=rev
Log:
C: fix uninitialized ranges for __alignof__
gcc/c/ChangeLog:
* c-parser.c (c_parser_alignof_expression): Capture location of
closing parenthesis (if any), or of end of unary expression, and
use it to build a src_range for the expression.
gcc/testsuite/ChangeLog:
* gcc.dg/plugin/diagnostic-test-expressions-1.c (test_alignof):
New test function.
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c