aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-09-18 19:14:33 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-09-18 19:14:33 -0700
commitcfbd829cca78f59b18cd8d146f5ed654c5cea73e (patch)
tree3205a65aa4688f1e970cf2ecdfafbf192f40eec8 /gcc/c-decl.c
parent895b56ff0ca2aac702de5eea55913b897b357c17 (diff)
downloadgcc-cfbd829cca78f59b18cd8d146f5ed654c5cea73e.zip
gcc-cfbd829cca78f59b18cd8d146f5ed654c5cea73e.tar.gz
gcc-cfbd829cca78f59b18cd8d146f5ed654c5cea73e.tar.bz2
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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 8287eef..11c235f 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. */