This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50082] -Wstrict-overflow mishandles typedef
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2011 15:01:38 +0000
- Subject: [Bug c/50082] -Wstrict-overflow mishandles typedef
- Auto-submitted: auto-generated
- References: <bug-50082-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50082
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-15 15:01:38 UTC ---
Author: rguenth
Date: Mon Aug 15 15:01:33 2011
New Revision: 177762
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177762
Log:
2011-08-15 Richard Guenther <rguenther@suse.de>
PR middle-end/50082
* fold-const.c (maybe_canonicalize_comparison_1): Properly
convert the modified operand to the other operand type.
(fold_comparison): Call maybe_canonicalize_comparison_1 with
useless conversions stripped from comparison operands.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c