diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-14 11:26:13 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-14 11:26:13 +0000 |
commit | 742529a29cc4611116a7c9e88ed48f5093e2a0cf (patch) | |
tree | f0372c6e50786fd0e4975b91533b4caa16211ca3 /gcc/tree.h | |
parent | fa0431fadad26c96f0b895eaf974ffea34e1f20f (diff) | |
download | gcc-742529a29cc4611116a7c9e88ed48f5093e2a0cf.tar.gz |
2011-12-14 Richard Guenther <rguenther@suse.de>
* tree.c (free_lang_data_in_type): Do not clear fields
dependent on debuginfo level setting.
(find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
* tree.h (TYPE_STUB_DECL): Properly check that we access
a type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index a72a3f613e4..eca2f8bb1fb 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2247,7 +2247,7 @@ extern enum machine_mode vector_type_mode (const_tree); to point back at the TYPE_DECL node. This allows the debug routines to know that the two nodes represent the same type, so that we only get one debug info record for them. */ -#define TYPE_STUB_DECL(NODE) TREE_CHAIN (NODE) +#define TYPE_STUB_DECL(NODE) (TREE_CHAIN (TYPE_CHECK (NODE))) /* In a RECORD_TYPE, UNION_TYPE or QUAL_UNION_TYPE, it means the type has BLKmode only because it lacks the alignment requirement for |