configure.in: Set stage1_cflags for powerpc-*-darwin*.

* configure.in: Set stage1_cflags for powerpc-*-darwin*.
	* configure: Regenerate.

	* config/interix.h: Set DO_GLOBAL_CTORS_BODY and
	DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
	* config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
	alpha/xm-vms.h.
	* config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
	LIMITS_H_TEST here, not in m68k/x-next.
	* config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
	SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.

	* config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
	LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
	* config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.

	* config/i386/x-djgpp: Renamed i386/t-djgpp.
	* config/m88k/x-dolph: Renamed m88k/t-dolph.
	* config/m88k/x-texXD88: Renamed m88k/t-texXD88.
	* config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
	replacement of quadlib.asm with quadlib.c.

	* config/x-interix3, config/xm-interix.h, config/i386/x-beos,
	config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
	config/rs6000/xm-beos.h: Delete file.

	* config.gcc: Update to match above changes.

From-SVN: r48757
This commit is contained in:
Zack Weinberg 2002-01-10 22:03:06 +00:00
parent d10dd44c19
commit 5dd8a9b1c2
23 changed files with 359 additions and 400 deletions

View File

@ -1,3 +1,33 @@
2002-01-10 Zack Weinberg <zack@codesourcery.com>
* configure.in: Set stage1_cflags for powerpc-*-darwin*.
* configure: Regenerate.
* config/interix.h: Set DO_GLOBAL_CTORS_BODY and
DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
* config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
alpha/xm-vms.h.
* config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
LIMITS_H_TEST here, not in m68k/x-next.
* config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
* config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
* config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
* config/i386/x-djgpp: Renamed i386/t-djgpp.
* config/m88k/x-dolph: Renamed m88k/t-dolph.
* config/m88k/x-texXD88: Renamed m88k/t-texXD88.
* config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
replacement of quadlib.asm with quadlib.c.
* config/x-interix3, config/xm-interix.h, config/i386/x-beos,
config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
config/rs6000/xm-beos.h: Delete file.
* config.gcc: Update to match above changes.
2002-01-10 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.h: Fix comment typos.
@ -150,7 +180,7 @@ Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
2002-01-20 Graham Stott <grahams@redhat.com>
* dwarf2out.c (indirect_string_alloc, output_indirect_string):
Move prototype into DWARF2_DEBUGGING_INFO conditional block.
Move prototype into DWARF2_DEBUGGING_INFO conditional block.
2002-01-10 Richard Henderson <rth@redhat.com>

View File

