OSDN Git Service

Backported from mainline
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2014 16:04:44 +0000 (16:04 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2014 16:04:44 +0000 (16:04 +0000)
commit9d6f975807ff20c6d426b452e15a684d0815122c
tree1141b4384596ad0fb71920289f5c98599e7640dc
parent6ad3af54074be1592d131813195be3c331c454d1
Backported from mainline
2013-09-10  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/58365
* cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
it differs.

* gcc.c-torture/execute/pr58365.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@210173 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr58365.c [new file with mode: 0644]