expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after having called make_decl_rtl.

2001-01-16  Jeff Sturm  <jeff.sturm@appnet.com>

        * expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after
        having called make_decl_rtl.

(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01369.html)

From-SVN: r39079
This commit is contained in:
Jeff Sturm 2001-01-17 00:39:09 +00:00 committed by Alexandre Petit-Bianco
parent 50e9b3f17a
commit 930f669025
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-01-16 Jeff Sturm <jeff.sturm@appnet.com>
* expr.c (java_lang_expand_expr): Use TREE_SYMBOL_REFERENCED after
having called make_decl_rtl.
2001-01-14 Per Bothner <per@bothner.com>
Various patches to emit better messages on verification errors.

View File

@ -2387,8 +2387,8 @@ java_lang_expand_expr (exp, target, tmode, modifier)
DECL_INITIAL (init_decl) = value;
DECL_IGNORED_P (init_decl) = 1;
TREE_READONLY (init_decl) = 1;
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
make_decl_rtl (init_decl, NULL);
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
init = build1 (ADDR_EXPR, TREE_TYPE (exp), init_decl);
r = expand_expr (init, target, tmode, modifier);
return r;
@ -2410,8 +2410,8 @@ java_lang_expand_expr (exp, target, tmode, modifier)
DECL_INITIAL (init_decl) = init;
DECL_IGNORED_P (init_decl) = 1;
TREE_READONLY (init_decl) = 1;
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
make_decl_rtl (init_decl, NULL);
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
init = init_decl;
}
expand_assignment (build (COMPONENT_REF, TREE_TYPE (data_fld),