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]

fix altivec-2.C testcase


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)
============================================================


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