This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

S/390: Fix two testcases


Hello,

this fixes two testsuite regressions on s390 caused by missing prototypes
for builtin functions.

Tested on s390-ibm-linux and s390x-ibm-linux, applied to mainline.

Bye,
Ulrich


ChangeLog:

	* gcc.dg/20030123-1.c: Add prototypes for builtin functions.
	* gcc.dg/20040305-1.c: Likewise.


Index: gcc/testsuite/gcc.dg/20030123-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20030123-1.c,v
retrieving revision 1.2
diff -c -p -r1.2 20030123-1.c
*** gcc/testsuite/gcc.dg/20030123-1.c	22 Jan 2004 00:05:36 -0000	1.2
--- gcc/testsuite/gcc.dg/20030123-1.c	22 Sep 2004 20:51:29 -0000
***************
*** 3,8 ****
--- 3,10 ----
  /* { dg-do compile { target s390*-*-* } } */
  /* { dg-options "-O2 -fno-omit-frame-pointer" } */
  
+ extern void *alloca (__SIZE_TYPE__);
+ 
  void func (char *p);
  
  void test (void)
Index: gcc/testsuite/gcc.dg/20040305-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20040305-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 20040305-1.c
*** gcc/testsuite/gcc.dg/20040305-1.c	6 Mar 2004 01:21:28 -0000	1.1
--- gcc/testsuite/gcc.dg/20040305-1.c	22 Sep 2004 20:51:29 -0000
***************
*** 8,13 ****
--- 8,16 ----
  /* { 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;
-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]