aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-09-26 11:40:53 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-09-26 11:40:53 +0000
commitf0305a2b791f1cd4c563e48618e765f236180282 (patch)
tree69ec948ba29623647bab924a85fa4110caa56260
parent4e32193ac9faee5688303f6ff2be523b3e8fc230 (diff)
downloadgcc-f0305a2b791f1cd4c563e48618e765f236180282.zip
gcc-f0305a2b791f1cd4c563e48618e765f236180282.tar.gz
gcc-f0305a2b791f1cd4c563e48618e765f236180282.tar.bz2
combine.c (gen_rtx_combine): Add missing call to va_end().
* 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
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/combine.c2
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/lex.c1
-rw-r--r--gcc/final.c1
-rw-r--r--gcc/genattrtab.c10
6 files changed, 24 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 13ee0e9..1c0e7ec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/combine.c b/gcc/combine.c
index 61d55d0..813f8fa 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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. */
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ada4959..6e3e16e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index b61cad4..acc99c7 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -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);
}
diff --git a/gcc/final.c b/gcc/final.c
index 1a90979..7e6f60bf 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3883,6 +3883,7 @@ asm_fprintf VPROTO((FILE *file, const char *p, ...))
default:
fputc (c, file);
}
+ va_end (argptr);
}
/* Split up a CONST_DOUBLE or integer constant rtx
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index 19adfea..3d61c93 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -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