On 08/12/2015 11:28 AM, Toon Moene wrote:
On 08/12/2015 05:39 PM, Marek Polacek wrote:
This patch fixes a defect in -Wshift-overflow. We should only warn
about left-shifting 1 into the sign bit when -Wshift-overflow=2. But
this doesn't apply only for 1 << 31, but also for 2 << 30, etc.
In C++14, never warn about this.
And then there's this:
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.
jeff