Re: [dev] GCC situation

From: koneu <>
Date: Mon, 24 Nov 2014 11:01:13 +0100

On November 24, 2014 6:35:51 AM CET, Markus Wichmann <> wrote:
>that this asumption removes most overflow checking code.

This behaviour is a pro, not a con, of GCC. If you rely on undefined behaviour to
check for ... well ... undefined behaviour there is a compiler flag to enable it.

>something, but... well, the problem is, most code out there is not
>strictly conforming to the C standard.

Fix the code instead of breaking the compiler.

>By now, the only thing that really bugs me is that GCC's optimizers
>code undebuggable.

-O0 and -g are your best friends.
Received on Mon Nov 24 2014 - 11:01:13 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 24 2014 - 11:12:08 CET