t-interix: Use mostly system headers unchanged.
authorDonn Terry <donn@interix.com>
Sat, 10 Apr 1999 05:15:27 +0000 (05:15 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 10 Apr 1999 05:15:27 +0000 (23:15 -0600)
        * i386/t-interix: Use mostly system headers unchanged.
        Use system assert.h
        * fixinc/fixinc.interix: Ditto (make almost no-op).
        * config/x-interix.h (_ALL_SOURCE): add -D
        * config/x-interix.h (crti.o): Delete dependency.
        * config/xm-interix.h (ONLY_INT_FIELDS): Define only when bootstrapping.
        * i386/xm-i386-interix.h: New file.
        * i386/interix.h (ASM_OUTPUT_LIMITED_STRING): Fix warnings.
        * i386/i386-interix.h: Renamed from interix.h.
        * configure.in (interix): Use new files.
        * configure: Rebuilt.

From-SVN: r26332

gcc/ChangeLog
gcc/config/i386/i386-interix.h [moved from gcc/config/i386/interix.h with 99% similarity]
gcc/config/i386/t-interix
gcc/config/i386/xm-i386-interix.h [new file with mode: 0644]
gcc/config/x-interix
gcc/config/xm-interix.h
gcc/configure
gcc/configure.in

index 3da9b8e..566eb70 100644 (file)
@@ -1,3 +1,17 @@
+Sat Apr 10 06:04:50 1999 Donn Terry (donn@interix.com) 
+
+       * i386/t-interix: Use mostly system headers unchanged.
+       Use system assert.h
+       * fixinc/fixinc.interix: Ditto (make almost no-op).
+       * config/x-interix.h (_ALL_SOURCE): add -D
+       * config/x-interix.h (crti.o): Delete dependency.
+       * config/xm-interix.h (ONLY_INT_FIELDS): Define only when bootstrapping.
+       * i386/xm-i386-interix.h: New file.
+       * i386/interix.h (ASM_OUTPUT_LIMITED_STRING): Fix warnings.
+       * i386/i386-interix.h: Renamed from interix.h.
+       * configure.in (interix): Use new files.
+       * configure: Rebuilt.
+
 Sat Apr 10 05:25:28 1999  Daniel Jacobowitz <dan@debian.org>
 
        * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Fix conditions
similarity index 99%
rename from gcc/config/i386/interix.h
rename to gcc/config/i386/i386-interix.h
index ea22275..d665844 100644 (file)
@@ -157,10 +157,10 @@ Boston, MA 02111-1307, USA.  */
       register unsigned char *_limited_str = (unsigned char *) (STR);  \
       register unsigned ch;                                            \
       fprintf ((FILE), "\t%s\t\"", STRING_ASM_OP);                     \
-      for (; ch = *_limited_str; _limited_str++)                       \
+      for (; (ch = *_limited_str); _limited_str++)                     \
         {                                                              \
-         register int escape;                                          \
-         switch (escape = ESCAPES[ch])                                 \
+         register int escape = ESCAPES[ch];                            \
+         switch (escape)                                               \
            {                                                           \
            case 0:                                                     \
              putc (ch, (FILE));                                        \
index 39df739..4c6d84f 100644 (file)
@@ -8,3 +8,9 @@ LIB1ASMFUNCS = _chkstk
 interix.o: $(srcdir)/config/i386/interix.c
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/interix.c
 
+# System headers will track gcc's needs.
+# Even LANG_EXTRA_HEADERS may be temporary.
+USER_H=$(LANG_EXTRA_HEADERS)
+
+# We don't want this one either.
+INSTALL_ASSERT_H=
diff --git a/gcc/config/i386/xm-i386-interix.h b/gcc/config/i386/xm-i386-interix.h
new file mode 100644 (file)
index 0000000..8bfd5e2
--- /dev/null
@@ -0,0 +1,34 @@
+/* Configuration for GNU compiler
+   for an Intel i386 or later processor running Interix.
+   Copyright (C) 1999 Free Software Foundation, Inc.
+   Contributed by Donn Terry (donn@interix.com)
+     Derived from code by Douglas B. Rupp (drupp@cs.washington.edu)
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING.  If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
+
+#include <i386/xm-i386.h>
+
+#define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_LONGLONG
+#ifdef __GNUC__
+#   define HOST_WIDEST_INT long long
+#else
+#   define HOST_WIDEST_INT __int64
+#endif
+#define HOST_WIDEST_INT_PRINT_DEC "%lld"
+#define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu"
+#define HOST_WIDEST_INT_PRINT_HEX "0x%llx"
index 270770f..afdfe76 100644 (file)
@@ -16,14 +16,9 @@ RANLIB_TEST = false
 SHELL = sh
 
 # Existing CC/GCC may not define -D__INTERIX, so need this here.
-X_CFLAGS= -D__INTERIX
+# Since we want to configure with _ALL_SOURCE, we need to build that way too
+X_CFLAGS= -D__INTERIX -D_ALL_SOURCE
 
 LIBGCC2_INCLUDES = -idirafter $${INTERIX_ROOT}/usr/include
 # Headers come from a funny place
 SYSTEM_HEADER_DIR=$${INTERIX_ROOT}/usr/include
-
-EXTRA_PARTS += crti.o
-
-crti.o: $(srcdir)/crti.c
-       $(GCC_FOR_TARGET) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/crti.c
-
index 46cbaee..756fb5d 100644 (file)
@@ -26,8 +26,10 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #ifndef ONLY_INT_FIELDS
+#ifndef __GNUC__
 #define ONLY_INT_FIELDS 1
 #endif
+#endif
 
 #ifndef USE_PROTOTYPES
 #define USE_PROTOTYPES 1
index c6c2842..f3c4885 100755 (executable)
@@ -3782,8 +3782,8 @@ for machine in $build $host $target; do
                exeext=.exe
                ;;
        i[34567]86-*-interix*)
-               tm_file=i386/interix.h
-               xm_file="${xm_file} xm-interix.h"
+               tm_file=i386/i386-interix.h
+               xm_file="i386/xm-i386-interix.h xm-interix.h"
                xm_defines="USG NO_SYS_SIGLIST"
                tmake_file="i386/t-interix"
                extra_objs=interix.o
index 7585237..07e8c75 100644 (file)
@@ -1510,8 +1510,8 @@ changequote([,])dnl
 changequote(,)dnl
        i[34567]86-*-interix*)
 changequote([,])dnl
-               tm_file=i386/interix.h
-               xm_file="${xm_file} xm-interix.h"
+               tm_file=i386/i386-interix.h
+               xm_file="i386/xm-i386-interix.h xm-interix.h"
                xm_defines="USG NO_SYS_SIGLIST"
                tmake_file="i386/t-interix"
                extra_objs=interix.o