diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2006-02-09 13:53:40 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-02-09 05:53:40 -0800 |
commit | 1651647cb7f3ccc1345155ce478a96ab3b9d99b3 (patch) | |
tree | d06e75116e7af760ba7a84105b042fd4ad256903 /gcc/tree-flow-inline.h | |
parent | 7dc32197a8f098c05d589d80ccbcc7ea51a62bea (diff) | |
download | gcc-1651647cb7f3ccc1345155ce478a96ab3b9d99b3.zip gcc-1651647cb7f3ccc1345155ce478a96ab3b9d99b3.tar.gz gcc-1651647cb7f3ccc1345155ce478a96ab3b9d99b3.tar.bz2 |
+2006-02-09 Andrew Pinski <pinskia@physics.uc.edu> + + * tree-flow-inline.h...
+2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * tree-flow-inline.h (var_can_have_subvars):
+ Volatile variables should not have subvariables.
+
+2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * gcc.c-torture/compile/volatile-1.c: New test.
+
From-SVN: r110796
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 0ae99b9..1abf556 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -1463,6 +1463,10 @@ get_subvar_at (tree var, unsigned HOST_WIDE_INT offset) static inline bool var_can_have_subvars (tree v) { + /* Volatile variables should never have subvars. */ + if (TREE_THIS_VOLATILE (v)) + return false; + /* Non decls or memory tags can never have subvars. */ if (!DECL_P (v) || MTAG_P (v)) return false; |