This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61741] wrong code with -fno-strict-overflow
- 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: Thu, 17 Jul 2014 07:58:02 +0000
- Subject: [Bug c/61741] wrong code with -fno-strict-overflow
- Auto-submitted: auto-generated
- References: <bug-61741-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61741
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jul 17 07:57:30 2014
New Revision: 212742
URL: https://gcc.gnu.org/viewcvs?rev=212742&root=gcc&view=rev
Log:
2014-07-17 Richard Biener <rguenther@suse.de>
Backport from mainline
2014-07-10 Richard Biener <rguenther@suse.de>
PR c-family/61741
* c-c++-common/torture/pr61741.c: Use signed char.
2014-07-09 Richard Biener <rguenther@suse.de>
PR c-family/61741
* c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
using unsigned arithmetic if overflow does not wrap instead of
if overflow is undefined.
* c-c++-common/torture/pr61741.c: New testcase.
Added:
branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/pr61741.c
Modified:
branches/gcc-4_9-branch/gcc/c-family/ChangeLog
branches/gcc-4_9-branch/gcc/c-family/c-gimplify.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog