fix altivec-2.C testcase

Geoffrey Keating gkeating@geoffk5.apple.com
Thu Aug 5 05:47:00 GMT 2004


The testcase was failing, and could never have passed, because
it was looking for exit as a C++ function.

Tested on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/gcc-testsuite-altivecexitC.patch==========
2004-08-04  Geoffrey Keating  <geoffk@apple.com>

	* g++.dg/ext/altivec_check.h: Declare exit as extern "C".

Index: g++.dg/ext/altivec_check.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec_check.h,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 altivec_check.h
--- g++.dg/ext/altivec_check.h	21 Feb 2004 09:08:37 -0000	1.1
+++ g++.dg/ext/altivec_check.h	5 Aug 2004 05:29:24 -0000
@@ -2,7 +2,7 @@
 /* Contributed by Ziemowit Laski  <zlaski@apple.com>  */
 
 #include <signal.h>
-extern void exit(int);
+extern "C" void exit(int);
 
 void 
 sig_ill_handler (int sig)
============================================================



More information about the Gcc-patches mailing list