diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-08-30 19:43:53 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-08-30 19:43:53 -0400 |
commit | 495d26d6ce58caf1f86a1039b0c44e1b23878bc6 (patch) | |
tree | 76823eddd472172198bd2797b111c717108319a8 /gcc/cp/decl.c | |
parent | bf6a611300aeb0f06626e926d8dbc503a4726d0e (diff) | |
download | gcc-495d26d6ce58caf1f86a1039b0c44e1b23878bc6.zip gcc-495d26d6ce58caf1f86a1039b0c44e1b23878bc6.tar.gz gcc-495d26d6ce58caf1f86a1039b0c44e1b23878bc6.tar.bz2 |
cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
* cp-tree.h (LOCAL_CLASS_P): Use decl_function_context.
* tree.c (bot_manip): Check TREE_CONSTANT rather than
!TREE_SIDE_EFFECTS. Call break_out_target_exprs and
build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
* decl.c (start_function): Always call make_function_rtl.
From-SVN: r36080
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index e84232d..b5627f1 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -13838,10 +13838,11 @@ start_function (declspecs, declarator, attrs, flags) cplus_decl_attributes (decl1, NULL_TREE, attrs); if (!building_stmt_tree ()) - { - GNU_xref_function (decl1, current_function_parms); - make_function_rtl (decl1); - } + GNU_xref_function (decl1, current_function_parms); + + /* We need to do this even if we aren't expanding yet so that + assemble_external works. */ + make_function_rtl (decl1); /* Promote the value to int before returning it. */ if (C_PROMOTING_INTEGER_TYPE_P (restype)) |