diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-15 12:44:42 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-15 12:44:42 +0000 |
commit | 58e1c1418997fc6393f4036fc7df6a8126c29b27 (patch) | |
tree | 7630ccf83ec9334c3af825cd741aecbed0275902 /gcc/tree-flow-inline.h | |
parent | b51f4775c054afd8c3901eb6caad4b3fc9832831 (diff) | |
download | gcc-58e1c1418997fc6393f4036fc7df6a8126c29b27.tar.gz |
2008-05-15 Richard Guenther <rguenther@suse.de>
PR middle-end/36244
* tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
* tree-flow-inline.h (unmodifiable_var_p): Memory tags never
represent unmodifiable vars.
* gcc.dg/torture/pr36244.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135336 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index a4fe9c29c22..9e8edc6bed1 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -1545,7 +1545,7 @@ unmodifiable_var_p (const_tree var) var = SSA_NAME_VAR (var); if (MTAG_P (var)) - return TREE_READONLY (var) && (TREE_STATIC (var) || MTAG_GLOBAL (var)); + return false; return TREE_READONLY (var) && (TREE_STATIC (var) || DECL_EXTERNAL (var)); } |