@ -425,7 +425,7 @@ alpha-*-interix)
target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
xm_defines=POSIX
xm_file="alpha/xm-alpha-interix.h xm-interix.h"
xm_file="alpha/xm-alpha-interix.h"
tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
if test x$enable_threads = xyes ; then
thread_file='posix'
@ -968,7 +968,7 @@ hppa*-*-lites*)
;;
hppa*-*-mpeix*)
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
xmake_file=pa/x-pa-mpeix
tmake_file=pa/t-mpeix
echo "You must use gas. Assuming it is already installed."
gas=yes
install_headers_dir=install-headers-tar
@ -1103,7 +1103,6 @@ i[34567]86-*-beoself* | i[34567]86-*-beos*)
xm_defines=POSIX
tmake_file='i386/t-beos i386/t-crtpic'
tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
xmake_file=i386/x-beos
extra_parts='crtbegin.o crtend.o'
;;
i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
@ -1218,7 +1217,7 @@ i[34567]86-go32-msdos | i[34567]86-*-go32*)
i[34567]86-pc-msdosdjgpp*)
xm_file=i386/xm-djgpp.h
tm_file=i386/djgpp.h
xmake_file=i386/x-djgpp
tmake_file=i386/t-djgpp
gnu_ld=yes
gas=yes
exeext=.exe
@ -1353,7 +1352,6 @@ i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
install_headers_dir=install-headers-cpio
;;
i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
xm_file=i386/xm-osf1elf.h
xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
if test x$stabs = xyes
then
@ -1443,11 +1441,11 @@ i[34567]86-*-uwin*)
;;
i[34567]86-*-interix3*)
tm_file="i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
xm_file="i386/xm-i386-interix.h xm-interix.h"
xm_file="i386/xm-i386-interix.h"
xm_defines=POSIX
tmake_file="i386/t-interix"
tmake_file="t-interix i386/t-interix"
extra_objs=interix.o
xmake_file="x-interix x-interix3"
xmake_file="x-interix"
if test x$enable_threads = xyes ; then
thread_file='posix'
fi
@ -1457,7 +1455,7 @@ i[34567]86-*-interix3*)
;;
i[34567]86-*-interix*)
tm_file="i386/i386-interix.h interix.h"
xm_file="i386/xm-i386-interix.h xm-interix.h"
xm_file="i386/xm-i386-interix.h"
xm_defines=POSIX
tmake_file="t-interix i386/t-interix"
extra_objs=interix.o
@ -2009,7 +2007,7 @@ m88k-dolphin-sysv3*)
xm_defines=POSIX
tm_file=m88k/dolph.h
extra_parts="crtbegin.o crtend.o"
xmake_file=m88k/x-dolph
tmake_file=m88k/t-dolph
if test x$gas = xyes
then
tmake_file=m88k/t-m88k-gas
@ -2019,7 +2017,7 @@ m88k-tektronix-sysv3)
xm_defines=POSIX
tm_file=m88k/tekXD88.h
extra_parts="crtbegin.o crtend.o"
xmake_file=m88k/x-tekXD88
tmake_file=m88k/t-tekXD88
if test x$gas = xyes
then
tmake_file=m88k/t-m88k-gas
@ -2625,7 +2623,6 @@ powerpc64-*-linux*)
powerpc-*-beos*)
tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
xm_defines=POSIX
xm_file=rs6000/xm-beos.h
tmake_file=rs6000/t-beos
extra_headers=
;;
@ -2633,11 +2630,6 @@ powerpc-*-darwin*)
tm_file="${tm_file} darwin.h rs6000/darwin.h"
tm_p_file="${tm_p_file} darwin-protos.h"
tmake_file=rs6000/t-darwin
xmake_file=rs6000/x-darwin
# Override the usual setting, since Apple's GCC has lame bugs
# and can't handle the initializers. Someday the bugs will be
# fixed and we can get rid of this silliness.
xm_defines="HAVE_DESIGNATED_INITIALIZERS=0"
extra_objs="darwin.o"
c_target_objs="darwin-c.o"
cxx_target_objs="darwin-c.o"

View File

