head	1.22;
access;
symbols
	gcc-2_8_1-990325:1.22
	gcc-2_8_1-990319:1.22
	gcc-2_8_1-990302:1.22
	gcc_2_8_1-990302:1.22
	gcc_2_8_1-990222:1.22
	gcc-2_8_1-990109:1.22
	gcc-2_8_1-981210:1.22
	gcc-2_8_1-981208:1.22
	gcc-2_8_1-980929:1.22
	gcc_2_8_1-980929:1.22
	gcc-2_8_1-980928:1.22
	gcc-2_8_1-980813:1.22
	gcc-2_8_1-980811:1.22
	gcc-2_8_1-980718:1.22
	gcc-2_8_1-980705:1.22
	gcc-2_8_1-980627:1.22
	gcc-2_8_1-980609:1.22
	gcc-2_8_1-980608:1.22
	gcc-2_8_1-980529:1.22
	gcc-2_8_1-980525:1.22
	gcc-2_8_1-980513:1.22
	gcc-2_8_1-980502:1.22
	gcc-2_8_1-980426:1.22
	gcc-2_8_1-980419:1.22
	gcc-2_8_1-980413:1.22
	gcc-2_8_1-980412:1.22
	gcc-2_8_1-980407:1.22
	gcc-2_8_1-980401:1.22
	gcc_2_8_1-980315:1.22
	gcc-2_8_1-RELEASE:1.22;
locks; strict;
comment	@# @;


1.22
date	96.06.10.15.44.40;	author kenner;	state Exp;
branches;
next	1.21;

1.21
date	96.01.17.22.37.37;	author dje;	state Exp;
branches;
next	1.20;

1.20
date	96.01.16.18.48.08;	author dje;	state Exp;
branches;
next	1.19;

1.19
date	96.01.06.21.16.05;	author dje;	state Exp;
branches;
next	1.18;

1.18
date	95.12.05.03.26.37;	author merrill;	state Exp;
branches;
next	1.17;

1.17
date	95.12.04.17.58.56;	author ian;	state Exp;
branches;
next	1.16;

1.16
date	95.11.30.03.04.51;	author wilson;	state Exp;
branches;
next	1.15;

1.15
date	95.03.13.23.11.08;	author merrill;	state Exp;
branches;
next	1.14;

1.14
date	95.01.12.18.36.12;	author wilson;	state Exp;
branches;
next	1.13;

1.13
date	94.12.06.20.09.44;	author merrill;	state Exp;
branches;
next	1.12;

1.12
date	94.11.19.04.09.58;	author merrill;	state Exp;
branches;
next	1.11;

1.11
date	93.12.12.12.52.57;	author kenner;	state Exp;
branches;
next	1.10;

1.10
date	93.09.09.20.05.26;	author ian;	state Exp;
branches;
next	1.9;

1.9
date	93.02.02.20.17.24;	author wilson;	state Exp;
branches;
next	1.8;

1.8
date	93.01.06.06.37.55;	author jrv;	state Exp;
branches;
next	1.7;

1.7
date	92.12.31.22.34.56;	author wilson;	state Exp;
branches;
next	1.6;

1.6
date	92.11.01.08.30.35;	author rms;	state Exp;
branches;
next	1.5;

1.5
date	92.10.13.18.56.57;	author brendan;	state Exp;
branches;
next	1.4;

1.4
date	92.09.02.04.16.01;	author rms;	state Exp;
branches;
next	1.3;

1.3
date	92.07.21.18.31.13;	author rms;	state Exp;
branches;
next	1.2;

1.2
date	92.07.20.04.10.32;	author rms;	state Exp;
branches;
next	1.1;

1.1
date	92.07.20.04.05.11;	author rms;	state Exp;
branches;
next	;


desc
@# we need startup files for solaris, since we don't get them with the system
@


1.22
log
@(gmon.o): Depend on stmp-int-hdrs.
(crt1.o, crti.o, crtn.o, gcrt1.o): Depend on $(GCC_PASSES).
@
text
@# we need to supply our own assembly versions of libgcc1.c files,
# since the user may not have native 'cc' available

LIBGCC1 =
CROSS_LIBGCC1 =
LIBGCC1_TEST =

# gmon build rule:
gmon.o:	$(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H) stmp-int-hdrs
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \
		-c $(srcdir)/config/sparc/gmon-sol2.c -o gmon.o

