(make_decl_rtl): Handle flag_volatile_global.

From-SVN: r3679
This commit is contained in:
Richard Stallman 1993-03-08 21:31:07 +00:00
parent 38d4d0c2ea
commit 0f15260aea
1 changed files with 3 additions and 1 deletions

View File

@ -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;