This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/69857] gcc/config/arm/arm.c:15949: return in strange place ?


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;
              ^~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]