diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2003-02-01 13:09:41 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2003-02-01 13:09:41 +0000 |
commit | 271bd540d12af3d965059fb09b5311224fb3214c (patch) | |
tree | 56f3536f7ec2acc99fd65b1c8562d2b55b676989 /gcc/varasm.c | |
parent | 3123c967cc071b53150074d5cc27dab503244888 (diff) | |
download | gcc-271bd540d12af3d965059fb09b5311224fb3214c.zip gcc-271bd540d12af3d965059fb09b5311224fb3214c.tar.gz gcc-271bd540d12af3d965059fb09b5311224fb3214c.tar.bz2 |
flags.h (flag_volatile): Remove declaration.
* flags.h (flag_volatile): Remove declaration.
(flag_volatile_global, flag_volatile_static): Likewise.
* c-typeck.c (build_indirect_ref): Don't check flag_volatile.
* toplev.c (flag_volatile): Remove definition.
(flag_volatile_global, flag_volatile_static): Likewise.
(f_options): Remove corresponding entries here.
* varasm.c (make_decl_rtl): Don't check flag_volatile_global
or flag_volatile_static.
* doc/invoke.texi: Remove documentation of -fvolatile,
-fvolatile-global and -fvolatile-static.
cp/
* typeck.c (build_indirect_ref): Don't check flag_volatile.
ada/
* utils2.c (build_unary_op): Don't check flag_volatile.
* gnat_ug.texi: Remove -fvolatile from example.
* gnat_ug_vxw.texi: Likewise.
testsuite/
* g++.dg/init/new1.C: Remove -fvolatile dg-options line.
* g++.dg/init/new2.C: Likewise.
* g++.dg/other/new1.C: Likewise.
From-SVN: r62245
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) |