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


1.12
date	97.06.10.21.27.51;	author meissner;	state Exp;
branches;
next	1.11;

1.11
date	96.12.12.20.55.56;	author meissner;	state Exp;
branches;
next	1.10;

1.10
date	96.11.19.22.08.04;	author meissner;	state Exp;
branches;
next	1.9;

1.9
date	96.10.31.16.51.25;	author meissner;	state Exp;
branches;
next	1.8;

1.8
date	96.10.28.15.17.18;	author meissner;	state Exp;
branches;
next	1.7;

1.7
date	96.06.04.14.02.51;	author meissner;	state Exp;
branches;
next	1.6;

1.6
date	96.05.31.19.02.31;	author meissner;	state Exp;
branches;
next	1.5;

1.5
date	96.04.24.16.54.48;	author meissner;	state Exp;
branches;
next	1.4;

1.4
date	96.01.10.16.45.21;	author meissner;	state Exp;
branches;
next	1.3;

1.3
date	95.11.30.20.02.16;	author meissner;	state Exp;
branches;
next	1.2;

1.2
date	95.05.10.20.30.43;	author meissner;	state Exp;
branches;
next	1.1;

1.1
date	95.05.10.18.26.30;	author meissner;	state Exp;
branches;
next	;


desc
@Target makefile fragment for PowerPC on V.4.
@


1.12
log
@Build libgcc.a with -mstrict-align
@
text
@# PowerPC support without gas

# Build libgcc.a with different options.  If no gas support, don't build
# explicit little endian or big endian libraries, since it depends on the
# -mbig/-mlittle switches passed to gas.  The -mrelocatable support also needs
# -mrelocatable passed to gas, so don't use it either.

MULTILIB_OPTIONS	= msoft-float
MULTILIB_DIRNAMES	= nof
MULTILIB_EXCEPTIONS	=
MULTILIB_EXTRA_OPTS	= mstrict-align
MULTILIB_MATCHES	= ${MULTILIB_MATCHES_FLOAT}
@


1.11
log
@Add @@plt if -fpic; Fix double->int conversions if stack > 32k; Redo t-* files; Fix trampolines on System V systems
@
text
@d11 1
a11 1
MULTILIB_EXTRA_OPTS	=
@


1.10
log
@Use configure to set EXTRA_HEADERS, not t-* file
@
text
@d1 1
a1 3
# Do not build libgcc1.
LIBGCC1 =
CROSS_LIBGCC1 =
a2 17
# These are really part of libgcc1, but this will cause them to be
# built correctly, so... [taken from t-sparclite]
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c eabi.S eabi-ctors.c

dp-bit.c: $(srcdir)/config/fp-bit.c
	cat $(srcdir)/config/fp-bit.c > dp-bit.c

fp-bit.c: $(srcdir)/config/fp-bit.c
	echo '#define FLOAT' > fp-bit.c
	cat $(srcdir)/config/fp-bit.c >> fp-bit.c

eabi.S: $(srcdir)/config/rs6000/eabi.asm
	cat $(srcdir)/config/rs6000/eabi.asm > eabi.S

eabi-ctors.c: $(srcdir)/config/rs6000/eabi-ctors.c
	cat $(srcdir)/config/rs6000/eabi-ctors.c > eabi-ctors.c

d7 1
a9 1
MULTILIB_MATCHES	=
d11 2
a12 39

LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
EXTRA_MULTILIB_PARTS = ecrti$(objext) ecrtn$(objext) scrt0$(objext) scrti$(objext) scrtn$(objext)

# For eabigas we build {e,s}crti.o and {e,s}crtn.o which serve to add begin and
# end labels to all of the special sections used when we link using gcc.

# Assemble startup files.
ecrti.S: $(srcdir)/config/rs6000/eabi-ci.asm
	cat $(srcdir)/config/rs6000/eabi-ci.asm >ecrti.S

ecrtn.S: $(srcdir)/config/rs6000/eabi-cn.asm
	cat $(srcdir)/config/rs6000/eabi-cn.asm >ecrtn.S

scrti.S: $(srcdir)/config/rs6000/sol-ci.asm
	cat $(srcdir)/config/rs6000/sol-ci.asm >scrti.S

scrtn.S: $(srcdir)/config/rs6000/sol-cn.asm
	cat $(srcdir)/config/rs6000/sol-cn.asm >scrtn.S

scrt0.c: $(srcdir)/config/rs6000/sol-c0.c
	cat $(srcdir)/config/rs6000/sol-c0.c >scrt0.c

# Build multiple copies of ?crt{i,n}.o, one for each target switch.
$(T)ecrti$(objext): ecrti.S
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)ecrti$(objext)
								         
$(T)ecrtn$(objext): ecrtn.S					         
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrtn.S -o $(T)ecrtn$(objext)
								         
$(T)scrti$(objext): scrti.S					         
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)scrti$(objext)
								         
