Commit cfbd829c by Richard Henderson Committed by Richard Henderson

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
parent 895b56ff
2000-09-18 Richard Henderson <rth@cygnus.com>
* c-decl.c (c_expand_body): Call mark_varargs before
expand_function_start.
2000-09-18 Geoff Keating <geoffk@cygnus.com> 2000-09-18 Geoff Keating <geoffk@cygnus.com>
* config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #. * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
......
...@@ -6717,6 +6717,10 @@ c_expand_body (fndecl, nested_p) ...@@ -6717,6 +6717,10 @@ c_expand_body (fndecl, nested_p)
immediate_size_expand = 0; immediate_size_expand = 0;
cfun->x_dont_save_pending_sizes_p = 1; 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. */ /* Set up parameters and prepare for return, for the function. */
expand_function_start (fndecl, 0); expand_function_start (fndecl, 0);
...@@ -6727,10 +6731,6 @@ c_expand_body (fndecl, nested_p) ...@@ -6727,10 +6731,6 @@ c_expand_body (fndecl, nested_p)
&& DECL_CONTEXT (fndecl) == NULL_TREE) && DECL_CONTEXT (fndecl) == NULL_TREE)
expand_main_function (); expand_main_function ();
/* If this is a varargs function, inform function.c. */
if (c_function_varargs)
mark_varargs ();
/* Generate the RTL for this function. */ /* Generate the RTL for this function. */
expand_stmt (DECL_SAVED_TREE (fndecl)); expand_stmt (DECL_SAVED_TREE (fndecl));
/* Allow the body of the function to be garbage collected. */ /* Allow the body of the function to be garbage collected. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment