[patch] Avoid generating warnings for -O2 -Wunreachable-code

Eric Fisher joefoxreal@gmail.com
Wed Nov 4 06:50:00 GMT 2009


2009/11/4 Jakub Jelinek <jakub@redhat.com>:
> On Wed, Nov 04, 2009 at 01:37:50PM +0800, Eric Fisher wrote:
>> This patch will avoid generating warnings for -O2 -Wunreachable-code,
>> and has been tested on my machine. Also two test cases need be
>> modified.
>
> This doesn't look like a good idea, while you get rid of an unwanted
> warning, you also make the code less debuggable.

Hmm. But these code is going to be removed after completely unrolling
by cleanup_tree_cfg, so it has nothing to do with debugging.

Thanks,
Eric



More information about the Gcc-patches mailing list