diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-15 14:31:28 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-15 14:31:28 +0000 |
commit | 1767a056f10a2ccbc900df04d01193da73a3d272 (patch) | |
tree | 44ed3312376cfb15e4d1e4daef8778e326affa24 /gcc/tree-nested.c | |
parent | 8a804c4bf4749632230720245854a3a1c84d6ff9 (diff) | |
download | gcc-1767a056f10a2ccbc900df04d01193da73a3d272.tar.gz |
gcc/
* tree.h (DECL_CHAIN): Define.
* alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
* c-decl.c: Likewise.
* c-parser.c: Likewise.
* c-typeck.c: Likewise.
* cfgexpand.c: Likewise.
* cgraph.c: Likewise.
* cgraphunit.c: Likewise.
* combine.c: Likewise.
* config/alpha/alpha.c: Likewise.
* config/arm/arm.c: Likewise.
* config/frv/frv.c: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/winnt-cxx.c: Likewise.
* config/ia64/ia64.c: Likewise.
* config/iq2000/iq2000.c: Likewise.
* config/mep/mep.c: Likewise.
* config/mips/mips.c: Likewise.
* config/pa/som.h: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/s390/s390.c: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/symbian-cxx.c: Likewise.
* config/sparc/sparc.c: Likewise.
* config/spu/spu.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/vxworks.c: Likewise.
* config/xtensa/xtensa.c: Likewise.
* coverage.c: Likewise.
* dbxout.c: Likewise.
* dwarf2out.c: Likewise.
* emit-rtl.c: Likewise.
* expr.c: Likewise.
* function.c: Likewise.
* gimple-low.c: Likewise.
* gimple-pretty-print.c: Likewise.
* gimplify.c: Likewise.
* integrate.c: Likewise.
* ipa-inline.c: Likewise.
* ipa-prop.c: Likewise.
* ipa-split.c: Likewise.
* ipa-struct-reorg.c: Likewise.
* ipa-type-escape.c: Likewise.
* langhooks.c: Likewise.
* lto-cgraph.c: Likewise.
* omp-low.c: Likewise.
* stor-layout.c: Likewise.
* tree-cfg.c: Likewise.
* tree-complex.c: Likewise.
* tree-dfa.c: Likewise.
* tree-dump.c: Likewise.
* tree-inline.c: Likewise.
* tree-mudflap.c: Likewise.
* tree-nested.c: Likewise.
* tree-object-size.c: Likewise.
* tree-pretty-print.c: Likewise.
* tree-sra.c: Likewise.
* tree-ssa-live.c: Likewise.
* tree-ssa-loop-niter.c: Likewise.
* tree-ssa-math-opts.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-sccvn.c: Likewise.
* tree-ssa-structalias.c: Likewise.
* tree-tailcall.c: Likewise.
* tree-vrp.c: Likewise.
* tree.c: Likewise.
* var-tracking.c: Likewise.
* varasm.c: Likewise.
gcc/ada/
* gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
* gcc-interface/trans.c: Likewise.
* gcc-interface/utils.c: Likewise.
* gcc-interface/utils2.c: Likewise.
gcc/c-family/
* c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
* c-format.c: Likewise.
gcc/cp/
* cp-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
* call.c: Likewise.
* class.c: Likewise.
* cp-gimplify.c: Likewise.
* decl.c: Likewise.
* decl2.c: Likewise.
* init.c: Likewise.
* mangle.c: Likewise.
* name-lookup.c: Likewise.
* optimize.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* rtti.c: Likewise.
* search.c: Likewise.
* semantics.c: Likewise.
* typeck.c: Likewise.
* typeck2.c: Likewise.
gcc/fortran/
* f95-lang.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
* trans-common.c: Likewise.
* trans-decl.c: Likewise.
* trans-types.c: Likewise.
* trans.c: Likewise.
gcc/java/
* java-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
* boehm.c: Likewise.
* class.c: Likewise.
* decl.c: Likewise.
* expr.c: Likewise.
* jcf-parse.c: Likewise.
* typeck.c: Likewise.
* verify-glue.c: Likewise.
gcc/objc/
* objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
gcc/testsuite/
* g++.dg/plugin/attribute_plugin.c: Carefully replace TREE_CHAIN
with DECL_CHAIN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162223 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-nested.c')
-rw-r--r-- | gcc/tree-nested.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index db704b79055..81ae38f6f3a 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -148,7 +148,7 @@ create_tmp_var_for (struct nesting_info *info, tree type, const char *prefix) tmp_var = create_tmp_var_raw (type, prefix); DECL_CONTEXT (tmp_var) = info->context; - TREE_CHAIN (tmp_var) = info->new_local_var_chain; + DECL_CHAIN (tmp_var) = info->new_local_var_chain; DECL_SEEN_IN_BIND_EXPR_P (tmp_var) = 1; if (TREE_CODE (type) == COMPLEX_TYPE || TREE_CODE (type) == VECTOR_TYPE) @@ -198,11 +198,11 @@ insert_field_into_struct (tree type, tree field) DECL_CONTEXT (field) = type; - for (p = &TYPE_FIELDS (type); *p ; p = &TREE_CHAIN (*p)) + for (p = &TYPE_FIELDS (type); *p ; p = &DECL_CHAIN (*p)) if (DECL_ALIGN (field) >= DECL_ALIGN (*p)) break; - TREE_CHAIN (field) = *p; + DECL_CHAIN (field) = *p; *p = field; /* Set correct alignment for frame struct type. */ @@ -698,7 +698,7 @@ check_for_nested_with_variably_modified (tree fndecl, tree orig_fndecl) for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested) { - for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = TREE_CHAIN (arg)) + for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = DECL_CHAIN (arg)) if (variably_modified_type_p (TREE_TYPE (arg), orig_fndecl)) return true; @@ -875,7 +875,7 @@ get_nonlocal_debug_decl (struct nesting_info *info, tree decl) DECL_HAS_VALUE_EXPR_P (new_decl) = 1; *slot = new_decl; - TREE_CHAIN (new_decl) = info->debug_var_chain; + DECL_CHAIN (new_decl) = info->debug_var_chain; info->debug_var_chain = new_decl; if (!optimize @@ -1202,7 +1202,7 @@ note_nonlocal_block_vlas (struct nesting_info *info, tree block) { tree var; - for (var = BLOCK_VARS (block); var; var = TREE_CHAIN (var)) + for (var = BLOCK_VARS (block); var; var = DECL_CHAIN (var)) if (TREE_CODE (var) == VAR_DECL && variably_modified_type_p (TREE_TYPE (var), NULL) && DECL_HAS_VALUE_EXPR_P (var) @@ -1367,7 +1367,7 @@ get_local_debug_decl (struct nesting_info *info, tree decl, tree field) DECL_HAS_VALUE_EXPR_P (new_decl) = 1; *slot = new_decl; - TREE_CHAIN (new_decl) = info->debug_var_chain; + DECL_CHAIN (new_decl) = info->debug_var_chain; info->debug_var_chain = new_decl; /* Do not emit debug info twice. */ @@ -2196,7 +2196,7 @@ remap_vla_decls (tree block, struct nesting_info *root) subblock = BLOCK_CHAIN (subblock)) remap_vla_decls (subblock, root); - for (var = BLOCK_VARS (block); var; var = TREE_CHAIN (var)) + for (var = BLOCK_VARS (block); var; var = DECL_CHAIN (var)) { if (TREE_CODE (var) == VAR_DECL && variably_modified_type_p (TREE_TYPE (var), NULL) @@ -2217,7 +2217,7 @@ remap_vla_decls (tree block, struct nesting_info *root) id.cb.decl_map = pointer_map_create (); id.root = root; - for (; var; var = TREE_CHAIN (var)) + for (; var; var = DECL_CHAIN (var)) if (TREE_CODE (var) == VAR_DECL && variably_modified_type_p (TREE_TYPE (var), NULL) && DECL_HAS_VALUE_EXPR_P (var)) @@ -2308,11 +2308,11 @@ finalize_nesting_tree_1 (struct nesting_info *root) expression get substituted in instantiate_virtual_regs(). */ for (adjust = &root->new_local_var_chain; *adjust != root->frame_decl; - adjust = &TREE_CHAIN (*adjust)) - gcc_assert (TREE_CHAIN (*adjust)); - *adjust = TREE_CHAIN (*adjust); + adjust = &DECL_CHAIN (*adjust)) + gcc_assert (DECL_CHAIN (*adjust)); + *adjust = DECL_CHAIN (*adjust); - TREE_CHAIN (root->frame_decl) = NULL_TREE; + DECL_CHAIN (root->frame_decl) = NULL_TREE; declare_vars (root->frame_decl, gimple_seq_first_stmt (gimple_body (context)), true); } @@ -2323,7 +2323,7 @@ finalize_nesting_tree_1 (struct nesting_info *root) if (root->any_parm_remapped) { tree p; - for (p = DECL_ARGUMENTS (context); p ; p = TREE_CHAIN (p)) + for (p = DECL_ARGUMENTS (context); p ; p = DECL_CHAIN (p)) { tree field, x, y; @@ -2428,7 +2428,7 @@ finalize_nesting_tree_1 (struct nesting_info *root) remap_vla_decls (DECL_INITIAL (root->context), root); for (debug_var = root->debug_var_chain; debug_var; - debug_var = TREE_CHAIN (debug_var)) + debug_var = DECL_CHAIN (debug_var)) if (variably_modified_type_p (TREE_TYPE (debug_var), NULL)) break; @@ -2443,7 +2443,7 @@ finalize_nesting_tree_1 (struct nesting_info *root) id.cb.decl_map = pointer_map_create (); id.root = root; - for (; debug_var; debug_var = TREE_CHAIN (debug_var)) + for (; debug_var; debug_var = DECL_CHAIN (debug_var)) if (variably_modified_type_p (TREE_TYPE (debug_var), NULL)) { tree type = TREE_TYPE (debug_var); |