dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing va_end.
authorJeff Law <law@redhat.com>
Fri, 25 Mar 2011 16:39:10 +0000 (10:39 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 25 Mar 2011 16:39:10 +0000 (10:39 -0600)
* 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
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/dwarf2asm.c
gcc/emit-rtl.c
gcc/lto/ChangeLog
gcc/lto/lto-lang.c

index 588651d..80c0c92 100644 (file)
@@ -1,3 +1,12 @@
+2011-03-25  Jeff Law  <law@redhat.com>
+
+       * 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  <rguenther@suse.de>
 
        * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
index a76fb31..65bb6d0 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-25  Jeff Law  <law@redhat.com>
+
+       * ada/gcc-interface/utils.c (def_fn_type): Add missing va_end.
+
 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
 
        * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
index 6db6375..181e22a 100644 (file)
@@ -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
index f9f625c..e8a14fe 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-25  Jeff Law  <law@redhat.com>
+
+       * c-family/c-common.c (def_fn_type): Add missing va_end.
+
 2011-03-25  Jason Merrill  <jason@redhat.com>
 
        * c.opt: Add -std=c++03.
index 33af3d8..cab9e7e 100644 (file)
@@ -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
index b480698..a11470f 100644 (file)
@@ -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;
     }
 
index 9b6f0f8..01da583 100644 (file)
@@ -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);
 
index 124b0e7..1921eaf 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-25  Jeff Law  <law@redhat.com>
+
+       * lto/lto-lang.c (def_fn_type): Add missing va_end.
+
 2011-03-21  Kai Tietz  <ktietz@redhat.com>
 
        PR target/12171
index aa928b6..3c804f5 100644 (file)
@@ -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