From c057e7a33825a8fb56574aae8573018b03a36853 Mon Sep 17 00:00:00 2001 From: Grigory Tolstolytkin Date: Tue, 10 May 2005 00:40:43 +0000 Subject: [PATCH] backport: emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill previous MEM_VOLATILE in REF). Backport: 2004-02-12 Richard Kenner * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill previous MEM_VOLATILE in REF). From-SVN: r99489 --- gcc/ChangeLog | 7 +++++++ gcc/emit-rtl.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e711521d14f..9af5828dbd4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-05-09 Grigory Tolstolytkin + + Backport: + 2004-02-12 Richard Kenner + * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill previous + MEM_VOLATILE in REF). + 2005-05-10 Ben Elliston PR debug/16676 diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 9df2d6c4f8dd..92832256f93b 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1592,7 +1592,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, front-end routine) and use it. */ alias = get_alias_set (t); - MEM_VOLATILE_P (ref) = TYPE_VOLATILE (type); + MEM_VOLATILE_P (ref) |= TYPE_VOLATILE (type); MEM_IN_STRUCT_P (ref) = AGGREGATE_TYPE_P (type); RTX_UNCHANGING_P (ref) |= ((lang_hooks.honor_readonly -- 2.47.2