diff options
author | Richard Henderson <rth@redhat.com> | 2003-09-21 22:09:32 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-09-21 22:09:32 -0700 |
commit | f31686a322301454c5ea5b997997aa7c84c57781 (patch) | |
tree | d942bc168b4a8f91e17acf863e1d2091ff773b6c /gcc/treelang | |
parent | 0f7fcd6a40a237b634e0f93f1206724add7354d3 (diff) | |
download | gcc-f31686a322301454c5ea5b997997aa7c84c57781.zip gcc-f31686a322301454c5ea5b997997aa7c84c57781.tar.gz gcc-f31686a322301454c5ea5b997997aa7c84c57781.tar.bz2 |
Revert DECL_SOURCE_LOCATION -> TREE_LOCUS change.
From-SVN: r71641
Diffstat (limited to 'gcc/treelang')
-rw-r--r-- | gcc/treelang/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/treelang/treetree.c | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index 75b9b2f..3221ba8 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,5 +1,9 @@ 2003-09-21 Richard Henderson <rth@redhat.com> + * treetree.c: Revert. + +2003-09-21 Richard Henderson <rth@redhat.com> + * treetree.c: Update for DECL_SOURCE_LOCATION rename and change to const. diff --git a/gcc/treelang/treetree.c b/gcc/treelang/treetree.c index da92110..7697e3c 100644 --- a/gcc/treelang/treetree.c +++ b/gcc/treelang/treetree.c @@ -313,9 +313,8 @@ tree_code_create_function_prototype (unsigned char* chars, id = get_identifier ((const char*)chars); fn_decl = build_decl (FUNCTION_DECL, id, fn_type); - /* Nested functions not supported here. */ - DECL_CONTEXT (fn_decl) = NULL_TREE; - set_tree_locus (fn_decl, loc); + DECL_CONTEXT (fn_decl) = NULL_TREE; /* Nested functions not supported here. */ + DECL_SOURCE_LOCATION (fn_decl) = loc; TREE_USED (fn_decl) = 1; @@ -388,14 +387,14 @@ tree_code_create_function_initial (tree prev_saved, current_function_decl = fn_decl; DECL_INITIAL (fn_decl) = error_mark_node; - set_tree_locus (fn_decl, loc); + DECL_SOURCE_LOCATION (fn_decl) = loc; /* Prepare creation of rtl for a new function. */ resultdecl = DECL_RESULT (fn_decl) = build_decl (RESULT_DECL, NULL_TREE, TREE_TYPE (TREE_TYPE (fn_decl))); DECL_CONTEXT (DECL_RESULT (fn_decl)) = fn_decl; - set_tree_locus (resultdecl, loc); + DECL_SOURCE_LOCATION (resultdecl) = loc; /* Work out the size. ??? is this needed. */ layout_decl (DECL_RESULT (fn_decl), 0); @@ -415,7 +414,7 @@ tree_code_create_function_initial (tree prev_saved, if (!fn_decl) abort (); DECL_CONTEXT (parm_decl) = fn_decl; - set_tree_locus (parm_decl, loc); + DECL_SOURCE_LOCATION (parm_decl) = loc; parm_list = chainon (parm_decl, parm_list); } @@ -583,7 +582,7 @@ tree_code_create_variable (unsigned int storage_class, DECL_CONTEXT (var_decl) = current_function_decl; - set_tree_locus (var_decl, loc); + DECL_SOURCE_LOCATION (var_decl) = loc; /* Set the storage mode and whether only visible in the same file. */ switch (storage_class) |