aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb@suse.de>2005-01-01 16:15:23 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2005-01-01 16:15:23 +0000
commit43e05e45bcd3092ef7fb02e537ca7645607dbede (patch)
treec6d40e9cbaa9fa337df7a271539a709395f1c913 /gcc/tree.c
parent8e1d2e8278cc2bed80ad1a1564cee131996b6129 (diff)
downloadgcc-43e05e45bcd3092ef7fb02e537ca7645607dbede.zip
gcc-43e05e45bcd3092ef7fb02e537ca7645607dbede.tar.gz
gcc-43e05e45bcd3092ef7fb02e537ca7645607dbede.tar.bz2
re PR middle-end/17544 (incorrect -Wunreachable-code warning for mains with a return statement)
* emit-rtl.c (add_insn_before): Fix comment typo. PR middle-end/17544 * c-decl.c (finish_function): If compiling C99, annotate the compiler generated return with the current file name and line 0. * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if the source line is greater than 0. (remove_bb): Likewise. cp/ PR middle-end/17544 * decl.c (finish_function): Fix comment. Annotate the compiler generated return with the current file name and line 0. testsuite/ * gcc.dg/20041231-1.C: New test. * g++.dg/warn/Wunreachable-code-1.C: New test. From-SVN: r92784
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions