From 0edf1bb291554a150601dfc3a03327f93f4bfc99 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 25 Mar 2011 10:39:10 -0600 Subject: [PATCH] dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end. * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end. * c-family/c-common.c (def_fn_type): Likewise. * ada/gcc-interface/utils.c (def_fn_type): Likewise. * emit-rtl.c (gen_rtvec): Likewise. * lto/lto-lang.c (def_fn_type): Likewise. From-SVN: r171466 --- gcc/ChangeLog | 9 +++++++++ gcc/ada/ChangeLog | 4 ++++ gcc/ada/gcc-interface/utils.c | 1 + gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c-common.c | 1 + gcc/dwarf2asm.c | 1 + gcc/emit-rtl.c | 5 ++++- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto-lang.c | 1 + 9 files changed, 29 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 588651d7fa0..80c0c92c9c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2011-03-25 Jeff Law + + * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing + va_end. + * c-family/c-common.c (def_fn_type): Likewise. + * ada/gcc-interface/utils.c (def_fn_type): Likewise. + * emit-rtl.c (gen_rtvec): Likewise. + * lto/lto-lang.c (def_fn_type): Likewise. + 2011-03-25 Richard Guenther * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a76fb316494..65bb6d0f6df 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2011-03-25 Jeff Law + + * ada/gcc-interface/utils.c (def_fn_type): Add missing va_end. + 2011-03-24 Eric Botcazou * einfo.ads (Size_Depends_On_Discriminant): Adjust description. diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 6db63751e15..181e22a7f98 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -4930,6 +4930,7 @@ def_fn_type (builtin_type def, builtin_type ret, bool var, int n, ...) egress: builtin_types[def] = t; + va_end (list); } /* Build the builtin function types and install them in the builtin_types diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index f9f625c3335..e8a14fe27f5 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2011-03-25 Jeff Law + + * c-family/c-common.c (def_fn_type): Add missing va_end. + 2011-03-25 Jason Merrill * c.opt: Add -std=c++03. diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 33af3d82eae..cab9e7efa57 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -4428,6 +4428,7 @@ def_fn_type (builtin_type def, builtin_type ret, bool var, int n, ...) egress: builtin_types[def] = t; + va_end (list); } /* Build builtin functions common to both C and C++ language diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c index b480698b49e..a11470ff9af 100644 --- a/gcc/dwarf2asm.c +++ b/gcc/dwarf2asm.c @@ -957,6 +957,7 @@ dw2_asm_output_encoded_addr_rtx (int encoding, rtx addr, bool is_public, { assemble_align (POINTER_SIZE); assemble_integer (addr, size, POINTER_SIZE, 1); + va_end (ap); return; } diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 9b6f0f85fc9..01da5836e46 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -805,7 +805,10 @@ gen_rtvec (int n, ...) /* Don't allocate an empty rtvec... */ if (n == 0) - return NULL_RTVEC; + { + va_end (p); + return NULL_RTVEC; + } rt_val = rtvec_alloc (n); diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 124b0e75697..1921eaf8b77 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2011-03-25 Jeff Law + + * lto/lto-lang.c (def_fn_type): Add missing va_end. + 2011-03-21 Kai Tietz PR target/12171 diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index aa928b6df62..3c804f55669 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -471,6 +471,7 @@ def_fn_type (builtin_type def, builtin_type ret, bool var, int n, ...) egress: builtin_types[def] = t; + va_end (list); } /* Used to help initialize the builtin-types.def table. When a type of -- 2.30.2