===================================================================
@@ -415,7 +415,7 @@
cp_function_chain->can_throw = !TREE_NOTHROW (fn);
/* Now, expand this function into RTL, if appropriate. */
- finish_function (0);
+ finish_function (FF_DEFAULT);
BLOCK_ABSTRACT_ORIGIN (DECL_INITIAL (clone)) = DECL_INITIAL (fn);
if (alias)
{
===================================================================
@@ -6592,7 +6592,7 @@
static void
end_cleanup_fn (void)
{
- expand_or_defer_fn (finish_function (0));
+ expand_or_defer_fn (finish_function (FF_DEFAULT));
pop_from_top_level ();
}
===================================================================
@@ -771,7 +771,7 @@
}
finish_function_body (stmt);
- expand_or_defer_fn (finish_function (0));
+ expand_or_defer_fn (finish_function (FF_DEFAULT));
input_location = save_input_location;
===================================================================
@@ -18750,7 +18750,7 @@
local_specializations = saved_local_specializations;
/* Finish the function. */
- d = finish_function (0);
+ d = finish_function (FF_DEFAULT);
expand_or_defer_fn (d);
}
===================================================================
@@ -9332,7 +9332,7 @@
finish_compound_stmt (compound_stmt);
finish_function_body (body);
- expand_or_defer_fn (finish_function (2));
+ expand_or_defer_fn (finish_function (SF_INCLASS_INLINE));
/* Generate the body of the conversion op. */
@@ -9346,7 +9346,7 @@
finish_compound_stmt (compound_stmt);
finish_function_body (body);
- expand_or_defer_fn (finish_function (2));
+ expand_or_defer_fn (finish_function (FF_INCLASS_INLINE));
if (nested)
pop_function_context ();
===================================================================
@@ -2833,7 +2833,7 @@
/* Finish up. */
finish_compound_stmt (body);
- fn = finish_function (0);
+ fn = finish_function (FF_DEFAULT);
if (method_type == 'I')
{
@@ -2975,7 +2975,7 @@
{
/* Close out the function. */
finish_compound_stmt (body);
- expand_or_defer_fn (finish_function (0));
+ expand_or_defer_fn (finish_function (FF_DEFAULT));
}
/* Return the information about the indicated PRIORITY level. If no
===================================================================
@@ -8559,7 +8559,7 @@
finish_lambda_scope ();
/* Finish the function and generate code for it if necessary. */
- expand_or_defer_fn (finish_function (/*inline*/2));
+ expand_or_defer_fn (finish_function (/*inline*/ FF_INCLASS_INLINE));
}
parser->local_variables_forbidden_p = local_variables_forbidden_p;
@@ -21045,8 +21045,8 @@
finish_lambda_scope ();
/* Finish the function. */
- fn = finish_function ((ctor_initializer_p ? 1 : 0) |
- (inline_p ? 2 : 0));
+ fn = finish_function ((ctor_initializer_p ? FF_PRE_PARSED : FF_DEFAULT) |
+ (inline_p ? FF_INCLASS_INLINE : FF_DEFAULT));
/* Generate code for it, if necessary. */
expand_or_defer_fn (fn);
/* Restore the saved values. */
===================================================================
@@ -4488,6 +4488,12 @@
#define SF_INCLASS_INLINE 2 /* The function is an inline, defined
in the class body. */
+/* Used with finish function */
+#define FF_DEFAULT 0
+#define FF_PRE_PARSED 1
+#define FF_INCLASS_INLINE 2
+
+
/* Used with start_decl's initialized parameter. */
#define SD_UNINITIALIZED 0
#define SD_INITIALIZED 1