Commit 0f15260a by Richard Stallman

(make_decl_rtl): Handle flag_volatile_global.

From-SVN: r3679
parent 38d4d0c2
......@@ -385,7 +385,9 @@ make_decl_rtl (decl, asmspec, top_level)
DECL_RTL (decl) = gen_rtx (MEM, DECL_MODE (decl),
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;
if (TREE_READONLY (decl))
RTX_UNCHANGING_P (DECL_RTL (decl)) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment