This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48418] [4.6/4.7/4.8 Regression] Bit shift operator >>=
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Jan 2013 14:44:51 +0000
- Subject: [Bug c/48418] [4.6/4.7/4.8 Regression] Bit shift operator >>=
- Auto-submitted: auto-generated
- References: <bug-48418-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48418
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-08 14:44:51 UTC ---
Created attachment 29104
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29104
gcc48-pr48418.patch
Untested fix. To avoid warning twice, this warns in c_fully_fold_internal
only if orig_op1 isn't INTEGER_CST, but op1 is. And on the testcase I found
that in 4.8 my SIZEOF_EXPR C++ changes regressed the testcase too.