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]

[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


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