diff options
author | Tom de Vries <tom@codesourcery.com> | 2011-08-26 13:03:58 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2011-08-26 13:03:58 +0000 |
commit | fd1777ca0fb732b899f27b1ff465d4fbc8965a74 (patch) | |
tree | 15eaae4923b592bfef1e120a15f9a61a571b33ee /gcc | |
parent | 990b31f7172d2b3ff90d5151bf8c31e7f9d9b136 (diff) | |
download | gcc-fd1777ca0fb732b899f27b1ff465d4fbc8965a74.zip gcc-fd1777ca0fb732b899f27b1ff465d4fbc8965a74.tar.gz gcc-fd1777ca0fb732b899f27b1ff465d4fbc8965a74.tar.bz2 |
tree-pretty-print (dump_generic_node): Test for NULL_TREE before accessing TREE_TYPE.
2011-08-26 Tom de Vries <tom@codesourcery.com>
* tree-pretty-print (dump_generic_node): Test for NULL_TREE before
accessing TREE_TYPE.
From-SVN: r178103
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-pretty-print.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 471c9ee..d96bf5a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-26 Tom de Vries <tom@codesourcery.com> + + * tree-pretty-print (dump_generic_node): Test for NULL_TREE before + accessing TREE_TYPE. + 2011-08-26 Jiangning Liu <jiangning.liu@arm.com> * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well. diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index e24c786..2c4b5bf 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -820,6 +820,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, infer them and MEM_ATTR caching will share MEM_REFs with differently-typed op0s. */ && TREE_CODE (TREE_OPERAND (node, 0)) != INTEGER_CST + /* Released SSA_NAMES have no TREE_TYPE. */ + && TREE_TYPE (TREE_OPERAND (node, 0)) != NULL_TREE /* Same pointer types, but ignoring POINTER_TYPE vs. REFERENCE_TYPE. */ && (TREE_TYPE (TREE_TYPE (TREE_OPERAND (node, 0))) @@ -1186,6 +1188,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, can't infer them and MEM_ATTR caching will share MEM_REFs with differently-typed op0s. */ && TREE_CODE (TREE_OPERAND (op0, 0)) != INTEGER_CST + /* Released SSA_NAMES have no TREE_TYPE. */ + && TREE_TYPE (TREE_OPERAND (op0, 0)) != NULL_TREE /* Same pointer types, but ignoring POINTER_TYPE vs. REFERENCE_TYPE. */ && (TREE_TYPE (TREE_TYPE (TREE_OPERAND (op0, 0))) |