diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-09 13:53:40 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-09 13:53:40 +0000 |
commit | c2e9ca381e87bafa3713a864fd9fc2daf80000e2 (patch) | |
tree | d06e75116e7af760ba7a84105b042fd4ad256903 /gcc/tree-flow-inline.h | |
parent | 38f0f92a22a55253f6744e377002f3ea56c18961 (diff) | |
download | gcc-c2e9ca381e87bafa3713a864fd9fc2daf80000e2.tar.gz |
+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.
+
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110796 138bc75d-0d04-0410-961f-82ee72b054a4
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 0ae99b9f0d4..1abf556fccf 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; |