# Assemble startup files.
crt1.o: $(srcdir)/config/sparc/sol2-c1.asm $(GCC_PASSES)
	$(GCC_FOR_TARGET) -c -o crt1.o -x assembler $(srcdir)/config/sparc/sol2-c1.asm
crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES)
	$(GCC_FOR_TARGET) -c -o crti.o -x assembler $(srcdir)/config/sparc/sol2-ci.asm
crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES)
	$(GCC_FOR_TARGET) -c -o crtn.o -x assembler $(srcdir)/config/sparc/sol2-cn.asm
gcrt1.o: $(srcdir)/config/sparc/sol2-g1.asm $(GCC_PASSES)
	$(GCC_FOR_TARGET) -c -o gcrt1.o -x assembler $(srcdir)/config/sparc/sol2-g1.asm

# We need to use -fPIC when we are using gcc to compile the routines in
# crtstuff.c.  This is only really needed when we are going to use gcc/g++
# to produce a shared library, but since we don't know ahead of time when
# we will be doing that, we just always use -fPIC when compiling the
# routines in crtstuff.c.

CRTSTUFF_T_CFLAGS = -fPIC
TARGET_LIBGCC2_CFLAGS = -fPIC
@


1.21
log
@	* sparc/{t-sol2,t-sunos40,t-sunos41}: Define away LIBGCC1_TEST
	so that cross compilers targeted at these systems will build.
@
text
@d9 1
a9 1
gmon.o:	$(srcdir)/config/sparc/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
d14 1
a14 1
crt1.o: $(srcdir)/config/sparc/sol2-c1.asm
d16 1
a16 1
crti.o: $(srcdir)/config/sparc/sol2-ci.asm
d18 1
a18 1
crtn.o: $(srcdir)/config/sparc/sol2-cn.asm
d20 1
a20 1
gcrt1.o: $(srcdir)/config/sparc/sol2-g1.asm
@


1.20
log
@	* i386/t-sol2 (crt[1in].o): Add missing -c.
	* sparc/t-sol2 (crt[1in].o,gcrt1.o): Likewise.
	Source files are assembler.
@
text
@d6 1
@


1.19
log
@(crt*.o,gcrt1.o): Replace $(AS) with $(GCC_FOR_TARGET).
@
text
@d14 1
a14 1
	$(GCC_FOR_TARGET) -o crt1.o $(srcdir)/config/sparc/sol2-c1.asm
d16 1
a16 1
	$(GCC_FOR_TARGET) -o crti.o $(srcdir)/config/sparc/sol2-ci.asm
d18 1
a18 1
	$(GCC_FOR_TARGET) -o crtn.o $(srcdir)/config/sparc/sol2-cn.asm
d20 1
a20 1
	$(GCC_FOR_TARGET) -o gcrt1.o $(srcdir)/config/sparc/sol2-g1.asm
@


1.18
log
@(TARGET_LIBGCC2_CFLAGS): Use -fPIC.
@
text
@d14 1
a14 1
	$(AS) -o crt1.o $(srcdir)/config/sparc/sol2-c1.asm
d16 1
a16 1
	$(AS) -o crti.o $(srcdir)/config/sparc/sol2-ci.asm
d18 1
a18 1
	$(AS) -o crtn.o $(srcdir)/config/sparc/sol2-cn.asm
d20 1
a20 1
	$(AS) -o gcrt1.o $(srcdir)/config/sparc/sol2-g1.asm
@


1.17
log
@Use -fPIC unconditionally
@
text
@d29 1
@


1.16
log
@Add make rule for gcrt1.o.
@
text
@d28 1
a28 5
# Since the GNU assembler doesn't support PIC yet, we need to force gcc to
# use the native assembler when building crtstuff.  If we're a
# cross-compiler, just give up on using PIC.

CRTSTUFF_T_CFLAGS = `if [ -z "$(CROSS)" ]; then echo -fPIC -B/usr/ccs/bin/; fi`
@


1.15
log
@Use -fPIC instead of -fpic
@
text
@d19 2
@


