This is the mail archive of the gcc-patches@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: [C/C++ PATCH] Fix -Wshift-overflow with sign bit


On 08/12/2015 11:40 AM, Marek Polacek wrote:
On Wed, Aug 12, 2015 at 11:33:21AM -0600, Jeff Law wrote:
On 08/12/2015 11:28 AM, Toon Moene wrote:
https://gcc.gnu.org/ml/gcc-testresults/2015-08/msg01036.html

[ Yes, that's at run time, not compile time ... ]
Hoping some of those are fixed by the sext_hwi changes from Mikael.

I hope too ;).  But they have nothing to do with the -Wshift-overflow IMHO.
Right. Toon was just pointing out that we're getting the left-shift errors from ubsan all over the place. Those are totally independent if your -Wshift-overflow stuff.

Jeff


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