diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 70f7b6f238b1e83fbb9fbb913b6ea57795368453..0d7aa4257729766226870f3753dace40f01f50c8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-23  Ulrich Weigand  <uweigand@de.ibm.com>
+
+	* gcc.dg/20030123-1.c: Add prototypes for builtin functions.
+	* gcc.dg/20040305-1.c: Likewise.
+
 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
 
 	PR c/16566
diff --git a/gcc/testsuite/gcc.dg/20030123-1.c b/gcc/testsuite/gcc.dg/20030123-1.c
index e4e49ab0916b09bc21a967e6aa78bf15a67145a0..319e4526a4a92447c9faaf83525f0feaa3a09510 100644
--- a/gcc/testsuite/gcc.dg/20030123-1.c
+++ b/gcc/testsuite/gcc.dg/20030123-1.c
@@ -3,6 +3,8 @@
 /* { dg-do compile { target s390*-*-* } } */
 /* { dg-options "-O2 -fno-omit-frame-pointer" } */
 
+extern void *alloca (__SIZE_TYPE__);
+
 void func (char *p);
 
 void test (void)
diff --git a/gcc/testsuite/gcc.dg/20040305-1.c b/gcc/testsuite/gcc.dg/20040305-1.c
index 62b920c5e1b2eaf9b7aea2fb33df7d73c680bd04..d2c4da4296f95c041a5e473c756c0f7f7403bb30 100644
--- a/gcc/testsuite/gcc.dg/20040305-1.c
+++ b/gcc/testsuite/gcc.dg/20040305-1.c
@@ -8,6 +8,9 @@
 /* { dg-do run { target s390-*-* } } */
 /* { dg-options "-O3 -mtune=z990 -fno-inline" } */
 
+extern void exit (int);
+extern void abort (void);
+
 int f;
 int g;
 int h;