This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix altivec-2.C testcase
- From: gkeating at geoffk5 dot apple dot com (Geoffrey Keating)
- To: zlaski at apple dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 4 Aug 2004 22:30:49 -0700 (PDT)
- Subject: 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)
============================================================