https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67009
Bug ID: 67009 Summary: libsanitizer: shift overflow warnings when boot strapping 32 bit library Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: gary at intrepid dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- After a recent update, I noticed the following warnings in the 32-bit build of libsanitizer. /eng/upc/dev/gary/gupc-merge/src/gupc/libsanitizer/tsan/tsan_sync.h:86:35: warning: result of ‘(3 << 30)’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=] /eng/upc/dev/gary/gupc-merge/src/gupc/libsanitizer/tsan/tsan_sync.h:88:35: warning: result of ‘(2 << 30)’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Wshift-overflow=] /eng/upc/dev/gary/gupc-merge/src/gupc/libsanitizer/tsan/tsan_sync.h:86:35: warning: result of ‘(3 << 30)’ requires 33 bits to represent, but ‘int’ only has 32