diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 9fc92c4..fa6bf2c 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -920,14 +920,6 @@ make_decl_rtl (decl, asmspec) name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); } - /* If this variable is to be treated as volatile, show its - tree node has side effects. */ - if ((flag_volatile_global && TREE_CODE (decl) == VAR_DECL - && TREE_PUBLIC (decl)) - || ((flag_volatile_static && TREE_CODE (decl) == VAR_DECL - && (TREE_PUBLIC (decl) || TREE_STATIC (decl))))) - TREE_SIDE_EFFECTS (decl) = 1; - x = gen_rtx_MEM (DECL_MODE (decl), gen_rtx_SYMBOL_REF (Pmode, name)); SYMBOL_REF_WEAK (XEXP (x, 0)) = DECL_WEAK (decl); if (TREE_CODE (decl) != FUNCTION_DECL) |