aboutsummaryrefslogtreecommitdiff
path: root/devel/tigcc
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2006-06-28 07:08:02 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2006-06-28 07:08:02 +0000
commit1d9873850e4280608dc5bd2898693341e0ffd11b (patch)
tree6d8caf03991f7f413ba3c3c77184f71599eaf391 /devel/tigcc
parent21e357d16e185231f39df137d381c5be8538002c (diff)
downloadports-1d9873850e4280608dc5bd2898693341e0ffd11b.tar.gz
ports-1d9873850e4280608dc5bd2898693341e0ffd11b.zip
devel/tigcc: ports clean-up and bump PORTREVISION
PR: ports/98833 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=166497
Diffstat (limited to 'devel/tigcc')
-rw-r--r--devel/tigcc/Makefile114
-rw-r--r--devel/tigcc/distinfo12
-rw-r--r--devel/tigcc/files/patch-gnu-gcc-4.0.2-gcc-mklibgcc.in845
-rw-r--r--devel/tigcc/files/patch-scripts266
-rw-r--r--devel/tigcc/files/patch-tigcc-sources-a68k-A68kdef.h (renamed from devel/tigcc/files/patch-sources-a68k-A68kdef.h)4
-rw-r--r--devel/tigcc/files/patch-tigcc-sources-gcc-gas-2.16-tigcc-patch.diff11
-rw-r--r--devel/tigcc/pkg-message16
-rw-r--r--devel/tigcc/pkg-plist4
8 files changed, 977 insertions, 295 deletions
diff --git a/devel/tigcc/Makefile b/devel/tigcc/Makefile
index 68ee8b20c282..b274de9f3d15 100644
--- a/devel/tigcc/Makefile
+++ b/devel/tigcc/Makefile
@@ -7,37 +7,115 @@
PORTNAME= tigcc
PORTVERSION= 0.96.b6
+PORTREVISION= 1
CATEGORIES= devel
-MASTER_SITES= http://tigcc.ticalc.org/sources/:src \
- http://tigcc.ticalc.org/linux/:linux
-DISTNAME= tigcc_src
-DISTFILES= tigcc_src.tar.bz2:linux gcc-4.0.2.tar.bz2:src gas-2.16.1.tar.bz2:src
+MASTER_SITES= ${MASTER_SITE_GNU}:gcc,gas \
+ http://tigcc.ticalc.org/linux/:tigcc
+MASTER_SITE_SUBDIR= gcc/gcc-4.0.2/:gcc \
+ binutils/:gas
+DISTFILES= gcc-core-4.0.2.tar.bz2:gcc \
+ binutils-2.16.1.tar.bz2:gas \
+ tigcc_src.tar.bz2:tigcc
MAINTAINER= walkingshadow@grummel.net
COMMENT= C compiler for the TI89, 92, and 92+ calculators
-BUILD_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog \
- bash:${PORTSDIR}/shells/bash
-
-IS_INTERACTIVE= yes
USE_BZIP2= yes
+USE_GMAKE= yes
NO_WRKSUBDIR= yes
-post-patch:
- @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/scripts/Install
-
do-extract:
@${MKDIR} ${WRKSRC}
- @${TAR} xjf ${DISTDIR}/tigcc_src.tar.bz2 -C ${WRKSRC}
+ @${MKDIR} ${WRKSRC}/tigcc
+ @${TAR} xjf ${DISTDIR}/tigcc_src.tar.bz2 -C ${WRKSRC}/tigcc/
+ @${MKDIR} ${WRKSRC}/gnu
+ @${TAR} xjf ${DISTDIR}/gcc-core-4.0.2.tar.bz2 -C ${WRKSRC}/gnu/
+ @${TAR} xjf ${DISTDIR}/binutils-2.16.1.tar.bz2 -C ${WRKSRC}/gnu/
+
+post-patch:
+ @cd ${WRKSRC}/gnu/binutils-2.16.1; ${PATCH} -p1 < ${WRKSRC}/tigcc/sources/gcc/gas-2.16-tigcc-patch.diff
+ @cd ${WRKSRC}/gnu/gcc-4.0.2; ${PATCH} -p1 < ${WRKSRC}/tigcc/sources/gcc/gcc-4.0-tigcc-patch.diff
do-build:
- @${MKDIR} ${WRKSRC}/download
- @${TAR} xjf ${DISTDIR}/gcc-4.0.2.tar.bz2 -C ${WRKSRC}/download
- @${TAR} xjf ${DISTDIR}/gas-2.16.1.tar.bz2 -C ${WRKSRC}/download
- @${LN} -s ${WRKSRC}/download/gcc-4.0.2 ${WRKSRC}/download/gcc.ti
- @${LN} -s ${WRKSRC}/download/binutils-2.16.1 ${WRKSRC}/download/binutils.ti
+ @${ECHO} Building GNU AS
+ @${MKDIR} ${WRKSRC}/gnu/binutils_build
+ @cd ${WRKSRC}/gnu/binutils_build; \
+ ${WRKSRC}/gnu/binutils-2.16.1/configure --disable-serial-configure --target=m68k-coff --disable-shared --enable-static --disable-multilib --disable-nls --disable-win32-registry
+ @cd ${WRKSRC}/gnu/binutils_build; ${GMAKE}
+
+ @${ECHO} Building the GNU C COMPILER
+ @${MKDIR} ${WRKSRC}/gnu/gcc_build
+ @cd ${WRKSRC}/gnu/gcc_build; \
+ ${WRKSRC}/gnu/gcc-4.0.2/configure --target=m68k-coff --with-gnu-as --disable-nls --disable-multilib --disable-shared --enable-static --disable-threads --disable-win32-registry --disable-checking --disable-werror --disable-pch --disable-mudflap
+ @cd ${WRKSRC}/gnu/gcc_build; ${GMAKE}
+
+ @${ECHO} Building A68K
+ @cd ${WRKSRC}/tigcc/sources/a68k; ${GMAKE}
+
+ @${ECHO} Building tools required by TIGCC
+ @cd ${WRKSRC}/tigcc/sources/ld-tigcc; ${GMAKE}
+ @cd ${WRKSRC}/tigcc/sources/patcher/src; ${GMAKE}
+ @cd ${WRKSRC}/tigcc/tt; ./makelinux.sh
+
+ @${ECHO} Building TIGCC
+ @cd ${WRKSRC}/tigcc/sources/tigcc/src; ${GMAKE}
+
+ @${ECHO} Building TPRBUILDER
+ @cd ${WRKSRC}/tigcc/sources/tprbuilder/src; ${GMAKE}
do-install:
- (cd ${WRKSRC}/scripts; ./Install)
+ @${MKDIR} ${PREFIX}/tigcc
+ @${MKDIR} ${PREFIX}/tigcc/bin
+
+ @${ECHO} Installing GNU AS
+ @${CP} ${WRKSRC}/gnu/binutils_build/gas/as-new ${PREFIX}/tigcc/bin/as
+
+ @${ECHO} Installing the GNU C COMPILER
+ @${CP} ${WRKSRC}/gnu/gcc_build/gcc/cc1 ${PREFIX}/tigcc/bin/cc1
+ @${CP} ${WRKSRC}/gnu/gcc_build/gcc/xgcc ${PREFIX}/tigcc/bin/gcc
+
+ @${ECHO} Installing A68K
+ @${CP} ${WRKSRC}/tigcc/sources/a68k/A68k ${PREFIX}/tigcc/bin/a68k
+
+ @${ECHO} Installing tools required by TIGCC
+ @${CP} ${WRKSRC}/tigcc/sources/ld-tigcc/ld-tigcc ${PREFIX}/tigcc/bin/ld-tigcc
+ @${CP} ${WRKSRC}/tigcc/sources/ld-tigcc/ar-tigcc ${PREFIX}/tigcc/bin/ar-tigcc
+ @${CP} ${WRKSRC}/tigcc/sources/patcher/src/patcher ${PREFIX}/tigcc/bin/patcher
+ @${CP} ${WRKSRC}/tigcc/tt/linuxbin/* ${PREFIX}/tigcc/bin/
+
+ @${ECHO} Installing TIGCC
+ @${CP} ${WRKSRC}/tigcc/sources/tigcc/src/tigcc ${PREFIX}/tigcc/bin/tigcc
+
+ @${ECHO} Installing TPRBUILDER
+ @${CP} ${WRKSRC}/tigcc/sources/tprbuilder/src/tprbuilder ${PREFIX}/tigcc/bin/tprbuilder
+
+ @${ECHO} Installing TIGCCLIB
+ @${MKDIR} ${PREFIX}/tigcc/include
+ @${CP} -R ${WRKSRC}/tigcc/tigcclib/include ${PREFIX}/tigcc/
+ @${LN} -s ${PREFIX}/tigcc/include/asm/os.h ${PREFIX}/tigcc/include/asm/OS.h
+ @${MKDIR} ${PREFIX}/tigcc/lib
+ @${CP} -R ${WRKSRC}/tigcc/tigcclib/lib ${PREFIX}/tigcc/
+ @${MKDIR} ${PREFIX}/tigcc/examples
+ @${CP} -R ${WRKSRC}/tigcc/tigcclib/examples ${PREFIX}/tigcc/
+
+ @${ECHO} Installing the TIGCC documentation
+ @${MKDIR} ${PREFIX}/tigcc/doc
+ @cd ${WRKSRC}/tigcc; ${CP} AUTHORS BUGS CHANGELOG COPYING DIRECTORIES HOWTO INSTALL README README.linux README.osX ${PREFIX}/tigcc/doc/
+ @${MKDIR} ${PREFIX}/tigcc/doc/a68k
+ @cd ${WRKSRC}/tigcc/sources/a68k; ${CP} Bugs.txt Doc.txt History.txt ToDo.txt ${PREFIX}/tigcc/doc/a68k/
+ @${MKDIR} ${PREFIX}/tigcc/doc/tigcc
+ @cd ${WRKSRC}/tigcc; ${CP} AUTHORS COPYING CHANGELOG README ${PREFIX}/tigcc/doc/tigcc/
+ @${MKDIR} ${PREFIX}/tigcc/doc/tprbuilder
+ @cd ${WRKSRC}/tigcc/sources/tprbuilder; ${CP} AUTHORS COPYING ChangeLog README ${PREFIX}/tigcc/doc/tprbuilder/
+ @${MKDIR} ${PREFIX}/tigcc/doc/patcher
+ @cd ${WRKSRC}/tigcc/sources/patcher; ${CP} AUTHORS COPYING ChangeLog README ${PREFIX}/tigcc/doc/patcher/
+ @${CP} -R ${WRKSRC}/tigcc/tigcclib/doc/html ${PREFIX}/tigcc/doc/
+ @${LN} -s ${PREFIX}/tigcc/doc/html ${PREFIX}/tigcc/doc/tigcclib
+ @${CP} ${WRKSRC}/tigcc/tigcclib/doc/converter/tigccdoc ${PREFIX}/tigcc/bin/
+ @${MKDIR} ${PREFIX}/tigcc/doc/tools
+ @cd ${WRKSRC}/tigcc/tt; ${CP} history.txt linux_readme.txt readme.txt tooldocs.txt ${PREFIX}/tigcc/doc/tools/
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/devel/tigcc/distinfo b/devel/tigcc/distinfo
index 6cc44077a1c1..8d4bf25b33b3 100644
--- a/devel/tigcc/distinfo
+++ b/devel/tigcc/distinfo
@@ -1,9 +1,9 @@
+MD5 (gcc-core-4.0.2.tar.bz2) = f7781398ada62ba255486673e6274b26
+SHA256 (gcc-core-4.0.2.tar.bz2) = 2c03665d14bbfdf376cc5e4950955df0e8cd0396820ec18b40a852a71580dd09
+SIZE (gcc-core-4.0.2.tar.bz2) = 15314870
+MD5 (binutils-2.16.1.tar.bz2) = 6a9d529efb285071dad10e1f3d2b2967
+SHA256 (binutils-2.16.1.tar.bz2) = 351a6846ee179a37ed87a487971547159a7f4f92a1dec598c727f184a0de61ae
+SIZE (binutils-2.16.1.tar.bz2) = 12549917
MD5 (tigcc_src.tar.bz2) = 8e3b5bccc5b6db920f6ae5206166de23
SHA256 (tigcc_src.tar.bz2) = 6bf55b375cee57685a2958cd18735f1be32c176ce043ac5444b2f80e7d5c2f2e
SIZE (tigcc_src.tar.bz2) = 3307224
-MD5 (gcc-4.0.2.tar.bz2) = 2755dbe9fe58794f463b7451f570765c
-SHA256 (gcc-4.0.2.tar.bz2) = df57704d39266220744d65f55a254951f8e6ca5ac2e2acd8ec8f6bc0db540e1f
-SIZE (gcc-4.0.2.tar.bz2) = 7199622
-MD5 (gas-2.16.1.tar.bz2) = 0d9f044b6cf75b31d9d39103bf2cb288
-SHA256 (gas-2.16.1.tar.bz2) = 1c66ba40a497efa0e4c5de9f6b6444d56242c211c5fe209d3b818fdb857fce50
-SIZE (gas-2.16.1.tar.bz2) = 2634551
diff --git a/devel/tigcc/files/patch-gnu-gcc-4.0.2-gcc-mklibgcc.in b/devel/tigcc/files/patch-gnu-gcc-4.0.2-gcc-mklibgcc.in
new file mode 100644
index 000000000000..017db36aaafb
--- /dev/null
+++ b/devel/tigcc/files/patch-gnu-gcc-4.0.2-gcc-mklibgcc.in
@@ -0,0 +1,845 @@
+diff -ur gcc-4.0.2_orig/gcc/mklibgcc.in gcc-4.0.2/gcc/mklibgcc.in
+--- gcc-4.0.2_orig/gcc/mklibgcc.in Thu Feb 24 22:33:03 2005
++++ gnu/gcc-4.0.2/gcc/mklibgcc.in Sat Jun 10 19:49:37 2006
+@@ -1,840 +1,2 @@
+ #!/bin/sh
+-# Construct makefile for libgcc.
+-# Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+-#
+-# This file is part of GCC.
+-
+-# Arguments, taken from the environment, since there are a lot
+-# of them, and positional args becomes quite ugly.
+-#
+-# objext
+-# LIB1ASMFUNCS
+-# LIB2FUNCS_ST
+-# LIBGCOV
+-# LIB2ADD
+-# LIB2ADD_ST
+-# LIB2ADDEH
+-# LIB2ADDEHSTATIC
+-# LIB2ADDEHSHARED
+-# LIB2ADDEHDEP
+-# LIBUNWIND
+-# LIBUNWINDDEP
+-# SHLIBUNWIND_LINK
+-# SHLIBUNWIND_INSTALL
+-# FPBIT
+-# FPBIT_FUNCS
+-# LIB2_DIVMOD_FUNCS
+-# DPBIT
+-# DPBIT_FUNCS
+-# TPBIT
+-# TPBIT_FUNCS
+-# LIBGCC
+-# MULTILIBS
+-# EXTRA_MULTILIB_PARTS
+-# SHLIB_EXT
+-# SHLIB_LINK
+-# SHLIB_MKMAP
+-# SHLIB_MKMAP_OPTS
+-# SHLIB_MAPFILES
+-# SHLIB_NM_FLAGS
+-# SHLIB_INSTALL
+-# MULTILIB_OSDIRNAMES
+-# ASM_HIDDEN_OP
+-
+-# Make needs VPATH to be literal.
+-echo 'srcdir = @srcdir@'
+-echo 'VPATH = @srcdir@'
+-echo 'EQ = ='
+-echo 'objects = $(filter %'$objext',$^)'
+-echo
+-echo '# Dependencies are accumulated as we go.'
+-echo 'all: stmp-dirs'
+-echo 'dirs = libgcc'
+-echo
+-
+-# Library members defined in libgcc2.c.
+-lib2funcs='_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3
+- _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi
+- _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi
+- _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf _clear_cache
+- _enable_execute_stack _trampoline __main _absvsi2 _absvdi2 _addvsi3
+- _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 _ctors
+- _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 _ctzsi2 _ctzdi2 _popcount_tab
+- _popcountsi2 _popcountdi2 _paritysi2 _paritydi2 _powisf2 _powidf2
+- _powixf2 _powitf2 _mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3
+- _divxc3 _divtc3'
+-
+-# Disable SHLIB_LINK if shared libgcc not enabled.
+-if [ "@enable_shared@" = "no" ]; then
+- SHLIB_LINK=""
+-fi
+-
+-# Build lines.
+-
+-gcc_compile='$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES)'
+-gcc_s_compile="$gcc_compile -DSHARED"
+-make_compile='$(MAKE) GCC_FOR_TARGET="$(GCC_FOR_TARGET)" \
+- AR_FOR_TARGET="$(AR_FOR_TARGET)" \
+- AR_CREATE_FOR_TARGET="$(AR_CREATE_FOR_TARGET)" \
+- AR_EXTRACT_FOR_TARGET="$(AR_EXTRACT_FOR_TARGET)" \
+- AR_FLAGS_FOR_TARGET="$(AR_FLAGS_FOR_TARGET)" \
+- CC="$(CC)" CFLAGS="$(CFLAGS)" \
+- BUILD_PREFIX="$(BUILD_PREFIX)" \
+- BUILD_PREFIX_1="$(BUILD_PREFIX_1)" \
+- LANGUAGES="$(LANGUAGES)"'
+-
+-# Generic dependencies for libgcc
+-libgcc_dep='$(CONFIG_H) coretypes.h $(TM_H) $(MACHMODE_H) longlong.h config.status stmp-int-hdrs tsystem.h'
+-
+-# Dependencies for libgcc2.c
+-libgcc2_c_dep='stmp-dirs $(srcdir)/libgcc2.c $(srcdir)/libgcc2.h gbl-ctors.h'" $libgcc_dep"
+-
+-# Dependencies for libgcov.c
+-libgcov_c_dep='stmp-dirs $(srcdir)/libgcov.c $(srcdir)/gcov-io.h $(srcdir)/gcov-io.c gcov-iov.h'" $libgcc_dep"
+-
+-# Dependencies for fp-bit.c
+-fpbit_c_dep='stmp-dirs config.status tsystem.h'
+-
+-# Flag whether we need eh_dummy.c
+-need_eh_dummy=
+-
+-if [ "$SHLIB_LINK" ]; then
+- # Test -fvisibility=hidden. We need both a -fvisibility=hidden on
+- # the command line, and a #define to prevent libgcc2.h etc from
+- # overriding that with #pragmas. The dance with @ is to prevent
+- # echo from seeing anything it might take for an option.
+- # echo turns the \$\$\$\$ into $$$$ and when make sees it it
+- # becomes $$ and the shell substitutes the pid. Makes for a
+- # slightly safer temp file.
+- echo "vis_hide := \$(strip \$(subst @,-,\\"
+- echo " \$(shell if echo 'void foo(void); void foo(void) {}' | \\"
+- echo " $gcc_compile -fvisibility=hidden -Werror \\"
+- echo " -c -xc - -o vis_temp_file\$\$\$\$.o 2> /dev/null; \\"
+- echo " then echo @fvisibility=hidden @DHIDE_EXPORTS; \\"
+- echo " rm vis_temp_file\$\$\$\$.o 2> /dev/null; \\"
+- echo " fi)))"
+- echo
+-
+- # If we have -fvisibility=hidden, then we need to generate hide
+- # lists for object files implemented in assembly. The default
+- # pseudo-op for this is ".hidden", but can be overridden with
+- # ASM_HIDDEN_OP.
+- [ "$ASM_HIDDEN_OP" ] || ASM_HIDDEN_OP=".hidden"
+-
+- echo "ifneq (,\$(vis_hide))"
+- echo "define gen-hide-list"
+- echo "\$(NM_FOR_TARGET) ${SHLIB_NM_FLAGS} \$< | \\"
+- # non-GNU nm emits three fields even for undefined and typeless symbols,
+- # so explicitly omit them
+- echo " \$(AWK) 'NF == 3 && \$\$2 !~ /^[UN]\$\$/ { print \"\\t${ASM_HIDDEN_OP}\", \$\$3 }' > \$@T"
+- echo "mv -f \$@T \$@"
+- echo "endef"
+- echo "else"
+- echo "gen-hide-list = echo > \$@"
+- echo "endif"
+- echo
+-else
+- # It is too hard to guarantee that vis_hide and gen-hide-list will never
+- # be referenced if SHLIB_LINK is not set, so set them to the values they'd
+- # have if SHLIB_LINK were set and we didn't have visibility support.
+- echo "vis_hide ="
+- echo "gen-hide-list = echo > \$@"
+-fi
+-
+-# Remove any objects from lib2funcs and LIB2_DIVMOD_FUNCS that are
+-# defined as optimized assembly code in LIB1ASMFUNCS.
+-for name in $LIB1ASMFUNCS; do
+- lib2funcs=`echo $lib2funcs | sed -e 's/^'$name' //' \
+- -e 's/ '$name' / /' \
+- -e 's/ '$name'$//'`
+- LIB2_DIVMOD_FUNCS=`echo $LIB2_DIVMOD_FUNCS | sed -e 's/^'$name' //' \
+- -e 's/ '$name' / /' \
+- -e 's/ '$name'$//'`
+-done
+-
+-#
+-# Rules to generate object files.
+-#
+-
+-for ml in $MULTILIBS; do
+-
+- # Work out relevant parameters that depend only on the multilib.
+- dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
+- flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
+- shlib_slibdir_qual=
+- libgcc_a=$dir/libgcc.a
+- libgcov_a=$dir/libgcov.a
+- libgcc_eh_a=
+- libgcc_s_so=
+- libunwind_a=
+- libunwind_so=
+-
+- if [ "$LIBUNWIND" ]; then
+- libunwind_a=$dir/libunwind.a
+- fi
+- if [ "$SHLIB_LINK" ]; then
+- libgcc_eh_a=$dir/libgcc_eh.a
+- libgcc_s_so=$dir/libgcc_s${SHLIB_EXT}
+- if [ "$LIBUNWIND" ]; then
+- libunwind_so=$dir/libunwind${SHLIB_EXT}
+- fi
+- os_multilib_dir=`./xgcc -B./ $flags --print-multi-os-directory`
+- if [ "$os_multilib_dir" != . ]; then
+- shlib_slibdir_qual="/$os_multilib_dir"
+- fi
+- fi
+-
+- libgcc_s_so_extra=
+- libunwind_so_extra=
+-
+- echo
+- echo \#
+- echo \# ml: $ml
+- echo \# dir: $dir
+- echo \# flags: $flags
+- echo \# libgcc_a: $libgcc_a
+- echo \# libgcov_a: $libgcov_a
+- echo \# libgcc_eh_a: $libgcc_eh_a
+- echo \# libunwind_a: $libunwind_a
+- echo \#
+- echo \# shlib_slibdir_qual: $shlib_slibdir_qual
+- echo \# libgcc_s_so: $libgcc_s_so
+- echo \# libunwind_so: $libunwind_so
+- echo \#
+- echo
+-
+- # Update list of directories.
+- if [ $dir != . ]; then
+- echo "dirs += ${dir} libgcc/${dir}"
+- echo
+- fi
+-
+- #
+- # Build libgcc1 components.
+- #
+- for name in $LIB1ASMFUNCS; do
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${name}${objext}"
+- outS="libgcc/${dir}/${name}_s${objext}"
+- outV="libgcc/${dir}/${name}.vis"
+-
+- echo ${outS}: stmp-dirs '$(srcdir)/config/$(LIB1ASMSRC)'
+- echo " $gcc_s_compile" $flags -DL$name -xassembler-with-cpp \
+- -c '$(srcdir)/config/$(LIB1ASMSRC)' -o $outS
+-
+- echo ${out}: stmp-dirs '$(srcdir)/config/$(LIB1ASMSRC)' ${outV}
+- echo " $gcc_compile" $flags -DL$name -xassembler-with-cpp \
+- -c '$(srcdir)/config/$(LIB1ASMSRC)' -include $outV -o $out
+-
+- echo "${outV}: ${outS}; \$(gen-hide-list)"
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${name}${objext}"
+- echo ${out}: stmp-dirs '$(srcdir)/config/$(LIB1ASMSRC)'
+- echo " $gcc_compile" $flags -DL$name -xassembler-with-cpp \
+- -c '$(srcdir)/config/$(LIB1ASMSRC)' -o $out
+- echo $libgcc_a: $out
+- fi
+- done
+-
+- #
+- # Build libgcc2 components.
+- #
+-
+- for name in $lib2funcs; do
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${name}${objext}"
+- outS="libgcc/${dir}/${name}_s${objext}"
+-
+- echo $outS: $libgcc2_c_dep
+- echo " $gcc_s_compile" $flags -DL$name -c '$(srcdir)/libgcc2.c' \
+- -o $outS
+-
+- echo $out: $libgcc2_c_dep
+- echo " $gcc_compile" $flags -DL$name '$(vis_hide)' \
+- -c '$(srcdir)/libgcc2.c' -o $out
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${name}${objext}"
+- echo ${out}: stmp-dirs '$(srcdir)/config/$(LIB1ASMSRC)'
+- echo " $gcc_compile" $flags -DL$name -c '$(srcdir)/libgcc2.c' -o $out
+- echo $libgcc_a: $out
+- fi
+- done
+-
+- for name in $LIB2FUNCS_ST; do
+- out="libgcc/${dir}/${name}${objext}"
+-
+- echo $out: $libgcc2_c_dep
+- echo " $gcc_compile" $flags -DL$name '$(vis_hide)' \
+- -c '$(srcdir)/libgcc2.c' -o $out
+- echo ${dir}/libgcc.a: $out
+- done
+-
+- for name in $LIB2_DIVMOD_FUNCS; do
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${name}${objext}"
+- outS="libgcc/${dir}/${name}_s${objext}"
+-
+- echo $outS: $libgcc2_c_dep
+- echo " $gcc_s_compile" $flags -DL$name \
+- -fexceptions -fnon-call-exceptions -c '$(srcdir)/libgcc2.c' -o $outS
+-
+- echo $out: $libgcc2_c_dep
+- echo " $gcc_compile" $flags -DL$name '$(vis_hide)' \
+- -fexceptions -fnon-call-exceptions -c '$(srcdir)/libgcc2.c' -o $out
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${name}${objext}"
+- echo ${out}: stmp-dirs '$(srcdir)/config/$(LIB1ASMSRC)'
+- echo " $gcc_compile" $flags -DL$name \
+- -fexceptions -fnon-call-exceptions -c '$(srcdir)/libgcc2.c' -o $out
+- echo $libgcc_a: $out
+- fi
+- done
+-
+- #
+- # Build software floating point functions.
+- #
+-
+- if [ "$FPBIT" ]; then
+- for name in $FPBIT_FUNCS; do
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${name}${objext}"
+- outS="libgcc/${dir}/${name}_s${objext}"
+-
+- echo $outS: $FPBIT $fpbit_c_dep
+- echo " $gcc_s_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- -c $FPBIT -o $outS
+-
+- echo $out: $FPBIT $fpbit_c_dep
+- echo " $gcc_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- '$(vis_hide)' -c $FPBIT -o $out
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${name}${objext}"
+- echo $out: $FPBIT $fpbit_c_dep
+- echo " $gcc_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- -c $FPBIT -o $out
+-
+- echo $libgcc_a: $out
+- fi
+- done
+- fi
+-
+- if [ "$DPBIT" ]; then
+- for name in $DPBIT_FUNCS; do
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${name}${objext}"
+- outS="libgcc/${dir}/${name}_s${objext}"
+-
+- echo $outS: $DPBIT $fpbit_c_dep
+- echo " $gcc_s_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- -c $DPBIT -o $outS
+-
+- echo $out: $DPBIT $fpbit_c_dep
+- echo " $gcc_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- '$(vis_hide)' -c $DPBIT -o $out
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${name}${objext}"
+- echo $out: $DPBIT $fpbit_c_dep
+- echo " $gcc_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- -c $DPBIT -o $out
+-
+- echo $libgcc_a: $out
+- fi
+- done
+- fi
+-
+- if [ "$TPBIT" ]; then
+- for name in $TPBIT_FUNCS; do
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${name}${objext}"
+- outS="libgcc/${dir}/${name}_s${objext}"
+-
+- echo $outS: $TPBIT $fpbit_c_dep
+- echo " $gcc_s_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- -c $TPBIT -o $outS
+-
+- echo $out: $TPBIT $fpbit_c_dep
+- echo " $gcc_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- '$(vis_hide)' -c $TPBIT -o $out
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${name}${objext}"
+- echo $out: $TPBIT $fpbit_c_dep
+- echo " $gcc_compile" -DFINE_GRAINED_LIBRARIES $flags -DL$name \
+- -c $TPBIT -o $out
+-
+- echo $libgcc_a: $out
+- fi
+- done
+- fi
+-
+- for file in $LIB2ADD; do
+- name=`echo $file | sed -e 's/[.][cS]$//' -e 's/[.]asm$//'`
+- oname=`echo $name | sed -e 's,.*/,,'`
+-
+- if [ "$libgcc_s_so" ]; then
+- out="libgcc/${dir}/${oname}${objext}"
+- outS="libgcc/${dir}/${oname}_s${objext}"
+-
+- case $file in
+- *.c)
+- echo $outS: stmp-dirs $file $libgcc_dep
+- echo " $gcc_s_compile" $flags -c $file -o $outS
+-
+- echo $out: stmp-dirs $file $libgcc_dep
+- echo " $gcc_compile" $flags '$(vis_hide)' -c $file -o $out
+- ;;
+-
+- *.asm | *.S)
+- outV="libgcc/${dir}/${oname}.vis"
+-
+- echo $outS: stmp-dirs $file $libgcc_dep
+- echo " $gcc_s_compile" $flags -xassembler-with-cpp \
+- -c $file -o $outS
+-
+- echo $out: stmp-dirs $file $libgcc_dep $outV
+- echo " $gcc_compile" $flags -xassembler-with-cpp \
+- -include $outV -c $file -o $out
+- echo "${outV}: ${outS}; \$(gen-hide-list)"
+- ;;
+-
+- *)
+- echo "Unhandled extension: $file" >&2
+- exit 1
+- ;;
+- esac
+-
+- echo $libgcc_a: $out
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- else
+- out="libgcc/${dir}/${oname}${objext}"
+- case $file in
+- *.c)
+- echo $out: stmp-dirs $file $libgcc_dep
+- echo " $gcc_compile" $flags -c $file -o $out
+- ;;
+-
+- *.asm | *.S)
+- echo $out: stmp-dirs $file $libgcc_dep
+- echo " $gcc_compile" $flags -xassembler-with-cpp \
+- -c $file -o $out
+- ;;
+-
+- *)
+- echo "Unhandled extension: $file" >&2
+- exit 1
+- ;;
+- esac
+-
+- echo $libgcc_a: $out
+- fi
+- done
+-
+-
+- for file in $LIB2ADD_ST; do
+- name=`echo $file | sed -e 's/[.][cSo]$//' -e 's/[.]asm$//'`
+- oname=`echo $name | sed -e 's,.*/,,'`
+- out="libgcc/${dir}/${oname}${objext}"
+-
+- case $file in
+- *.c)
+- echo $out: stmp-dirs $file $libgcc_dep
+- echo " $gcc_compile" $flags '$(vis_hide)' -c $file -o $out
+- ;;
+-
+- *.asm | *.S)
+- # We may have to compile it twice in order to establish the list
+- # of symbols to be marked hidden.
+- if [ "$libgcc_so" ]; then
+- outV="libgcc/${dir}/${oname}.vis"
+- outT="libgcc/${dir}/${oname}_t${objext}"
+- echo ${outT}: stmp-dirs $file $libgcc_dep
+- echo " $gcc_compile" $flags -xassembler-with-cpp \
+- -c $file -o ${outT}
+- echo $out: stmp-dirs $file $libgcc_dep $outV
+- echo " $gcc_compile" $flags -xassembler-with-cpp \
+- -include $outV -c $file -o $out
+- echo "${outV}: ${outT}; \$(gen-hide-list)"
+- else
+- echo $out: stmp-dirs $file $libgcc_dep
+- echo " $gcc_compile" $flags -xassembler-with-cpp \
+- -c $file -o $out
+- fi
+- ;;
+-
+- *)
+- echo "Unhandled extension: $file" >&2
+- exit 1
+- ;;
+- esac
+- echo $libgcc_a: $out
+- done
+-
+- # If we don't have libgcc_eh.a, only LIB2ADDEH matters. If we do, only
+- # LIB2ADDEHSTATIC and LIB2ADDEHSHARED matter. (Usually all three are
+- # identical.) We do _not_ handle assembly files in this context.
+-
+- if [ "$libgcc_eh_a" ]; then
+- for file in $LIB2ADDEHSTATIC; do
+- case $file in
+- *.c) ;;
+- *) echo "Unhandled extension: $file">&2; exit 1 ;;
+- esac
+-
+- name=`echo $file | sed -e 's/[.]c$//'`
+- oname=`echo $name | sed -e 's,.*/,,'`
+- out="libgcc/${dir}/${oname}${objext}"
+-
+- echo $out: stmp-dirs $file $LIB2ADDEHDEP $libgcc_dep
+- echo " $gcc_compile" $flags '$(vis_hide)' -fexceptions -c $file -o $out
+- echo $libgcc_eh_a: $out
+- done
+-
+- for file in $LIB2ADDEHSHARED; do
+- case $file in
+- *.c) ;;
+- *) echo "Unhandled extension: $file">&2; exit 1 ;;
+- esac
+-
+- name=`echo $file | sed -e 's/[.]c$//'`
+- oname=`echo $name | sed -e 's,.*/,,'`
+- outS="libgcc/${dir}/${oname}_s${objext}"
+-
+- echo $outS: stmp-dirs $file $LIB2ADDEHDEP $libgcc_dep
+- echo " $gcc_s_compile" $flags -fexceptions -c $file -o $outS
+- echo $libgcc_s_so: $outS
+- if [ "$SHLIB_MKMAP" ]; then
+- echo libgcc/${dir}/libgcc.map: $outS
+- fi
+- done
+-
+- # If nothing went into libgcc_eh.a, create a dummy object -
+- # some linkers don't like totally empty archives.
+- if [ -z "$LIB2ADDEHSTATIC" ]; then
+- file=eh_dummy.c
+- out="libgcc/${dir}/eh_dummy${objext}"
+- need_eh_dummy=1
+-
+- echo $out: stmp-dirs $file
+- echo " $gcc_compile" $flags '$(vis_hide)' -fexceptions -c $file -o $out
+- echo $libgcc_eh_a: $out
+- fi
+-
+-
+- else # no libgcc_eh.a
+- for file in $LIB2ADDEH; do
+- case $file in
+- *.c) ;;
+- *) echo "Unhandled extension: $file">&2; exit 1 ;;
+- esac
+-
+- name=`echo $file | sed -e 's/[.]c$//'`
+- oname=`echo $name | sed -e 's,.*/,,'`
+- out="libgcc/${dir}/${oname}${objext}"
+-
+- echo $out: stmp-dirs $file $LIB2ADDEHDEP $libgcc_dep
+- echo " $gcc_compile" $flags -fexceptions '$(vis_hide)' -c $file -o $out
+- echo $libgcc_a: $out
+- done
+- fi
+-
+- # Again, this does not handle assembly.
+- if [ "$LIBUNWIND" ]; then
+- for file in $LIBUNWIND; do
+- case $file in
+- *.c) ;;
+- *) echo "Unhandled extension: $file">&2; exit 1 ;;
+- esac
+-
+- name=`echo $file | sed -e 's/[.]c$//'`
+- oname=`echo $name | sed -e 's,.*/,,'`
+-
+- if [ "$libunwind_so" ]; then
+- out="libgcc/${dir}/${oname}${objext}"
+- outS="libgcc/${dir}/${oname}_s${objext}"
+-
+- echo $out: stmp-dirs $file $LIBUNWINDDEP
+- echo " $gcc_compile $flags -fexceptions \$(vis_hide) -c $file -o $out"
+-
+- echo $outS: stmp-dirs $file $LIBUNWINDDEP
+- echo " $gcc_s_compile $flags -fexceptions -c $file -o $outS"
+-
+- echo $libunwind_a: $out
+- echo $libunwind_so: $outS
+- else
+- out="libgcc/${dir}/${oname}${objext}"
+- echo $out: stmp-dirs $file $LIBUNWINDDEP
+- echo " $gcc_compile $flags -fexceptions \$(vis_hide) -c $file -o $out"
+- echo $libunwind_a: $out
+- fi
+- done
+- fi
+-
+- #
+- # build libgcov components
+- #
+- for name in $LIBGCOV; do
+- dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
+- flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
+- out="libgcc/${dir}/${name}${objext}"
+-
+- echo $out: $libgcov_c_dep
+- echo " $gcc_compile $flags -DL$name -c \$(srcdir)/libgcov.c -o $out"
+- echo $libgcov_a: $out
+- done
+-
+- # EXTRA_MULTILIB_PARTS.
+- if [ -n "$EXTRA_MULTILIB_PARTS" ]; then
+- # Each of the EXTRA_MULTILIB_PARTS is built by recursive invocation
+- # of the parent Makefile. We must do this just once for each
+- # multilib, passing it all the EXTRA_MULTILIB_PARTS as
+- # simultaneous goal targets, so that rules which cannot execute
+- # simultaneously are properly serialized.
+-
+- extra=
+- echo
+- for f in $EXTRA_MULTILIB_PARTS; do
+- case $dir in
+- .) out=$f ; t= ;;
+- *) out=$dir/$f ; t=$dir/ ;;
+- esac
+- case $out in
+- # Prevent `make' from interpreting $out as a macro assignment
+- *'$(EQ)'*) targ="T_TARGET=$out T_TARGET" ;;
+- *) targ=$out ;;
+- esac
+- extra="$extra $targ"
+- done
+-
+- if [ "$dir" = . ]; then
+- suffix=
+- else
+- suffix=`echo $dir | sed s,/,_,g`
+- fi
+- echo extra$suffix: stmp-dirs
+- echo " $make_compile" \\
+- echo ' LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)' $flags '" ' \\
+- echo ' MULTILIB_CFLAGS="'$flags'"' T=$t $extra
+- echo "all: extra$suffix"
+-
+- # Make libunwind.so and libgcc_s.so depend on these, since they
+- # are likely to be implicitly used by the link process.
+- if [ "$libgcc_s_so" ]; then
+- echo "$libgcc_s_so: extra$suffix"
+- fi
+- if [ "$libunwind_so" ]; then
+- echo "$libunwind_so: extra$suffix"
+- fi
+- fi
+-
+- # Library build rules.
+- dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
+- flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
+-
+- # Map-file generation.
+- if [ "$SHLIB_LINK" -a "$SHLIB_MKMAP" ]; then
+- mapfile="libgcc/${dir}/libgcc.map"
+- tmpmapfile="libgcc/${dir}/tmp-libgcc.map"
+- # This uses a here document instead of echos because some shells
+- # will convert the \1 in the second sed command to a control-A.
+- # The behavior of here documents is more predictable.
+- cat <<EOF
+-
+-${mapfile}: $SHLIB_MKMAP $SHLIB_MAPFILES
+- { \$(NM_FOR_TARGET) $SHLIB_NM_FLAGS \$(objects); echo %%; \\
+- cat $SHLIB_MAPFILES \\
+- | sed -e '/^[ ]*#/d' \\
+- -e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \\
+- | $gcc_compile $flags -E -xassembler-with-cpp -; \\
+- } | \$(AWK) -f $SHLIB_MKMAP $SHLIB_MKMAP_OPTS > ${tmpmapfile}
+- mv '$tmpmapfile' \$@
+-$libgcc_s_so: ${mapfile}
+-EOF
+- fi
+-
+- # Static libraries.
+-
+- # Each of these .a files depends on stmp-dirs. It would seem that
+- # this dependency is redundant, since each of the object files
+- # itself depends on stmp-dirs. However, it is possible that there
+- # are in fact no object files. In that case, the stmp-dirs
+- # dependency is required; the directory containing the archive must
+- # exist before the archive itself can be created.
+- echo ""
+- echo "$libgcc_a: stmp-dirs"
+- echo " -rm -f $libgcc_a"
+- echo ' $(AR_CREATE_FOR_TARGET)' $libgcc_a '$(objects)'
+- echo ' $(RANLIB_FOR_TARGET)' $libgcc_a
+- echo "all: $libgcc_a"
+-
+- echo ""
+- echo "$libgcov_a: stmp-dirs"
+- echo " -rm -f $libgcov_a"
+- echo ' $(AR_CREATE_FOR_TARGET)' $libgcov_a '$(objects)'
+- echo ' $(RANLIB_FOR_TARGET)' $libgcov_a
+- echo "all: $libgcov_a"
+-
+- # These libraries are not always built.
+- if [ "$libunwind_a" ]; then
+- echo ""
+- echo "$libunwind_a: stmp-dirs"
+- echo " -rm -f $libunwind_a"
+- echo ' $(AR_CREATE_FOR_TARGET)' $libunwind_a '$(objects)'
+- echo ' $(RANLIB_FOR_TARGET)' $libunwind_a
+- echo "all: $libunwind_a"
+- fi
+-
+- if [ "$libgcc_eh_a" ]; then
+- echo ""
+- echo "${dir}/libgcc_eh.a: stmp-dirs"
+- echo " -rm -f ${dir}/libgcc_eh.a"
+- echo ' $(AR_CREATE_FOR_TARGET)' ${dir}/libgcc_eh.a '$(objects)'
+- echo ' $(RANLIB_FOR_TARGET)' ${dir}/libgcc_eh.a
+- echo "all: $libgcc_eh_a"
+- fi
+-
+- # Shared libraries.
+- if [ "$libgcc_s_so" ]; then
+- echo ""
+- echo "$libgcc_s_so: stmp-dirs $libunwind_so"
+- echo " $SHLIB_LINK" \
+- | sed -e "s%@multilib_flags@%$flags%g" \
+- -e "s%@multilib_dir@%$dir%g" \
+- -e "s%@shlib_objs@%\$(objects)%g" \
+- -e "s%@shlib_base_name@%libgcc_s%g" \
+- -e "s%@shlib_map_file@%$mapfile%g" \
+- -e "s%@shlib_slibdir_qual@%$shlib_dir_qual%g"
+- echo "all: $libgcc_s_so"
+- fi
+-
+- if [ "$libunwind_so" ]; then
+- echo ""
+- echo "$libunwind_so: stmp-dirs"
+- echo " $SHLIBUNWIND_LINK" \
+- | sed -e "s%@multilib_flags@%$flags%g" \
+- -e "s%@multilib_dir@%$dir%g" \
+- -e "s%@shlib_objs@%\$(objects)%g" \
+- -e "s%@shlib_base_name@%libunwind%g" \
+- -e "s%@shlib_slibdir_qual@%$shlib_dir_qual%g"
+- echo "all: $libunwind_so"
+- fi
+-
+-done # ml in MULTILIBS
+-
+-echo
+-echo "libgcc-stage-start:"
+-echo " for dir in \$(dirs); do \\"
+-echo " if [ -d \$(stage)/\$\$dir ]; then :; \\"
+-echo " else $mkinstalldirs \$(stage)/\$\$dir; fi; \\"
+-echo " done"
+-echo " -for dir in \$(dirs); do \\"
+-echo " mv \$\$dir/*${objext} \$(stage)/\$\$dir; \\"
+-echo " mv \$\$dir/*.vis \$(stage)/\$\$dir; \\"
+-echo " mv \$\$dir/*.map \$(stage)/\$\$dir; \\"
+-echo " test ! -f \$\$dir/libgcc.a || mv \$\$dir/lib* \$(stage)/\$\$dir; \\"
+-echo " done"
+-
+-echo
+-echo "stmp-dirs:"
+-echo " for d in \$(dirs); do \\"
+-echo " if [ -d \$\$d ]; then true; else $mkinstalldirs \$\$d; fi; \\"
+-echo " done"
+-echo " if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi"
+-
+-if [ "$need_eh_dummy" ]; then
+- echo "eh_dummy.c:"
+- echo " echo 'struct eh_dummy;' > \$@"
+-fi
+-
+-echo ""
+-echo "install: all"
+-for ml in $MULTILIBS; do
+- dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
+- flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
+- if [ $dir != . ]; then
+- ldir='$(DESTDIR)$(libsubdir)'/$dir
+- echo " if [ -d $ldir ]; then true; else $mkinstalldirs $ldir; chmod a+rx $ldir; fi;"
+- else
+- ldir='$(DESTDIR)$(libsubdir)'
+- fi
+- echo ' $(INSTALL_DATA)' ${dir}/libgcc.a ${ldir}/
+- echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc.a
+- echo ' $(INSTALL_DATA)' ${dir}/libgcov.a ${ldir}/
+- echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcov.a
+-
+- if [ "$SHLIB_LINK" ]; then
+- echo ' $(INSTALL_DATA)' ${dir}/libgcc_eh.a ${ldir}/
+- echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_eh.a
+-
+- shlib_slibdir_qual=
+- os_multilib_dir=`./xgcc -B./ $flags --print-multi-os-directory`
+- if [ "$os_multilib_dir" != . ]; then
+- shlib_slibdir_qual="/$os_multilib_dir"
+- fi
+- echo " $SHLIB_INSTALL" \
+- | sed -e "s%@multilib_dir@%$dir%g" \
+- -e "s%@shlib_base_name@%libgcc_s%g" \
+- -e "s%@shlib_slibdir_qual@%$shlib_slibdir_qual%g"
+- if [ "$LIBUNWIND" ]; then
+- echo " $SHLIBUNWIND_INSTALL" \
+- | sed -e "s%@multilib_dir@%$dir%g" \
+- -e "s%@shlib_base_name@%libunwind%g" \
+- -e "s%@shlib_slibdir_qual@%$shlib_slibdir_qual%g"
+- libunwinddir='$(DESTDIR)$(slibdir)$(shlib_slibdir_qual)/$(shlib_dir)'
+- echo ' $(INSTALL_DATA)' ${dir}/libunwind.a ${libunwinddir}/
+- echo ' $(RANLIB_FOR_TARGET)' ${libunwinddir}/libunwind.a
+- fi
+- fi
+-done
+-for f in $EXTRA_MULTILIB_PARTS; do
+- for ml in $MULTILIBS; do
+- dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
+- if [ $dir != . ]; then
+- out=${dir}/$f
+- ldir='$(DESTDIR)$(libsubdir)'/$dir
+- else
+- out=$f
+- ldir='$(DESTDIR)$(libsubdir)'
+- fi
+- echo ' $(INSTALL_DATA)' $out $ldir/
+- done
+-done
+-
+-echo '.PHONY: all install'
++echo all:
diff --git a/devel/tigcc/files/patch-scripts b/devel/tigcc/files/patch-scripts
deleted file mode 100644
index 7adc278e8ea4..000000000000
--- a/devel/tigcc/files/patch-scripts
+++ /dev/null
@@ -1,266 +0,0 @@
-Only in ../scripts: Install
-Only in ../scripts: Install_All
-Only in ../scripts: Install_All_nopatch
-Only in ../scripts: Install_step_1
-Only in ../scripts: Install_step_2
-Only in ../scripts: Install_step_3
-Only in ../scripts: Install_step_4
-Only in ../scripts: Install_step_5
-Only in ../scripts: SCRIPTS
-diff -u ../scripts/launch.a68k scripts/launch.a68k
---- ../scripts/launch.a68k Tue Feb 1 23:36:52 2005
-+++ scripts/launch.a68k Tue Mar 21 15:24:04 2006
-@@ -2,9 +2,18 @@
- #
- # Compile and install the A68K assembler
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo Installing a68k assembler...
- cd ../sources/a68k/
--make -e
-+${make} -e
- cp A68k $TIGCC/bin/a68k
--make clean
-+${make} clean
- echo Done.
-diff -u ../scripts/launch.binutils scripts/launch.binutils
---- ../scripts/launch.binutils Sat Jul 2 23:05:42 2005
-+++ scripts/launch.binutils Tue Mar 21 15:09:11 2006
-@@ -3,6 +3,15 @@
- # This script launch configure with the right arguments
- # The tree must have been patched before doing this.
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo TIGCC script: Configuring, compiling and installing binutils...
- mkdir ../build; mkdir ../build/binutils;
- cd ../build/binutils; ../../download/binutils.ti/configure --disable-serial-configure --prefix=$TIGCC --target=m68k-coff --disable-shared --enable-static --disable-multilib --disable-nls --disable-win32-registry
-@@ -16,7 +25,7 @@
- #This keeps us from patching the generated makefile in advance.
- #So we have to call make 5 times to get it to work with our removed directories.
-
--make
-+${make}
-
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
-@@ -24,7 +33,7 @@
- rm -f libiberty/testsuite/Makefile
- echo all: >libiberty/testsuite/Makefile
-
--make
-+${make}
-
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
-@@ -36,7 +45,7 @@
- rm -f bfd/po/Makefile
- echo all: >bfd/po/Makefile
-
--make
-+${make}
-
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
-@@ -44,7 +53,7 @@
- rm -f opcodes/po/Makefile
- echo all: >opcodes/po/Makefile
-
--make
-+${make}
-
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
-@@ -58,7 +67,7 @@
- echo all: >gas/po/Makefile
-
- #Now this one should really work...
--make
-+${make}
- if [ $? -ne 0 ]
- then echo "TIGCC script: Error while making"
- exit 2
-diff -u ../scripts/launch.envreg scripts/launch.envreg
---- ../scripts/launch.envreg Sat Jan 24 03:58:25 2004
-+++ scripts/launch.envreg Tue Mar 21 15:09:21 2006
-@@ -2,9 +2,18 @@
- #
- # Compile and install the TIGCC environment registrator
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo Installing tigcc environment registrator...
- cd ../sources/envreg/src/
--make -e
-+${make} -e
- cp envreg $TIGCC/bin
--make clean
-+${make} clean
- echo Done.
-diff -u ../scripts/launch.gcc scripts/launch.gcc
---- ../scripts/launch.gcc Thu Mar 24 02:48:25 2005
-+++ scripts/launch.gcc Tue Mar 21 15:09:46 2006
-@@ -3,6 +3,15 @@
- # This script launches configure with the right arguments
- # The tree must have been patched before doing this.
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo TIGCC script: Configuring, compiling and installing gcc...
-
- CFLAGS_FOR_BUILD="$CFLAGS"
-@@ -22,21 +31,21 @@
- #This keeps us from patching the generated makefile in advance.
- #So we have to call make 3 times to get it to work with our removed directories.
-
--make
-+${make}
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
- # Create dummy libiberty testsuite makefile
- rm -f libiberty/testsuite/Makefile
- echo all: >libiberty/testsuite/Makefile
-
--make
-+${make}
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
- # Create dummy build-libiberty testsuite makefile
- rm -f `ls -d build-*`/libiberty/testsuite/Makefile
- echo all: >`ls -d build-*`/libiberty/testsuite/Makefile
-
--make
-+${make}
- echo You should have seen an error. This is normal. TIGCC installation continues.
-
- cd ../../scripts
-diff -u ../scripts/launch.ld-tigcc scripts/launch.ld-tigcc
---- ../scripts/launch.ld-tigcc Thu Sep 25 05:35:03 2003
-+++ scripts/launch.ld-tigcc Tue Mar 21 15:10:32 2006
-@@ -2,10 +2,19 @@
- #
- # Compile and install the TIGCC linker
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo Installing TIGCC linker...
- cd ../sources/ld-tigcc
--make -e
-+${make} -e
- cp ld-tigcc $TIGCC/bin
- cp ar-tigcc $TIGCC/bin
--make clean
-+${make} clean
- echo Done.
-diff -u ../scripts/launch.patcher scripts/launch.patcher
---- ../scripts/launch.patcher Thu Sep 25 05:35:13 2003
-+++ scripts/launch.patcher Tue Mar 21 15:11:51 2006
-@@ -2,9 +2,18 @@
- #
- # Compile and install the TIGCC patcher
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo Installing tigcc patcher...
- cd ../sources/patcher/src/
--make -e
-+${make} -e
- cp patcher $TIGCC/bin
--make clean
-+${make} clean
- echo Done.
-diff -u ../scripts/launch.tigcc scripts/launch.tigcc
---- ../scripts/launch.tigcc Thu Sep 25 05:35:23 2003
-+++ scripts/launch.tigcc Tue Mar 21 15:12:09 2006
-@@ -2,9 +2,18 @@
- #
- # Compile and install the TIGCC front-end
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo Installing tigcc front-end...
- cd ../sources/tigcc/src/
--make -e
-+${make} -e
- cp tigcc $TIGCC/bin
--make clean
-+${make} clean
- echo Done.
-diff -u ../scripts/launch.tprbuilder scripts/launch.tprbuilder
---- ../scripts/launch.tprbuilder Thu Sep 25 05:35:31 2003
-+++ scripts/launch.tprbuilder Tue Mar 21 15:12:23 2006
-@@ -2,9 +2,18 @@
- #
- # Compile and install the TIGCC project builder
- #
-+
-+isbsd=`uname | grep "BSD"`
-+if [ $isbsd = "" ]; then
-+ #Assume GNU make
-+ make=make
-+else
-+ make=gmake
-+fi
-+
- echo Installing tigcc project builder...
- cd ../sources/tprbuilder/src/
--make -e
-+${make} -e
- cp tprbuilder $TIGCC/bin
--make clean
-+${make} clean
- echo Done.
-Only in ../scripts: package_bin
-Only in ../scripts: package_src
-Only in ../scripts: updatedoc
-Only in ../scripts: updatesrc
diff --git a/devel/tigcc/files/patch-sources-a68k-A68kdef.h b/devel/tigcc/files/patch-tigcc-sources-a68k-A68kdef.h
index 876496dcd10a..53a838444caf 100644
--- a/devel/tigcc/files/patch-sources-a68k-A68kdef.h
+++ b/devel/tigcc/files/patch-tigcc-sources-a68k-A68kdef.h
@@ -1,5 +1,5 @@
---- sources/a68k/A68kdef.h.orig Wed Feb 2 00:00:10 2005
-+++ sources/a68k/A68kdef.h Tue Mar 21 14:16:27 2006
+--- tigcc/sources/a68k/A68kdef.h.orig Wed Feb 2 00:00:10 2005
++++ tigcc/sources/a68k/A68kdef.h Tue Mar 21 14:16:27 2006
@@ -38,11 +38,11 @@
extern int /*open(), creat(),*/ read(), write(), close(), unlink();
/* (2.71.F3u) open, creat should be declared in fcntl.h and cause a conflict
diff --git a/devel/tigcc/files/patch-tigcc-sources-gcc-gas-2.16-tigcc-patch.diff b/devel/tigcc/files/patch-tigcc-sources-gcc-gas-2.16-tigcc-patch.diff
new file mode 100644
index 000000000000..072d8b151135
--- /dev/null
+++ b/devel/tigcc/files/patch-tigcc-sources-gcc-gas-2.16-tigcc-patch.diff
@@ -0,0 +1,11 @@
+--- tigcc_src/sources/gcc/gas-2.16-tigcc-patch.diff Sun Jul 31 18:48:04 2005
++++ tigcc/sources/gcc/gas-2.16-tigcc-patch.diff Mon Jun 5 14:19:37 2006
+@@ -823,7 +823,7 @@
+
+
+ - ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
+-+ ac_config_files="$ac_config_files Makefile"
+++ ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
+
+ ac_config_commands="$ac_config_commands default"
+
diff --git a/devel/tigcc/pkg-message b/devel/tigcc/pkg-message
new file mode 100644
index 000000000000..ba84ebd99650
--- /dev/null
+++ b/devel/tigcc/pkg-message
@@ -0,0 +1,16 @@
+ ATTENTION:
+
+TIGCC is now installed but in order for it
+to work you need to define some stuff.
+
+The TIGCC environment variable must point to
+the folder where TIGCC is installed.
+
+Additionally the TIGCC bin folder must be in the path.
+
+If you use the csh shell you would put something like
+
+setenv TIGCC /usr/local/tigcc
+setenv PATH $PATH:$TIGCC/bin
+
+into the .cshrc file in your home directory.
diff --git a/devel/tigcc/pkg-plist b/devel/tigcc/pkg-plist
index d28520b32026..353195ffe766 100644
--- a/devel/tigcc/pkg-plist
+++ b/devel/tigcc/pkg-plist
@@ -2,7 +2,6 @@ tigcc/bin/a68k
tigcc/bin/ar-tigcc
tigcc/bin/as
tigcc/bin/cc1
-tigcc/bin/envreg
tigcc/bin/gcc
tigcc/bin/ld-tigcc
tigcc/bin/patcher
@@ -3074,7 +3073,7 @@ tigcc/doc/patcher/ChangeLog
tigcc/doc/patcher/README
tigcc/doc/tigcc/AUTHORS
tigcc/doc/tigcc/COPYING
-tigcc/doc/tigcc/ChangeLog
+tigcc/doc/tigcc/CHANGELOG
tigcc/doc/tigcc/README
tigcc/doc/tigcclib
tigcc/doc/tools/history.txt
@@ -3283,7 +3282,6 @@ tigcc/include/c/wingraph.h
tigcc/include/s/os.h
tigcc/lib/pstarter.o
tigcc/lib/tigcc.a
-@dirrm tigcc/projects
@dirrm tigcc/lib
@dirrm tigcc/include/s
@dirrm tigcc/include/c