diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-12-08 17:03:26 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-12-08 17:03:26 +0000 |
commit | a1b93f8daf8029685f49cd57612d726674b8595c (patch) | |
tree | c9a3f87f1a7b95b9736b2d9e05db06d64e2291b2 /gcc/ipa-reference.c | |
parent | 46c6e1e20e58a8e071c163d9f1a8ea179a437fd3 (diff) | |
download | gcc-a1b93f8daf8029685f49cd57612d726674b8595c.zip gcc-a1b93f8daf8029685f49cd57612d726674b8595c.tar.gz gcc-a1b93f8daf8029685f49cd57612d726674b8595c.tar.bz2 |
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.
From-SVN: r231415
Diffstat (limited to 'gcc/ipa-reference.c')
0 files changed, 0 insertions, 0 deletions