combine.c (gen_rtx_combine): Add missing call to va_end().
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 26 Sep 1999 11:40:53 +0000 (11:40 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 26 Sep 1999 11:40:53 +0000 (11:40 +0000)
* combine.c (gen_rtx_combine): Add missing call to va_end().

* final.c (asm_fprintf): Likewise.

* genattrtab.c (attr_rtx): Likewise.

cp:
* lex.c (compiler_error): Add missing call to va_end().

From-SVN: r29667

gcc/ChangeLog
gcc/combine.c
gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/final.c
gcc/genattrtab.c

index 13ee0e9f53eeb301595870c92923435bcbda2139..1c0e7ec1a465e6ac26bb5cc82ff2ec53bca1ec28 100644 (file)
@@ -1,3 +1,11 @@
+Sun Sep 26 07:37:11 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * combine.c (gen_rtx_combine): Add missing call to va_end().
+
+       * final.c (asm_fprintf): Likewise.
+
+       * genattrtab.c (attr_rtx): Likewise.
+
 Sat Sep 25 13:11:07 1999  Jeffrey A Law  (law@cygnus.com)
 
        * cse.c: Update comments.
index 61d55d0c893e2b07a9662d2d2394c1ae88d86ced..813f8fa1220288d9e27ab22a5c9f20cde63a6ae4 100644 (file)
@@ -9402,6 +9402,8 @@ gen_rtx_combine VPROTO((enum rtx_code code, enum machine_mode mode, ...))
       args[j] = va_arg (p, rtx);
     }
 
+  va_end (p);
+
   /* See if this is in undobuf.  Be sure we don't use objects that came
      from another insn; this could produce circular rtl structures.  */
 
index ada495935f7ff68cecf7e64a52f8c3128e2f0847..6e3e16ed5926125f9c48c7f486a611e985202ca5 100644 (file)
@@ -1,3 +1,7 @@
+1999-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * lex.c (compiler_error): Add missing call to va_end().
+
 1999-09-25  Mark Mitchell  <mark@codesourcery.com>
 
        * dump.c (dequeue_and_dump): Handle RESULT_DECL.
index b61cad4cb10034abc6b683d8a2c9cd57c77506a3..acc99c7f23aabbed1f6345c5563b68c430065fa6 100644 (file)
@@ -4883,6 +4883,7 @@ compiler_error VPROTO ((const char *msg, ...))
 #endif
 
   vsprintf (buf, msg, ap);
+  va_end (ap);
   error_with_file_and_line (input_filename, lineno, "%s (compiler error)", buf);
 }
 \f
index 1a90979fc976167c43dc7aa3089bc1c78c8b1339..7e6f60bf616582785dabb94bf1be5749cd4436fd 100644 (file)
@@ -3883,6 +3883,7 @@ asm_fprintf VPROTO((FILE *file, const char *p, ...))
       default:
        fputc (c, file);
       }
+  va_end (argptr);
 }
 \f
 /* Split up a CONST_DOUBLE or integer constant rtx
index 19adfeae06b6eb7ef9199774a4979e9236877187..3d61c93f5d272616afa1ac43b89ce6cc31c1da41 100644 (file)
@@ -668,9 +668,15 @@ attr_rtx VPROTO((enum rtx_code code, ...))
     {
       HOST_WIDE_INT arg0 = va_arg (p, HOST_WIDE_INT);
       if (arg0 == 0)
-       return false_rtx;
+       {
+         va_end (p);
+         return false_rtx;
+       }
       if (arg0 == 1)
-       return true_rtx;
+       {
+         va_end (p);
+         return true_rtx;
+       }
       goto nohash;
     }
   else