t-interix: Use mostly system headers unchanged.

* 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
This commit is contained in:
Donn Terry 1999-04-10 05:15:27 +00:00 committed by Jeff Law
parent e6cfbc9e44
commit 97ad1d43e9
8 changed files with 65 additions and 14 deletions

View 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

View 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)); \

View 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=

View File

@ -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"

View 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

View 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

4
gcc/configure vendored
View File

@ -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

View 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