diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-09-22 23:33:20 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2004-09-22 19:33:20 -0400 |
commit | c04f07f4cfe0621ab2b707ae7691b52747b9ce44 (patch) | |
tree | d729fab0bca584700b3abb9898aff081a36e46f9 /gcc/tree-dfa.c | |
parent | ba652ba92560c4aca703d809ff2b535fdb3215cc (diff) | |
download | gcc-c04f07f4cfe0621ab2b707ae7691b52747b9ce44.tar.gz |
re PR tree-optimization/16721 (Accesses to volatile objects optimized away)
PR tree-optimization/16721
* tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
* tree-ssa-alias.c (create_memory_tag): Move setting of
TREE_THIS_VOLATILE ...
(get_tmt_for): ... here.
testsuite/ChangeLog
PR tree-optimization/16721
* testsuite/gcc.dg/tree-ssa/pr16721.c: New test.
From-SVN: r87895
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 4e65c5dffc8..9db0cbb243a 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -552,6 +552,9 @@ dump_variable (FILE *file, tree var) if (is_global_var (var)) fprintf (file, ", is global"); + if (TREE_THIS_VOLATILE (var)) + fprintf (file, ", is volatile"); + if (is_call_clobbered (var)) fprintf (file, ", call clobbered"); |