]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use explicit locations for some warnings in c-pragma.c.
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 19:36:19 +0000 (19:36 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 19:36:19 +0000 (19:36 +0000)
commited53620859a47db34b4a03245c541476934e87ad
tree616fcade21d35e7c06e245ee5b7578f95ca8ad86
parentc84fee001c01438f5cc570ea232bc8fe123374ba
Use explicit locations for some warnings in c-pragma.c.

gcc/cp/ChangeLog:

2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* parser.c (pragma_lex): Add loc argument. Rearrange the code to
make it more similar to the C version.

gcc/c-family/ChangeLog:

2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c-pragma.c (handle_pragma_diagnostic): Use explicit location
when warning.
* c-pragma.h (pragma_lex): Add optional loc argument.

gcc/c/ChangeLog:

2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c-parser.c (pragma_lex): Add loc argument.

gcc/testsuite/ChangeLog:

2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* gcc.dg/pragma-diag-5.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227923 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c
gcc/c-family/c-pragma.h
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pragma-diag-5.c [new file with mode: 0644]