Backport from mainline
2004-01-10 Jan Hubicka <jh@suse.cz>
PR opt/12826
* loop.c (insert_loop_mem): Prefer VOLATILE memory references
to be
stored.
From-SVN: r76252
+2004-01-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ Backport from mainline
+
+ 2004-01-10 Jan Hubicka <jh@suse.cz>
+ PR opt/12826
+ * loop.c (insert_loop_mem): Prefer VOLATILE memory references to be
+ stored.
+
2004-01-16 Jan Hubicka <jh@suse.cz>
PR opt/13608
for (i = 0; i < loop_info->mems_idx; ++i)
if (rtx_equal_p (m, loop_info->mems[i].mem))
{
+ if (MEM_VOLATILE_P (m) && !MEM_VOLATILE_P (loop_info->mems[i].mem))
+ loop_info->mems[i].mem = m;
if (GET_MODE (m) != GET_MODE (loop_info->mems[i].mem))
/* The modes of the two memory accesses are different. If
this happens, something tricky is going on, and we just
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "testb" } } */
+void
ftn (char *sp)
{
char status;