This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/69857] gcc/config/arm/arm.c:15949: return in strange place ?
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Feb 2016 22:14:55 +0000
- Subject: [Bug target/69857] gcc/config/arm/arm.c:15949: return in strange place ?
- Auto-submitted: auto-generated
- References: <bug-69857-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69857
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to David Binderman from comment #0)
> [trunk/gcc/config/arm/arm.c:15949]: (style) Statements following return,
> break, continue, goto or throw will never be executed.
It is also sad that we don't warn about it (PR46476). Clang does:
prog.cc:6:15: warning: code will never be executed [-Wunreachable-code]
int b=10;
^~