2014-07-09 Richard Biener <rguenther@suse.de>
commitcd480f3dfdd62706be9feb6f228a1eb2c1826ead
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jul 2014 17:14:11 +0000 (9 17:14 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jul 2014 17:14:11 +0000 (9 17:14 +0000)
tree1ff9d46ac3b6ed25a449b7d7eb8d7f13bd233a4b
parent251d049af81fe9a866015bae80717d7b214d7fb2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212400 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr61741.c [new file with mode: 0644]