diff options
| author | David Malcolm <dmalcolm@redhat.com> | 2015-12-17 21:25:36 +0000 |
|---|---|---|
| committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-12-17 21:25:36 +0000 |
| commit | 94c40e19af4ca5fe57c990df7f7abec48f5aa3af (patch) | |
| tree | 4c095463412043a04cc04af52d434df35a82c396 /libjava/classpath/gnu/java | |
| parent | e357a5e03c2e6f3b1d51bebe3c57322b28950b0f (diff) | |
| download | gcc-94c40e19af4ca5fe57c990df7f7abec48f5aa3af.zip gcc-94c40e19af4ca5fe57c990df7f7abec48f5aa3af.tar.gz gcc-94c40e19af4ca5fe57c990df7f7abec48f5aa3af.tar.bz2 | |
C FE: improvements to ranges of bad return values
gcc/c/ChangeLog:
* c-parser.c (c_parser_statement_after_labels): When calling
c_finish_return, Use the return expression's location if it has
one, falling back to the location of the first token within it.
* c-typeck.c (c_finish_return): When issuing warnings about
the incorrect presence/absence of a return value, issue a note
showing the declaration of the function.
gcc/testsuite/ChangeLog:
* gcc.dg/diagnostic-range-bad-return.c: New test case.
From-SVN: r231786
Diffstat (limited to 'libjava/classpath/gnu/java')
0 files changed, 0 insertions, 0 deletions
