From: Richard Henderson Date: Tue, 19 Sep 2000 02:14:33 +0000 (-0700) Subject: c-decl.c (c_expand_body): Call mark_varargs before expand_function_start. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfbd829cca78f59b18cd8d146f5ed654c5cea73e;p=gcc.git c-decl.c (c_expand_body): Call mark_varargs before expand_function_start. * c-decl.c (c_expand_body): Call mark_varargs before expand_function_start. From-SVN: r36523 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f26e881790e..66f269b4ba0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-09-18 Richard Henderson + + * c-decl.c (c_expand_body): Call mark_varargs before + expand_function_start. + 2000-09-18 Geoff Keating * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 8287eefb2e4..11c235f6b52 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6717,6 +6717,10 @@ c_expand_body (fndecl, nested_p) immediate_size_expand = 0; cfun->x_dont_save_pending_sizes_p = 1; + /* If this is a varargs function, inform function.c. */ + if (c_function_varargs) + mark_varargs (); + /* Set up parameters and prepare for return, for the function. */ expand_function_start (fndecl, 0); @@ -6727,10 +6731,6 @@ c_expand_body (fndecl, nested_p) && DECL_CONTEXT (fndecl) == NULL_TREE) expand_main_function (); - /* If this is a varargs function, inform function.c. */ - if (c_function_varargs) - mark_varargs (); - /* Generate the RTL for this function. */ expand_stmt (DECL_SAVED_TREE (fndecl)); /* Allow the body of the function to be garbage collected. */