This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/67828] [6 Regression] wrong code at -O3 on x86_64-linux-gnu
- From: "su at cs dot ucdavis.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Oct 2015 15:21:59 +0000
- Subject: [Bug rtl-optimization/67828] [6 Regression] wrong code at -O3 on x86_64-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-67828-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67828
--- Comment #5 from Zhendong Su <su at cs dot ucdavis.edu> ---
> This testcase invokes undefined behavior because of the overflow on the
> iterator, ...
Just a quick comment that the testcase doesn't have undefined behaviors. As the
variable c is of type short, there shouldn't be signed overflow --- the
operations will be performed on its signed extended integer value and then
truncated back to a short.
Thanks for looking into and fixing the issue.