aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2015-12-17 21:25:36 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2015-12-17 21:25:36 +0000
commit94c40e19af4ca5fe57c990df7f7abec48f5aa3af (patch)
tree4c095463412043a04cc04af52d434df35a82c396 /gcc/tree-pretty-print.c
parente357a5e03c2e6f3b1d51bebe3c57322b28950b0f (diff)
downloadgcc-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 'gcc/tree-pretty-print.c')
0 files changed, 0 insertions, 0 deletions