1.14
log
@(LIBGCC1, CROSS_LIBGCC1): Define to empty instead of to libgcc1.null.
@
text
@d20 1
a20 1
# We need to use -fpic when we are using gcc to compile the routines in
d23 1
a23 1
# we will be doing that, we just always use -fpic when compiling the
d30 1
a30 1
CRTSTUFF_T_CFLAGS = `if [ -z "$(CROSS)" ]; then echo -fpic -B/usr/ccs/bin/; fi`
@


1.13
log
@Mon Dec  5 19:32:48 1994  Jason Merrill  <jason@@phydeaux.cygnus.com>

        * sparc/t-sol2 (CRTSTUFF_T_CFLAGS): Don't use PIC if
        cross-compiling, use the native assembler otherwise.
@
text
@d4 2
a5 2
LIBGCC1 = libgcc1.null
CROSS_LIBGCC1 = libgcc1.null
@


1.12
log
@Shared library support.
@
text
@d26 5
a30 1
CRTSTUFF_T_CFLAGS = -fpic
@


1.11
log
@Delete EXTRA_PARTS.
@
text
@d19 8
@


1.10
log
@Set CROSS_LIBGCC1 to be libgcc1.null
@
text
@a0 4
# we need startup files for solaris, since we don't get them with the system

EXTRA_PARTS=crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o

@


1.9
log
@(INSTALL_TARGET): Delete.
@
text
@d9 1
@


1.8
log
@Use new file names for included sparc files.
@
text
@a7 3
# ??? This is wrong!
INSTALL_TARGET = install-cross

@


1.7
log
@(gmon.o, crt*.o): Change config to $(srcdir)/config.
@
text
@d14 1
a14 1
gmon.o:	$(srcdir)/config/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
d16 1
a16 1
		-c $(srcdir)/config/gmon-sol2.c -o gmon.o
d19 6
a24 6
crt1.o: $(srcdir)/config/sol2-c1.asm
	$(AS) -o crt1.o $(srcdir)/config/sol2-c1.asm
crti.o: $(srcdir)/config/sol2-ci.asm
	$(AS) -o crti.o $(srcdir)/config/sol2-ci.asm
crtn.o: $(srcdir)/config/sol2-cn.asm
	$(AS) -o crtn.o $(srcdir)/config/sol2-cn.asm
@


1.6
log
@sol2-c1.asm, sol2-ci.asm, sol2-cn.asm have been renamed from sol2-crt...
@
text
@d14 1
a14 1
gmon.o:	config/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
d19 1
a19 1
crt1.o: config/sol2-c1.asm
d21 1
a21 1
crti.o: config/sol2-ci.asm
d23 1
a23 1
crtn.o: config/sol2-cn.asm
@


1.5
log
@        * spc-sol2.h (STARTFILE_SPEC): Add crtbegin.o.
        (LIB_SPEC): Add crtend.o for running ctors/dtors.
        * t-sol2 (EXTRA_PARTS): Add crtbegin.o and crtend.o for C++.
        (FIXINCLUDES): Deleted.
        * configure (sparc-*-solaris2*): Set fixincludes here.
@
text
@d19 6
a24 6
crt1.o: config/sol2-crt1.asm
	$(AS) -o crt1.o $(srcdir)/config/sol2-crt1.asm
crti.o: config/sol2-crti.asm
	$(AS) -o crti.o $(srcdir)/config/sol2-crti.asm
crtn.o: config/sol2-crtn.asm
	$(AS) -o crtn.o $(srcdir)/config/sol2-crtn.asm
@


1.4
log
@(gmon.o): gmon-sol2.c is in config/.
@
text
@d3 1
a3 5
EXTRA_PARTS=crt1.o crti.o crtn.o gmon.o

# For svr4 we run the special svr4 fixincludes script.

FIXINCLUDES=fixinc.svr4
@


1.3
log
@entered into RCS
@
text
@d18 1
a18 1
gmon.o:	gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
d20 1
a20 1
		-c $(srcdir)/gmon-sol2.c -o gmon.o
@


1.2
log
@*** empty log message ***
@
text
@d23 6
a28 6
crt1.o: crt1.s
	$(CC) -c $(srcdir)/crt1.s 
crti.o: crti.s
	$(CC) -c $(srcdir)/crti.s
crtn.o: crtn.s
	$(CC) -c $(srcdir)/crtn.s
@


1.1
log
@Initial revision
@
text
@d21 8
@
