summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-19 02:14:33 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-19 02:14:33 +0000
commit5e0e5c5e16ea6956d90bef7f09da2e31c9147440 (patch)
tree3205a65aa4688f1e970cf2ecdfafbf192f40eec8 /gcc/c-decl.c
parenta8fc7dbc358744f29030964190b5e8ea6272cfda (diff)
downloadgcc-5e0e5c5e16ea6956d90bef7f09da2e31c9147440.tar.gz
* c-decl.c (c_expand_body): Call mark_varargs before
expand_function_start. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36523 138bc75d-0d04-0410-961f-82ee72b054a4
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 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. */