@ -507,3 +507,12 @@ do { \
#define NAME__MAIN "__gccmain"
#define SYMBOL__MAIN __gccmain
/* Specify the list of include file directories. */
#define INCLUDE_DEFAULTS \
{ \
{ "/gnu_gxx_include", 0, 1, 1 }, \
{ "/gnu_cc_include", 0, 0, 0 }, \
{ "/gnu/include", 0, 0, 0 }, \
{ 0, 0, 0, 0 } \
}

View File

@ -1,5 +1,9 @@
# Under VMS, directory names cannot contain dots.
version=`echo $(gcc_version) | sed -e 's/\./_/g'`
# Rules for linker and compiler wrappers. These are only useful on
# a VMS host.
EXTRA_PROGRAMS=ld.exe decc.exe
vms-ld.o : $(srcdir)/config/alpha/vms-ld.c
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
ld.exe : vms-ld.o
@ -10,9 +14,6 @@ vms-cc.o : $(srcdir)/config/alpha/vms-cc.c
decc.exe : vms-cc.o
$(CC) -o $@ vms-cc.o ../libiberty/libiberty.a
EXTRA_PROGRAMS=ld.exe decc.exe
USE_COLLECT2=
# These extra parts can only be compiled on a VMS host and are only needed
# on a VMS target.
# on a VMS target. The rules are in t-vms.
VMS_EXTRA_PARTS=vcrt0.o pcrt0.o

View File

@ -27,15 +27,6 @@ Boston, MA 02111-1307, USA. */
#define VMS
#endif
/* Specify the list of include file directories. */
#define INCLUDE_DEFAULTS \
{ \
{ "/gnu_gxx_include", 0, 1, 1 }, \
{ "/gnu_cc_include", 0, 0, 0 }, \
{ "/gnu/include", 0, 0, 0 }, \
{ 0, 0, 0, 0 } \
}
/* Define a local equivalent (sort of) for unlink */
#define unlink remove

View File

@ -1,2 +0,0 @@
# configuration for BeOS
INSTALL=install -c

View File

@ -1,6 +0,0 @@
/* Configuration for GCC for Intel i386 running OSF/1 1.3. */
#ifndef HZ
#include <machine/machtime.h>
#define HZ DEFAULT_CLK_TCK
#endif

View File

@ -1,6 +1,6 @@
/* Operating system specific defines to be used when targeting GCC for
Interix
Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc.
Copyright (C) 1994, 1995, 1999, 2002 Free Software Foundation, Inc.
Donn Terry, Softway Systems, Inc. (donn@softway.com)
Modified from code
Contributed by Douglas B. Rupp (drupp@cs.washington.edu).
@ -104,3 +104,37 @@ for windows/multi thread */
#define WCHAR_UNSIGNED 1
#define WCHAR_TYPE "short unsigned int"
#define WCHAR_TYPE_SIZE 16
/* Our strategy for finding global constructors is a bit different, although
not a lot. */
#define DO_GLOBAL_CTORS_BODY \
do { \
int i; \
unsigned long nptrs; \
func_ptr *p; \
asm( \
" .section .ctor_head, \"rw\"\n" \
"1:\n" \
" .text \n" \
ASM_LOAD_ADDR(1b,%0) \
: "=r" (p) : : "cc"); \
for (nptrs = 0; p[nptrs] != 0; nptrs++); \
for (i = nptrs-1; i >= 0; i--) \
p[i] (); \
} while (0)
#define DO_GLOBAL_DTORS_BODY \
do { \
func_ptr *p; \
asm( \
" .section .dtor_head, \"rw\"\n" \
"1:\n" \
" .text \n" \
ASM_LOAD_ADDR(1b,%0) \
: "=r" (p) : : "cc"); \
while (*p) \
{ \
p++; \
(*(p-1)) (); \
} \
} while (0)

View File

@ -1,2 +1,8 @@
# Specify other dirs of system header files to be fixed.
OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers
# <limits.h> is sometimes in /usr/include/ansi/limits.h.
LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ]
nextstep.o: $(srcdir)/config/nextstep.c $(CONFIG_H) flags.h tree.h
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<

View File

@ -1,9 +1,3 @@
# Specify other dirs of system header files to be fixed.
OTHER_FIXINCLUDES_DIRS= /LocalDeveloper/Headers
# <limits.h> is sometimes in /usr/include/ansi/limits.h.
LIMITS_H_TEST = [ -f $(SYSTEM_HEADER_DIR)/limits.h -o -f $(SYSTEM_HEADER_DIR)/ansi/limits.h ]
# f771 is so big, we need to tell linker on m68k-next-nextstep* to
# make enough room for it.
BOOT_LDFLAGS=-segaddr __DATA 6000000

5
gcc/config/pa/t-mpeix Normal file
View File

@ -0,0 +1,5 @@
LIB2FUNCS_EXTRA= quadlib.c
quadlib.c: $(srcdir)/config/pa/quadlib.c
rm -f quadlib.c
cp $(srcdir)/config/pa/quadlib.c .

View File

@ -1,5 +0,0 @@
LIB2FUNCS_EXTRA= quadlib.asm
quadlib.asm: $(srcdir)/config/pa/quadlib.asm
rm -f quadlib.asm
cp $(srcdir)/config/pa/quadlib.asm .

View File

