aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2000-08-30 19:43:53 -0400
committerJason Merrill <jason@gcc.gnu.org>2000-08-30 19:43:53 -0400
commit495d26d6ce58caf1f86a1039b0c44e1b23878bc6 (patch)
tree76823eddd472172198bd2797b111c717108319a8 /gcc/cp/decl.c
parentbf6a611300aeb0f06626e926d8dbc503a4726d0e (diff)
downloadgcc-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.c9
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))