diff options
author | Richard Stallman <rms@gnu.org> | 1993-03-08 21:31:07 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-03-08 21:31:07 +0000 |
commit | 0f15260aeac66189c812a3185f35015808da571d (patch) | |
tree | 84f4e1f3dc99348f6c172997c09c19b9ce9f8787 | |
parent | 38d4d0c2eaa7804fab9fcaee654c011f97bef437 (diff) | |
download | gcc-0f15260aeac66189c812a3185f35015808da571d.zip gcc-0f15260aeac66189c812a3185f35015808da571d.tar.gz gcc-0f15260aeac66189c812a3185f35015808da571d.tar.bz2 |
(make_decl_rtl): Handle flag_volatile_global.
From-SVN: r3679
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index a8e3cc3..c6d7576 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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; |