@ -1,5 +1,5 @@
/* Definitions of target machine for GNU compiler, for BeOS.
Copyright (C) 1997, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Fred Fish (fnf@cygnus.com), based on aix41.h
from David Edelsohn (edelsohn@npac.syr.edu).
@ -106,3 +106,9 @@ Boston, MA 02111-1307, USA. */
/* Struct alignments are done on 4 byte boundaries for all types. */
#undef BIGGEST_FIELD_ALIGNMENT
#define BIGGEST_FIELD_ALIGNMENT 32
/* STANDARD_INCLUDE_DIR is the equivalent of "/usr/include" on UNIX. */
#define STANDARD_INCLUDE_DIR "/boot/develop/headers/posix"
/* SYSTEM_INCLUDE_DIR is the location for system specific, non-POSIX headers. */
#define SYSTEM_INCLUDE_DIR "/boot/develop/headers/be"

View File

@ -1,5 +0,0 @@
# The spiffy cpp-precomp chokes on some legitimate constructs in GCC
# sources; use -no-cpp-precomp to get to GNU cpp. (This is another
# peculiarity of Apple's GCC that we hope to get rid of.)
CC = cc -no-cpp-precomp

View File

@ -1,30 +0,0 @@
/* Configuration for GNU C-compiler for BeOS host.
Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc.
Contributed by Fred Fish (fnf@cygnus.com), based on xm-rs6000.h
by Richard Kenner (kenner@vlsi1.ultra.nyu.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. */
/* use ANSI/SYSV style byte manipulation routines instead of BSD ones */
/* STANDARD_INCLUDE_DIR is the equivalent of "/usr/include" on UNIX. */
#define STANDARD_INCLUDE_DIR "/boot/develop/headers/posix"
/* SYSTEM_INCLUDE_DIR is the location for system specific, non-POSIX headers. */
#define SYSTEM_INCLUDE_DIR "/boot/develop/headers/be"

View File

@ -1,14 +1,3 @@
# These are host overrides
# From config dir
RANLIB = :
RANLIB_TEST = false
SHELL = sh
# Existing CC/GCC may not define -D__INTERIX, so need this here.
# 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

View File

@ -1,8 +0,0 @@
# These are host overrides for Interix 3.x
# Interix 3.x has a single rooted file system, so LIBGCC2_INCLUDES
# SYSTEM_HEADER_DIR no longer need to be set
LIBGCC2_INCLUDES =
SYSTEM_HEADER_DIR = /usr/include

View File

@ -1,56 +0,0 @@
/* Configuration for GNU compiler for processor running Interix
Copyright (C) 1993, 1995, 1999, 2001 Free Software Foundation, Inc.
Donn Terry, Softway Systems, Inc,
from code
Contributed 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. */
/* Our strategy for finding global constructors is a bit different, although
not a lot. */
#define DO_GLOBAL_CTORS_BODY \
do { \
int i; \
unsigned long nptrs; \
func_ptr *p; \
asm( \
" .section .ctor_head, \"rw\"\n" \
"1:\n" \
" .text \n" \
ASM_LOAD_ADDR(1b,%0) \
: "=r" (p) : : "cc"); \
for (nptrs = 0; p[nptrs] != 0; nptrs++); \
for (i = nptrs-1; i >= 0; i--) \
p[i] (); \
} while (0)
#define DO_GLOBAL_DTORS_BODY \
do { \
func_ptr *p; \
asm( \
" .section .dtor_head, \"rw\"\n" \
"1:\n" \
" .text \n" \
ASM_LOAD_ADDR(1b,%0) \
: "=r" (p) : : "cc"); \
while (*p) \
{ \
p++; \
(*(p-1)) (); \
} \
} while (0)

483
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -404,6 +404,13 @@ vax-*-*)
stage1_cflags="-J"
fi
;;
powerpc-*-darwin*)
# The spiffy cpp-precomp chokes on some legitimate constructs in GCC
# sources; use -no-cpp-precomp to get to GNU cpp.
# Apple's GCC has bugs in designated initializer handling, so disable
# that too.
stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
;;
esac
AC_SUBST(stage1_cflags)