$(T)scrtn$(objext): scrtn.S					         
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)scrtn$(objext)
								         
$(T)scrt0$(objext): scrt0.c					         
	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) -c ecrti.S -o $(T)scrt0$(objext)
@


1.9
log
@Use EXTRA_MULTILIB_PARTS
@
text
@a4 2
EXTRA_HEADERS = $(srcdir)/ginclude/ppc-asm.h

@


1.8
log
@Work with latest changes to Makefile; -fpic does not need a TOC area
@
text
@d33 3
a35 2
LIBGCC = stmp-multilib stmp-crt
INSTALL_LIBGCC = install-multilib install-crt
d37 1
a37 1
# For eabi we build crti.o and crtn.o which serve to add begin and
d56 15
a70 31
# Build multiple copies of crt{i,n}.o, one for each target switch.
stmp-crt: ecrti.S ecrtn.S scrti.S scrtn.S scrt0.c $(GCC_PASSES) $(EXTRA_HEADERS) stmp-multilib config.status
	for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
	  dir=`echo $$i | sed -e 's/;.*$$//'`; \
	  flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@@/ -/g'`; \
	  $(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
	    LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS) $${flags}" \
	    dir="$${dir}" stmp-crt-sub; \
	  if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
	done
	touch stmp-crt

# Subroutine of stmp-crt so make -n works.
stmp-crt-sub:
	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/ecrti.o ecrti.S
	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/ecrtn.o ecrtn.S
	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/scrti.o scrti.S
	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/scrtn.o scrtn.S
	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o $(dir)/scrt0.o scrt0.c

# Install multiple versions of crt[in].o
install-crt: stmp-crt installdirs install-multilib
	for i in `$(GCC_FOR_TARGET) --print-multi-lib`; do \
	  dir=`echo $$i | sed -e 's/;.*$$//'`; \
	  rm -f $(libsubdir)/$${dir}/[es]crt[in0].o; \
	  $(INSTALL_DATA) $${dir}/ecrti.o $(libsubdir)/$${dir}/ecrti.o; \
	  $(INSTALL_DATA) $${dir}/ecrtn.o $(libsubdir)/$${dir}/ecrtn.o; \
	  $(INSTALL_DATA) $${dir}/scrti.o $(libsubdir)/$${dir}/scrti.o; \
	  $(INSTALL_DATA) $${dir}/scrtn.o $(libsubdir)/$${dir}/scrtn.o; \
	  $(INSTALL_DATA) $${dir}/scrt0.o $(libsubdir)/$${dir}/scrt0.o; \
	done
@


1.7
log
@Touch up solaris port
@
text
@d76 1
a76 1
install-crt: stmp-crt install-dir install-multilib
@


1.6
log
@Solaris fixes
@
text
@d28 3
a30 17
MULTILIB_OPTIONS	= msoft-float \
			  mcall-sysv-noeabi/mcall-sysv-eabi/mcall-aix/mcall-solaris

MULTILIB_DIRNAMES	= nof \
			  le be \
			  cs ce ca sol

MULTILIB_MATCHES	= mlittle=mlittle-endian \
			  mbig=mbig-endian \
			  mbig=mcall-linux \
			  msoft-float=mcpu?403 \
			  msoft-float=mcpu?821 \
			  msoft-float=mcpu?860 \
			  mcall-sysv-noeabi=mcall-linux \
			  mcall-sysv-eabi=meabi \
			  mcall-sysv-noeabi=mno-eabi

@


1.5
log
@Solaris, Linux changes
@
text
@d29 1
a29 1
			  mcall-sysv-noeabi/mcall-sysv-eabi/mcall-aix
d33 1
a33 1
			  cs ce ca
a36 1
			  mlittle=mcall-solaris \
a40 1
			  mcall-sysv-noeabi=mcall-solaris \
@


1.4
log
@Make powerpc-eabi work again
@
text
@d9 1
a9 1
LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c
d18 6
d26 4
a29 1
# -mbig/-mlittle switches passed to gas.
d31 9
a39 3
MULTILIB_OPTIONS	= msoft-float
MULTILIB_DIRNAMES	= soft-float
MULTILIB_MATCHES	= msoft-float=mcpu?403 \
d41 49
a89 1
			  msoft-float=mcpu?860
d91 11
a101 2
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
@


1.3
log
@update PowerPC support
@
text
@d25 2
a26 2
			  msoft-float=mcpu?mpc403 \
			  msoft-float=mcpu?ppc403
@


1.2
log
@Do not build -mmultiple/-mno-multiple libgcc.a variants
@
text
@d5 2
@


1.1
log
@Add little endian PowerPC support.
@
text
@d20 2
a21 6
MULTILIB_OPTIONS	= msoft-float \
			  mmultiple/mno-multiple

MULTILIB_DIRNAMES	= soft-float \
			  multiple no-multiple

@
