This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fixinc patch] Add disabled hacks from old fixincludes 2/5
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc-patches at gcc dot gnu dot org, bkorb at veritas dot com
- Date: Tue, 26 Aug 2003 16:28:36 -0400
- Subject: [fixinc patch] Add disabled hacks from old fixincludes 2/5
Bruce, OK for mainline? How's my sed expression look?
* fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
ported from fixinc.ptx.
Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.174
diff -u -r1.174 inclhack.def
--- inclhack.def 25 Aug 2003 21:54:11 -0000 1.174
+++ inclhack.def 26 Aug 2003 20:23:01 -0000
@@ -2002,6 +2002,24 @@
/*
+ * Under DYNIX/ptx, sys/mc_param.h has an embedded asm for the cpuid
+ * instruction on the P5. This is not used by anything else so we ifdef it out.
+ * This ASM does not appear to cause problems for current GCC, so this
+ * fix is probably not needed any more.
+ */
+#ifdef PTX
+fix = {
+ hackname = ptx_sys_mc_param_h;
+ file = sys/mc_param.h;
+ sed = "/__asm/,/}/{\n"
+ "/__asm/i#if !defined (__GNUC__) && !defined (__GNUG__)\n"
+ "/}/a#endif\n"
+ "}";
+};
+#endif
+
+
+/*
* Fix return type of fread and fwrite on sysV68
*/
fix = {
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html