http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58365
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Sep 10 11:47:19 2013 New Revision: 202434 URL: http://gcc.gnu.org/viewcvs?rev=202434&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr58365.c Modified: trunk/gcc/ChangeLog trunk/gcc/cfgcleanup.c trunk/gcc/testsuite/ChangeLog