summaryrefslogtreecommitdiff
path: root/gcc/tree-stdarg.c
diff options
context:
space:
mode:
authordavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-09 16:09:23 +0000
committerdavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-09 16:09:23 +0000
commit10e20ba5c8568167a43fe1fbecc1454eeed39ba4 (patch)
tree4df88ba9bea41f8d545aabd4a90d1d88d969a1e6 /gcc/tree-stdarg.c
parent40258d04c3c791745ab7e2788510adc024f111ea (diff)
downloadgcc-10e20ba5c8568167a43fe1fbecc1454eeed39ba4.tar.gz
Gator cleanup
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174848 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-stdarg.c')
-rw-r--r--gcc/tree-stdarg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c
index 46fc339a55a..7f16092f436 100644
--- a/gcc/tree-stdarg.c
+++ b/gcc/tree-stdarg.c
@@ -627,8 +627,7 @@ check_all_va_list_escapes (struct stdarg_info *si)
static bool
gate_optimize_stdarg (void)
{
- /* This optimization is only for stdarg functions. */
- return cfun->stdarg != 0;
+ return true;
}
@@ -645,6 +644,10 @@ execute_optimize_stdarg (void)
const char *funcname = NULL;
tree cfun_va_list;
+ /* This optimization is only for stdarg functions. */
+ if (cfun->stdarg == 0)
+ return 0;
+
cfun->va_list_gpr_size = 0;
cfun->va_list_fpr_size = 0;
memset (&si, 0, sizeof (si));