(make_decl_rtl): Handle flag_volatile_global.
From-SVN: r3679
This commit is contained in:
parent
38d4d0c2ea
commit
0f15260aea
|
@ -385,7 +385,9 @@ make_decl_rtl (decl, asmspec, top_level)
|
||||||
|
|
||||||
DECL_RTL (decl) = gen_rtx (MEM, DECL_MODE (decl),
|
DECL_RTL (decl) = gen_rtx (MEM, DECL_MODE (decl),
|
||||||
gen_rtx (SYMBOL_REF, Pmode, name));
|
gen_rtx (SYMBOL_REF, Pmode, name));
|
||||||
if (TREE_THIS_VOLATILE (decl))
|
if (TREE_THIS_VOLATILE (decl)
|
||||||
|
|| (flag_volatile_global && TREE_CODE (decl) == VAR_DECL
|
||||||
|
&& TREE_PUBLIC (decl)))
|
||||||
MEM_VOLATILE_P (DECL_RTL (decl)) = 1;
|
MEM_VOLATILE_P (DECL_RTL (decl)) = 1;
|
||||||
if (TREE_READONLY (decl))
|
if (TREE_READONLY (decl))
|
||||||
RTX_UNCHANGING_P (DECL_RTL (decl)) = 1;
|
RTX_UNCHANGING_P (DECL_RTL (decl)) = 1;
|
||||||
|
|
Loading…
Reference in New Issue