This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fixinc patch] Remove bogus special fixincludes for Interix
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org, bkorb at gcc dot gnu dot org
- Date: Tue, 8 Jul 2003 18:03:38 -0400
- Subject: [fixinc patch] Remove bogus special fixincludes for Interix
OK. alpha-*-interix* is not supported. i?86-*-interix* theoretically is.
But the current fixincludes for interix is just wrong. Through careful
examination of the code, I can say that there is never a stddef.h
in the "include" directory when fixincludes is run by the GCC build. (The
directory is cleared immediately prior.)
And it's just dangerous to run this script outside that situation.
This leaves some question as to whether to do no fixing for Interix, or
to do it in the standard way. I propose doing it in the standard way,
and if Interix users complain, dealing with it then. (I can't test this
on Interix, obviously, but I'm guessing it will be an improvement over the
current situation.)
* fixinc/fixinc.interix: Remove.
* fixinc/mkfixinc.sh: Remove special treatment of Interix.
Index: mkfixinc.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/mkfixinc.sh,v
retrieving revision 1.49
diff -u -r1.49 mkfixinc.sh
--- mkfixinc.sh 8 Jul 2003 05:49:59 -0000 1.49
+++ mkfixinc.sh 8 Jul 2003 21:58:01 -0000
@@ -42,11 +42,6 @@
fixincludes=fixinc.svr4
;;
- i?86-*-interix* | \
- alpha-*-interix*)
- fixincludes=fixinc.interix
- ;;
-
i?86-*-openbsd*)
fixincludes=fixinc.wrap
;;
Index: fixinc.interix
===================================================================
RCS file: fixinc.interix
diff -N fixinc.interix
--- fixinc.interix 13 Mar 2003 03:01:25 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,3 +0,0 @@
-#!/bin/sh
-rm -f include/stddef.h
-exit
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html