This is the mail archive of the gcc-help@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]

Re: Is it OK that gcc optimizes away overflow check?


On Mon, Jul 25, 2011 at 01:31, Agner Fog <agner@agner.org> wrote:
>
> My point is that you are over-interpreting the standard when you conclude
> that the compiler is allowed to do anything in case of overflow.
>

How is signed overflow any different from dereferencing a null
pointer? UB is UB.


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