This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] a HOST_BIT_BUCKET for mingw32
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Christopher Faylor <cgf at redhat dot com>
- Date: Tue, 15 Jul 2003 18:44:00 +1000 (EST)
- Subject: [PATCH] a HOST_BIT_BUCKET for mingw32
Hi
Mingw32 doesn't know about /dev/null. The windows equivalent is a
writeable device called "nul" (case-insensitive, of course).
This change lets -fsyntax-only throw output into this null device, rather
than creating a temp file.
Danny
ChangeLog
2003-07-15 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
as "nul".
Index: config/i386/xm-mingw32.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/xm-mingw32.h,v
retrieving revision 1.16
diff -c -3 -p -r1.16 xm-mingw32.h
*** config/i386/xm-mingw32.h 3 Jul 2003 04:24:00 -0000 1.16
--- config/i386/xm-mingw32.h 15 Jul 2003 08:15:08 -0000
*************** Boston, MA 02111-1307, USA. */
*** 23,25 ****
--- 23,28 ----
#undef PATH_SEPARATOR
#define PATH_SEPARATOR ';'
+
+ /* This is the name of the null device on windows */
+ #define HOST_BIT_BUCKET "nul"
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.