This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: WindISS fixincludes
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 07 May 2002 12:50:00 -0700
- Subject: PATCH: WindISS fixincludes
This patch implements fixincludes support for WindISS.
Bootstrapped and tested on i686-pc-linux-gnu.
(Also, I haven't yet checked in docs for -mwindiss, but I will very soon.)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2002-05-07 Mark Mitchell <mark@codesourcery.com>
* fixinc/inclhack.def (windiss_math1): New fix.
(windiss_math2): Likewise.
(windiss_valist): Likewise.
* fixinc/fixincl.x: Regenerated.
Index: gcc/fixinc/inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.125
diff -c -p -r1.125 inclhack.def
*** gcc/fixinc/inclhack.def 29 Apr 2002 19:42:41 -0000 1.125
--- gcc/fixinc/inclhack.def 7 May 2002 18:53:07 -0000
*************** fix = {
*** 3310,3315 ****
--- 3310,3349 ----
};
+ /*
+ * WindISS math.h headers include bogus extern declarations of
+ * numerous math functions that conflict with libstdc++-v3.
+ */
+ fix = {
+ hackname = windiss_math1;
+ files = math.h;
+ mach = "*-*-windiss";
+ sed = "s|inline long double cosl.*|#ifndef __GNUC__|";
+
+ test_text = "inline long double cosl(long double);";
+ };
+
+ fix = {
+ hackname = windiss_math2;
+ files = math.h;
+ mach = "*-*-windiss";
+ sed = "s|/\\* long double declarations \\*/|"
+ "#endif /* __GNUC__ */|";
+
+ test_text = "/* long double declarations */";
+ };
+
+ /*
+ * WindISS headers include "diab/va_list.h" instead of "stdarg.h"
+ */
+ fix = {
+ hackname = windiss_valist;
+ sed = "s|diab/va_list.h|stdarg.h|";
+ mach = "*-*-windiss";
+
+ test_text = "#include <diab/va_list.h>";
+ };
+
/*
* There are several name conflicts with C++ reserved words in X11 header
* files. These are fixed in some versions, so don't do the fixes if