This is the mail archive of the gcc@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: some integer undefined behaviors in gcc


* Paolo Bonzini:

>> There quite a few instances of the x & -x pattern, which would be fine
>> with -fwrapv.
>
> It's always valid if you know that x is not INT_MIN, which you do in
> many cases (for example if x is an offset).

The reported cases cover the INT_MIN case (these are execution logs,
not results from static analysis).


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