mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Initial revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@197 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
BIN
toolchain/gcc/2.95/050-debian-subset.patch.bz2
Normal file
BIN
toolchain/gcc/2.95/050-debian-subset.patch.bz2
Normal file
Binary file not shown.
291
toolchain/gcc/2.95/100-uclibc-conf.patch
Normal file
291
toolchain/gcc/2.95/100-uclibc-conf.patch
Normal file
@@ -0,0 +1,291 @@
|
||||
Warning! The powerpc patch (rs6000/linux.h) is hack-ish and would
|
||||
definitely need to be improved to be acceptable upstream. Also,
|
||||
this patch isn't complete as it only supports i386, arm, mips, and
|
||||
powerpc (rs6000).
|
||||
diff -urN gcc-20011006/config.sub gcc-20011006-new/config.sub
|
||||
--- gcc-20011006/config.sub 2004-01-13 06:15:28.000000000 -0600
|
||||
+++ gcc-20011006-new/config.sub 2004-01-10 11:09:35.000000000 -0600
|
||||
@@ -68,7 +68,7 @@
|
||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||
case $maybe_os in
|
||||
- linux-gnu*)
|
||||
+ linux-gnu* | linux-uclibc*)
|
||||
os=-$maybe_os
|
||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||
;;
|
||||
@@ -936,7 +936,8 @@
|
||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
+ | -mingw32* | -linux-gnu* | -linux-uclibc* \
|
||||
+ | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
| -interix* | -uwin* )
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
diff -urN gcc-20011006/gcc/config/arm/linux-elf.h gcc-20011006-new/gcc/config/arm/linux-elf.h
|
||||
--- gcc-20011006/gcc/config/arm/linux-elf.h 2004-01-13 06:15:28.000000000 -0600
|
||||
+++ gcc-20011006-new/gcc/config/arm/linux-elf.h 2004-01-10 11:12:11.000000000 -0600
|
||||
@@ -90,6 +90,18 @@
|
||||
#define ENDFILE_SPEC \
|
||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
+ %{b} %{Wl,*:%*} \
|
||||
+ %{static:-Bstatic} \
|
||||
+ %{shared:-shared} \
|
||||
+ %{symbolic:-Bsymbolic} \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
+ -X \
|
||||
+ %{mbig-endian:-EB}" \
|
||||
+ SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
%{b} %{Wl,*:%*} \
|
||||
%{static:-Bstatic} \
|
||||
@@ -100,6 +112,7 @@
|
||||
-X \
|
||||
%{mbig-endian:-EB}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#endif
|
||||
|
||||
#undef CPP_PREDEFINES
|
||||
#define CPP_PREDEFINES \
|
||||
diff -urN gcc-20011006/gcc/config/i386/linux.h gcc-20011006-new/gcc/config/i386/linux.h
|
||||
--- gcc-20011006/gcc/config/i386/linux.h 2001-04-03 17:38:59.000000000 -0500
|
||||
+++ gcc-20011006-new/gcc/config/i386/linux.h 2004-01-10 11:15:38.000000000 -0600
|
||||
@@ -199,6 +199,15 @@
|
||||
%{static:-static}}}"
|
||||
#endif
|
||||
#else
|
||||
+#if defined USE_UCLIBC
|
||||
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
%{!shared: \
|
||||
%{!ibcs: \
|
||||
@@ -207,6 +216,7 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}}}"
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* Get perform_* macros to build libgcc.a. */
|
||||
#include "i386/perform.h"
|
||||
diff -urN gcc-20011006/gcc/config/mips/linux.h gcc-20011006-new/gcc/config/mips/linux.h
|
||||
--- gcc-20011006/gcc/config/mips/linux.h 2004-01-13 06:15:28.000000000 -0600
|
||||
+++ gcc-20011006-new/gcc/config/mips/linux.h 2004-01-10 11:16:39.000000000 -0600
|
||||
@@ -154,6 +154,17 @@
|
||||
|
||||
/* Borrowed from sparc/linux.h */
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC \
|
||||
+ "%(endian_spec) \
|
||||
+ %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC \
|
||||
"%(endian_spec) \
|
||||
%{shared:-shared} \
|
||||
@@ -163,6 +174,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||
%{static:-static}}}"
|
||||
+#endif
|
||||
|
||||
|
||||
#undef SUBTARGET_ASM_SPEC
|
||||
diff -urN old/gcc-20011006/gcc/config/mips/t-linux-uclibc gcc-20011006/gcc/config/mips/t-linux-uclibc
|
||||
--- old/gcc-20011006/gcc/config/mips/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-20011006/gcc/config/mips/t-linux-uclibc 2004-01-14 02:51:10.000000000 -0600
|
||||
@@ -0,0 +1 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
diff -urN gcc-20011006/gcc/config/rs6000/linux.h gcc-20011006-new/gcc/config/rs6000/linux.h
|
||||
--- gcc-20011006/gcc/config/rs6000/linux.h 2001-04-03 17:38:59.000000000 -0500
|
||||
+++ gcc-20011006-new/gcc/config/rs6000/linux.h 2004-01-10 11:15:38.000000000 -0600
|
||||
@@ -36,12 +36,21 @@
|
||||
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_linux)"
|
||||
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC "-m elf32ppclinux %{G*} %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}"
|
||||
+#else
|
||||
#define LINK_SPEC "-m elf32ppclinux %{G*} %{shared:-shared} \
|
||||
%{!shared: \
|
||||
%{!static: \
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||
%{static:-static}}"
|
||||
+#endif
|
||||
|
||||
#undef LIB_DEFAULT_SPEC
|
||||
#define LIB_DEFAULT_SPEC "%(lib_linux)"
|
||||
diff -urN gcc-20011006/gcc/config/t-linux-uclibc gcc-20011006-new/gcc/config/t-linux-uclibc
|
||||
--- gcc-20011006/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-20011006-new/gcc/config/t-linux-uclibc 2004-01-10 11:18:46.000000000 -0600
|
||||
@@ -0,0 +1,18 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+# Don't run fixproto
|
||||
+STMP_FIXPROTO =
|
||||
+
|
||||
+# Don't install "assert.h" in gcc. We use the one in glibc.
|
||||
+INSTALL_ASSERT_H =
|
||||
+
|
||||
+# Compile crtbeginS.o and crtendS.o with pic.
|
||||
+CRTSTUFF_T_CFLAGS_S = -fPIC
|
||||
+# Compile libgcc2.a with pic.
|
||||
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
||||
+
|
||||
+# Do not build libgcc1. Let gcc generate those functions. The GNU/Linux
|
||||
+# C library can handle them.
|
||||
+LIBGCC1 =
|
||||
+CROSS_LIBGCC1 =
|
||||
+LIBGCC1_TEST =
|
||||
diff -urN gcc-20011006/gcc/configure gcc-20011006-new/gcc/configure
|
||||
--- gcc-20011006/gcc/configure 2004-01-13 06:15:28.000000000 -0600
|
||||
+++ gcc-20011006-new/gcc/configure 2004-01-10 11:28:54.000000000 -0600
|
||||
@@ -3219,6 +3219,24 @@
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
+ arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
+ xm_file=arm/xm-linux.h
|
||||
+ xmake_file=x-linux
|
||||
+ tm_file="arm/linux-elf.h"
|
||||
+ case $machine in
|
||||
+ armv2*-*-*)
|
||||
+ tm_file="arm/linux-elf26.h $tm_file"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ tmake_file="t-linux-uclibc arm/t-linux"
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ gnu_ld=yes
|
||||
+ case x${enable_threads} in
|
||||
+ x | xyes | xpthreads | xposix)
|
||||
+ thread_file='posix'
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
arm*-*-aout)
|
||||
tm_file=arm/aout.h
|
||||
tmake_file=arm/t-bare
|
||||
@@ -3631,6 +3649,18 @@
|
||||
thread_file='single'
|
||||
fi
|
||||
;;
|
||||
+ i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
|
||||
+ # with ELF format using uClibc
|
||||
+ xmake_file=x-linux
|
||||
+ tm_file=i386/linux.h
|
||||
+ tmake_file="t-linux-uclibc i386/t-crtstuff"
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ gnu_ld=yes
|
||||
+ float_format=i386
|
||||
+ if test x$enable_threads = xyes; then
|
||||
+ thread_file='posix'
|
||||
+ fi
|
||||
+ ;;
|
||||
i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
|
||||
# aka GNU/Linux C library 6
|
||||
xmake_file=x-linux
|
||||
@@ -4696,7 +4726,19 @@
|
||||
# On NetBSD, the headers are already okay, except for math.h.
|
||||
tmake_file=t-netbsd
|
||||
;;
|
||||
- mips*-*-linux*) # Linux MIPS, either endian.
|
||||
+ mips*-*-linux-uclibc*) # Linux (uclibc) MIPS, either endian.
|
||||
+ tmake_file=mips/t-linux-uclibc
|
||||
+ xmake_file=x-linux
|
||||
+ xm_file="xm-siglist.h ${xm_file}"
|
||||
+ case $machine in
|
||||
+ mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
|
||||
+ *) tm_file="mips/elf.h mips/linux.h" ;;
|
||||
+ esac
|
||||
+ extra_parts="crtbegin.o crtend.o"
|
||||
+ gnu_ld=yes
|
||||
+ gas=yes
|
||||
+ ;;
|
||||
+ mips*-*-linux*) # Linux MIPS, either endian.
|
||||
xmake_file=x-linux
|
||||
xm_file="xm-siglist.h ${xm_file}"
|
||||
case $machine in
|
||||
@@ -5159,6 +5201,24 @@
|
||||
thread_file='posix'
|
||||
fi
|
||||
;;
|
||||
+ powerpc-*-linux-uclibc*)
|
||||
+ tm_file=rs6000/linux.h
|
||||
+ xm_file="xm-siglist.h rs6000/xm-sysv4.h"
|
||||
+ xm_defines="USG ${xm_defines}"
|
||||
+ out_file=rs6000/rs6000.c
|
||||
+ if test x$gas = xyes
|
||||
+ then
|
||||
+ tmake_file="rs6000/t-ppcos t-linux-uclibc rs6000/t-ppccomm"
|
||||
+ else
|
||||
+ tmake_file="rs6000/t-ppc t-linux-uclibc rs6000/t-ppccomm"
|
||||
+ fi
|
||||
+ xmake_file=x-linux
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ extra_headers=ppc-asm.h
|
||||
+ if test x$enable_threads = xyes; then
|
||||
+ thread_file='posix'
|
||||
+ fi
|
||||
+ ;;
|
||||
powerpc-wrs-vxworks*)
|
||||
cpu_type=rs6000
|
||||
xm_file="xm-siglist.h rs6000/xm-sysv4.h"
|
||||
diff -urN gcc-20011006/ltconfig gcc-20011006-new/ltconfig
|
||||
--- gcc-20011006/ltconfig 1999-06-21 21:35:12.000000000 -0500
|
||||
+++ gcc-20011006-new/ltconfig 2004-01-10 11:34:23.000000000 -0600
|
||||
@@ -436,6 +436,7 @@
|
||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||
case "$host_os" in
|
||||
linux-gnu*) ;;
|
||||
+linux-uclibc*) ;;
|
||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||
esac
|
||||
|
||||
@@ -1773,6 +1774,22 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
||||
+ file_magic_cmd=/usr/bin/file
|
||||
+ file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
||||
407
toolchain/gcc/2.95/STLport-4.5.3.patch
Normal file
407
toolchain/gcc/2.95/STLport-4.5.3.patch
Normal file
@@ -0,0 +1,407 @@
|
||||
diff -urN STLport-4.5.3/Makefile STLport-4.5.3-devel/Makefile
|
||||
--- STLport-4.5.3/Makefile Wed Dec 31 17:00:00 1969
|
||||
+++ STLport-4.5.3-devel/Makefile Tue Jan 7 15:28:08 2003
|
||||
@@ -0,0 +1,44 @@
|
||||
+# Makefile to compile stlport with uClibc
|
||||
+#
|
||||
+# Copyright (C) 2002 Erik Andersen <andersen@codepoet.org>
|
||||
+#
|
||||
+# This program 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 of the License, or
|
||||
+# (at your option) any later version.
|
||||
+#
|
||||
+# This program 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 this program; if not, write to the Free Software
|
||||
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
+
|
||||
+ARCH:=i386
|
||||
+PREFIX:=/usr/$(ARCH)-linux-uclibc
|
||||
+CROSS:= $(PREFIX)/../bin/$(ARCH)-linux-uclibc-
|
||||
+CC=$(CROSS)gcc
|
||||
+CXX=$(CROSS)g++
|
||||
+AR = $(CROSS)ar
|
||||
+STRIP = $(CROSS)strip --remove-section=.comment --remove-section=.note --strip-unneeded
|
||||
+.EXPORT_ALL_VARIABLES:
|
||||
+
|
||||
+all:
|
||||
+ rm -f lib/lib*
|
||||
+ make -C src -f gcc-uClibc.mak all
|
||||
+ (cd lib; rm -f libstdc++_debug.so; \
|
||||
+ ln -fs libstdc++.so.4.5 libstdc++.so; \
|
||||
+ ln -fs libstdc++.so.4.5 libstdc++.so.0;)
|
||||
+ $(STRIP) lib/libstdc++.so.4.5;
|
||||
+
|
||||
+clean:
|
||||
+ make -C src -f gcc-uClibc.mak clean
|
||||
+ rm -rf lib/*
|
||||
+
|
||||
+install:
|
||||
+ (cd lib; \
|
||||
+ cp -a libstdc++.a $(PREFIX)/lib; \
|
||||
+ cp -a libstdc++.so libstdc++.so.0 libstdc++.so.4.5 $(PREFIX)/lib;)
|
||||
+ cp -a stlport $(PREFIX)/include/c++
|
||||
diff -urN STLport-4.5.3/src/dll_main.cpp STLport-4.5.3-devel/src/dll_main.cpp
|
||||
--- STLport-4.5.3/src/dll_main.cpp Sat Feb 2 16:11:56 2002
|
||||
+++ STLport-4.5.3-devel/src/dll_main.cpp Tue Jan 7 15:28:08 2003
|
||||
@@ -52,7 +52,7 @@
|
||||
# include <locale>
|
||||
# endif
|
||||
|
||||
-# if defined (_STLP_UNIX)
|
||||
+# if defined (_STLP_UNIX) && defined (_STLP_PTHREADS) && ! defined (_STLP_USE_UCLIBC)
|
||||
# define _STLP_HAS_PERTHREAD_ALLOCATOR
|
||||
# include <stl/_pthread_alloc.h>
|
||||
# endif
|
||||
diff -urN STLport-4.5.3/src/gcc-uClibc.mak STLport-4.5.3-devel/src/gcc-uClibc.mak
|
||||
--- STLport-4.5.3/src/gcc-uClibc.mak Wed Dec 31 17:00:00 1969
|
||||
+++ STLport-4.5.3-devel/src/gcc-uClibc.mak Tue Jan 7 15:28:08 2003
|
||||
@@ -0,0 +1,61 @@
|
||||
+#
|
||||
+# Basename for libraries
|
||||
+#
|
||||
+LIB_BASENAME:=libstdc++
|
||||
+LIB_SHAREDNAME:=$(LIB_BASENAME).so
|
||||
+LIB_SHAREDNAME_FULL:=$(LIB_SHAREDNAME).0
|
||||
+
|
||||
+#
|
||||
+# guts for common stuff
|
||||
+#
|
||||
+#
|
||||
+LINK:=$(AR) -cr
|
||||
+#DYN_LINK:=$(CC) -fno-exceptions -lpthread -lm -shared -Wl,-soname=$(LIB_SHAREDNAME_FULL) -o
|
||||
+DYN_LINK:=$(CC) -fno-exceptions -shared -Wl,-soname=$(LIB_SHAREDNAME_FULL) -o
|
||||
+
|
||||
+OBJEXT=o
|
||||
+DYNEXT=so
|
||||
+STEXT=a
|
||||
+RM=rm -rf
|
||||
+PATH_SEP=/
|
||||
+MKDIR=mkdir -p
|
||||
+COMP=GCC$(ARCH)
|
||||
+INSTALL_STEP = install_unix
|
||||
+
|
||||
+all: release_dynamic release_static
|
||||
+#all: all_dynamic all_static symbolic_links
|
||||
+
|
||||
+include common_macros.mak
|
||||
+STLDEBUG_NAME:=$(LIB_BASENAME).debug
|
||||
+
|
||||
+# Lets disable exception support, since this saves over 200k...
|
||||
+DEFINE_FLAGS:= -fno-exceptions
|
||||
+#DEFINE_FLAGS:= -D_STLP_NO_EXCEPTIONS -fno-exceptions -DSTL_NO_EXCEPTIONS
|
||||
+
|
||||
+#DEFINE_FLAGS+= -D_STLP_USE_UCLIBC -D_STLP_NO_WCHAR_T \
|
||||
+# -DUSE_SPRINTF_INSTEAD -D_ISOC99_SOURCE
|
||||
+
|
||||
+WARNING_FLAGS:= -W -Wno-sign-compare -Wno-unused -Wno-uninitialized
|
||||
+INCLUDE_FLAGS = -I${STLPORT_DIR}
|
||||
+CXXFLAGS_COMMON = $(WARNING_FLAGS) $(DEFINE_FLAGS) $(INCLUDE_FLAGS)
|
||||
+
|
||||
+CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -Os
|
||||
+CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -Os -fPIC
|
||||
+
|
||||
+CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -O -g
|
||||
+CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -O -g -fPIC
|
||||
+
|
||||
+CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
|
||||
+CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG -fPIC
|
||||
+
|
||||
+include common_percent_rules.mak
|
||||
+include common_rules.mak
|
||||
+
|
||||
+
|
||||
+#install: all
|
||||
+# cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
|
||||
+
|
||||
+#%.s: %.cpp
|
||||
+# $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@
|
||||
+
|
||||
+
|
||||
diff -urN STLport-4.5.3/src/num_put_float.cpp STLport-4.5.3-devel/src/num_put_float.cpp
|
||||
--- STLport-4.5.3/src/num_put_float.cpp Fri Jan 18 15:06:52 2002
|
||||
+++ STLport-4.5.3-devel/src/num_put_float.cpp Tue Jan 7 15:28:08 2003
|
||||
@@ -65,6 +65,12 @@
|
||||
|
||||
# endif
|
||||
|
||||
+# if defined(_STLP_USE_UCLIBC)
|
||||
+# define __USE_ISOC99 1
|
||||
+# include <math.h>
|
||||
+# include <float.h>
|
||||
+# endif
|
||||
+
|
||||
# include <cstdlib>
|
||||
|
||||
#if defined (_MSC_VER) || defined (__MINGW32__) || defined (__BORLANDC__) || defined (__DJGPP) || defined (_STLP_SCO_OPENSERVER) || defined (__NCR_SVR)
|
||||
@@ -209,7 +215,7 @@
|
||||
|
||||
#ifdef USE_SPRINTF_INSTEAD
|
||||
|
||||
-#elif defined (__hpux) || defined (__DJGPP) || ( defined(_STLP_USE_GLIBC) && ! defined (__MSL__) )
|
||||
+#elif defined (__hpux) || defined (__DJGPP) || ( defined(_STLP_USE_GLIBC) && ! defined (__MSL__) ) || defined (_STLP_USE_UCLIBC)
|
||||
# if defined (isfinite)
|
||||
inline bool _Stl_is_nan_or_inf(double x) { return !isfinite(x); }
|
||||
# else
|
||||
@@ -238,7 +244,7 @@
|
||||
}
|
||||
inline bool _Stl_is_neg_inf(double x) { return _fpclass(x) == _FPCLASS_NINF; }
|
||||
inline bool _Stl_is_neg_nan(double x) { return _isnan(x) && _copysign(1., x) < 0 ; }
|
||||
-#elif defined(__MRC__) || defined(__SC__) //*TY 02/24/2000 - added support for MPW
|
||||
+#elif defined(__MRC__) || defined(__SC__)
|
||||
bool _Stl_is_nan_or_inf(double x) { return isnan(x) || !isfinite(x); }
|
||||
bool _Stl_is_inf(double x) { return !isfinite(x); }
|
||||
bool _Stl_is_neg_inf(double x) { return !isfinite(x) && signbit(x); }
|
||||
@@ -280,7 +286,7 @@
|
||||
inline char* _Stl_qfcvtR(long double x, int n, int* pt, int* sign, char* buf)
|
||||
{ return fcvtbuf(x, n, pt, sign, buf); }
|
||||
# endif
|
||||
-#elif defined (_STLP_USE_GLIBC)
|
||||
+#elif defined (_STLP_USE_GLIBC) || defined(_STLP_USE_UCLIBC)
|
||||
inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf)
|
||||
{ return buf + ecvt_r(x, n, pt, sign, buf, NDIG+2); }
|
||||
inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf)
|
||||
diff -urN STLport-4.5.3/src/stdio_streambuf.cpp STLport-4.5.3-devel/src/stdio_streambuf.cpp
|
||||
--- STLport-4.5.3/src/stdio_streambuf.cpp Thu Jan 10 11:41:52 2002
|
||||
+++ STLport-4.5.3-devel/src/stdio_streambuf.cpp Tue Jan 7 15:28:08 2003
|
||||
@@ -82,7 +82,7 @@
|
||||
_STLP_VENDOR_CSTD::fgetpos(_M_file, &pos);
|
||||
// added 21 june 00 mdb,rjf,wjs: glibc 2.2 changed fpos_t to be a struct instead
|
||||
// of a primitive type
|
||||
-#if (defined(__GLIBC__) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
|
||||
+#if defined(_STLP_USE_UCLIBC) || (defined(__GLIBC__) && defined(_STLP_USE_GLIBC) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
|
||||
return pos_type((streamoff)pos.__pos);
|
||||
#elif defined(__ISCPP__) || defined(__MVS__) || (__OS400__)
|
||||
return pos_type(pos.__fpos_elem[ 0 ]);
|
||||
@@ -101,13 +101,16 @@
|
||||
|
||||
// added 21 june 00 mdb,rjf,wjs: glibc 2.2 changed fpos_t to be a struct instead
|
||||
// of a primitive type
|
||||
-#if (defined(__GLIBC__) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
|
||||
+#if (defined(__GLIBC__) && defined(_STLP_USE_GLIBC) && ( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 2) ) ) )
|
||||
fpos_t p;
|
||||
p.__pos = pos;
|
||||
memset( &(p.__state), 0, sizeof(p.__state) );
|
||||
#elif defined(__MVS__) || (__OS400__)
|
||||
fpos_t p;
|
||||
p.__fpos_elem[0] = pos;
|
||||
+#elif defined(_STLP_USE_UCLIBC)
|
||||
+ fpos_t p;
|
||||
+ p.__pos = pos;
|
||||
#else
|
||||
fpos_t p(pos);
|
||||
#endif
|
||||
diff -urN STLport-4.5.3/stlport/config/_prolog.h STLport-4.5.3-devel/stlport/config/_prolog.h
|
||||
--- STLport-4.5.3/stlport/config/_prolog.h Sun Oct 28 13:26:44 2001
|
||||
+++ STLport-4.5.3-devel/stlport/config/_prolog.h Tue Jan 7 15:28:08 2003
|
||||
@@ -1,3 +1,8 @@
|
||||
+/* Evil hack to make sure everything behaves itself */
|
||||
+#define _STLP_USE_UCLIBC
|
||||
+//#define _STLP_NO_WCHAR_T
|
||||
+//#define _ISOC99_SOURCE
|
||||
+//#define USE_SPRINTF_INSTEAD
|
||||
|
||||
#if defined (_STLP_MSVC) || defined (__ICL) || defined (__BORLANDC__)
|
||||
|
||||
diff -urN STLport-4.5.3/stlport/config/stl_gcc.h STLport-4.5.3-devel/stlport/config/stl_gcc.h
|
||||
--- STLport-4.5.3/stlport/config/stl_gcc.h Thu Jan 10 11:41:58 2002
|
||||
+++ STLport-4.5.3-devel/stlport/config/stl_gcc.h Tue Jan 7 15:28:08 2003
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
/* Systems having GLIBC installed have different traits */
|
||||
-#if ! defined (_STLP_USE_GLIBC) && ( defined (__linux__) || defined (__CYGWIN__) )
|
||||
+#if ! defined (_STLP_USE_GLIBC) && ! defined (_STLP_USE_UCLIBC) && ( defined (__linux__) || defined (__CYGWIN__) )
|
||||
# define _STLP_USE_GLIBC
|
||||
#endif
|
||||
|
||||
diff -urN STLport-4.5.3/stlport/cstdlib STLport-4.5.3-devel/stlport/cstdlib
|
||||
--- STLport-4.5.3/stlport/cstdlib Thu Aug 23 15:51:54 2001
|
||||
+++ STLport-4.5.3-devel/stlport/cstdlib Tue Jan 7 15:28:08 2003
|
||||
@@ -55,9 +55,11 @@
|
||||
using _STLP_VENDOR_CSTD::atof;
|
||||
using _STLP_VENDOR_CSTD::atoi;
|
||||
using _STLP_VENDOR_CSTD::atol;
|
||||
+# ifndef _STLP_USE_UCLIBC
|
||||
using _STLP_VENDOR_CSTD::mblen;
|
||||
using _STLP_VENDOR_CSTD::mbstowcs;
|
||||
using _STLP_VENDOR_CSTD::mbtowc;
|
||||
+# endif
|
||||
using _STLP_VENDOR_CSTD::strtod;
|
||||
using _STLP_VENDOR_CSTD::strtol;
|
||||
using _STLP_VENDOR_CSTD::strtoul;
|
||||
diff -urN STLport-4.5.3/stlport/stl/_config.h STLport-4.5.3-devel/stlport/stl/_config.h
|
||||
--- STLport-4.5.3/stlport/stl/_config.h Fri Jan 18 15:08:36 2002
|
||||
+++ STLport-4.5.3-devel/stlport/stl/_config.h Tue Jan 7 15:28:08 2003
|
||||
@@ -26,6 +26,16 @@
|
||||
#ifndef _STLP_CONFIG_H
|
||||
# define _STLP_CONFIG_H
|
||||
|
||||
+/* Make the STLport headers provide uClibc support by default */
|
||||
+#define _STLP_NO_EXCEPTIONS 1
|
||||
+#define STL_NO_EXCEPTIONS 1
|
||||
+#define _STLP_USE_UCLIBC 1
|
||||
+//#define _STLP_NO_WCHAR_T 1
|
||||
+#define _STLP_NO_LONG_DOUBLE 1
|
||||
+#define USE_SPRINTF_INSTEAD 1
|
||||
+#define _ISOC99_SOURCE 1
|
||||
+#define _STLP_NO_ANACHRONISMS 1
|
||||
+
|
||||
/*
|
||||
* Purpose of this file :
|
||||
*
|
||||
@@ -164,7 +174,7 @@
|
||||
/* Operating system recognition (basic) */
|
||||
# if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX) || defined (__NetBSD__) || defined (__Lynx__)
|
||||
# define _STLP_UNIX 1
|
||||
-# if defined (__linux__) && ! defined (_STLP_USE_GLIBC)
|
||||
+# if defined (__linux__) && ! defined (_STLP_USE_GLIBC) && ! defined (_STLP_USE_UCLIBC)
|
||||
# define _STLP_USE_GLIBC 1
|
||||
# endif
|
||||
# elif defined(macintosh) || defined (_MAC)
|
||||
diff -urN STLport-4.5.3/stlport/stl/_stdio_file.h STLport-4.5.3-devel/stlport/stl/_stdio_file.h
|
||||
--- STLport-4.5.3/stlport/stl/_stdio_file.h Fri Jan 18 15:07:00 2002
|
||||
+++ STLport-4.5.3-devel/stlport/stl/_stdio_file.h Tue Jan 7 15:28:08 2003
|
||||
@@ -634,6 +634,112 @@
|
||||
}
|
||||
# define _STLP_FILE_I_O_IDENTICAL
|
||||
|
||||
+#elif defined(_STLP_USE_UCLIBC)
|
||||
+
|
||||
+#if defined(__MASK_READING)
|
||||
+
|
||||
+inline int _FILE_fd(const FILE *__f) { return __f->__filedes; }
|
||||
+
|
||||
+// Returns a pointer to the beginning of the buffer.
|
||||
+inline char* _FILE_I_begin(const FILE *__f) { return (char*) __f->__bufstart; }
|
||||
+
|
||||
+// Returns the current read/write position within the buffer.
|
||||
+inline char* _FILE_I_next(const FILE *__f) { return (char*) __f->__bufpos; }
|
||||
+
|
||||
+// Returns a pointer immediately past the end of the buffer.
|
||||
+inline char* _FILE_I_end(const FILE *__f) { return (char*)__f->__bufend; }
|
||||
+
|
||||
+// Returns the number of characters remaining in the buffer, i.e.
|
||||
+// _FILE_[IO]_end(__f) - _FILE_[IO]_next(__f).
|
||||
+inline ptrdiff_t _FILE_I_avail(const FILE *__f)
|
||||
+ { return __f->__bufgetc_u - __f->__bufpos; }
|
||||
+
|
||||
+// Increments the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_preincr(FILE *__f) { return *(char*)(++__f->__bufpos); }
|
||||
+
|
||||
+// Increments the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_postincr(FILE *__f) { return *(char*)(__f->__bufpos++); }
|
||||
+
|
||||
+// Decrements the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_predecr(FILE *__f) { return *(char*)(--__f->__bufpos); }
|
||||
+
|
||||
+// Decrements the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_postdecr(FILE *__f) { return *(char*)(__f->__bufpos--); }
|
||||
+
|
||||
+// Increments the current read/write position by __n.
|
||||
+inline void _FILE_I_bump(FILE *__f, int __n) { __f->__bufpos += __n; }
|
||||
+
|
||||
+// Sets the beginning of the bufer to __begin, the current read/write
|
||||
+// position to __next, and the buffer's past-the-end pointer to __end.
|
||||
+// If any of those pointers is null, then all of them must be null.
|
||||
+inline void _FILE_I_set(FILE *__f, char* __begin, char* __next, char* __end)
|
||||
+{
|
||||
+ __f->__bufstart = (unsigned char*)__begin;
|
||||
+ __f->__bufpos = (unsigned char*)__next;
|
||||
+ __f->__bufend = (unsigned char*)__end;
|
||||
+ __f->__bufgetc_u = (unsigned char*)__begin;
|
||||
+ __f->__bufputc_u = (unsigned char*)__end;
|
||||
+}
|
||||
+
|
||||
+# define _STLP_FILE_I_O_IDENTICAL
|
||||
+
|
||||
+#else // Support old stdio for a little while.
|
||||
+
|
||||
+inline int _FILE_fd(const FILE *__f) { return __f->filedes; }
|
||||
+
|
||||
+// Returns a pointer to the beginning of the buffer.
|
||||
+inline char* _FILE_I_begin(const FILE *__f) { return (char*) __f->bufstart; }
|
||||
+
|
||||
+// Returns the current read/write position within the buffer.
|
||||
+inline char* _FILE_I_next(const FILE *__f) { return (char*) __f->bufpos; }
|
||||
+
|
||||
+// Returns a pointer immediately past the end of the buffer.
|
||||
+inline char* _FILE_I_end(const FILE *__f) { return (char*)__f->bufend; }
|
||||
+
|
||||
+// Returns the number of characters remaining in the buffer, i.e.
|
||||
+// _FILE_[IO]_end(__f) - _FILE_[IO]_next(__f).
|
||||
+inline ptrdiff_t _FILE_I_avail(const FILE *__f)
|
||||
+ { return __f->bufgetc - __f->bufpos; }
|
||||
+
|
||||
+// Increments the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_preincr(FILE *__f) { return *(char*)(++__f->bufpos); }
|
||||
+
|
||||
+// Increments the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_postincr(FILE *__f) { return *(char*)(__f->bufpos++); }
|
||||
+
|
||||
+// Decrements the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_predecr(FILE *__f) { return *(char*)(--__f->bufpos); }
|
||||
+
|
||||
+// Decrements the current read/write position by 1, returning the
|
||||
+// character at the old position.
|
||||
+inline char& _FILE_I_postdecr(FILE *__f) { return *(char*)(__f->bufpos--); }
|
||||
+
|
||||
+// Increments the current read/write position by __n.
|
||||
+inline void _FILE_I_bump(FILE *__f, int __n) { __f->bufpos += __n; }
|
||||
+
|
||||
+// Sets the beginning of the bufer to __begin, the current read/write
|
||||
+// position to __next, and the buffer's past-the-end pointer to __end.
|
||||
+// If any of those pointers is null, then all of them must be null.
|
||||
+inline void _FILE_I_set(FILE *__f, char* __begin, char* __next, char* __end)
|
||||
+{
|
||||
+ __f->bufstart = (unsigned char*)__begin;
|
||||
+ __f->bufpos = (unsigned char*)__next;
|
||||
+ __f->bufend = (unsigned char*)__end;
|
||||
+ __f->bufgetc = (unsigned char*)__begin;
|
||||
+ __f->bufputc = (unsigned char*)__end;
|
||||
+}
|
||||
+
|
||||
+# define _STLP_FILE_I_O_IDENTICAL
|
||||
+
|
||||
+#endif
|
||||
+
|
||||
#else /* A C library that we don't have an implementation for. */
|
||||
|
||||
# error The C++ I/O library is not configured for this compiler
|
||||
diff -urN STLport-4.5.3/stlport/stl/c_locale.h STLport-4.5.3-devel/stlport/stl/c_locale.h
|
||||
--- STLport-4.5.3/stlport/stl/c_locale.h Fri Jan 18 15:07:00 2002
|
||||
+++ STLport-4.5.3-devel/stlport/stl/c_locale.h Wed Jan 8 10:58:10 2003
|
||||
@@ -401,6 +401,21 @@
|
||||
# define _Locale_SPACE _S
|
||||
# define _Locale_PRINT (_P | _U | _L | _N | _B)
|
||||
# define _Locale_ALPHA (_U | _L)
|
||||
+
|
||||
+# elif defined(_STLP_USE_UCLIBC) /* linux, using the gnu compiler */
|
||||
+
|
||||
+# define _Locale_CNTRL _IScntrl
|
||||
+# define _Locale_UPPER _ISupper
|
||||
+# define _Locale_LOWER _ISlower
|
||||
+# define _Locale_DIGIT _ISdigit
|
||||
+# define _Locale_XDIGIT _ISxdigit
|
||||
+# define _Locale_PUNCT _ISpunct
|
||||
+# define _Locale_SPACE _ISspace
|
||||
+# define _Locale_PRINT _ISprint
|
||||
+# define _Locale_ALPHA _ISalpha
|
||||
+
|
||||
+#else
|
||||
+# error Unknown Locale
|
||||
#endif
|
||||
|
||||
# endif /* _STLP_C_LOCALE_H */
|
||||
1635
toolchain/gcc/3.3.3/100-uclibc-conf.patch
Normal file
1635
toolchain/gcc/3.3.3/100-uclibc-conf.patch
Normal file
File diff suppressed because it is too large
Load Diff
55
toolchain/gcc/3.3.3/110-uclibc-conf.patch
Normal file
55
toolchain/gcc/3.3.3/110-uclibc-conf.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
Use the patch by Carl Miller <chaz@energoncube.net> for powerpc, with
|
||||
some minor modifications. Changed *os_uclibc to *os_linux_uclibc since
|
||||
at some point we might support other platforms. Also updated to 3.3.3.
|
||||
diff -urN gcc-3.3.3/gcc/config/rs6000/linux.h gcc-3.3.3-new/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.3.3/gcc/config/rs6000/linux.h 2003-11-14 00:46:10.000000000 -0600
|
||||
+++ gcc-3.3.3-new/gcc/config/rs6000/linux.h 2004-02-16 21:13:40.000000000 -0600
|
||||
@@ -64,7 +64,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#undef TARGET_VERSION
|
||||
#define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
|
||||
diff -urN gcc-3.3.3/gcc/config/rs6000/sysv4.h gcc-3.3.3-new/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.3.3/gcc/config/rs6000/sysv4.h 2003-10-28 13:55:41.000000000 -0600
|
||||
+++ gcc-3.3.3-new/gcc/config/rs6000/sysv4.h 2004-02-16 21:13:40.000000000 -0600
|
||||
@@ -968,9 +968,11 @@
|
||||
%{mcall-linux: %(link_os_linux) } \
|
||||
%{mcall-gnu: %(link_os_gnu) } \
|
||||
%{mcall-netbsd: %(link_os_netbsd) } \
|
||||
+%{mcall-uclibc: %(link_os_linux_uclibc) } \
|
||||
%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: \
|
||||
%{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: \
|
||||
- %{!mcall-netbsd: %(link_os_default) }}}}}}}}}"
|
||||
+ %{!mcall-netbsd: %{!mcall-uclibc: \
|
||||
+ %(link_os_default) }}}}}}}}}}"
|
||||
|
||||
#define LINK_OS_DEFAULT_SPEC ""
|
||||
|
||||
@@ -1307,6 +1309,12 @@
|
||||
|
||||
#define LINK_OS_WINDISS_SPEC ""
|
||||
|
||||
+/* uClibc support for Linux. */
|
||||
+
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
/* Define any extra SPECS that the compiler needs to generate. */
|
||||
/* Override rs6000.h definition. */
|
||||
#undef SUBTARGET_EXTRA_SPECS
|
||||
@@ -1372,6 +1380,7 @@
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_vxworks", LINK_OS_VXWORKS_SPEC }, \
|
||||
{ "link_os_windiss", LINK_OS_WINDISS_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_default", LINK_OS_DEFAULT_SPEC }, \
|
||||
{ "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
|
||||
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
|
||||
14
toolchain/gcc/3.3.3/120-softfloat.patch
Normal file
14
toolchain/gcc/3.3.3/120-softfloat.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- gcc-3.3.2-old/configure.in 2003-08-09 01:57:21.000000000 -0500
|
||||
+++ gcc-3.3.2/configure.in 2004-01-15 12:46:29.000000000 -0600
|
||||
@@ -1418,6 +1418,11 @@
|
||||
fi
|
||||
|
||||
FLAGS_FOR_TARGET=
|
||||
+case " $targargs " in
|
||||
+ *" --nfp "* | *" --without-float "*)
|
||||
+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -msoft-float'
|
||||
+ ;;
|
||||
+esac
|
||||
case " $target_configdirs " in
|
||||
*" newlib "*)
|
||||
case " $targargs " in
|
||||
3021
toolchain/gcc/3.3.3/200-uclibc-locale.patch
Normal file
3021
toolchain/gcc/3.3.3/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
10
toolchain/gcc/3.3.3/500-loop.patch
Normal file
10
toolchain/gcc/3.3.3/500-loop.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- gcc/gcc/loop.c 14 Feb 2004 14:46:03 -0000 1.488.2.3
|
||||
+++ gcc/gcc/loop.c 28 Apr 2004 22:02:53 -0000
|
||||
@@ -929,6 +929,7 @@
|
||||
|| (! (GET_CODE (SET_SRC (set)) == REG
|
||||
&& (REGNO (SET_SRC (set))
|
||||
< FIRST_PSEUDO_REGISTER))))
|
||||
+ && regno >= FIRST_PSEUDO_REGISTER
|
||||
/* This test is not redundant; SET_SRC (set) might be
|
||||
a call-clobbered register and the life of REGNO
|
||||
might span a call. */
|
||||
1635
toolchain/gcc/3.3.4/100-uclibc-conf.patch
Normal file
1635
toolchain/gcc/3.3.4/100-uclibc-conf.patch
Normal file
File diff suppressed because it is too large
Load Diff
55
toolchain/gcc/3.3.4/110-uclibc-conf.patch
Normal file
55
toolchain/gcc/3.3.4/110-uclibc-conf.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
Use the patch by Carl Miller <chaz@energoncube.net> for powerpc, with
|
||||
some minor modifications. Changed *os_uclibc to *os_linux_uclibc since
|
||||
at some point we might support other platforms. Also updated to 3.3.3.
|
||||
diff -urN gcc-3.3.3/gcc/config/rs6000/linux.h gcc-3.3.3-new/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.3.3/gcc/config/rs6000/linux.h 2003-11-14 00:46:10.000000000 -0600
|
||||
+++ gcc-3.3.3-new/gcc/config/rs6000/linux.h 2004-02-16 21:13:40.000000000 -0600
|
||||
@@ -64,7 +64,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#undef TARGET_VERSION
|
||||
#define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
|
||||
diff -urN gcc-3.3.3/gcc/config/rs6000/sysv4.h gcc-3.3.3-new/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.3.3/gcc/config/rs6000/sysv4.h 2003-10-28 13:55:41.000000000 -0600
|
||||
+++ gcc-3.3.3-new/gcc/config/rs6000/sysv4.h 2004-02-16 21:13:40.000000000 -0600
|
||||
@@ -968,9 +968,11 @@
|
||||
%{mcall-linux: %(link_os_linux) } \
|
||||
%{mcall-gnu: %(link_os_gnu) } \
|
||||
%{mcall-netbsd: %(link_os_netbsd) } \
|
||||
+%{mcall-uclibc: %(link_os_linux_uclibc) } \
|
||||
%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: \
|
||||
%{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: \
|
||||
- %{!mcall-netbsd: %(link_os_default) }}}}}}}}}"
|
||||
+ %{!mcall-netbsd: %{!mcall-uclibc: \
|
||||
+ %(link_os_default) }}}}}}}}}}"
|
||||
|
||||
#define LINK_OS_DEFAULT_SPEC ""
|
||||
|
||||
@@ -1307,6 +1309,12 @@
|
||||
|
||||
#define LINK_OS_WINDISS_SPEC ""
|
||||
|
||||
+/* uClibc support for Linux. */
|
||||
+
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
/* Define any extra SPECS that the compiler needs to generate. */
|
||||
/* Override rs6000.h definition. */
|
||||
#undef SUBTARGET_EXTRA_SPECS
|
||||
@@ -1372,6 +1380,7 @@
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_vxworks", LINK_OS_VXWORKS_SPEC }, \
|
||||
{ "link_os_windiss", LINK_OS_WINDISS_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_default", LINK_OS_DEFAULT_SPEC }, \
|
||||
{ "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
|
||||
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
|
||||
14
toolchain/gcc/3.3.4/120-softfloat.patch
Normal file
14
toolchain/gcc/3.3.4/120-softfloat.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- gcc-3.3.2-old/configure.in 2003-08-09 01:57:21.000000000 -0500
|
||||
+++ gcc-3.3.2/configure.in 2004-01-15 12:46:29.000000000 -0600
|
||||
@@ -1418,6 +1418,11 @@
|
||||
fi
|
||||
|
||||
FLAGS_FOR_TARGET=
|
||||
+case " $targargs " in
|
||||
+ *" --nfp "* | *" --without-float "*)
|
||||
+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -msoft-float'
|
||||
+ ;;
|
||||
+esac
|
||||
case " $target_configdirs " in
|
||||
*" newlib "*)
|
||||
case " $targargs " in
|
||||
3021
toolchain/gcc/3.3.4/200-uclibc-locale.patch
Normal file
3021
toolchain/gcc/3.3.4/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
10
toolchain/gcc/3.3.4/500-loop.patch
Normal file
10
toolchain/gcc/3.3.4/500-loop.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- gcc/gcc/loop.c 14 Feb 2004 14:46:03 -0000 1.488.2.3
|
||||
+++ gcc/gcc/loop.c 28 Apr 2004 22:02:53 -0000
|
||||
@@ -929,6 +929,7 @@
|
||||
|| (! (GET_CODE (SET_SRC (set)) == REG
|
||||
&& (REGNO (SET_SRC (set))
|
||||
< FIRST_PSEUDO_REGISTER))))
|
||||
+ && regno >= FIRST_PSEUDO_REGISTER
|
||||
/* This test is not redundant; SET_SRC (set) might be
|
||||
a call-clobbered register and the life of REGNO
|
||||
might span a call. */
|
||||
124
toolchain/gcc/3.3.4/specs-arm-soft-float
Normal file
124
toolchain/gcc/3.3.4/specs-arm-soft-float
Normal file
@@ -0,0 +1,124 @@
|
||||
*asm:
|
||||
%{mbig-endian:-EB} %{mlittle-endian:-EL} %{mcpu=*:-mcpu=%*} %{march=*:-march=%*} %{mapcs-*:-mapcs-%*} %(subtarget_asm_float_spec) %{mthumb-interwork:-mthumb-interwork} %(subtarget_extra_asm_spec)
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%(cpp_cpu_arch) %(subtarget_cpp_spec) %{mapcs-32:%{mapcs-26: %e-mapcs-26 and -mapcs-32 may not be used together}} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{mbig-endian:%{mlittle-endian: %e-mbig-endian and -mlittle-endian may not be used together}}
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{profile:-p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*link:
|
||||
%{h*} %{version:-v} %{b} %{Wl,*:%*} %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} -X %{mbig-endian:-EB} -m armelf_linux -p
|
||||
|
||||
*lib:
|
||||
%{pthread:-lpthread} %{shared:-lc} %{!shared:%{profile:-lc_p}%{!profile:-lc}}
|
||||
|
||||
*libgcc:
|
||||
%{!mhard-float:-lfloat} %{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:-lgcc_s%M}}}
|
||||
|
||||
*startfile:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
marm mlittle-endian msoft-float mapcs-32 mno-thumb-interwork
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*cpp_cpu_arch:
|
||||
%{march=arm2:-D__ARM_ARCH_2__} %{march=arm250:-D__ARM_ARCH_2__} %{march=arm3:-D__ARM_ARCH_2__} %{march=arm6:-D__ARM_ARCH_3__} %{march=arm600:-D__ARM_ARCH_3__} %{march=arm610:-D__ARM_ARCH_3__} %{march=arm7:-D__ARM_ARCH_3__} %{march=arm700:-D__ARM_ARCH_3__} %{march=arm710:-D__ARM_ARCH_3__} %{march=arm720:-D__ARM_ARCH_3__} %{march=arm7100:-D__ARM_ARCH_3__} %{march=arm7500:-D__ARM_ARCH_3__} %{march=arm7500fe:-D__ARM_ARCH_3__} %{march=arm7m:-D__ARM_ARCH_3M__} %{march=arm7dm:-D__ARM_ARCH_3M__} %{march=arm7dmi:-D__ARM_ARCH_3M__} %{march=arm7tdmi:-D__ARM_ARCH_4T__} %{march=arm8:-D__ARM_ARCH_4__} %{march=arm810:-D__ARM_ARCH_4__} %{march=arm9:-D__ARM_ARCH_4T__} %{march=arm920:-D__ARM_ARCH_4__} %{march=arm920t:-D__ARM_ARCH_4T__} %{march=arm9tdmi:-D__ARM_ARCH_4T__} %{march=strongarm:-D__ARM_ARCH_4__} %{march=strongarm110:-D__ARM_ARCH_4__} %{march=strongarm1100:-D__ARM_ARCH_4__} %{march=xscale:-D__ARM_ARCH_5TE__} %{march=xscale:-D__XSCALE__} %{march=armv2:-D__ARM_ARCH_2__} %{march=armv2a:-D__ARM_ARCH_2__} %{march=armv3:-D__ARM_ARCH_3__} %{march=armv3m:-D__ARM_ARCH_3M__} %{march=armv4:-D__ARM_ARCH_4__} %{march=armv4t:-D__ARM_ARCH_4T__} %{march=armv5:-D__ARM_ARCH_5__} %{march=armv5t:-D__ARM_ARCH_5T__} %{march=armv5e:-D__ARM_ARCH_5E__} %{march=armv5te:-D__ARM_ARCH_5TE__} %{!march=*: %{mcpu=arm2:-D__ARM_ARCH_2__} %{mcpu=arm250:-D__ARM_ARCH_2__} %{mcpu=arm3:-D__ARM_ARCH_2__} %{mcpu=arm6:-D__ARM_ARCH_3__} %{mcpu=arm600:-D__ARM_ARCH_3__} %{mcpu=arm610:-D__ARM_ARCH_3__} %{mcpu=arm7:-D__ARM_ARCH_3__} %{mcpu=arm700:-D__ARM_ARCH_3__} %{mcpu=arm710:-D__ARM_ARCH_3__} %{mcpu=arm720:-D__ARM_ARCH_3__} %{mcpu=arm7100:-D__ARM_ARCH_3__} %{mcpu=arm7500:-D__ARM_ARCH_3__} %{mcpu=arm7500fe:-D__ARM_ARCH_3__} %{mcpu=arm7m:-D__ARM_ARCH_3M__} %{mcpu=arm7dm:-D__ARM_ARCH_3M__} %{mcpu=arm7dmi:-D__ARM_ARCH_3M__} %{mcpu=arm7tdmi:-D__ARM_ARCH_4T__} %{mcpu=arm8:-D__ARM_ARCH_4__} %{mcpu=arm810:-D__ARM_ARCH_4__} %{mcpu=arm9:-D__ARM_ARCH_4T__} %{mcpu=arm920:-D__ARM_ARCH_4__} %{mcpu=arm920t:-D__ARM_ARCH_4T__} %{mcpu=arm9tdmi:-D__ARM_ARCH_4T__} %{mcpu=strongarm:-D__ARM_ARCH_4__} %{mcpu=strongarm110:-D__ARM_ARCH_4__} %{mcpu=strongarm1100:-D__ARM_ARCH_4__} %{mcpu=xscale:-D__ARM_ARCH_5TE__} %{mcpu=xscale:-D__XSCALE__} %{!mcpu*:%(cpp_cpu_arch_default)}}
|
||||
|
||||
*cpp_cpu_arch_default:
|
||||
-D__ARM_ARCH_4T__
|
||||
|
||||
*subtarget_cpp_spec:
|
||||
%{posix:-D_POSIX_SOURCE} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}
|
||||
|
||||
*subtarget_extra_asm_spec:
|
||||
|
||||
|
||||
*subtarget_asm_float_spec:
|
||||
%{mapcs-float:-mfloat} %{!mhard-float:-mno-fpu}
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
145
toolchain/gcc/3.3.4/specs-mips-soft-float
Normal file
145
toolchain/gcc/3.3.4/specs-mips-soft-float
Normal file
@@ -0,0 +1,145 @@
|
||||
*asm:
|
||||
%{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64}%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} %(subtarget_asm_optimizing_spec) %(subtarget_asm_debugging_spec) %{membedded-pic} %{mabi=32:-32}%{mabi=n32:-n32}%{mabi=64:-64}%{mabi=n64:-64} %{mabi=eabi} %{mabi=o64} %{!mabi*: %(asm_abi_default_spec)} %{mgp32} %{mgp64} %{march=*} %(target_asm_spec) %(subtarget_asm_spec)
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
%|
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%(subtarget_cpp_spec)
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{profile:-p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*link:
|
||||
%{!static:--eh-frame-hdr} %(endian_spec) %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} %{static:-static}}}
|
||||
|
||||
*lib:
|
||||
%{shared: -lc} %{!static:-rpath-link %R/lib:%R/usr/lib} %{!shared: %{pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}}
|
||||
|
||||
*libgcc:
|
||||
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}}
|
||||
|
||||
*startfile:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
EB mips1 mabi=32
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*subtarget_cc1_spec:
|
||||
|
||||
|
||||
*subtarget_cpp_spec:
|
||||
%{fno-PIC:-U__PIC__ -U__pic__} %{fno-pic:-U__PIC__ -U__pic__} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{pthread:-D_REENTRANT}
|
||||
|
||||
*mips_as_asm_spec:
|
||||
%{!.s:-nocpp} %{.s: %{cpp} %{nocpp}} %{pipe: %e-pipe is not supported} %{K} %(subtarget_mips_as_asm_spec)
|
||||
|
||||
*gas_asm_spec:
|
||||
%{mtune=*} %{v}
|
||||
|
||||
*target_asm_spec:
|
||||
%{mmips-as: %(mips_as_asm_spec)} %{!mmips-as: %(gas_asm_spec)}
|
||||
|
||||
*subtarget_mips_as_asm_spec:
|
||||
%{v}
|
||||
|
||||
*subtarget_asm_optimizing_spec:
|
||||
%{noasmopt:-O0} %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}}
|
||||
|
||||
*subtarget_asm_debugging_spec:
|
||||
-g0
|
||||
|
||||
*mdebug_asm_spec:
|
||||
%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}
|
||||
|
||||
*subtarget_asm_spec:
|
||||
%{mabi=64: -64} %{!fno-PIC:%{!fno-pic:-KPIC}} %{fno-PIC:-non_shared} %{fno-pic:-non_shared}
|
||||
|
||||
*asm_abi_default_spec:
|
||||
-32
|
||||
|
||||
*endian_spec:
|
||||
%{!EL:%{!mel:-EB}} %{EL|mel:-EL}
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
145
toolchain/gcc/3.3.4/specs-mipsel-soft-float
Normal file
145
toolchain/gcc/3.3.4/specs-mipsel-soft-float
Normal file
@@ -0,0 +1,145 @@
|
||||
*asm:
|
||||
%{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64}%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} %(subtarget_asm_optimizing_spec) %(subtarget_asm_debugging_spec) %{membedded-pic} %{mabi=32:-32}%{mabi=n32:-n32}%{mabi=64:-64}%{mabi=n64:-64} %{mabi=eabi} %{mabi=o64} %{!mabi*: %(asm_abi_default_spec)} %{mgp32} %{mgp64} %{march=*} %(target_asm_spec) %(subtarget_asm_spec)
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
%|
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%(subtarget_cpp_spec)
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{profile:-p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*link:
|
||||
%{!static:--eh-frame-hdr} %(endian_spec) %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} %{static:-static}}}
|
||||
|
||||
*lib:
|
||||
%{shared: -lc} %{!static:-rpath-link %R/lib:%R/usr/lib} %{!shared: %{pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}}
|
||||
|
||||
*libgcc:
|
||||
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}}
|
||||
|
||||
*startfile:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
EL mips1 mabi=32
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*subtarget_cc1_spec:
|
||||
|
||||
|
||||
*subtarget_cpp_spec:
|
||||
%{fno-PIC:-U__PIC__ -U__pic__} %{fno-pic:-U__PIC__ -U__pic__} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{pthread:-D_REENTRANT}
|
||||
|
||||
*mips_as_asm_spec:
|
||||
%{!.s:-nocpp} %{.s: %{cpp} %{nocpp}} %{pipe: %e-pipe is not supported} %{K} %(subtarget_mips_as_asm_spec)
|
||||
|
||||
*gas_asm_spec:
|
||||
%{mtune=*} %{v}
|
||||
|
||||
*target_asm_spec:
|
||||
%{mmips-as: %(mips_as_asm_spec)} %{!mmips-as: %(gas_asm_spec)}
|
||||
|
||||
*subtarget_mips_as_asm_spec:
|
||||
%{v}
|
||||
|
||||
*subtarget_asm_optimizing_spec:
|
||||
%{noasmopt:-O0} %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}}
|
||||
|
||||
*subtarget_asm_debugging_spec:
|
||||
-g0
|
||||
|
||||
*mdebug_asm_spec:
|
||||
%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}
|
||||
|
||||
*subtarget_asm_spec:
|
||||
%{mabi=64: -64} %{!fno-PIC:%{!fno-pic:-KPIC}} %{fno-PIC:-non_shared} %{fno-pic:-non_shared}
|
||||
|
||||
*asm_abi_default_spec:
|
||||
-32
|
||||
|
||||
*endian_spec:
|
||||
%{!EB:%{!meb:-EL}} %{EB|meb:-EB}
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
352
toolchain/gcc/3.3.4/specs-powerpc-soft-float
Normal file
352
toolchain/gcc/3.3.4/specs-powerpc-soft-float
Normal file
@@ -0,0 +1,352 @@
|
||||
*asm:
|
||||
%(asm_cpu) %{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} %{memb} %{!memb: %{msdata: -memb} %{msdata=eabi: -memb}} %{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian} %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-freebsd: -mbig} %{mcall-i960-old: -mlittle} %{mcall-linux: -mbig} %{mcall-gnu: -mbig} %{mcall-netbsd: -mbig} }}}}
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
%|
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%{posix: -D_POSIX_SOURCE} %(cpp_sysv) %{mads: %(cpp_os_ads) } %{myellowknife: %(cpp_os_yellowknife) } %{mmvme: %(cpp_os_mvme) } %{msim: %(cpp_os_sim) } %{mwindiss: %(cpp_os_windiss) } %{mcall-freebsd: %(cpp_os_freebsd) } %{mcall-linux: %(cpp_os_linux) } %{mcall-gnu: %(cpp_os_gnu) } %{mcall-netbsd: %(cpp_os_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(cpp_os_default) }}}}}}}}}
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{G*} %{mlittle: %(cc1_endian_little)} %{!mlittle: %{mlittle-endian: %(cc1_endian_little)}} %{mbig: %(cc1_endian_big)} %{!mbig: %{mbig-endian: %(cc1_endian_big)}} %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-aixdesc: -mbig %(cc1_endian_big) } %{mcall-freebsd: -mbig %(cc1_endian_big) } %{mcall-i960-old: -mlittle %(cc1_endian_little) } %{mcall-linux: -mbig %(cc1_endian_big) } %{mcall-gnu: -mbig %(cc1_endian_big) } %{mcall-netbsd: -mbig %(cc1_endian_big) } %{!mcall-aixdesc: %{!mcall-freebsd: %{!mcall-i960-old: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(cc1_endian_default) }}}}}} }}}} %{mno-sdata: -msdata=none } %{meabi: %{!mcall-*: -mcall-sysv }} %{!meabi: %{!mno-eabi: %{mrelocatable: -meabi } %{mcall-freebsd: -mno-eabi } %{mcall-i960-old: -meabi } %{mcall-linux: -mno-eabi } %{mcall-gnu: -mno-eabi } %{mcall-netbsd: -mno-eabi }}} %{msdata: -msdata=default} %{mno-sdata: -msdata=none} %{profile: -p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{mads: crtsavres.o%s %(endfile_ads)} %{myellowknife: crtsavres.o%s %(endfile_yellowknife)} %{mmvme: crtsavres.o%s %(endfile_mvme)} %{msim: crtsavres.o%s %(endfile_sim)} %{mwindiss: %(endfile_windiss)} %{mcall-freebsd: crtsavres.o%s %(endfile_freebsd) } %{mcall-linux: crtsavres.o%s %(endfile_linux) } %{mcall-gnu: crtsavres.o%s %(endfile_gnu) } %{mcall-netbsd: crtsavres.o%s %(endfile_netbsd) } %{mvxworks: crtsavres.o%s %(endfile_vxworks) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %{!mvxworks: %(crtsavres_default) %(endfile_default) }}}}}}}}}}
|
||||
|
||||
*link:
|
||||
%{!static:--eh-frame-hdr} %{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} %{YP,*} %{R*} %{Qy:} %{!Qn:-Qy} %(link_shlib) %{!Wl,-T*: %{!T*: %(link_start) }} %(link_target) %(link_os)
|
||||
|
||||
*lib:
|
||||
%{mads: %(lib_ads) } %{myellowknife: %(lib_yellowknife) } %{mmvme: %(lib_mvme) } %{msim: %(lib_sim) } %{mwindiss: %(lib_windiss) } %{mcall-freebsd: %(lib_freebsd) } %{mcall-linux: %(lib_linux) } %{mcall-gnu: %(lib_gnu) } %{mcall-netbsd: %(lib_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(lib_default) }}}}}}}}}
|
||||
|
||||
*libgcc:
|
||||
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}}
|
||||
|
||||
*startfile:
|
||||
%{mads: %(startfile_ads) } %{myellowknife: %(startfile_yellowknife) } %{mmvme: %(startfile_mvme) } %{msim: %(startfile_sim) } %{mwindiss: %(startfile_windiss) } %{mcall-freebsd: %(startfile_freebsd) } %{mcall-linux: %(startfile_linux) } %{mcall-gnu: %(startfile_gnu) } %{mcall-netbsd: %(startfile_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(startfile_default) }}}}}}}}}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. mhard-float;nof !mhard-float;
|
||||
|
||||
*multilib_defaults:
|
||||
mbig mcall-sysv
|
||||
|
||||
*multilib_extra:
|
||||
fPIC mstrict-align
|
||||
|
||||
*multilib_matches:
|
||||
mcpu=401 msoft-float;mcpu=403 msoft-float;mcpu=405 msoft-float;mcpu=ec603e msoft-float;mcpu=801 msoft-float;mcpu=821 msoft-float;mcpu=823 msoft-float;mcpu=860 msoft-float;msoft-float msoft-float;
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
msoft-float
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*cpp_default:
|
||||
|
||||
|
||||
*asm_cpu:
|
||||
%{!mcpu*: %{mpower: %{!mpower2: -mpwr}} %{mpower2: -mpwrx} %{mpowerpc*: -mppc} %{mno-power: %{!mpowerpc*: -mcom}} %{!mno-power: %{!mpower2: %(asm_default)}}} %{mcpu=common: -mcom} %{mcpu=power: -mpwr} %{mcpu=power2: -mpwrx} %{mcpu=power3: -m604} %{mcpu=power4: -mpower4} %{mcpu=powerpc: -mppc} %{mcpu=rios: -mpwr} %{mcpu=rios1: -mpwr} %{mcpu=rios2: -mpwrx} %{mcpu=rsc: -mpwr} %{mcpu=rsc1: -mpwr} %{mcpu=401: -mppc} %{mcpu=403: -m403} %{mcpu=405: -m405} %{mcpu=505: -mppc} %{mcpu=601: -m601} %{mcpu=602: -mppc} %{mcpu=603: -mppc} %{mcpu=603e: -mppc} %{mcpu=ec603e: -mppc} %{mcpu=604: -mppc} %{mcpu=604e: -mppc} %{mcpu=620: -mppc} %{mcpu=630: -m604} %{mcpu=740: -mppc} %{mcpu=7400: -mppc} %{mcpu=7450: -mppc} %{mcpu=750: -mppc} %{mcpu=801: -mppc} %{mcpu=821: -mppc} %{mcpu=823: -mppc} %{mcpu=860: -mppc} %{mcpu=8540: -me500} %{maltivec: -maltivec}
|
||||
|
||||
*asm_default:
|
||||
-mppc
|
||||
|
||||
*cpp_sysv:
|
||||
%{mrelocatable*: -D_RELOCATABLE} %{fpic: -D__PIC__=1 -D__pic__=1} %{!fpic: %{fPIC: -D__PIC__=2 -D__pic__=2}}
|
||||
|
||||
*crtsavres_default:
|
||||
crtsavres.o%s
|
||||
|
||||
*lib_ads:
|
||||
--start-group -lads -lc --end-group
|
||||
|
||||
*lib_yellowknife:
|
||||
--start-group -lyk -lc --end-group
|
||||
|
||||
*lib_mvme:
|
||||
--start-group -lmvme -lc --end-group
|
||||
|
||||
*lib_sim:
|
||||
--start-group -lsim -lc --end-group
|
||||
|
||||
*lib_freebsd:
|
||||
%{!shared: %{!pg: %{!pthread:-lc} %{pthread:-lc_r}} %{pg: %{!pthread:-lc_p} %{pthread:-lc_r_p}} }
|
||||
|
||||
*lib_gnu:
|
||||
%{mnewlib: --start-group -lgnu -lc --end-group } %{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } %{profile:-lc_p} %{!profile:-lc}}}
|
||||
|
||||
*lib_linux:
|
||||
%{mnewlib: --start-group -llinux -lc --end-group } %{!mnewlib: %{pthread:-lpthread} %{shared:-lc} %{!shared: %{profile:-lc_p} %{!profile:-lc}}}
|
||||
|
||||
*lib_netbsd:
|
||||
%{profile:-lgmon -lc_p} %{!profile:-lc}
|
||||
|
||||
*lib_vxworks:
|
||||
|
||||
|
||||
*lib_windiss:
|
||||
--start-group -li -lcfp -lwindiss -lram -limpl -limpfp --end-group
|
||||
|
||||
*lib_default:
|
||||
%(lib_linux)
|
||||
|
||||
*startfile_ads:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_yellowknife:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_mvme:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_sim:
|
||||
ecrti.o%s sim-crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_freebsd:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_gnu:
|
||||
%{!shared: %{!static: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}} %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_linux:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}
|
||||
|
||||
*startfile_netbsd:
|
||||
ncrti.o%s crt0.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_vxworks:
|
||||
|
||||
|
||||
*startfile_windiss:
|
||||
crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_default:
|
||||
%(startfile_linux)
|
||||
|
||||
*endfile_ads:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_yellowknife:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_mvme:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_sim:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_freebsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*endfile_gnu:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
||||
|
||||
*endfile_linux:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
||||
|
||||
*endfile_netbsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} ncrtn.o%s
|
||||
|
||||
*endfile_vxworks:
|
||||
|
||||
|
||||
*endfile_windiss:
|
||||
crtend.o%s
|
||||
|
||||
*endfile_default:
|
||||
%(endfile_linux)
|
||||
|
||||
*link_path:
|
||||
|
||||
|
||||
*link_shlib:
|
||||
%{shared:-shared} %{!shared: %{static:-static}}
|
||||
|
||||
*link_target:
|
||||
%{mlittle: --oformat elf32-powerpcle } %{mlittle-endian: --oformat elf32-powerpcle } %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-i960-old: --oformat elf32-powerpcle} }}}}
|
||||
|
||||
*link_start:
|
||||
%{mads: %(link_start_ads) } %{myellowknife: %(link_start_yellowknife) } %{mmvme: %(link_start_mvme) } %{msim: %(link_start_sim) } %{mwindiss: %(link_start_windiss) } %{mcall-freebsd: %(link_start_freebsd) } %{mcall-linux: %(link_start_linux) } %{mcall-gnu: %(link_start_gnu) } %{mcall-netbsd: %(link_start_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %{!mcall-freebsd: %(link_start_default) }}}}}}}}}
|
||||
|
||||
*link_start_ads:
|
||||
-T ads.ld%s
|
||||
|
||||
*link_start_yellowknife:
|
||||
-T yellowknife.ld%s
|
||||
|
||||
*link_start_mvme:
|
||||
-Ttext 0x40000
|
||||
|
||||
*link_start_sim:
|
||||
|
||||
|
||||
*link_start_freebsd:
|
||||
|
||||
|
||||
*link_start_gnu:
|
||||
|
||||
|
||||
*link_start_linux:
|
||||
|
||||
|
||||
*link_start_netbsd:
|
||||
|
||||
|
||||
*link_start_vxworks:
|
||||
|
||||
|
||||
*link_start_windiss:
|
||||
|
||||
|
||||
*link_start_default:
|
||||
%(link_start_linux)
|
||||
|
||||
*link_os:
|
||||
%{mads: %(link_os_ads) } %{myellowknife: %(link_os_yellowknife) } %{mmvme: %(link_os_mvme) } %{msim: %(link_os_sim) } %{mwindiss: %(link_os_windiss) } %{mcall-freebsd: %(link_os_freebsd) } %{mcall-linux: %(link_os_linux) } %{mcall-gnu: %(link_os_gnu) } %{mcall-netbsd: %(link_os_netbsd) } %{mcall-uclibc: %(link_os_linux_uclibc) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %{!mcall-uclibc: %(link_os_default) }}}}}}}}}}
|
||||
|
||||
*link_os_ads:
|
||||
|
||||
|
||||
*link_os_yellowknife:
|
||||
|
||||
|
||||
*link_os_mvme:
|
||||
|
||||
|
||||
*link_os_sim:
|
||||
-m elf32ppcsim
|
||||
|
||||
*link_os_freebsd:
|
||||
%{p:%e`-p' not supported; use `-pg' and gprof(1)} %{Wl,*:%*} %{v:-V} %{assert*} %{R*} %{rpath*} %{defsym*} %{shared:-Bshareable %{h*} %{soname*}} %{!shared: %{!static: %{rdynamic: -export-dynamic} %{!dynamic-linker: -dynamic-linker /usr/libexec/ld-elf.so.1}} %{static:-Bstatic}} %{symbolic:-Bsymbolic}
|
||||
|
||||
*link_os_linux:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
||||
|
||||
*link_os_gnu:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
||||
|
||||
*link_os_netbsd:
|
||||
%{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}}
|
||||
|
||||
*link_os_vxworks:
|
||||
-r
|
||||
|
||||
*link_os_windiss:
|
||||
|
||||
|
||||
*link_os_linux_uclibc:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}
|
||||
|
||||
*link_os_default:
|
||||
%(link_os_linux_uclibc)
|
||||
|
||||
*cc1_endian_big:
|
||||
|
||||
|
||||
*cc1_endian_little:
|
||||
%{!mstrict-align: %{!mno-strict-align: %{!mcall-i960-old: -mstrict-align } }}
|
||||
|
||||
*cc1_endian_default:
|
||||
%(cc1_endian_big)
|
||||
|
||||
*cpp_os_ads:
|
||||
|
||||
|
||||
*cpp_os_yellowknife:
|
||||
|
||||
|
||||
*cpp_os_mvme:
|
||||
|
||||
|
||||
*cpp_os_sim:
|
||||
|
||||
|
||||
*cpp_os_freebsd:
|
||||
-D__ELF__ -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ -Acpu=powerpc -Amachine=powerpc
|
||||
|
||||
*cpp_os_gnu:
|
||||
-D__unix__ -D__gnu_hurd__ -D__GNU__ %{!undef: %{!ansi: -Dunix -D__unix}} -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
||||
|
||||
*cpp_os_linux:
|
||||
-D__unix__ -D__gnu_linux__ -D__linux__ %{!undef: %{!ansi: %{!std=*:-Dunix -D__unix -Dlinux -D__linux} %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
||||
|
||||
*cpp_os_netbsd:
|
||||
-D__powerpc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__
|
||||
|
||||
*cpp_os_rtems:
|
||||
%{!mcpu*: %{!Dppc*: %{!Dmpc*: -Dmpc750} } }%{mcpu=403: %{!Dppc*: %{!Dmpc*: -Dppc403} } } %{mcpu=505: %{!Dppc*: %{!Dmpc*: -Dmpc505} } } %{mcpu=601: %{!Dppc*: %{!Dmpc*: -Dppc601} } } %{mcpu=602: %{!Dppc*: %{!Dmpc*: -Dppc602} } } %{mcpu=603: %{!Dppc*: %{!Dmpc*: -Dppc603} } } %{mcpu=603e: %{!Dppc*: %{!Dmpc*: -Dppc603e} } } %{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } %{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } %{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }
|
||||
|
||||
*cpp_os_vxworks:
|
||||
-DCPU_FAMILY=PPC %{!mcpu*: %{mpowerpc*: -DCPU=PPC603} %{!mno-powerpc: -DCPU=PPC603}} %{mcpu=powerpc: -DCPU=PPC603} %{mcpu=401: -DCPU=PPC403} %{mcpu=403: -DCPU=PPC403} %{mcpu=405: -DCPU=PPC405} %{mcpu=601: -DCPU=PPC601} %{mcpu=602: -DCPU=PPC603} %{mcpu=603: -DCPU=PPC603} %{mcpu=603e: -DCPU=PPC603} %{mcpu=ec603e: -DCPU=PPC603} %{mcpu=604: -DCPU=PPC604} %{mcpu=604e: -DCPU=PPC604} %{mcpu=620: -DCPU=PPC604} %{mcpu=740: -DCPU=PPC603} %{mcpu=7450: -DCPU=PPC603} %{mcpu=750: -DCPU=PPC603} %{mcpu=801: -DCPU=PPC603} %{mcpu=821: -DCPU=PPC603} %{mcpu=823: -DCPU=PPC603} %{mcpu=860: -DCPU=PPC603}
|
||||
|
||||
*cpp_os_windiss:
|
||||
-D__rtasim -D__EABI__ -D__ppc %{!msoft-float: -D__hardfp}
|
||||
|
||||
*cpp_os_default:
|
||||
%(cpp_os_linux)
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
1635
toolchain/gcc/3.3.5/100-uclibc-conf.patch
Normal file
1635
toolchain/gcc/3.3.5/100-uclibc-conf.patch
Normal file
File diff suppressed because it is too large
Load Diff
55
toolchain/gcc/3.3.5/110-uclibc-conf.patch
Normal file
55
toolchain/gcc/3.3.5/110-uclibc-conf.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
Use the patch by Carl Miller <chaz@energoncube.net> for powerpc, with
|
||||
some minor modifications. Changed *os_uclibc to *os_linux_uclibc since
|
||||
at some point we might support other platforms. Also updated to 3.3.3.
|
||||
diff -urN gcc-3.3.3/gcc/config/rs6000/linux.h gcc-3.3.3-new/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.3.3/gcc/config/rs6000/linux.h 2003-11-14 00:46:10.000000000 -0600
|
||||
+++ gcc-3.3.3-new/gcc/config/rs6000/linux.h 2004-02-16 21:13:40.000000000 -0600
|
||||
@@ -64,7 +64,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#undef TARGET_VERSION
|
||||
#define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
|
||||
diff -urN gcc-3.3.3/gcc/config/rs6000/sysv4.h gcc-3.3.3-new/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.3.3/gcc/config/rs6000/sysv4.h 2003-10-28 13:55:41.000000000 -0600
|
||||
+++ gcc-3.3.3-new/gcc/config/rs6000/sysv4.h 2004-02-16 21:13:40.000000000 -0600
|
||||
@@ -968,9 +968,11 @@
|
||||
%{mcall-linux: %(link_os_linux) } \
|
||||
%{mcall-gnu: %(link_os_gnu) } \
|
||||
%{mcall-netbsd: %(link_os_netbsd) } \
|
||||
+%{mcall-uclibc: %(link_os_linux_uclibc) } \
|
||||
%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: \
|
||||
%{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: \
|
||||
- %{!mcall-netbsd: %(link_os_default) }}}}}}}}}"
|
||||
+ %{!mcall-netbsd: %{!mcall-uclibc: \
|
||||
+ %(link_os_default) }}}}}}}}}}"
|
||||
|
||||
#define LINK_OS_DEFAULT_SPEC ""
|
||||
|
||||
@@ -1307,6 +1309,12 @@
|
||||
|
||||
#define LINK_OS_WINDISS_SPEC ""
|
||||
|
||||
+/* uClibc support for Linux. */
|
||||
+
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
/* Define any extra SPECS that the compiler needs to generate. */
|
||||
/* Override rs6000.h definition. */
|
||||
#undef SUBTARGET_EXTRA_SPECS
|
||||
@@ -1372,6 +1380,7 @@
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_vxworks", LINK_OS_VXWORKS_SPEC }, \
|
||||
{ "link_os_windiss", LINK_OS_WINDISS_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_default", LINK_OS_DEFAULT_SPEC }, \
|
||||
{ "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
|
||||
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
|
||||
14
toolchain/gcc/3.3.5/120-softfloat.patch
Normal file
14
toolchain/gcc/3.3.5/120-softfloat.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- gcc-3.3.2-old/configure.in 2003-08-09 01:57:21.000000000 -0500
|
||||
+++ gcc-3.3.2/configure.in 2004-01-15 12:46:29.000000000 -0600
|
||||
@@ -1418,6 +1418,11 @@
|
||||
fi
|
||||
|
||||
FLAGS_FOR_TARGET=
|
||||
+case " $targargs " in
|
||||
+ *" --nfp "* | *" --without-float "*)
|
||||
+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -msoft-float'
|
||||
+ ;;
|
||||
+esac
|
||||
case " $target_configdirs " in
|
||||
*" newlib "*)
|
||||
case " $targargs " in
|
||||
3021
toolchain/gcc/3.3.5/200-uclibc-locale.patch
Normal file
3021
toolchain/gcc/3.3.5/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
10
toolchain/gcc/3.3.5/500-loop.patch
Normal file
10
toolchain/gcc/3.3.5/500-loop.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- gcc/gcc/loop.c 14 Feb 2004 14:46:03 -0000 1.488.2.3
|
||||
+++ gcc/gcc/loop.c 28 Apr 2004 22:02:53 -0000
|
||||
@@ -929,6 +929,7 @@
|
||||
|| (! (GET_CODE (SET_SRC (set)) == REG
|
||||
&& (REGNO (SET_SRC (set))
|
||||
< FIRST_PSEUDO_REGISTER))))
|
||||
+ && regno >= FIRST_PSEUDO_REGISTER
|
||||
/* This test is not redundant; SET_SRC (set) might be
|
||||
a call-clobbered register and the life of REGNO
|
||||
might span a call. */
|
||||
124
toolchain/gcc/3.3.5/specs-arm-soft-float
Normal file
124
toolchain/gcc/3.3.5/specs-arm-soft-float
Normal file
@@ -0,0 +1,124 @@
|
||||
*asm:
|
||||
%{mbig-endian:-EB} %{mlittle-endian:-EL} %{mcpu=*:-mcpu=%*} %{march=*:-march=%*} %{mapcs-*:-mapcs-%*} %(subtarget_asm_float_spec) %{mthumb-interwork:-mthumb-interwork} %(subtarget_extra_asm_spec)
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%(cpp_cpu_arch) %(subtarget_cpp_spec) %{mapcs-32:%{mapcs-26: %e-mapcs-26 and -mapcs-32 may not be used together}} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{mbig-endian:%{mlittle-endian: %e-mbig-endian and -mlittle-endian may not be used together}}
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{profile:-p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*link:
|
||||
%{h*} %{version:-v} %{b} %{Wl,*:%*} %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} -X %{mbig-endian:-EB} -m armelf_linux -p
|
||||
|
||||
*lib:
|
||||
%{pthread:-lpthread} %{shared:-lc} %{!shared:%{profile:-lc_p}%{!profile:-lc}}
|
||||
|
||||
*libgcc:
|
||||
%{!mhard-float:-lfloat} %{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:-lgcc_s%M}}}
|
||||
|
||||
*startfile:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
marm mlittle-endian msoft-float mapcs-32 mno-thumb-interwork
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*cpp_cpu_arch:
|
||||
%{march=arm2:-D__ARM_ARCH_2__} %{march=arm250:-D__ARM_ARCH_2__} %{march=arm3:-D__ARM_ARCH_2__} %{march=arm6:-D__ARM_ARCH_3__} %{march=arm600:-D__ARM_ARCH_3__} %{march=arm610:-D__ARM_ARCH_3__} %{march=arm7:-D__ARM_ARCH_3__} %{march=arm700:-D__ARM_ARCH_3__} %{march=arm710:-D__ARM_ARCH_3__} %{march=arm720:-D__ARM_ARCH_3__} %{march=arm7100:-D__ARM_ARCH_3__} %{march=arm7500:-D__ARM_ARCH_3__} %{march=arm7500fe:-D__ARM_ARCH_3__} %{march=arm7m:-D__ARM_ARCH_3M__} %{march=arm7dm:-D__ARM_ARCH_3M__} %{march=arm7dmi:-D__ARM_ARCH_3M__} %{march=arm7tdmi:-D__ARM_ARCH_4T__} %{march=arm8:-D__ARM_ARCH_4__} %{march=arm810:-D__ARM_ARCH_4__} %{march=arm9:-D__ARM_ARCH_4T__} %{march=arm920:-D__ARM_ARCH_4__} %{march=arm920t:-D__ARM_ARCH_4T__} %{march=arm9tdmi:-D__ARM_ARCH_4T__} %{march=strongarm:-D__ARM_ARCH_4__} %{march=strongarm110:-D__ARM_ARCH_4__} %{march=strongarm1100:-D__ARM_ARCH_4__} %{march=xscale:-D__ARM_ARCH_5TE__} %{march=xscale:-D__XSCALE__} %{march=armv2:-D__ARM_ARCH_2__} %{march=armv2a:-D__ARM_ARCH_2__} %{march=armv3:-D__ARM_ARCH_3__} %{march=armv3m:-D__ARM_ARCH_3M__} %{march=armv4:-D__ARM_ARCH_4__} %{march=armv4t:-D__ARM_ARCH_4T__} %{march=armv5:-D__ARM_ARCH_5__} %{march=armv5t:-D__ARM_ARCH_5T__} %{march=armv5e:-D__ARM_ARCH_5E__} %{march=armv5te:-D__ARM_ARCH_5TE__} %{!march=*: %{mcpu=arm2:-D__ARM_ARCH_2__} %{mcpu=arm250:-D__ARM_ARCH_2__} %{mcpu=arm3:-D__ARM_ARCH_2__} %{mcpu=arm6:-D__ARM_ARCH_3__} %{mcpu=arm600:-D__ARM_ARCH_3__} %{mcpu=arm610:-D__ARM_ARCH_3__} %{mcpu=arm7:-D__ARM_ARCH_3__} %{mcpu=arm700:-D__ARM_ARCH_3__} %{mcpu=arm710:-D__ARM_ARCH_3__} %{mcpu=arm720:-D__ARM_ARCH_3__} %{mcpu=arm7100:-D__ARM_ARCH_3__} %{mcpu=arm7500:-D__ARM_ARCH_3__} %{mcpu=arm7500fe:-D__ARM_ARCH_3__} %{mcpu=arm7m:-D__ARM_ARCH_3M__} %{mcpu=arm7dm:-D__ARM_ARCH_3M__} %{mcpu=arm7dmi:-D__ARM_ARCH_3M__} %{mcpu=arm7tdmi:-D__ARM_ARCH_4T__} %{mcpu=arm8:-D__ARM_ARCH_4__} %{mcpu=arm810:-D__ARM_ARCH_4__} %{mcpu=arm9:-D__ARM_ARCH_4T__} %{mcpu=arm920:-D__ARM_ARCH_4__} %{mcpu=arm920t:-D__ARM_ARCH_4T__} %{mcpu=arm9tdmi:-D__ARM_ARCH_4T__} %{mcpu=strongarm:-D__ARM_ARCH_4__} %{mcpu=strongarm110:-D__ARM_ARCH_4__} %{mcpu=strongarm1100:-D__ARM_ARCH_4__} %{mcpu=xscale:-D__ARM_ARCH_5TE__} %{mcpu=xscale:-D__XSCALE__} %{!mcpu*:%(cpp_cpu_arch_default)}}
|
||||
|
||||
*cpp_cpu_arch_default:
|
||||
-D__ARM_ARCH_4T__
|
||||
|
||||
*subtarget_cpp_spec:
|
||||
%{posix:-D_POSIX_SOURCE} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}
|
||||
|
||||
*subtarget_extra_asm_spec:
|
||||
|
||||
|
||||
*subtarget_asm_float_spec:
|
||||
%{mapcs-float:-mfloat} %{!mhard-float:-mno-fpu}
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
145
toolchain/gcc/3.3.5/specs-mips-soft-float
Normal file
145
toolchain/gcc/3.3.5/specs-mips-soft-float
Normal file
@@ -0,0 +1,145 @@
|
||||
*asm:
|
||||
%{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64}%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} %(subtarget_asm_optimizing_spec) %(subtarget_asm_debugging_spec) %{membedded-pic} %{mabi=32:-32}%{mabi=n32:-n32}%{mabi=64:-64}%{mabi=n64:-64} %{mabi=eabi} %{mabi=o64} %{!mabi*: %(asm_abi_default_spec)} %{mgp32} %{mgp64} %{march=*} %(target_asm_spec) %(subtarget_asm_spec)
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
%|
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%(subtarget_cpp_spec)
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{profile:-p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*link:
|
||||
%{!static:--eh-frame-hdr} %(endian_spec) %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} %{static:-static}}}
|
||||
|
||||
*lib:
|
||||
%{shared: -lc} %{!static:-rpath-link %R/lib:%R/usr/lib} %{!shared: %{pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}}
|
||||
|
||||
*libgcc:
|
||||
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}}
|
||||
|
||||
*startfile:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
EB mips1 mabi=32
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*subtarget_cc1_spec:
|
||||
|
||||
|
||||
*subtarget_cpp_spec:
|
||||
%{fno-PIC:-U__PIC__ -U__pic__} %{fno-pic:-U__PIC__ -U__pic__} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{pthread:-D_REENTRANT}
|
||||
|
||||
*mips_as_asm_spec:
|
||||
%{!.s:-nocpp} %{.s: %{cpp} %{nocpp}} %{pipe: %e-pipe is not supported} %{K} %(subtarget_mips_as_asm_spec)
|
||||
|
||||
*gas_asm_spec:
|
||||
%{mtune=*} %{v}
|
||||
|
||||
*target_asm_spec:
|
||||
%{mmips-as: %(mips_as_asm_spec)} %{!mmips-as: %(gas_asm_spec)}
|
||||
|
||||
*subtarget_mips_as_asm_spec:
|
||||
%{v}
|
||||
|
||||
*subtarget_asm_optimizing_spec:
|
||||
%{noasmopt:-O0} %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}}
|
||||
|
||||
*subtarget_asm_debugging_spec:
|
||||
-g0
|
||||
|
||||
*mdebug_asm_spec:
|
||||
%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}
|
||||
|
||||
*subtarget_asm_spec:
|
||||
%{mabi=64: -64} %{!fno-PIC:%{!fno-pic:-KPIC}} %{fno-PIC:-non_shared} %{fno-pic:-non_shared}
|
||||
|
||||
*asm_abi_default_spec:
|
||||
-32
|
||||
|
||||
*endian_spec:
|
||||
%{!EL:%{!mel:-EB}} %{EL|mel:-EL}
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
145
toolchain/gcc/3.3.5/specs-mipsel-soft-float
Normal file
145
toolchain/gcc/3.3.5/specs-mipsel-soft-float
Normal file
@@ -0,0 +1,145 @@
|
||||
*asm:
|
||||
%{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64}%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} %(subtarget_asm_optimizing_spec) %(subtarget_asm_debugging_spec) %{membedded-pic} %{mabi=32:-32}%{mabi=n32:-n32}%{mabi=64:-64}%{mabi=n64:-64} %{mabi=eabi} %{mabi=o64} %{!mabi*: %(asm_abi_default_spec)} %{mgp32} %{mgp64} %{march=*} %(target_asm_spec) %(subtarget_asm_spec)
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
%|
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%(subtarget_cpp_spec)
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{profile:-p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*link:
|
||||
%{!static:--eh-frame-hdr} %(endian_spec) %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} %{static:-static}}}
|
||||
|
||||
*lib:
|
||||
%{shared: -lc} %{!static:-rpath-link %R/lib:%R/usr/lib} %{!shared: %{pthread:-lpthread} %{profile:-lc_p} %{!profile: -lc}}
|
||||
|
||||
*libgcc:
|
||||
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}}
|
||||
|
||||
*startfile:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. ;
|
||||
|
||||
*multilib_defaults:
|
||||
EL mips1 mabi=32
|
||||
|
||||
*multilib_extra:
|
||||
|
||||
|
||||
*multilib_matches:
|
||||
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*subtarget_cc1_spec:
|
||||
|
||||
|
||||
*subtarget_cpp_spec:
|
||||
%{fno-PIC:-U__PIC__ -U__pic__} %{fno-pic:-U__PIC__ -U__pic__} %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{pthread:-D_REENTRANT}
|
||||
|
||||
*mips_as_asm_spec:
|
||||
%{!.s:-nocpp} %{.s: %{cpp} %{nocpp}} %{pipe: %e-pipe is not supported} %{K} %(subtarget_mips_as_asm_spec)
|
||||
|
||||
*gas_asm_spec:
|
||||
%{mtune=*} %{v}
|
||||
|
||||
*target_asm_spec:
|
||||
%{mmips-as: %(mips_as_asm_spec)} %{!mmips-as: %(gas_asm_spec)}
|
||||
|
||||
*subtarget_mips_as_asm_spec:
|
||||
%{v}
|
||||
|
||||
*subtarget_asm_optimizing_spec:
|
||||
%{noasmopt:-O0} %{!noasmopt:%{O:-O2} %{O1:-O2} %{O2:-O2} %{O3:-O3}}
|
||||
|
||||
*subtarget_asm_debugging_spec:
|
||||
-g0
|
||||
|
||||
*mdebug_asm_spec:
|
||||
%{!gdwarf*:-mdebug} %{gdwarf*:-no-mdebug}
|
||||
|
||||
*subtarget_asm_spec:
|
||||
%{mabi=64: -64} %{!fno-PIC:%{!fno-pic:-KPIC}} %{fno-PIC:-non_shared} %{fno-pic:-non_shared}
|
||||
|
||||
*asm_abi_default_spec:
|
||||
-32
|
||||
|
||||
*endian_spec:
|
||||
%{!EB:%{!meb:-EL}} %{EB|meb:-EB}
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
352
toolchain/gcc/3.3.5/specs-powerpc-soft-float
Normal file
352
toolchain/gcc/3.3.5/specs-powerpc-soft-float
Normal file
@@ -0,0 +1,352 @@
|
||||
*asm:
|
||||
%(asm_cpu) %{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} %{memb} %{!memb: %{msdata: -memb} %{msdata=eabi: -memb}} %{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian} %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-freebsd: -mbig} %{mcall-i960-old: -mlittle} %{mcall-linux: -mbig} %{mcall-gnu: -mbig} %{mcall-netbsd: -mbig} }}}}
|
||||
|
||||
*asm_debug:
|
||||
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
|
||||
|
||||
*asm_final:
|
||||
%|
|
||||
|
||||
*asm_options:
|
||||
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
|
||||
|
||||
*invoke_as:
|
||||
%{!S:-o %{|!pipe:%g.s} |
|
||||
as %(asm_options) %{!pipe:%g.s} %A }
|
||||
|
||||
*cpp:
|
||||
%{posix: -D_POSIX_SOURCE} %(cpp_sysv) %{mads: %(cpp_os_ads) } %{myellowknife: %(cpp_os_yellowknife) } %{mmvme: %(cpp_os_mvme) } %{msim: %(cpp_os_sim) } %{mwindiss: %(cpp_os_windiss) } %{mcall-freebsd: %(cpp_os_freebsd) } %{mcall-linux: %(cpp_os_linux) } %{mcall-gnu: %(cpp_os_gnu) } %{mcall-netbsd: %(cpp_os_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(cpp_os_default) }}}}}}}}}
|
||||
|
||||
*cpp_options:
|
||||
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef}
|
||||
|
||||
*cpp_debug_options:
|
||||
%{d*}
|
||||
|
||||
*cpp_unique_options:
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}
|
||||
|
||||
*trad_capable_cpp:
|
||||
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
|
||||
|
||||
*cc1:
|
||||
%{G*} %{mlittle: %(cc1_endian_little)} %{!mlittle: %{mlittle-endian: %(cc1_endian_little)}} %{mbig: %(cc1_endian_big)} %{!mbig: %{mbig-endian: %(cc1_endian_big)}} %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-aixdesc: -mbig %(cc1_endian_big) } %{mcall-freebsd: -mbig %(cc1_endian_big) } %{mcall-i960-old: -mlittle %(cc1_endian_little) } %{mcall-linux: -mbig %(cc1_endian_big) } %{mcall-gnu: -mbig %(cc1_endian_big) } %{mcall-netbsd: -mbig %(cc1_endian_big) } %{!mcall-aixdesc: %{!mcall-freebsd: %{!mcall-i960-old: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(cc1_endian_default) }}}}}} }}}} %{mno-sdata: -msdata=none } %{meabi: %{!mcall-*: -mcall-sysv }} %{!meabi: %{!mno-eabi: %{mrelocatable: -meabi } %{mcall-freebsd: -mno-eabi } %{mcall-i960-old: -meabi } %{mcall-linux: -mno-eabi } %{mcall-gnu: -mno-eabi } %{mcall-netbsd: -mno-eabi }}} %{msdata: -msdata=default} %{mno-sdata: -msdata=none} %{profile: -p}
|
||||
|
||||
*cc1_options:
|
||||
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{!mhard-float:%{!msoft-float:-msoft-float}}
|
||||
|
||||
*cc1plus:
|
||||
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
|
||||
|
||||
*endfile:
|
||||
%{mads: crtsavres.o%s %(endfile_ads)} %{myellowknife: crtsavres.o%s %(endfile_yellowknife)} %{mmvme: crtsavres.o%s %(endfile_mvme)} %{msim: crtsavres.o%s %(endfile_sim)} %{mwindiss: %(endfile_windiss)} %{mcall-freebsd: crtsavres.o%s %(endfile_freebsd) } %{mcall-linux: crtsavres.o%s %(endfile_linux) } %{mcall-gnu: crtsavres.o%s %(endfile_gnu) } %{mcall-netbsd: crtsavres.o%s %(endfile_netbsd) } %{mvxworks: crtsavres.o%s %(endfile_vxworks) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %{!mvxworks: %(crtsavres_default) %(endfile_default) }}}}}}}}}}
|
||||
|
||||
*link:
|
||||
%{!static:--eh-frame-hdr} %{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} %{YP,*} %{R*} %{Qy:} %{!Qn:-Qy} %(link_shlib) %{!Wl,-T*: %{!T*: %(link_start) }} %(link_target) %(link_os)
|
||||
|
||||
*lib:
|
||||
%{mads: %(lib_ads) } %{myellowknife: %(lib_yellowknife) } %{mmvme: %(lib_mvme) } %{msim: %(lib_sim) } %{mwindiss: %(lib_windiss) } %{mcall-freebsd: %(lib_freebsd) } %{mcall-linux: %(lib_linux) } %{mcall-gnu: %(lib_gnu) } %{mcall-netbsd: %(lib_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(lib_default) }}}}}}}}}
|
||||
|
||||
*libgcc:
|
||||
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}}
|
||||
|
||||
*startfile:
|
||||
%{mads: %(startfile_ads) } %{myellowknife: %(startfile_yellowknife) } %{mmvme: %(startfile_mvme) } %{msim: %(startfile_sim) } %{mwindiss: %(startfile_windiss) } %{mcall-freebsd: %(startfile_freebsd) } %{mcall-linux: %(startfile_linux) } %{mcall-gnu: %(startfile_gnu) } %{mcall-netbsd: %(startfile_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %(startfile_default) }}}}}}}}}
|
||||
|
||||
*switches_need_spaces:
|
||||
|
||||
|
||||
*predefines:
|
||||
|
||||
|
||||
*cross_compile:
|
||||
1
|
||||
|
||||
*version:
|
||||
3.3.4
|
||||
|
||||
*multilib:
|
||||
. mhard-float;nof !mhard-float;
|
||||
|
||||
*multilib_defaults:
|
||||
mbig mcall-sysv
|
||||
|
||||
*multilib_extra:
|
||||
fPIC mstrict-align
|
||||
|
||||
*multilib_matches:
|
||||
mcpu=401 msoft-float;mcpu=403 msoft-float;mcpu=405 msoft-float;mcpu=ec603e msoft-float;mcpu=801 msoft-float;mcpu=821 msoft-float;mcpu=823 msoft-float;mcpu=860 msoft-float;msoft-float msoft-float;
|
||||
|
||||
*multilib_exclusions:
|
||||
|
||||
|
||||
*multilib_options:
|
||||
msoft-float
|
||||
|
||||
*linker:
|
||||
collect2
|
||||
|
||||
*link_libgcc:
|
||||
%D
|
||||
|
||||
*md_exec_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix:
|
||||
|
||||
|
||||
*md_startfile_prefix_1:
|
||||
|
||||
|
||||
*startfile_prefix_spec:
|
||||
|
||||
|
||||
*cpp_default:
|
||||
|
||||
|
||||
*asm_cpu:
|
||||
%{!mcpu*: %{mpower: %{!mpower2: -mpwr}} %{mpower2: -mpwrx} %{mpowerpc*: -mppc} %{mno-power: %{!mpowerpc*: -mcom}} %{!mno-power: %{!mpower2: %(asm_default)}}} %{mcpu=common: -mcom} %{mcpu=power: -mpwr} %{mcpu=power2: -mpwrx} %{mcpu=power3: -m604} %{mcpu=power4: -mpower4} %{mcpu=powerpc: -mppc} %{mcpu=rios: -mpwr} %{mcpu=rios1: -mpwr} %{mcpu=rios2: -mpwrx} %{mcpu=rsc: -mpwr} %{mcpu=rsc1: -mpwr} %{mcpu=401: -mppc} %{mcpu=403: -m403} %{mcpu=405: -m405} %{mcpu=505: -mppc} %{mcpu=601: -m601} %{mcpu=602: -mppc} %{mcpu=603: -mppc} %{mcpu=603e: -mppc} %{mcpu=ec603e: -mppc} %{mcpu=604: -mppc} %{mcpu=604e: -mppc} %{mcpu=620: -mppc} %{mcpu=630: -m604} %{mcpu=740: -mppc} %{mcpu=7400: -mppc} %{mcpu=7450: -mppc} %{mcpu=750: -mppc} %{mcpu=801: -mppc} %{mcpu=821: -mppc} %{mcpu=823: -mppc} %{mcpu=860: -mppc} %{mcpu=8540: -me500} %{maltivec: -maltivec}
|
||||
|
||||
*asm_default:
|
||||
-mppc
|
||||
|
||||
*cpp_sysv:
|
||||
%{mrelocatable*: -D_RELOCATABLE} %{fpic: -D__PIC__=1 -D__pic__=1} %{!fpic: %{fPIC: -D__PIC__=2 -D__pic__=2}}
|
||||
|
||||
*crtsavres_default:
|
||||
crtsavres.o%s
|
||||
|
||||
*lib_ads:
|
||||
--start-group -lads -lc --end-group
|
||||
|
||||
*lib_yellowknife:
|
||||
--start-group -lyk -lc --end-group
|
||||
|
||||
*lib_mvme:
|
||||
--start-group -lmvme -lc --end-group
|
||||
|
||||
*lib_sim:
|
||||
--start-group -lsim -lc --end-group
|
||||
|
||||
*lib_freebsd:
|
||||
%{!shared: %{!pg: %{!pthread:-lc} %{pthread:-lc_r}} %{pg: %{!pthread:-lc_p} %{pthread:-lc_r_p}} }
|
||||
|
||||
*lib_gnu:
|
||||
%{mnewlib: --start-group -lgnu -lc --end-group } %{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } %{profile:-lc_p} %{!profile:-lc}}}
|
||||
|
||||
*lib_linux:
|
||||
%{mnewlib: --start-group -llinux -lc --end-group } %{!mnewlib: %{pthread:-lpthread} %{shared:-lc} %{!shared: %{profile:-lc_p} %{!profile:-lc}}}
|
||||
|
||||
*lib_netbsd:
|
||||
%{profile:-lgmon -lc_p} %{!profile:-lc}
|
||||
|
||||
*lib_vxworks:
|
||||
|
||||
|
||||
*lib_windiss:
|
||||
--start-group -li -lcfp -lwindiss -lram -limpl -limpfp --end-group
|
||||
|
||||
*lib_default:
|
||||
%(lib_linux)
|
||||
|
||||
*startfile_ads:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_yellowknife:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_mvme:
|
||||
ecrti.o%s crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_sim:
|
||||
ecrti.o%s sim-crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_freebsd:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_gnu:
|
||||
%{!shared: %{!static: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}} %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_linux:
|
||||
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} %{mnewlib: ecrti.o%s} %{!mnewlib: crti.o%s} %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}
|
||||
|
||||
*startfile_netbsd:
|
||||
ncrti.o%s crt0.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
|
||||
|
||||
*startfile_vxworks:
|
||||
|
||||
|
||||
*startfile_windiss:
|
||||
crt0.o%s crtbegin.o%s
|
||||
|
||||
*startfile_default:
|
||||
%(startfile_linux)
|
||||
|
||||
*endfile_ads:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_yellowknife:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_mvme:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_sim:
|
||||
crtend.o%s ecrtn.o%s
|
||||
|
||||
*endfile_freebsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
|
||||
|
||||
*endfile_gnu:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
||||
|
||||
*endfile_linux:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} %{mnewlib: ecrtn.o%s} %{!mnewlib: crtn.o%s}
|
||||
|
||||
*endfile_netbsd:
|
||||
%{!shared:crtend.o%s} %{shared:crtendS.o%s} ncrtn.o%s
|
||||
|
||||
*endfile_vxworks:
|
||||
|
||||
|
||||
*endfile_windiss:
|
||||
crtend.o%s
|
||||
|
||||
*endfile_default:
|
||||
%(endfile_linux)
|
||||
|
||||
*link_path:
|
||||
|
||||
|
||||
*link_shlib:
|
||||
%{shared:-shared} %{!shared: %{static:-static}}
|
||||
|
||||
*link_target:
|
||||
%{mlittle: --oformat elf32-powerpcle } %{mlittle-endian: --oformat elf32-powerpcle } %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: %{mcall-i960-old: --oformat elf32-powerpcle} }}}}
|
||||
|
||||
*link_start:
|
||||
%{mads: %(link_start_ads) } %{myellowknife: %(link_start_yellowknife) } %{mmvme: %(link_start_mvme) } %{msim: %(link_start_sim) } %{mwindiss: %(link_start_windiss) } %{mcall-freebsd: %(link_start_freebsd) } %{mcall-linux: %(link_start_linux) } %{mcall-gnu: %(link_start_gnu) } %{mcall-netbsd: %(link_start_netbsd) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %{!mcall-freebsd: %(link_start_default) }}}}}}}}}
|
||||
|
||||
*link_start_ads:
|
||||
-T ads.ld%s
|
||||
|
||||
*link_start_yellowknife:
|
||||
-T yellowknife.ld%s
|
||||
|
||||
*link_start_mvme:
|
||||
-Ttext 0x40000
|
||||
|
||||
*link_start_sim:
|
||||
|
||||
|
||||
*link_start_freebsd:
|
||||
|
||||
|
||||
*link_start_gnu:
|
||||
|
||||
|
||||
*link_start_linux:
|
||||
|
||||
|
||||
*link_start_netbsd:
|
||||
|
||||
|
||||
*link_start_vxworks:
|
||||
|
||||
|
||||
*link_start_windiss:
|
||||
|
||||
|
||||
*link_start_default:
|
||||
%(link_start_linux)
|
||||
|
||||
*link_os:
|
||||
%{mads: %(link_os_ads) } %{myellowknife: %(link_os_yellowknife) } %{mmvme: %(link_os_mvme) } %{msim: %(link_os_sim) } %{mwindiss: %(link_os_windiss) } %{mcall-freebsd: %(link_os_freebsd) } %{mcall-linux: %(link_os_linux) } %{mcall-gnu: %(link_os_gnu) } %{mcall-netbsd: %(link_os_netbsd) } %{mcall-uclibc: %(link_os_linux_uclibc) } %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: %{!mcall-netbsd: %{!mcall-uclibc: %(link_os_default) }}}}}}}}}}
|
||||
|
||||
*link_os_ads:
|
||||
|
||||
|
||||
*link_os_yellowknife:
|
||||
|
||||
|
||||
*link_os_mvme:
|
||||
|
||||
|
||||
*link_os_sim:
|
||||
-m elf32ppcsim
|
||||
|
||||
*link_os_freebsd:
|
||||
%{p:%e`-p' not supported; use `-pg' and gprof(1)} %{Wl,*:%*} %{v:-V} %{assert*} %{R*} %{rpath*} %{defsym*} %{shared:-Bshareable %{h*} %{soname*}} %{!shared: %{!static: %{rdynamic: -export-dynamic} %{!dynamic-linker: -dynamic-linker /usr/libexec/ld-elf.so.1}} %{static:-Bstatic}} %{symbolic:-Bsymbolic}
|
||||
|
||||
*link_os_linux:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
||||
|
||||
*link_os_gnu:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}
|
||||
|
||||
*link_os_netbsd:
|
||||
%{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}}
|
||||
|
||||
*link_os_vxworks:
|
||||
-r
|
||||
|
||||
*link_os_windiss:
|
||||
|
||||
|
||||
*link_os_linux_uclibc:
|
||||
-m elf32ppclinux %{!shared: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}
|
||||
|
||||
*link_os_default:
|
||||
%(link_os_linux_uclibc)
|
||||
|
||||
*cc1_endian_big:
|
||||
|
||||
|
||||
*cc1_endian_little:
|
||||
%{!mstrict-align: %{!mno-strict-align: %{!mcall-i960-old: -mstrict-align } }}
|
||||
|
||||
*cc1_endian_default:
|
||||
%(cc1_endian_big)
|
||||
|
||||
*cpp_os_ads:
|
||||
|
||||
|
||||
*cpp_os_yellowknife:
|
||||
|
||||
|
||||
*cpp_os_mvme:
|
||||
|
||||
|
||||
*cpp_os_sim:
|
||||
|
||||
|
||||
*cpp_os_freebsd:
|
||||
-D__ELF__ -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ -Acpu=powerpc -Amachine=powerpc
|
||||
|
||||
*cpp_os_gnu:
|
||||
-D__unix__ -D__gnu_hurd__ -D__GNU__ %{!undef: %{!ansi: -Dunix -D__unix}} -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
||||
|
||||
*cpp_os_linux:
|
||||
-D__unix__ -D__gnu_linux__ -D__linux__ %{!undef: %{!ansi: %{!std=*:-Dunix -D__unix -Dlinux -D__linux} %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}
|
||||
|
||||
*cpp_os_netbsd:
|
||||
-D__powerpc__ -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__
|
||||
|
||||
*cpp_os_rtems:
|
||||
%{!mcpu*: %{!Dppc*: %{!Dmpc*: -Dmpc750} } }%{mcpu=403: %{!Dppc*: %{!Dmpc*: -Dppc403} } } %{mcpu=505: %{!Dppc*: %{!Dmpc*: -Dmpc505} } } %{mcpu=601: %{!Dppc*: %{!Dmpc*: -Dppc601} } } %{mcpu=602: %{!Dppc*: %{!Dmpc*: -Dppc602} } } %{mcpu=603: %{!Dppc*: %{!Dmpc*: -Dppc603} } } %{mcpu=603e: %{!Dppc*: %{!Dmpc*: -Dppc603e} } } %{mcpu=604: %{!Dppc*: %{!Dmpc*: -Dmpc604} } } %{mcpu=750: %{!Dppc*: %{!Dmpc*: -Dmpc750} } } %{mcpu=821: %{!Dppc*: %{!Dmpc*: -Dmpc821} } } %{mcpu=860: %{!Dppc*: %{!Dmpc*: -Dmpc860} } }
|
||||
|
||||
*cpp_os_vxworks:
|
||||
-DCPU_FAMILY=PPC %{!mcpu*: %{mpowerpc*: -DCPU=PPC603} %{!mno-powerpc: -DCPU=PPC603}} %{mcpu=powerpc: -DCPU=PPC603} %{mcpu=401: -DCPU=PPC403} %{mcpu=403: -DCPU=PPC403} %{mcpu=405: -DCPU=PPC405} %{mcpu=601: -DCPU=PPC601} %{mcpu=602: -DCPU=PPC603} %{mcpu=603: -DCPU=PPC603} %{mcpu=603e: -DCPU=PPC603} %{mcpu=ec603e: -DCPU=PPC603} %{mcpu=604: -DCPU=PPC604} %{mcpu=604e: -DCPU=PPC604} %{mcpu=620: -DCPU=PPC604} %{mcpu=740: -DCPU=PPC603} %{mcpu=7450: -DCPU=PPC603} %{mcpu=750: -DCPU=PPC603} %{mcpu=801: -DCPU=PPC603} %{mcpu=821: -DCPU=PPC603} %{mcpu=823: -DCPU=PPC603} %{mcpu=860: -DCPU=PPC603}
|
||||
|
||||
*cpp_os_windiss:
|
||||
-D__rtasim -D__EABI__ -D__ppc %{!msoft-float: -D__hardfp}
|
||||
|
||||
*cpp_os_default:
|
||||
%(cpp_os_linux)
|
||||
|
||||
*link_command:
|
||||
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
|
||||
|
||||
442
toolchain/gcc/3.4.0/100-uclibc-conf.patch
Normal file
442
toolchain/gcc/3.4.0/100-uclibc-conf.patch
Normal file
@@ -0,0 +1,442 @@
|
||||
diff -urN gcc-3.4.0-dist/boehm-gc/configure gcc-3.4.0/boehm-gc/configure
|
||||
--- gcc-3.4.0-dist/boehm-gc/configure 2004-04-18 21:23:04.000000000 -0500
|
||||
+++ gcc-3.4.0/boehm-gc/configure 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -1947,6 +1947,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||
diff -urN gcc-3.4.0-dist/boehm-gc/ltconfig gcc-3.4.0/boehm-gc/ltconfig
|
||||
--- gcc-3.4.0-dist/boehm-gc/ltconfig 2002-11-20 09:59:06.000000000 -0600
|
||||
+++ gcc-3.4.0/boehm-gc/ltconfig 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -1981,6 +1981,23 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
||||
+ file_magic_cmd=/usr/bin/file
|
||||
+ file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/arm/linux-elf.h gcc-3.4.0/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.0-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/arm/linux-elf.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -81,6 +81,18 @@
|
||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
+ %{b} %{Wl,*:%*} \
|
||||
+ %{static:-Bstatic} \
|
||||
+ %{shared:-shared} \
|
||||
+ %{symbolic:-Bsymbolic} \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
+ -X \
|
||||
+ %{mbig-endian:-EB}" \
|
||||
+ SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
%{b} %{Wl,*:%*} \
|
||||
%{static:-Bstatic} \
|
||||
@@ -91,6 +103,7 @@
|
||||
-X \
|
||||
%{mbig-endian:-EB}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#endif
|
||||
|
||||
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
|
||||
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/cris/linux.h gcc-3.4.0/gcc/config/cris/linux.h
|
||||
--- gcc-3.4.0-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/cris/linux.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -79,6 +79,25 @@
|
||||
#undef CRIS_DEFAULT_CPU_VERSION
|
||||
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||
|
||||
+#ifdef USE_UCLIBC
|
||||
+
|
||||
+#undef CRIS_SUBTARGET_VERSION
|
||||
+#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
|
||||
+
|
||||
+#undef CRIS_LINK_SUBTARGET_SPEC
|
||||
+#define CRIS_LINK_SUBTARGET_SPEC \
|
||||
+ "-mcrislinux\
|
||||
+ -rpath-link include/asm/../..%s\
|
||||
+ %{shared} %{static}\
|
||||
+ %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
|
||||
+ %{!shared: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
|
||||
+ %{!r:%{O2|O3: --gc-sections}}"
|
||||
+
|
||||
+#else /* USE_UCLIBC */
|
||||
+
|
||||
#undef CRIS_SUBTARGET_VERSION
|
||||
#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
|
||||
|
||||
@@ -93,6 +112,8 @@
|
||||
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
|
||||
%{!r:%{O2|O3: --gc-sections}}"
|
||||
|
||||
+#endif /* USE_UCLIBC */
|
||||
+
|
||||
|
||||
/* Node: Run-time Target */
|
||||
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/cris/t-linux-uclibc gcc-3.4.0/gcc/config/cris/t-linux-uclibc
|
||||
--- gcc-3.4.0-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/cris/t-linux-uclibc 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -0,0 +1,3 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+TARGET_LIBGCC2_CFLAGS += -fPIC
|
||||
+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/i386/linux.h gcc-3.4.0/gcc/config/i386/linux.h
|
||||
--- gcc-3.4.0-dist/gcc/config/i386/linux.h 2003-11-28 21:08:10.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/i386/linux.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -118,6 +118,15 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
|
||||
%{static:-static}}}"
|
||||
#else
|
||||
+#if defined USE_UCLIBC
|
||||
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
%{!shared: \
|
||||
%{!ibcs: \
|
||||
@@ -126,6 +135,7 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}}}"
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* A C statement (sans semicolon) to output to the stdio stream
|
||||
FILE the assembler definition of uninitialized global DECL named
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/mips/linux.h gcc-3.4.0/gcc/config/mips/linux.h
|
||||
--- gcc-3.4.0-dist/gcc/config/mips/linux.h 2004-02-19 15:45:21.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/mips/linux.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -109,6 +109,17 @@
|
||||
|
||||
/* Borrowed from sparc/linux.h */
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC \
|
||||
+ "%(endian_spec) \
|
||||
+ %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC \
|
||||
"%(endian_spec) \
|
||||
%{shared:-shared} \
|
||||
@@ -118,6 +129,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||
%{static:-static}}}"
|
||||
+#endif
|
||||
|
||||
#undef SUBTARGET_ASM_SPEC
|
||||
#define SUBTARGET_ASM_SPEC "\
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/rs6000/linux.h gcc-3.4.0/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.4.0-dist/gcc/config/rs6000/linux.h 2004-02-25 09:11:19.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/rs6000/linux.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -61,7 +61,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/rs6000/sysv4.h gcc-3.4.0/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.4.0-dist/gcc/config/rs6000/sysv4.h 2004-03-02 16:34:58.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/rs6000/sysv4.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -952,6 +952,7 @@
|
||||
mcall-linux : %(link_os_linux) ; \
|
||||
mcall-gnu : %(link_os_gnu) ; \
|
||||
mcall-netbsd : %(link_os_netbsd) ; \
|
||||
+ mcall-linux-uclibc : %(link_os_linux_uclibc); \
|
||||
mcall-openbsd: %(link_os_openbsd) ; \
|
||||
: %(link_os_default) }"
|
||||
|
||||
@@ -1129,6 +1130,10 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||
#endif
|
||||
@@ -1295,6 +1300,7 @@
|
||||
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/sh/linux.h gcc-3.4.0/gcc/config/sh/linux.h
|
||||
--- gcc-3.4.0-dist/gcc/config/sh/linux.h 2004-01-11 20:29:13.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/sh/linux.h 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -73,12 +73,21 @@
|
||||
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||
#undef SUBTARGET_LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define SUBTARGET_LINK_SPEC \
|
||||
+ "%{shared:-shared} \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}"
|
||||
+#else
|
||||
#define SUBTARGET_LINK_SPEC \
|
||||
"%{shared:-shared} \
|
||||
%{!static: \
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}"
|
||||
+#endif
|
||||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC \
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/sh/t-linux-uclibc gcc-3.4.0/gcc/config/sh/t-linux-uclibc
|
||||
--- gcc-3.4.0-dist/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/sh/t-linux-uclibc 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
|
||||
+LIB1ASMFUNCS_CACHE = _ic_invalidate
|
||||
+
|
||||
+LIB2FUNCS_EXTRA=
|
||||
+
|
||||
+MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
|
||||
+MULTILIB_DIRNAMES=
|
||||
+MULTILIB_MATCHES =
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
+
|
||||
+EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/sh/t-sh64-uclibc gcc-3.4.0/gcc/config/sh/t-sh64-uclibc
|
||||
--- gcc-3.4.0-dist/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/sh/t-sh64-uclibc 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o
|
||||
+
|
||||
+LIB1ASMFUNCS = \
|
||||
+ _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
|
||||
+ _shcompact_call_trampoline _shcompact_return_trampoline \
|
||||
+ _shcompact_incoming_args _ic_invalidate _nested_trampoline \
|
||||
+ _push_pop_shmedia_regs \
|
||||
+ _udivdi3 _divdi3 _umoddi3 _moddi3
|
||||
+
|
||||
+MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
|
||||
+MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
|
||||
+MULTILIB_MATCHES=
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
diff -urN gcc-3.4.0-dist/gcc/config/t-linux-uclibc gcc-3.4.0/gcc/config/t-linux-uclibc
|
||||
--- gcc-3.4.0-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.0/gcc/config/t-linux-uclibc 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -0,0 +1,15 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+# Compile crtbeginS.o and crtendS.o with pic.
|
||||
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
||||
+# Compile libgcc2.a with pic.
|
||||
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
||||
+
|
||||
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
||||
+# the symbol versions that glibc used.
|
||||
+SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
||||
+
|
||||
+# Use unwind-dw2-fde
|
||||
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
||||
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
||||
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
||||
diff -urN gcc-3.4.0-dist/gcc/config.gcc gcc-3.4.0/gcc/config.gcc
|
||||
--- gcc-3.4.0-dist/gcc/config.gcc 2004-04-16 21:28:24.000000000 -0500
|
||||
+++ gcc-3.4.0/gcc/config.gcc 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -664,6 +664,12 @@
|
||||
extra_parts=""
|
||||
use_collect2=yes
|
||||
;;
|
||||
+arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
+ tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ gnu_ld=yes
|
||||
+ ;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
@@ -725,6 +731,10 @@
|
||||
tmake_file="cris/t-cris cris/t-elfmulti"
|
||||
gas=yes
|
||||
;;
|
||||
+cris-*-linux-uclibc*)
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
+ tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
|
||||
+ ;;
|
||||
cris-*-linux*)
|
||||
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
|
||||
@@ -988,6 +998,11 @@
|
||||
thread_file='single'
|
||||
fi
|
||||
;;
|
||||
+i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
|
||||
+ # with ELF format using uClibc
|
||||
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
|
||||
+ ;;
|
||||
i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
|
||||
# with ELF format using glibc 2
|
||||
# aka GNU/Linux C library 6
|
||||
@@ -1547,6 +1562,16 @@
|
||||
gnu_ld=yes
|
||||
gas=yes
|
||||
;;
|
||||
+mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
+ case ${target} in
|
||||
+ mipsisa32*-*)
|
||||
+ target_cpu_default="MASK_SOFT_FLOAT"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=32"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc"
|
||||
+ ;;
|
||||
mips*-*-linux*) # Linux MIPS, either endian.
|
||||
tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
case ${target} in
|
||||
@@ -1764,6 +1789,10 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
;;
|
||||
+powerpc-*-linux-uclibc*)
|
||||
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
+ tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
|
||||
+ ;;
|
||||
powerpc-*-linux*)
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
@@ -1916,7 +1945,7 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
|
||||
;;
|
||||
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||
- tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
|
||||
+ tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver"
|
||||
case ${target} in
|
||||
sh*be-*-* | sh*eb-*-*) ;;
|
||||
*)
|
||||
@@ -1924,9 +1953,17 @@
|
||||
tmake_file="${tmake_file} sh/t-le"
|
||||
;;
|
||||
esac
|
||||
- tmake_file="${tmake_file} sh/t-linux"
|
||||
+ case ${target} in
|
||||
+ *-*-linux-uclibc*) tmake_file="${tmake_file} t-linux-uclibc sh/t-linux-uclibc" ;;
|
||||
+ *) tmake_file="${tmake_file} t-linux sh/t-linux" ;;
|
||||
+ esac
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
|
||||
case ${target} in
|
||||
+ sh64*-*-linux-uclibc*)
|
||||
+ tmake_file="${tmake_file} sh/t-sh64-uclibc"
|
||||
+ tm_file="${tm_file} sh/sh64.h"
|
||||
+ extra_headers="shmedia.h ushmedia.h sshmedia.h"
|
||||
+ ;;
|
||||
sh64*)
|
||||
tmake_file="${tmake_file} sh/t-sh64"
|
||||
tm_file="${tm_file} sh/sh64.h"
|
||||
diff -urN gcc-3.4.0-dist/libtool.m4 gcc-3.4.0/libtool.m4
|
||||
--- gcc-3.4.0-dist/libtool.m4 2003-11-18 23:29:32.000000000 -0600
|
||||
+++ gcc-3.4.0/libtool.m4 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -689,6 +689,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||
diff -urN gcc-3.4.0-dist/ltconfig gcc-3.4.0/ltconfig
|
||||
--- gcc-3.4.0-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
|
||||
+++ gcc-3.4.0/ltconfig 2004-08-12 16:51:15.000000000 -0500
|
||||
@@ -602,6 +602,7 @@
|
||||
|
||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||
case $host_os in
|
||||
+linux-uclibc*) ;;
|
||||
linux-gnu*) ;;
|
||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||
esac
|
||||
@@ -1262,6 +1263,24 @@
|
||||
dynamic_linker='GNU/Linux ld.so'
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ # This implies no fast_install, which is unacceptable.
|
||||
+ # Some rework will be needed to allow for fast_install
|
||||
+ # before this can be enabled.
|
||||
+ # Note: copied from linux-gnu, and may not be appropriate.
|
||||
+ hardcode_into_libs=yes
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
3246
toolchain/gcc/3.4.0/200-uclibc-locale.patch
Normal file
3246
toolchain/gcc/3.4.0/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
256
toolchain/gcc/3.4.0/arm-softfloat.patch.conditional
Normal file
256
toolchain/gcc/3.4.0/arm-softfloat.patch.conditional
Normal file
@@ -0,0 +1,256 @@
|
||||
#
|
||||
# Submitted:
|
||||
#
|
||||
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||
#
|
||||
# Description:
|
||||
#
|
||||
# Nicholas Pitre released this patch for gcc soft-float support here:
|
||||
# http://lists.arm.linux.org.uk/pipermail/linux-arm/2003-October/006436.html
|
||||
#
|
||||
# This version has been adapted to work with gcc 3.4.0.
|
||||
#
|
||||
# The original patch doesn't distinguish between softfpa and softvfp modes
|
||||
# in the way Nicholas Pitre probably meant. His description is:
|
||||
#
|
||||
# "Default is to use APCS-32 mode with soft-vfp. The old Linux default for
|
||||
# floats can be achieved with -mhard-float or with the configure
|
||||
# --with-float=hard option. If -msoft-float or --with-float=soft is used then
|
||||
# software float support will be used just like the default but with the legacy
|
||||
# big endian word ordering for double float representation instead."
|
||||
#
|
||||
# Which means the following:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, you should get
|
||||
# software floating point, using the VFP format. The produced object file
|
||||
# should have these flags in its header:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# * If you compile with -mhard-float, you should get hardware floating point,
|
||||
# which always uses the FPA format. Object file header flags should be:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# * If you compile with -msoft-float, you should get software floating point,
|
||||
# using the FPA format. This is done for compatibility reasons with many
|
||||
# existing distributions. Object file header flags should be:
|
||||
#
|
||||
# private flags = 200: [APCS-32] [FPA float format] [software FP]
|
||||
#
|
||||
# The original patch from Nicholas Pitre contained the following constructs:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
#
|
||||
# However, gcc doesn't accept this ";:" notation, used in the 3rd line. This
|
||||
# is probably the reason Robert Schwebel modified it to:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa -mfpu=softvfp}}"
|
||||
#
|
||||
# But this causes the following behaviour:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, the compiler generates
|
||||
# software floating point instructions, but *nothing* is passed to the
|
||||
# assembler, which results in an object file which has flags:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# This is not correct!
|
||||
#
|
||||
# * If you compile with -mhard-float, the compiler generates hardware floating
|
||||
# point instructions, and passes "-mfpu=fpa" to the assembler, which results
|
||||
# in an object file which has the same flags as in the previous item, but now
|
||||
# those *are* correct.
|
||||
#
|
||||
# * If you compile with -msoft-float, the compiler generates software floating
|
||||
# point instructions, and passes "-mfpu=softfpa -mfpu=softvfp" (in that
|
||||
# order) to the assembler, which results in an object file with flags:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# This is not correct, because the last "-mfpu=" option on the assembler
|
||||
# command line determines the actual FPU convention used (which should be FPA
|
||||
# in this case).
|
||||
#
|
||||
# Therefore, I modified this patch to get the desired behaviour. Every
|
||||
# instance of the notation:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa -mfpu=softvfp}
|
||||
#
|
||||
# was changed to:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}
|
||||
#
|
||||
# I also did the following:
|
||||
#
|
||||
# * Modified all TARGET_DEFAULT macros I could find to include ARM_FLAG_VFP, to
|
||||
# be consistent with Nicholas' original patch.
|
||||
# * Removed any "msoft-float" or "mhard-float" from all MULTILIB_DEFAULTS
|
||||
# macros I could find. I think that if you compile without any options, you
|
||||
# would like to get the defaults. :)
|
||||
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||
# anymore. (The required functions are now in libgcc.)
|
||||
|
||||
diff -urNd gcc-3.4.0-orig/gcc/config/arm/coff.h gcc-3.4.0/gcc/config/arm/coff.h
|
||||
--- gcc-3.4.0-orig/gcc/config/arm/coff.h 2004-02-24 15:25:22.000000000 +0100
|
||||
+++ gcc-3.4.0/gcc/config/arm/coff.h 2004-05-01 19:07:06.059409600 +0200
|
||||
@@ -31,11 +31,16 @@
|
||||
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
|
||||
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||
#endif
|
||||
|
||||
/* This is COFF, but prefer stabs. */
|
||||
diff -urNd gcc-3.4.0-orig/gcc/config/arm/elf.h gcc-3.4.0/gcc/config/arm/elf.h
|
||||
--- gcc-3.4.0-orig/gcc/config/arm/elf.h 2004-02-24 15:25:22.000000000 +0100
|
||||
+++ gcc-3.4.0/gcc/config/arm/elf.h 2004-05-01 19:12:16.976486400 +0200
|
||||
@@ -46,7 +46,9 @@
|
||||
|
||||
#ifndef SUBTARGET_ASM_FLOAT_SPEC
|
||||
#define SUBTARGET_ASM_FLOAT_SPEC "\
|
||||
-%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
|
||||
+%{mapcs-float:-mfloat} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
#endif
|
||||
|
||||
#ifndef ASM_SPEC
|
||||
@@ -106,12 +108,17 @@
|
||||
#endif
|
||||
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
#endif
|
||||
|
||||
#define TARGET_ASM_FILE_START_APP_OFF true
|
||||
diff -urNd gcc-3.4.0-orig/gcc/config/arm/linux-elf.h gcc-3.4.0/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.0-orig/gcc/config/arm/linux-elf.h 2004-01-31 07:18:11.000000000 +0100
|
||||
+++ gcc-3.4.0/gcc/config/arm/linux-elf.h 2004-05-01 19:19:06.935979200 +0200
|
||||
@@ -30,9 +30,27 @@
|
||||
/* Do not assume anything about header files. */
|
||||
#define NO_IMPLICIT_EXTERN_C
|
||||
|
||||
-/* Default is to use APCS-32 mode. */
|
||||
+/*
|
||||
+ * Default is to use APCS-32 mode with soft-vfp.
|
||||
+ * The old Linux default for floats can be achieved with -mhard-float
|
||||
+ * or with the configure --with-float=hard option.
|
||||
+ * If -msoft-float or --with-float=soft is used then software float
|
||||
+ * support will be used just like the default but with the legacy
|
||||
+ * big endian word ordering for double float representation instead.
|
||||
+ */
|
||||
+
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
+
|
||||
+#undef SUBTARGET_EXTRA_ASM_SPEC
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{!mcpu=*:-mcpu=xscale} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
@@ -40,7 +58,7 @@
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -55,7 +73,7 @@
|
||||
%{shared:-lc} \
|
||||
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||
|
||||
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||
+#define LIBGCC_SPEC "-lgcc"
|
||||
|
||||
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||
diff -urNd gcc-3.4.0-orig/gcc/config/arm/t-linux gcc-3.4.0/gcc/config/arm/t-linux
|
||||
--- gcc-3.4.0-orig/gcc/config/arm/t-linux 2003-09-20 23:09:07.000000000 +0200
|
||||
+++ gcc-3.4.0/gcc/config/arm/t-linux 2004-05-01 20:31:59.102846400 +0200
|
||||
@@ -4,7 +4,10 @@
|
||||
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||
|
||||
LIB1ASMSRC = arm/lib1funcs.asm
|
||||
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||
+ _fixsfsi _fixunssfsi
|
||||
|
||||
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||
diff -urNd gcc-3.4.0-orig/gcc/config/arm/unknown-elf.h gcc-3.4.0/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-3.4.0-orig/gcc/config/arm/unknown-elf.h 2004-02-24 15:25:22.000000000 +0100
|
||||
+++ gcc-3.4.0/gcc/config/arm/unknown-elf.h 2004-05-01 19:09:09.016212800 +0200
|
||||
@@ -30,7 +30,12 @@
|
||||
|
||||
/* Default to using APCS-32 and software floating point. */
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
/* Now we define the strings used to build the spec file. */
|
||||
diff -urNd gcc-3.4.0-orig/gcc/config/arm/xscale-elf.h gcc-3.4.0/gcc/config/arm/xscale-elf.h
|
||||
--- gcc-3.4.0-orig/gcc/config/arm/xscale-elf.h 2003-07-02 01:26:43.000000000 +0200
|
||||
+++ gcc-3.4.0/gcc/config/arm/xscale-elf.h 2004-05-01 20:15:36.620105600 +0200
|
||||
@@ -49,11 +49,12 @@
|
||||
endian, regardless of the endian-ness of the memory
|
||||
system. */
|
||||
|
||||
-#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
- %{mhard-float:-mfpu=fpa} \
|
||||
- %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{!mcpu=*:-mcpu=xscale} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
|
||||
+ { "mlittle-endian", "mno-thumb-interwork", "marm" }
|
||||
#endif
|
||||
442
toolchain/gcc/3.4.1/100-uclibc-conf.patch
Normal file
442
toolchain/gcc/3.4.1/100-uclibc-conf.patch
Normal file
@@ -0,0 +1,442 @@
|
||||
diff -urN gcc-3.4.1-dist/boehm-gc/configure gcc-3.4.1/boehm-gc/configure
|
||||
--- gcc-3.4.1-dist/boehm-gc/configure 2004-07-01 14:14:03.000000000 -0500
|
||||
+++ gcc-3.4.1/boehm-gc/configure 2004-08-12 16:22:57.000000000 -0500
|
||||
@@ -1947,6 +1947,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||
diff -urN gcc-3.4.1-dist/boehm-gc/ltconfig gcc-3.4.1/boehm-gc/ltconfig
|
||||
--- gcc-3.4.1-dist/boehm-gc/ltconfig 2002-11-20 09:59:06.000000000 -0600
|
||||
+++ gcc-3.4.1/boehm-gc/ltconfig 2004-08-12 15:54:42.000000000 -0500
|
||||
@@ -1981,6 +1981,23 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
||||
+ file_magic_cmd=/usr/bin/file
|
||||
+ file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-12 15:54:42.000000000 -0500
|
||||
@@ -81,6 +81,18 @@
|
||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
+ %{b} %{Wl,*:%*} \
|
||||
+ %{static:-Bstatic} \
|
||||
+ %{shared:-shared} \
|
||||
+ %{symbolic:-Bsymbolic} \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
+ -X \
|
||||
+ %{mbig-endian:-EB}" \
|
||||
+ SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
%{b} %{Wl,*:%*} \
|
||||
%{static:-Bstatic} \
|
||||
@@ -91,6 +103,7 @@
|
||||
-X \
|
||||
%{mbig-endian:-EB}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#endif
|
||||
|
||||
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/cris/linux.h gcc-3.4.1/gcc/config/cris/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/cris/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -79,6 +79,25 @@
|
||||
#undef CRIS_DEFAULT_CPU_VERSION
|
||||
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||
|
||||
+#ifdef USE_UCLIBC
|
||||
+
|
||||
+#undef CRIS_SUBTARGET_VERSION
|
||||
+#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
|
||||
+
|
||||
+#undef CRIS_LINK_SUBTARGET_SPEC
|
||||
+#define CRIS_LINK_SUBTARGET_SPEC \
|
||||
+ "-mcrislinux\
|
||||
+ -rpath-link include/asm/../..%s\
|
||||
+ %{shared} %{static}\
|
||||
+ %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
|
||||
+ %{!shared: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
|
||||
+ %{!r:%{O2|O3: --gc-sections}}"
|
||||
+
|
||||
+#else /* USE_UCLIBC */
|
||||
+
|
||||
#undef CRIS_SUBTARGET_VERSION
|
||||
#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
|
||||
|
||||
@@ -93,6 +112,8 @@
|
||||
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
|
||||
%{!r:%{O2|O3: --gc-sections}}"
|
||||
|
||||
+#endif /* USE_UCLIBC */
|
||||
+
|
||||
|
||||
/* Node: Run-time Target */
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc gcc-3.4.1/gcc/config/cris/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/cris/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,3 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+TARGET_LIBGCC2_CFLAGS += -fPIC
|
||||
+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/i386/linux.h gcc-3.4.1/gcc/config/i386/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/i386/linux.h 2003-11-28 21:08:10.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/i386/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -118,6 +118,15 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
|
||||
%{static:-static}}}"
|
||||
#else
|
||||
+#if defined USE_UCLIBC
|
||||
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
%{!shared: \
|
||||
%{!ibcs: \
|
||||
@@ -126,6 +135,7 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}}}"
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* A C statement (sans semicolon) to output to the stdio stream
|
||||
FILE the assembler definition of uninitialized global DECL named
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/mips/linux.h gcc-3.4.1/gcc/config/mips/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/mips/linux.h 2004-06-15 20:42:24.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/mips/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -109,6 +109,17 @@
|
||||
|
||||
/* Borrowed from sparc/linux.h */
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC \
|
||||
+ "%(endian_spec) \
|
||||
+ %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC \
|
||||
"%(endian_spec) \
|
||||
%{shared:-shared} \
|
||||
@@ -118,6 +129,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||
%{static:-static}}}"
|
||||
+#endif
|
||||
|
||||
#undef SUBTARGET_ASM_SPEC
|
||||
#define SUBTARGET_ASM_SPEC "\
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/linux.h gcc-3.4.1/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/rs6000/linux.h 2004-02-25 09:11:19.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/rs6000/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -61,7 +61,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h gcc-3.4.1/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h 2004-06-10 01:39:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/rs6000/sysv4.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -947,6 +947,7 @@
|
||||
mcall-linux : %(link_os_linux) ; \
|
||||
mcall-gnu : %(link_os_gnu) ; \
|
||||
mcall-netbsd : %(link_os_netbsd) ; \
|
||||
+ mcall-linux-uclibc : %(link_os_linux_uclibc); \
|
||||
mcall-openbsd: %(link_os_openbsd) ; \
|
||||
: %(link_os_default) }"
|
||||
|
||||
@@ -1124,6 +1125,10 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||
#endif
|
||||
@@ -1290,6 +1295,7 @@
|
||||
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/linux.h gcc-3.4.1/gcc/config/sh/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/linux.h 2004-01-11 20:29:13.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -73,12 +73,21 @@
|
||||
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||
#undef SUBTARGET_LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define SUBTARGET_LINK_SPEC \
|
||||
+ "%{shared:-shared} \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}"
|
||||
+#else
|
||||
#define SUBTARGET_LINK_SPEC \
|
||||
"%{shared:-shared} \
|
||||
%{!static: \
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}"
|
||||
+#endif
|
||||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc gcc-3.4.1/gcc/config/sh/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
|
||||
+LIB1ASMFUNCS_CACHE = _ic_invalidate
|
||||
+
|
||||
+LIB2FUNCS_EXTRA=
|
||||
+
|
||||
+MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
|
||||
+MULTILIB_DIRNAMES=
|
||||
+MULTILIB_MATCHES =
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
+
|
||||
+EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc gcc-3.4.1/gcc/config/sh/t-sh64-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/t-sh64-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o
|
||||
+
|
||||
+LIB1ASMFUNCS = \
|
||||
+ _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
|
||||
+ _shcompact_call_trampoline _shcompact_return_trampoline \
|
||||
+ _shcompact_incoming_args _ic_invalidate _nested_trampoline \
|
||||
+ _push_pop_shmedia_regs \
|
||||
+ _udivdi3 _divdi3 _umoddi3 _moddi3
|
||||
+
|
||||
+MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
|
||||
+MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
|
||||
+MULTILIB_MATCHES=
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/t-linux-uclibc gcc-3.4.1/gcc/config/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,15 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+# Compile crtbeginS.o and crtendS.o with pic.
|
||||
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
||||
+# Compile libgcc2.a with pic.
|
||||
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
||||
+
|
||||
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
||||
+# the symbol versions that glibc used.
|
||||
+SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
||||
+
|
||||
+# Use unwind-dw2-fde
|
||||
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
||||
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
||||
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-04-21 10:12:35.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-12 15:59:46.000000000 -0500
|
||||
@@ -664,6 +664,12 @@
|
||||
extra_parts=""
|
||||
use_collect2=yes
|
||||
;;
|
||||
+arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
+ tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ gnu_ld=yes
|
||||
+ ;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
@@ -725,6 +731,10 @@
|
||||
tmake_file="cris/t-cris cris/t-elfmulti"
|
||||
gas=yes
|
||||
;;
|
||||
+cris-*-linux-uclibc*)
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
+ tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
|
||||
+ ;;
|
||||
cris-*-linux*)
|
||||
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
|
||||
@@ -988,6 +998,11 @@
|
||||
thread_file='single'
|
||||
fi
|
||||
;;
|
||||
+i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
|
||||
+ # with ELF format using uClibc
|
||||
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
|
||||
+ ;;
|
||||
i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
|
||||
# with ELF format using glibc 2
|
||||
# aka GNU/Linux C library 6
|
||||
@@ -1547,6 +1562,16 @@
|
||||
gnu_ld=yes
|
||||
gas=yes
|
||||
;;
|
||||
+mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
+ case ${target} in
|
||||
+ mipsisa32*-*)
|
||||
+ target_cpu_default="MASK_SOFT_FLOAT"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=32"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc"
|
||||
+ ;;
|
||||
mips*-*-linux*) # Linux MIPS, either endian.
|
||||
tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
case ${target} in
|
||||
@@ -1764,6 +1789,10 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
;;
|
||||
+powerpc-*-linux-uclibc*)
|
||||
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
+ tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
|
||||
+ ;;
|
||||
powerpc-*-linux*)
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
@@ -1916,7 +1945,7 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
|
||||
;;
|
||||
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||
- tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
|
||||
+ tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver"
|
||||
case ${target} in
|
||||
sh*be-*-* | sh*eb-*-*) ;;
|
||||
*)
|
||||
@@ -1924,9 +1953,17 @@
|
||||
tmake_file="${tmake_file} sh/t-le"
|
||||
;;
|
||||
esac
|
||||
- tmake_file="${tmake_file} sh/t-linux"
|
||||
+ case ${target} in
|
||||
+ *-*-linux-uclibc*) tmake_file="${tmake_file} t-linux-uclibc sh/t-linux-uclibc" ;;
|
||||
+ *) tmake_file="${tmake_file} t-linux sh/t-linux" ;;
|
||||
+ esac
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
|
||||
case ${target} in
|
||||
+ sh64*-*-linux-uclibc*)
|
||||
+ tmake_file="${tmake_file} sh/t-sh64-uclibc"
|
||||
+ tm_file="${tm_file} sh/sh64.h"
|
||||
+ extra_headers="shmedia.h ushmedia.h sshmedia.h"
|
||||
+ ;;
|
||||
sh64*)
|
||||
tmake_file="${tmake_file} sh/t-sh64"
|
||||
tm_file="${tm_file} sh/sh64.h"
|
||||
diff -urN gcc-3.4.1-dist/libtool.m4 gcc-3.4.1/libtool.m4
|
||||
--- gcc-3.4.1-dist/libtool.m4 2004-05-18 04:08:37.000000000 -0500
|
||||
+++ gcc-3.4.1/libtool.m4 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -689,6 +689,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||
diff -urN gcc-3.4.1-dist/ltconfig gcc-3.4.1/ltconfig
|
||||
--- gcc-3.4.1-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
|
||||
+++ gcc-3.4.1/ltconfig 2004-08-12 15:55:48.000000000 -0500
|
||||
@@ -602,6 +602,7 @@
|
||||
|
||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||
case $host_os in
|
||||
+linux-uclibc*) ;;
|
||||
linux-gnu*) ;;
|
||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||
esac
|
||||
@@ -1262,6 +1263,24 @@
|
||||
dynamic_linker='GNU/Linux ld.so'
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ # This implies no fast_install, which is unacceptable.
|
||||
+ # Some rework will be needed to allow for fast_install
|
||||
+ # before this can be enabled.
|
||||
+ # Note: copied from linux-gnu, and may not be appropriate.
|
||||
+ hardcode_into_libs=yes
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
3241
toolchain/gcc/3.4.1/200-uclibc-locale.patch
Normal file
3241
toolchain/gcc/3.4.1/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
46
toolchain/gcc/3.4.1/400-mips-delay-slot.patch
Normal file
46
toolchain/gcc/3.4.1/400-mips-delay-slot.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
http://www.linux-mips.org/archives/linux-mips/2004-09/msg00000.html
|
||||
|
||||
Atsushi Nemoto <anemo@mba.ocn.ne.jp> writes:
|
||||
>/ Is this a get_user's problem or gcc's?/
|
||||
|
||||
The latter. gcc is putting the empty asm:
|
||||
|
||||
__asm__ ("":"=r" (__gu_val));
|
||||
|
||||
into the delay slot of the call.
|
||||
|
||||
Part of the problem is that gcc estimates the length of an asm to be the
|
||||
number of instruction separators + 1. This means that it estimates the
|
||||
asm above to be one instruction long, which is perhaps a little silly
|
||||
for an empty string.
|
||||
|
||||
But the real problem is that gcc should never trust this estimate anyway,
|
||||
since each "instruction" could obviously be a multi-instruction macro.
|
||||
gcc should certainly never put asms into delay slots.
|
||||
|
||||
FWIW, I don't think the bug is specific to 3.3 or 3.4. It could
|
||||
probably trigger for other gcc versions too. It is highly dependent
|
||||
on scheduling though.
|
||||
|
||||
The attached 3.4.x patch fixes the problem there, but if you want to work
|
||||
around it for old versions, just avoid using empty asms if you can,
|
||||
or make them volatile if you can't.
|
||||
|
||||
Of course, the problem isn't confined to empty asms. If you have an asm
|
||||
with a single, multi-instruction macro, gcc might try putting that in a
|
||||
delay slot too. You should at least get an assembler warning in that case.
|
||||
|
||||
Richard
|
||||
|
||||
|
||||
--- gcc-3.4.1/gcc/config/mips/mips.md-orig 2004-09-02 10:38:36.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/mips/mips.md 2004-09-02 10:38:42.000000000 -0500
|
||||
@@ -251,7 +251,7 @@
|
||||
|
||||
;; Can the instruction be put into a delay slot?
|
||||
(define_attr "can_delay" "no,yes"
|
||||
- (if_then_else (and (eq_attr "type" "!branch,call,jump")
|
||||
+ (if_then_else (and (eq_attr "type" "!branch,call,jump,multi")
|
||||
(and (eq_attr "hazard" "none")
|
||||
(eq_attr "single_insn" "yes")))
|
||||
(const_string "yes")
|
||||
70
toolchain/gcc/3.4.1/800-arm-bigendian.patch
Normal file
70
toolchain/gcc/3.4.1/800-arm-bigendian.patch
Normal file
@@ -0,0 +1,70 @@
|
||||
By Lennert Buytenhek <buytenh@wantstofly.org>
|
||||
Adds support for arm*b-linux* big-endian ARM targets
|
||||
|
||||
See http://gcc.gnu.org/PR16350
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-08-16 16:01:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-16 15:43:40.000000000 -0500
|
||||
@@ -30,17 +30,34 @@
|
||||
/* Do not assume anything about header files. */
|
||||
#define NO_IMPLICIT_EXTERN_C
|
||||
|
||||
+/*
|
||||
+ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
|
||||
+ * (big endian) configurations.
|
||||
+ */
|
||||
+#if TARGET_BIG_ENDIAN_DEFAULT
|
||||
+#define TARGET_ENDIAN_DEFAULT ARM_FLAG_BIG_END
|
||||
+#define TARGET_ENDIAN_OPTION "mbig-endian"
|
||||
+#define TARGET_LINKER_EMULATION "armelfb_linux"
|
||||
+#else
|
||||
+#define TARGET_ENDIAN_DEFAULT 0
|
||||
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
|
||||
+#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||
+#endif
|
||||
+
|
||||
/* Default is to use APCS-32 mode. */
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 | \
|
||||
+ ARM_FLAG_MMU_TRAPS | \
|
||||
+ TARGET_ENDIAN_DEFAULT )
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
|
||||
+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -101,7 +118,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
|
||||
-X \
|
||||
- %{mbig-endian:-EB}" \
|
||||
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
#endif
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-08-16 16:01:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-16 16:01:25.000000000 -0500
|
||||
@@ -672,6 +672,11 @@
|
||||
;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ case $target in
|
||||
+ arm*b-*)
|
||||
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||
+ ;;
|
||||
+ esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
gnu_ld=yes
|
||||
27
toolchain/gcc/3.4.1/810-arm-bigendian-uclibc.patch
Normal file
27
toolchain/gcc/3.4.1/810-arm-bigendian-uclibc.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-08-16 16:08:18.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-16 16:06:24.000000000 -0500
|
||||
@@ -107,7 +107,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
-X \
|
||||
- %{mbig-endian:-EB}" \
|
||||
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-08-16 16:08:18.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-16 16:03:25.000000000 -0500
|
||||
@@ -666,6 +666,11 @@
|
||||
;;
|
||||
arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ case $target in
|
||||
+ arm*b-*)
|
||||
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||
+ ;;
|
||||
+ esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
gnu_ld=yes
|
||||
270
toolchain/gcc/3.4.1/arm-softfloat.patch.conditional
Normal file
270
toolchain/gcc/3.4.1/arm-softfloat.patch.conditional
Normal file
@@ -0,0 +1,270 @@
|
||||
Note... modified my mjn3 to not conflict with the big endian arm patch.
|
||||
Warning!!! Only the linux target is aware of TARGET_ENDIAN_DEFAULT.
|
||||
Also changed
|
||||
#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
%{!mcpu=*:-mcpu=xscale} \
|
||||
%{mhard-float:-mfpu=fpa} \
|
||||
%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
to
|
||||
#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
%{mhard-float:-mfpu=fpa} \
|
||||
%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
in gcc/config/arm/linux-elf.h.
|
||||
#
|
||||
# Submitted:
|
||||
#
|
||||
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||
#
|
||||
# Description:
|
||||
#
|
||||
# Nicholas Pitre released this patch for gcc soft-float support here:
|
||||
# http://lists.arm.linux.org.uk/pipermail/linux-arm/2003-October/006436.html
|
||||
#
|
||||
# This version has been adapted to work with gcc 3.4.0.
|
||||
#
|
||||
# The original patch doesn't distinguish between softfpa and softvfp modes
|
||||
# in the way Nicholas Pitre probably meant. His description is:
|
||||
#
|
||||
# "Default is to use APCS-32 mode with soft-vfp. The old Linux default for
|
||||
# floats can be achieved with -mhard-float or with the configure
|
||||
# --with-float=hard option. If -msoft-float or --with-float=soft is used then
|
||||
# software float support will be used just like the default but with the legacy
|
||||
# big endian word ordering for double float representation instead."
|
||||
#
|
||||
# Which means the following:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, you should get
|
||||
# software floating point, using the VFP format. The produced object file
|
||||
# should have these flags in its header:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# * If you compile with -mhard-float, you should get hardware floating point,
|
||||
# which always uses the FPA format. Object file header flags should be:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# * If you compile with -msoft-float, you should get software floating point,
|
||||
# using the FPA format. This is done for compatibility reasons with many
|
||||
# existing distributions. Object file header flags should be:
|
||||
#
|
||||
# private flags = 200: [APCS-32] [FPA float format] [software FP]
|
||||
#
|
||||
# The original patch from Nicholas Pitre contained the following constructs:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
#
|
||||
# However, gcc doesn't accept this ";:" notation, used in the 3rd line. This
|
||||
# is probably the reason Robert Schwebel modified it to:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa -mfpu=softvfp}}"
|
||||
#
|
||||
# But this causes the following behaviour:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, the compiler generates
|
||||
# software floating point instructions, but *nothing* is passed to the
|
||||
# assembler, which results in an object file which has flags:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# This is not correct!
|
||||
#
|
||||
# * If you compile with -mhard-float, the compiler generates hardware floating
|
||||
# point instructions, and passes "-mfpu=fpa" to the assembler, which results
|
||||
# in an object file which has the same flags as in the previous item, but now
|
||||
# those *are* correct.
|
||||
#
|
||||
# * If you compile with -msoft-float, the compiler generates software floating
|
||||
# point instructions, and passes "-mfpu=softfpa -mfpu=softvfp" (in that
|
||||
# order) to the assembler, which results in an object file with flags:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# This is not correct, because the last "-mfpu=" option on the assembler
|
||||
# command line determines the actual FPU convention used (which should be FPA
|
||||
# in this case).
|
||||
#
|
||||
# Therefore, I modified this patch to get the desired behaviour. Every
|
||||
# instance of the notation:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa -mfpu=softvfp}
|
||||
#
|
||||
# was changed to:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}
|
||||
#
|
||||
# I also did the following:
|
||||
#
|
||||
# * Modified all TARGET_DEFAULT macros I could find to include ARM_FLAG_VFP, to
|
||||
# be consistent with Nicholas' original patch.
|
||||
# * Removed any "msoft-float" or "mhard-float" from all MULTILIB_DEFAULTS
|
||||
# macros I could find. I think that if you compile without any options, you
|
||||
# would like to get the defaults. :)
|
||||
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||
# anymore. (The required functions are now in libgcc.)
|
||||
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/coff.h gcc-3.4.1/gcc/config/arm/coff.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/coff.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/coff.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -31,11 +31,16 @@
|
||||
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
|
||||
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||
#endif
|
||||
|
||||
/* This is COFF, but prefer stabs. */
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/elf.h gcc-3.4.1/gcc/config/arm/elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/elf.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -46,7 +46,9 @@
|
||||
|
||||
#ifndef SUBTARGET_ASM_FLOAT_SPEC
|
||||
#define SUBTARGET_ASM_FLOAT_SPEC "\
|
||||
-%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
|
||||
+%{mapcs-float:-mfloat} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
#endif
|
||||
|
||||
#ifndef ASM_SPEC
|
||||
@@ -106,12 +108,17 @@
|
||||
#endif
|
||||
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
#endif
|
||||
|
||||
#define TARGET_ASM_FILE_START_APP_OFF true
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/linux-elf.h 2004-09-02 21:50:52.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-09-02 22:00:49.000000000 -0500
|
||||
@@ -44,12 +44,26 @@
|
||||
#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||
#endif
|
||||
|
||||
-/* Default is to use APCS-32 mode. */
|
||||
+/*
|
||||
+ * Default is to use APCS-32 mode with soft-vfp.
|
||||
+ * The old Linux default for floats can be achieved with -mhard-float
|
||||
+ * or with the configure --with-float=hard option.
|
||||
+ * If -msoft-float or --with-float=soft is used then software float
|
||||
+ * support will be used just like the default but with the legacy
|
||||
+ * big endian word ordering for double float representation instead.
|
||||
+ */
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT \
|
||||
- ( ARM_FLAG_APCS_32 | \
|
||||
- ARM_FLAG_MMU_TRAPS | \
|
||||
- TARGET_ENDIAN_DEFAULT )
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_SOFT_FLOAT \
|
||||
+ | TARGET_ENDIAN_DEFAULT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
+
|
||||
+#undef SUBTARGET_EXTRA_ASM_SPEC
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
@@ -57,7 +71,7 @@
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", TARGET_ENDIAN_OPTION, "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -72,7 +86,7 @@
|
||||
%{shared:-lc} \
|
||||
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||
|
||||
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||
+#define LIBGCC_SPEC "-lgcc"
|
||||
|
||||
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/t-linux gcc-3.4.1/gcc/config/arm/t-linux
|
||||
--- gcc-3.4.1-old/gcc/config/arm/t-linux 2003-09-20 16:09:07.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/t-linux 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -4,7 +4,10 @@
|
||||
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||
|
||||
LIB1ASMSRC = arm/lib1funcs.asm
|
||||
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||
+ _fixsfsi _fixunssfsi
|
||||
|
||||
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/unknown-elf.h gcc-3.4.1/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/unknown-elf.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/unknown-elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -30,7 +30,12 @@
|
||||
|
||||
/* Default to using APCS-32 and software floating point. */
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
/* Now we define the strings used to build the spec file. */
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/xscale-elf.h gcc-3.4.1/gcc/config/arm/xscale-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/xscale-elf.h 2003-07-01 18:26:43.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/xscale-elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -49,11 +49,12 @@
|
||||
endian, regardless of the endian-ness of the memory
|
||||
system. */
|
||||
|
||||
-#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
- %{mhard-float:-mfpu=fpa} \
|
||||
- %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{!mcpu=*:-mcpu=xscale} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
|
||||
+ { "mlittle-endian", "mno-thumb-interwork", "marm" }
|
||||
#endif
|
||||
442
toolchain/gcc/3.4.2/100-uclibc-conf.patch
Normal file
442
toolchain/gcc/3.4.2/100-uclibc-conf.patch
Normal file
@@ -0,0 +1,442 @@
|
||||
diff -urN gcc-3.4.1-dist/boehm-gc/configure gcc-3.4.1/boehm-gc/configure
|
||||
--- gcc-3.4.1-dist/boehm-gc/configure 2004-07-01 14:14:03.000000000 -0500
|
||||
+++ gcc-3.4.1/boehm-gc/configure 2004-08-12 16:22:57.000000000 -0500
|
||||
@@ -1947,6 +1947,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||
diff -urN gcc-3.4.1-dist/boehm-gc/ltconfig gcc-3.4.1/boehm-gc/ltconfig
|
||||
--- gcc-3.4.1-dist/boehm-gc/ltconfig 2002-11-20 09:59:06.000000000 -0600
|
||||
+++ gcc-3.4.1/boehm-gc/ltconfig 2004-08-12 15:54:42.000000000 -0500
|
||||
@@ -1981,6 +1981,23 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
||||
+ file_magic_cmd=/usr/bin/file
|
||||
+ file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-12 15:54:42.000000000 -0500
|
||||
@@ -81,6 +81,18 @@
|
||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
+ %{b} %{Wl,*:%*} \
|
||||
+ %{static:-Bstatic} \
|
||||
+ %{shared:-shared} \
|
||||
+ %{symbolic:-Bsymbolic} \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
+ -X \
|
||||
+ %{mbig-endian:-EB}" \
|
||||
+ SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
%{b} %{Wl,*:%*} \
|
||||
%{static:-Bstatic} \
|
||||
@@ -91,6 +103,7 @@
|
||||
-X \
|
||||
%{mbig-endian:-EB}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#endif
|
||||
|
||||
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/cris/linux.h gcc-3.4.1/gcc/config/cris/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/cris/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -79,6 +79,25 @@
|
||||
#undef CRIS_DEFAULT_CPU_VERSION
|
||||
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||
|
||||
+#ifdef USE_UCLIBC
|
||||
+
|
||||
+#undef CRIS_SUBTARGET_VERSION
|
||||
+#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
|
||||
+
|
||||
+#undef CRIS_LINK_SUBTARGET_SPEC
|
||||
+#define CRIS_LINK_SUBTARGET_SPEC \
|
||||
+ "-mcrislinux\
|
||||
+ -rpath-link include/asm/../..%s\
|
||||
+ %{shared} %{static}\
|
||||
+ %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
|
||||
+ %{!shared: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
|
||||
+ %{!r:%{O2|O3: --gc-sections}}"
|
||||
+
|
||||
+#else /* USE_UCLIBC */
|
||||
+
|
||||
#undef CRIS_SUBTARGET_VERSION
|
||||
#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
|
||||
|
||||
@@ -93,6 +112,8 @@
|
||||
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
|
||||
%{!r:%{O2|O3: --gc-sections}}"
|
||||
|
||||
+#endif /* USE_UCLIBC */
|
||||
+
|
||||
|
||||
/* Node: Run-time Target */
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc gcc-3.4.1/gcc/config/cris/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/cris/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,3 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+TARGET_LIBGCC2_CFLAGS += -fPIC
|
||||
+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/i386/linux.h gcc-3.4.1/gcc/config/i386/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/i386/linux.h 2003-11-28 21:08:10.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/i386/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -118,6 +118,15 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
|
||||
%{static:-static}}}"
|
||||
#else
|
||||
+#if defined USE_UCLIBC
|
||||
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
%{!shared: \
|
||||
%{!ibcs: \
|
||||
@@ -126,6 +135,7 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}}}"
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* A C statement (sans semicolon) to output to the stdio stream
|
||||
FILE the assembler definition of uninitialized global DECL named
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/mips/linux.h gcc-3.4.1/gcc/config/mips/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/mips/linux.h 2004-06-15 20:42:24.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/mips/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -109,6 +109,17 @@
|
||||
|
||||
/* Borrowed from sparc/linux.h */
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC \
|
||||
+ "%(endian_spec) \
|
||||
+ %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC \
|
||||
"%(endian_spec) \
|
||||
%{shared:-shared} \
|
||||
@@ -118,6 +129,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||
%{static:-static}}}"
|
||||
+#endif
|
||||
|
||||
#undef SUBTARGET_ASM_SPEC
|
||||
#define SUBTARGET_ASM_SPEC "\
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/linux.h gcc-3.4.1/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/rs6000/linux.h 2004-02-25 09:11:19.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/rs6000/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -61,7 +61,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h gcc-3.4.1/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h 2004-06-10 01:39:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/rs6000/sysv4.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -947,6 +947,7 @@
|
||||
mcall-linux : %(link_os_linux) ; \
|
||||
mcall-gnu : %(link_os_gnu) ; \
|
||||
mcall-netbsd : %(link_os_netbsd) ; \
|
||||
+ mcall-linux-uclibc : %(link_os_linux_uclibc); \
|
||||
mcall-openbsd: %(link_os_openbsd) ; \
|
||||
: %(link_os_default) }"
|
||||
|
||||
@@ -1124,6 +1125,10 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||
#endif
|
||||
@@ -1290,6 +1295,7 @@
|
||||
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/linux.h gcc-3.4.1/gcc/config/sh/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/linux.h 2004-01-11 20:29:13.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -73,12 +73,21 @@
|
||||
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||
#undef SUBTARGET_LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define SUBTARGET_LINK_SPEC \
|
||||
+ "%{shared:-shared} \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}"
|
||||
+#else
|
||||
#define SUBTARGET_LINK_SPEC \
|
||||
"%{shared:-shared} \
|
||||
%{!static: \
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}"
|
||||
+#endif
|
||||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc gcc-3.4.1/gcc/config/sh/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
|
||||
+LIB1ASMFUNCS_CACHE = _ic_invalidate
|
||||
+
|
||||
+LIB2FUNCS_EXTRA=
|
||||
+
|
||||
+MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
|
||||
+MULTILIB_DIRNAMES=
|
||||
+MULTILIB_MATCHES =
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
+
|
||||
+EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc gcc-3.4.1/gcc/config/sh/t-sh64-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/t-sh64-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o
|
||||
+
|
||||
+LIB1ASMFUNCS = \
|
||||
+ _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
|
||||
+ _shcompact_call_trampoline _shcompact_return_trampoline \
|
||||
+ _shcompact_incoming_args _ic_invalidate _nested_trampoline \
|
||||
+ _push_pop_shmedia_regs \
|
||||
+ _udivdi3 _divdi3 _umoddi3 _moddi3
|
||||
+
|
||||
+MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
|
||||
+MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
|
||||
+MULTILIB_MATCHES=
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/t-linux-uclibc gcc-3.4.1/gcc/config/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,15 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+# Compile crtbeginS.o and crtendS.o with pic.
|
||||
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
||||
+# Compile libgcc2.a with pic.
|
||||
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
||||
+
|
||||
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
||||
+# the symbol versions that glibc used.
|
||||
+#SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
||||
+
|
||||
+# Use unwind-dw2-fde
|
||||
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
||||
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
||||
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-04-21 10:12:35.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-12 15:59:46.000000000 -0500
|
||||
@@ -664,6 +664,12 @@
|
||||
extra_parts=""
|
||||
use_collect2=yes
|
||||
;;
|
||||
+arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
+ tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ gnu_ld=yes
|
||||
+ ;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
@@ -725,6 +731,10 @@
|
||||
tmake_file="cris/t-cris cris/t-elfmulti"
|
||||
gas=yes
|
||||
;;
|
||||
+cris-*-linux-uclibc*)
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
+ tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
|
||||
+ ;;
|
||||
cris-*-linux*)
|
||||
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
|
||||
@@ -988,6 +998,11 @@
|
||||
thread_file='single'
|
||||
fi
|
||||
;;
|
||||
+i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
|
||||
+ # with ELF format using uClibc
|
||||
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
|
||||
+ ;;
|
||||
i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
|
||||
# with ELF format using glibc 2
|
||||
# aka GNU/Linux C library 6
|
||||
@@ -1547,6 +1562,16 @@
|
||||
gnu_ld=yes
|
||||
gas=yes
|
||||
;;
|
||||
+mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
+ case ${target} in
|
||||
+ mipsisa32*-*)
|
||||
+ target_cpu_default="MASK_SOFT_FLOAT"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=32"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc"
|
||||
+ ;;
|
||||
mips*-*-linux*) # Linux MIPS, either endian.
|
||||
tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
case ${target} in
|
||||
@@ -1764,6 +1789,10 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
;;
|
||||
+powerpc-*-linux-uclibc*)
|
||||
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
+ tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
|
||||
+ ;;
|
||||
powerpc-*-linux*)
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
@@ -1916,7 +1945,7 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
|
||||
;;
|
||||
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||
- tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
|
||||
+ tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver"
|
||||
case ${target} in
|
||||
sh*be-*-* | sh*eb-*-*) ;;
|
||||
*)
|
||||
@@ -1924,9 +1953,17 @@
|
||||
tmake_file="${tmake_file} sh/t-le"
|
||||
;;
|
||||
esac
|
||||
- tmake_file="${tmake_file} sh/t-linux"
|
||||
+ case ${target} in
|
||||
+ *-*-linux-uclibc*) tmake_file="${tmake_file} t-linux-uclibc sh/t-linux-uclibc" ;;
|
||||
+ *) tmake_file="${tmake_file} t-linux sh/t-linux" ;;
|
||||
+ esac
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
|
||||
case ${target} in
|
||||
+ sh64*-*-linux-uclibc*)
|
||||
+ tmake_file="${tmake_file} sh/t-sh64-uclibc"
|
||||
+ tm_file="${tm_file} sh/sh64.h"
|
||||
+ extra_headers="shmedia.h ushmedia.h sshmedia.h"
|
||||
+ ;;
|
||||
sh64*)
|
||||
tmake_file="${tmake_file} sh/t-sh64"
|
||||
tm_file="${tm_file} sh/sh64.h"
|
||||
diff -urN gcc-3.4.1-dist/libtool.m4 gcc-3.4.1/libtool.m4
|
||||
--- gcc-3.4.1-dist/libtool.m4 2004-05-18 04:08:37.000000000 -0500
|
||||
+++ gcc-3.4.1/libtool.m4 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -689,6 +689,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||
diff -urN gcc-3.4.1-dist/ltconfig gcc-3.4.1/ltconfig
|
||||
--- gcc-3.4.1-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
|
||||
+++ gcc-3.4.1/ltconfig 2004-08-12 15:55:48.000000000 -0500
|
||||
@@ -602,6 +602,7 @@
|
||||
|
||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||
case $host_os in
|
||||
+linux-uclibc*) ;;
|
||||
linux-gnu*) ;;
|
||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||
esac
|
||||
@@ -1262,6 +1263,24 @@
|
||||
dynamic_linker='GNU/Linux ld.so'
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ # This implies no fast_install, which is unacceptable.
|
||||
+ # Some rework will be needed to allow for fast_install
|
||||
+ # before this can be enabled.
|
||||
+ # Note: copied from linux-gnu, and may not be appropriate.
|
||||
+ hardcode_into_libs=yes
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
3246
toolchain/gcc/3.4.2/200-uclibc-locale.patch
Normal file
3246
toolchain/gcc/3.4.2/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
47
toolchain/gcc/3.4.2/300-libstdc++-pic.patch
Normal file
47
toolchain/gcc/3.4.2/300-libstdc++-pic.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
# DP: Build and install libstdc++_pic.a library.
|
||||
|
||||
--- gcc/libstdc++-v3/src/Makefile.am~ 2003-02-28 09:21:05.000000000 +0100
|
||||
+++ gcc/libstdc++-v3/src/Makefile.am 2003-02-28 09:28:50.000000000 +0100
|
||||
@@ -224,6 +224,10 @@
|
||||
@OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
|
||||
+install-exec-local:
|
||||
+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
|
||||
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
|
||||
+
|
||||
# Added bits to build debug library.
|
||||
if GLIBCPP_BUILD_DEBUG
|
||||
all-local: build_debug
|
||||
|
||||
--- gcc/libstdc++-v3/src/Makefile.in~ 2004-02-21 09:55:48.000000000 +0100
|
||||
+++ gcc/libstdc++-v3/src/Makefile.in 2004-02-21 09:59:34.000000000 +0100
|
||||
@@ -585,7 +585,7 @@
|
||||
|
||||
install-data-am: install-data-local
|
||||
|
||||
-install-exec-am: install-toolexeclibLTLIBRARIES
|
||||
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
@@ -618,6 +618,7 @@
|
||||
distclean-tags distdir dvi dvi-am info info-am install \
|
||||
install-am install-data install-data-am install-data-local \
|
||||
install-exec install-exec-am install-info install-info-am \
|
||||
+ install-exec-local \
|
||||
install-man install-strip install-toolexeclibLTLIBRARIES \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
@@ -707,6 +708,11 @@
|
||||
install_debug:
|
||||
(cd ${debugdir} && $(MAKE) \
|
||||
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
|
||||
+
|
||||
+install-exec-local:
|
||||
+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
|
||||
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
|
||||
+
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
53
toolchain/gcc/3.4.2/300-pr15526.patch
Normal file
53
toolchain/gcc/3.4.2/300-pr15526.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
# DP: 2004-09-26 Roger Sayle <roger@eyesopen.com>
|
||||
# DP:
|
||||
# DP: PR other/15526
|
||||
# DP: Backport from mainline
|
||||
# DP: 2004-05-20 Falk Hueffner <falk@debian.org>
|
||||
# DP: * libgcc2.c (__mulvsi3): Fix overflow test.
|
||||
|
||||
diff -u -r1.170.6.1 -r1.170.6.2
|
||||
--- gcc/gcc/libgcc2.c 2004/07/17 21:18:47 1.170.6.1
|
||||
+++ gcc/gcc/libgcc2.c 2004/09/26 20:47:14 1.170.6.2
|
||||
@@ -130,9 +130,7 @@
|
||||
{
|
||||
const DWtype w = (DWtype) a * (DWtype) b;
|
||||
|
||||
- if (((a >= 0) == (b >= 0))
|
||||
- ? (UDWtype) w > (UDWtype) (((DWtype) 1 << (WORD_SIZE - 1)) - 1)
|
||||
- : (UDWtype) w < (UDWtype) ((DWtype) -1 << (WORD_SIZE - 1)))
|
||||
+ if ((Wtype) (w >> WORD_SIZE) != (Wtype) w >> (WORD_SIZE - 1))
|
||||
abort ();
|
||||
|
||||
return w;
|
||||
|
||||
/cvs/gcc/gcc/gcc/testsuite/gcc.dg/ftrapv-1.c,v --> standard output
|
||||
revision 1.1.22.1
|
||||
--- gcc/gcc/testsuite/gcc.dg/ftrapv-1.c
|
||||
+++ /dev/null 2004-10-15 06:22:06.980596000 +0000
|
||||
@@ -0,0 +1,25 @@
|
||||
+/* Copyright (C) 2004 Free Software Foundation.
|
||||
+
|
||||
+ PR other/15526
|
||||
+ Verify correct overflow checking with -ftrapv.
|
||||
+
|
||||
+ Written by Falk Hueffner, 20th May 2004. */
|
||||
+
|
||||
+/* { dg-do run } */
|
||||
+/* { dg-options "-ftrapv" } */
|
||||
+
|
||||
+__attribute__((noinline)) int
|
||||
+mulv(int a, int b)
|
||||
+{
|
||||
+ return a * b;
|
||||
+}
|
||||
+
|
||||
+int
|
||||
+main()
|
||||
+{
|
||||
+ mulv( 0, 0);
|
||||
+ mulv( 0, -1);
|
||||
+ mulv(-1, 0);
|
||||
+ mulv(-1, -1);
|
||||
+ return 0;
|
||||
+}
|
||||
|
||||
234
toolchain/gcc/3.4.2/300-pr17541.patch
Normal file
234
toolchain/gcc/3.4.2/300-pr17541.patch
Normal file
@@ -0,0 +1,234 @@
|
||||
# DP: 2004-09-21 Bud Davis <bdavis9659@comcast.net>
|
||||
# DP:
|
||||
# DP: PR fortran/17541
|
||||
# DP: * bld.c (ffebld_constant_new_real2_val): Fix typo,
|
||||
# DP:
|
||||
# DP: PR fortran/17541
|
||||
# DP: * g77.f-torture/execute/pr17541.f: New test.
|
||||
|
||||
Index: gcc/gcc/f/bld.c
|
||||
===================================================================
|
||||
RCS file: /cvs/gcc/gcc/gcc/f/Attic/bld.c,v
|
||||
retrieving revision 1.16.14.1
|
||||
retrieving revision 1.16.14.2
|
||||
diff -u -r1.16.14.1 -r1.16.14.2
|
||||
--- gcc/gcc/f/bld.c 12 Jul 2004 17:58:36 -0000 1.16.14.1
|
||||
+++ gcc/gcc/f/bld.c 21 Sep 2004 12:54:27 -0000 1.16.14.2
|
||||
@@ -1333,7 +1333,7 @@
|
||||
nc = malloc_new_kp (ffebld_constant_pool(),
|
||||
"FFEBLD_constREAL2",
|
||||
sizeof (*nc));
|
||||
- nc->consttype = FFEBLD_constREAL1;
|
||||
+ nc->consttype = FFEBLD_constREAL2;
|
||||
nc->u.real2 = val;
|
||||
nc->hook = FFECOM_constantNULL;
|
||||
nc->llink = NULL;
|
||||
Index: gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f
|
||||
===================================================================
|
||||
RCS file: gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f
|
||||
diff -N gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f
|
||||
--- /dev/null 1 Jan 1970 00:00:00 -0000
|
||||
+++ gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f 21 Sep 2004 12:54:35 -0000 1.1.2.1
|
||||
@@ -0,0 +1,202 @@
|
||||
+ program test
|
||||
+ implicit none
|
||||
+! check all types of data statements
|
||||
+! pr 17541
|
||||
+ real r(2)
|
||||
+ double precision s(2)
|
||||
+ integer*1 ib(2)
|
||||
+ integer*2 ih(2)
|
||||
+ integer*4 iw(2)
|
||||
+ integer*8 id(3)
|
||||
+ logical*1 lb(2)
|
||||
+ logical*2 lh(2)
|
||||
+ logical*4 lw(2)
|
||||
+ logical*8 ld(2)
|
||||
+ character*1 a(2)
|
||||
+ character*5 b(2)
|
||||
+ complex c1(2)
|
||||
+ complex*8 c2(2)
|
||||
+ data r / 1.0,2.0 /
|
||||
+ data s / 2.d0,1.d0/
|
||||
+ data ib / 1,-1 /
|
||||
+ data ih / 2,100/
|
||||
+ data iw / 4,3560000 /
|
||||
+ data id / 8,Z'ABCDEF01',Z'5555AAAA' /
|
||||
+ data a / 'a', 'z' /
|
||||
+ data b / 'xyz','abc'/
|
||||
+ data c1 /(1.0,2.0),(-1.0,-2.0)/
|
||||
+ data c2 /(1.d0,2.d0),(-1.d0,-2.d0)/
|
||||
+ data lb / .TRUE.,.FALSE. /
|
||||
+ data lh / .TRUE.,.FALSE. /
|
||||
+ data lw / .TRUE.,.FALSE. /
|
||||
+ data ld / .TRUE.,.FALSE. /
|
||||
+ logical dbug
|
||||
+ data dbug /.FALSE./
|
||||
+! check the reals first
|
||||
+ if (r(1).ne.1.0) then
|
||||
+ if (dbug) then
|
||||
+ print*,r(1), ' should be 1.0 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (r(2).ne.2.0) then
|
||||
+ if (dbug) then
|
||||
+ print*,r(2), ' should be 2.0 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (s(1).ne.2.d0) then
|
||||
+ if (dbug) then
|
||||
+ print*,s(1), ' xxshould be 2.d0 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (s(2).ne.1.d0) then
|
||||
+ if (dbug) then
|
||||
+ print*,s(2), ' should be 1.d0 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+! now the integers
|
||||
+ if (ib(1).ne.1) then
|
||||
+ if (dbug) then
|
||||
+ print*,ib(1), ' should be 1 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (ib(2).ne.-1) then
|
||||
+ if (dbug) then
|
||||
+ print*,ib(2), ' should be -1 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (ih(1).ne.2) then
|
||||
+ if (dbug) then
|
||||
+ print*,ih(2), ' should be 2 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (ih(2).ne.100) then
|
||||
+ if (dbug) then
|
||||
+ print*,ih(2), ' should be 100 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (iw(1).ne.4) then
|
||||
+ if (dbug) then
|
||||
+ print*,iw(1), ' should be 4 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (iw(2).ne.3560000) then
|
||||
+ if (dbug) then
|
||||
+ print*,iw(2), ' should be 3560000 '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (id(1).ne.8) then
|
||||
+ if (dbug) print*,id(1), ' should be 8 '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (id(2).ne.Z'ABCDEF01') then
|
||||
+ if (dbug) print*,id(2), " should be Z'ABCDEF01' "
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (id(3).ne.Z'5555AAAA') then
|
||||
+ if (dbug) print*,id(2), " should be Z'5555AAAA' "
|
||||
+ call abort
|
||||
+ endif
|
||||
+! complex
|
||||
+ if (c1(1).ne.(1.0,2.0)) then
|
||||
+ if (dbug) then
|
||||
+ print*,c1(1), ' should be (1.0,2.0) '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (c1(2).ne.(-1.0,-2.0)) then
|
||||
+ if (dbug) then
|
||||
+ print*,c1(2), ' should be (-1.0,-2.0) '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (c2(1).ne.(1.d0,2.d0)) then
|
||||
+ if (dbug) then
|
||||
+ print*,c2(1), ' should be (1.0,2.0) '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (c2(2).ne.(-1.d0,-2.d0)) then
|
||||
+ if (dbug) then
|
||||
+ print*,c2(2), ' should be (-1.0,-2.0) '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+! character
|
||||
+ if (a(1).ne.'a') then
|
||||
+ if (dbug) then
|
||||
+ print*,a(1), ' should be a '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (b(1).ne.'xyz') then
|
||||
+ if (dbug) then
|
||||
+ print*,b(1), ' should be xyz '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+!logicals
|
||||
+ if (.NOT.lb(1)) then
|
||||
+ if (dbug) print*,lb(1), ' should be .T. '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (lb(2)) then
|
||||
+ if (dbug) print*,lb(2), ' should be .F. '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (.NOT.lh(1)) then
|
||||
+ if (dbug) print*,lh(1), ' should be .T. '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (lh(2)) then
|
||||
+ if (dbug) print*,lh(2), ' should be .F. '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (.NOT.lw(1)) then
|
||||
+ if (dbug) print*,lw(1), ' should be .T. '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (lw(2)) then
|
||||
+ if (dbug) print*,lw(2), ' should be .F. '
|
||||
+ call abort
|
||||
+ endif
|
||||
+ if (.NOT.ld(1)) then
|
||||
+ if (dbug) then
|
||||
+ print*,ld(1), ' should be .T. '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ if (ld(2)) then
|
||||
+ if (dbug) then
|
||||
+ print*,ld(2), ' should be .F. '
|
||||
+ else
|
||||
+ call abort
|
||||
+ endif
|
||||
+ endif
|
||||
+ end
|
||||
106
toolchain/gcc/3.4.2/300-pr17976.patch
Normal file
106
toolchain/gcc/3.4.2/300-pr17976.patch
Normal file
@@ -0,0 +1,106 @@
|
||||
From: Mark Mitchell <mark@codesourcery.com>
|
||||
Sender: gcc-patches-owner@gcc.gnu.org
|
||||
To: gcc-patches@gcc.gnu.org
|
||||
Subject: C++ PATCH: PR 17976
|
||||
Date: Thu, 14 Oct 2004 21:24:41 -0700
|
||||
|
||||
|
||||
This was a case where we generated multiple destructor calls for the
|
||||
same global variable, in the (probably rare) situation that an
|
||||
"extern" declaration followed the definition.
|
||||
|
||||
Tested on i686-pc-linux-gnu, applied on the mainline and on the 3.4
|
||||
branch.
|
||||
|
||||
--
|
||||
Mark Mitchell
|
||||
CodeSourcery, LLC
|
||||
mark@codesourcery.com
|
||||
|
||||
# DP: 2004-10-14 Mark Mitchell <mark@codesourcery.com>
|
||||
# DP:
|
||||
# DP: PR c++/17976
|
||||
# DP: * decl.c (cp_finish_decl): Do not call expand_static_init more
|
||||
# DP: than once for a single variable.
|
||||
# DP:
|
||||
# DP: 2004-10-14 Mark Mitchell <mark@codesourcery.com>
|
||||
# DP:
|
||||
# DP: PR c++/17976
|
||||
# DP: * g++.dg/init/dtor3.C: New test.
|
||||
|
||||
Index: testsuite/g++.dg/init/dtor3.C
|
||||
===================================================================
|
||||
RCS file: testsuite/g++.dg/init/dtor3.C
|
||||
diff -N testsuite/g++.dg/init/dtor3.C
|
||||
*** /dev/null 1 Jan 1970 00:00:00 -0000
|
||||
--- gcc/gcc/testsuite/g++.dg/init/dtor3.C 15 Oct 2004 04:02:22 -0000
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,21 ----
|
||||
+ // PR c++/17976
|
||||
+ // { dg-do run }
|
||||
+
|
||||
+ extern "C" void abort();
|
||||
+ struct A
|
||||
+ {
|
||||
+ static int i;
|
||||
+ A(){}
|
||||
+ ~A(){i++;if(i>1)abort();}
|
||||
+ };
|
||||
+
|
||||
+ int A::i = 0;
|
||||
+
|
||||
+ A a;
|
||||
+ extern A a;
|
||||
+
|
||||
+ int main()
|
||||
+ {
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
===================================================================
|
||||
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
|
||||
retrieving revision 1.1174.2.26
|
||||
retrieving revision 1.1174.2.27
|
||||
diff -u -r1.1174.2.26 -r1.1174.2.27
|
||||
--- gcc/gcc/cp/decl.c 2004/10/10 21:54:59 1.1174.2.26
|
||||
+++ gcc/gcc/cp/decl.c 2004/10/15 04:23:46 1.1174.2.27
|
||||
@@ -4778,6 +4778,7 @@
|
||||
tree cleanup;
|
||||
const char *asmspec = NULL;
|
||||
int was_readonly = 0;
|
||||
+ bool var_definition_p = false;
|
||||
|
||||
if (decl == error_mark_node)
|
||||
return;
|
||||
@@ -4930,6 +4931,11 @@
|
||||
/* Remember that the initialization for this variable has
|
||||
taken place. */
|
||||
DECL_INITIALIZED_P (decl) = 1;
|
||||
+ /* This declaration is the definition of this variable,
|
||||
+ unless we are initializing a static data member within
|
||||
+ the class specifier. */
|
||||
+ if (!DECL_EXTERNAL (decl))
|
||||
+ var_definition_p = true;
|
||||
}
|
||||
/* If the variable has an array type, lay out the type, even if
|
||||
there is no initializer. It is valid to index through the
|
||||
@@ -5004,8 +5010,16 @@
|
||||
initialize_local_var (decl, init);
|
||||
}
|
||||
|
||||
- if (TREE_STATIC (decl))
|
||||
- expand_static_init (decl, init);
|
||||
+ /* If a variable is defined, and then a subsequent
|
||||
+ definintion with external linkage is encountered, we will
|
||||
+ get here twice for the same variable. We want to avoid
|
||||
+ calling expand_static_init more than once. For variables
|
||||
+ that are not static data members, we can call
|
||||
+ expand_static_init only when we actually process the
|
||||
+ initializer. It is not legal to redeclare a static data
|
||||
+ member, so this issue does not arise in that case. */
|
||||
+ if (var_definition_p && TREE_STATIC (decl))
|
||||
+ expand_static_init (decl, init);
|
||||
}
|
||||
finish_end0:
|
||||
|
||||
102
toolchain/gcc/3.4.2/400-mips-pr17565.patch
Normal file
102
toolchain/gcc/3.4.2/400-mips-pr17565.patch
Normal file
@@ -0,0 +1,102 @@
|
||||
[committed] Fix target/17565: asms in delay slots
|
||||
|
||||
* From: Richard Sandiford <rsandifo at redhat dot com>
|
||||
* To: gcc-patches at gcc dot gnu dot org
|
||||
* Date: Mon, 20 Sep 2004 07:55:58 +0100
|
||||
* Subject: [committed] Fix target/17565: asms in delay slots
|
||||
|
||||
The MIPS port was allowing asms to be put into delay slots if the
|
||||
compiler guesses they are only one instruction long. This is wrong
|
||||
because of the possibility of it containing macros.
|
||||
|
||||
The problem can be reproduced as an assembler warning
|
||||
in the following testcase:
|
||||
|
||||
int foo (int n)
|
||||
{
|
||||
register int k asm ("$16") = n;
|
||||
if (k > 0)
|
||||
{
|
||||
bar ();
|
||||
asm ("li %0,0x12345678" : "=r" (k));
|
||||
}
|
||||
return k;
|
||||
}
|
||||
|
||||
because the multi-instruction asm statement goes into the delay
|
||||
slot of the call to bar().
|
||||
|
||||
This is reduced from a much more serious linux problem. Linux is fond
|
||||
of using empty asm statements, and since gcc estimates empty asms to be
|
||||
one instruction long, they too might be put into delay slots. This
|
||||
actually has the effect of putting the following instruction into the
|
||||
delay slot instead. Since there's no assembler warning, the problem was
|
||||
only detected as a run-time failure.
|
||||
|
||||
The fix is simple: set the asm value of "can_delay" to "no".
|
||||
Tested on mipsisa64-elf, applied to mainline.
|
||||
|
||||
This problem goes back to at least 2.95, so it isn't technically a
|
||||
regression. On the other hand, it's the kind of bug that could trigger
|
||||
for different types of code in different releases, so I'm sure there's
|
||||
a testcase that fails (say) in 3.4 and not in 2.95. Will probably ask
|
||||
Mark for permission to backport to 3.4.
|
||||
|
||||
Richard
|
||||
|
||||
|
||||
PR target/17565
|
||||
* config/mips/mips.md (define_asm_attributes): Set can_delay to no.
|
||||
|
||||
testsuite/
|
||||
* gcc.target/mips/asm-1.c: New test.
|
||||
|
||||
Index: config/mips/mips.md
|
||||
===================================================================
|
||||
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.md,v
|
||||
retrieving revision 1.306
|
||||
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.306 mips.md
|
||||
*** gcc/gcc/config/mips/mips.md 13 Sep 2004 19:32:05 -0000 1.306
|
||||
--- gcc/gcc/config/mips/mips.md 20 Sep 2004 06:52:31 -0000
|
||||
*************** (define_attr "may_clobber_hilo" "no,yes"
|
||||
*** 266,272 ****
|
||||
|
||||
;; Describe a user's asm statement.
|
||||
(define_asm_attributes
|
||||
! [(set_attr "type" "multi")])
|
||||
|
||||
;; .........................
|
||||
;;
|
||||
--- 266,273 ----
|
||||
|
||||
;; Describe a user's asm statement.
|
||||
(define_asm_attributes
|
||||
! [(set_attr "type" "multi")
|
||||
! (set_attr "can_delay" "no")])
|
||||
|
||||
;; .........................
|
||||
;;
|
||||
Index: testsuite/gcc.target/mips/asm-1.c
|
||||
===================================================================
|
||||
RCS file: testsuite/gcc.target/mips/asm-1.c
|
||||
diff -N testsuite/gcc.target/mips/asm-1.c
|
||||
*** gcc/gcc/testsuite/gcc.target/mips/asm-1.c 1 Jan 1970 00:00:00 -0000
|
||||
--- gcc/gcc/testsuite/gcc.target/mips/asm-1.c 20 Sep 2004 06:52:31 -0000
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,14 ----
|
||||
+ /* PR target/17565. GCC used to put the asm into the delay slot
|
||||
+ of the call. */
|
||||
+ /* { dg-do assemble } */
|
||||
+ /* { dg-options "-O" } */
|
||||
+ int foo (int n)
|
||||
+ {
|
||||
+ register int k asm ("$16") = n;
|
||||
+ if (k > 0)
|
||||
+ {
|
||||
+ bar ();
|
||||
+ asm ("li %0,0x12345678" : "=r" (k));
|
||||
+ }
|
||||
+ return k;
|
||||
+ }
|
||||
|
||||
20
toolchain/gcc/3.4.2/401-ppc-eabi-typo.patch
Normal file
20
toolchain/gcc/3.4.2/401-ppc-eabi-typo.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
revision 1.12
|
||||
date: 2004/07/16 15:13:40; author: segher; state: Exp; lines: +1 -1
|
||||
* config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
|
||||
Index: gcc/config/rs6000/eabi.asm
|
||||
===================================================================
|
||||
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/eabi.asm,v
|
||||
retrieving revision 1.11
|
||||
retrieving revision 1.12
|
||||
diff -u -b -B -w -p -r1.11 -r1.12
|
||||
--- gcc/gcc/config/rs6000/eabi.asm 20 Sep 2002 23:46:58 -0000 1.11
|
||||
+++ gcc/gcc/config/rs6000/eabi.asm 16 Jul 2004 15:13:40 -0000 1.12
|
||||
@@ -252,7 +252,7 @@ FUNC_START(__eabi_convert)
|
||||
|
||||
.Lcvt:
|
||||
lwzu 6,4(3) /* pointer to convert */
|
||||
- cmpi 0,6,0
|
||||
+ cmpwi 0,6,0
|
||||
beq- .Lcvt2 /* if pointer is null, don't convert */
|
||||
|
||||
add 6,6,12 /* convert pointer */
|
||||
12
toolchain/gcc/3.4.2/402-mips-pr17770.patch
Normal file
12
toolchain/gcc/3.4.2/402-mips-pr17770.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- gcc-3.4.2/gcc/config/mips/mips.md 2004-06-25 02:35:30.000000000 -0500
|
||||
+++ gcc-3.4-cvs/gcc/config/mips/mips.md 2004-10-26 01:54:56.000000000 -0500
|
||||
@@ -4073,8 +4073,7 @@
|
||||
"!TARGET_MIPS16"
|
||||
"lwl\t%0,%2"
|
||||
[(set_attr "type" "load")
|
||||
- (set_attr "mode" "SI")
|
||||
- (set_attr "hazard" "none")])
|
||||
+ (set_attr "mode" "SI")])
|
||||
|
||||
(define_insn "mov_lwr"
|
||||
[(set (match_operand:SI 0 "register_operand" "=d")
|
||||
79
toolchain/gcc/3.4.2/600-gcc34-arm-ldm-peephole.patch
Normal file
79
toolchain/gcc/3.4.2/600-gcc34-arm-ldm-peephole.patch
Normal file
@@ -0,0 +1,79 @@
|
||||
--- gcc-3.4.0/gcc/config/arm/arm.md.arm-ldm-peephole 2004-01-13 08:24:37.000000000 -0500
|
||||
+++ gcc-3.4.0/gcc/config/arm/arm.md 2004-04-24 18:18:04.000000000 -0400
|
||||
@@ -8810,13 +8810,16 @@
|
||||
(set_attr "length" "4,8,8")]
|
||||
)
|
||||
|
||||
+; Try to convert LDR+LDR+arith into [add+]LDM+arith
|
||||
+; On XScale, LDM is always slower than two LDRs, so only do this if
|
||||
+; optimising for size.
|
||||
(define_insn "*arith_adjacentmem"
|
||||
[(set (match_operand:SI 0 "s_register_operand" "=r")
|
||||
(match_operator:SI 1 "shiftable_operator"
|
||||
[(match_operand:SI 2 "memory_operand" "m")
|
||||
(match_operand:SI 3 "memory_operand" "m")]))
|
||||
(clobber (match_scratch:SI 4 "=r"))]
|
||||
- "TARGET_ARM && adjacent_mem_locations (operands[2], operands[3])"
|
||||
+ "TARGET_ARM && (!arm_tune_xscale || optimize_size) && adjacent_mem_locations (operands[2], operands[3])"
|
||||
"*
|
||||
{
|
||||
rtx ldm[3];
|
||||
@@ -8851,6 +8854,8 @@
|
||||
}
|
||||
if (val1 && val2)
|
||||
{
|
||||
+ /* This would be a loss on a Harvard core, but adjacent_mem_locations()
|
||||
+ will prevent it from happening. */
|
||||
rtx ops[3];
|
||||
ldm[0] = ops[0] = operands[4];
|
||||
ops[1] = XEXP (XEXP (operands[2], 0), 0);
|
||||
--- gcc-3.4.0/gcc/config/arm/arm.c.arm-ldm-peephole 2004-04-24 18:16:25.000000000 -0400
|
||||
+++ gcc-3.4.0/gcc/config/arm/arm.c 2004-04-24 18:18:04.000000000 -0400
|
||||
@@ -4593,8 +4593,11 @@
|
||||
arith_adjacentmem pattern to output an overlong sequence. */
|
||||
if (!const_ok_for_op (PLUS, val0) || !const_ok_for_op (PLUS, val1))
|
||||
return 0;
|
||||
-
|
||||
- return (reg0 == reg1) && ((val1 - val0) == 4 || (val0 - val1) == 4);
|
||||
+
|
||||
+ /* For Harvard cores, only accept pairs where one offset is zero.
|
||||
+ See comment in load_multiple_sequence. */
|
||||
+ return (reg0 == reg1) && ((val1 - val0) == 4 || (val0 - val1) == 4)
|
||||
+ && (!arm_ld_sched || val0 == 0 || val1 == 0);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -4838,6 +4841,11 @@
|
||||
*load_offset = unsorted_offsets[order[0]];
|
||||
}
|
||||
|
||||
+ /* For XScale a two-word LDM is a performance loss, so only do this if
|
||||
+ size is more important. See comments in arm_gen_load_multiple. */
|
||||
+ if (nops == 2 && arm_tune_xscale && !optimize_size)
|
||||
+ return 0;
|
||||
+
|
||||
if (unsorted_offsets[order[0]] == 0)
|
||||
return 1; /* ldmia */
|
||||
|
||||
@@ -5064,6 +5072,11 @@
|
||||
*load_offset = unsorted_offsets[order[0]];
|
||||
}
|
||||
|
||||
+ /* For XScale a two-word LDM is a performance loss, so only do this if
|
||||
+ size is more important. See comments in arm_gen_load_multiple. */
|
||||
+ if (nops == 2 && arm_tune_xscale && !optimize_size)
|
||||
+ return 0;
|
||||
+
|
||||
if (unsorted_offsets[order[0]] == 0)
|
||||
return 1; /* stmia */
|
||||
|
||||
--- gcc-3.4.0/gcc/genpeep.c.arm-ldm-peephole 2003-07-05 01:27:22.000000000 -0400
|
||||
+++ gcc-3.4.0/gcc/genpeep.c 2004-04-24 18:18:04.000000000 -0400
|
||||
@@ -381,6 +381,7 @@
|
||||
printf ("#include \"recog.h\"\n");
|
||||
printf ("#include \"except.h\"\n\n");
|
||||
printf ("#include \"function.h\"\n\n");
|
||||
+ printf ("#include \"flags.h\"\n\n");
|
||||
|
||||
printf ("#ifdef HAVE_peephole\n");
|
||||
printf ("extern rtx peep_operand[];\n\n");
|
||||
119
toolchain/gcc/3.4.2/601-gcc34-arm-ldm.patch
Normal file
119
toolchain/gcc/3.4.2/601-gcc34-arm-ldm.patch
Normal file
@@ -0,0 +1,119 @@
|
||||
--- gcc-3.4.0/gcc/config/arm/arm.c.arm-ldm 2004-02-27 09:51:05.000000000 -0500
|
||||
+++ gcc-3.4.0/gcc/config/arm/arm.c 2004-04-24 18:16:25.000000000 -0400
|
||||
@@ -8520,6 +8520,26 @@
|
||||
return_used_this_function = 0;
|
||||
}
|
||||
|
||||
+/* Return the number (counting from 0) of
|
||||
+ the least significant set bit in MASK. */
|
||||
+
|
||||
+#ifdef __GNUC__
|
||||
+inline
|
||||
+#endif
|
||||
+static int
|
||||
+number_of_first_bit_set (mask)
|
||||
+ int mask;
|
||||
+{
|
||||
+ int bit;
|
||||
+
|
||||
+ for (bit = 0;
|
||||
+ (mask & (1 << bit)) == 0;
|
||||
+ ++bit)
|
||||
+ continue;
|
||||
+
|
||||
+ return bit;
|
||||
+}
|
||||
+
|
||||
const char *
|
||||
arm_output_epilogue (rtx sibling)
|
||||
{
|
||||
@@ -8753,27 +8773,47 @@
|
||||
saved_regs_mask |= (1 << PC_REGNUM);
|
||||
}
|
||||
|
||||
- /* Load the registers off the stack. If we only have one register
|
||||
- to load use the LDR instruction - it is faster. */
|
||||
- if (saved_regs_mask == (1 << LR_REGNUM))
|
||||
- {
|
||||
- /* The exception handler ignores the LR, so we do
|
||||
- not really need to load it off the stack. */
|
||||
- if (eh_ofs)
|
||||
- asm_fprintf (f, "\tadd\t%r, %r, #4\n", SP_REGNUM, SP_REGNUM);
|
||||
- else
|
||||
- asm_fprintf (f, "\tldr\t%r, [%r], #4\n", LR_REGNUM, SP_REGNUM);
|
||||
- }
|
||||
- else if (saved_regs_mask)
|
||||
+ if (saved_regs_mask)
|
||||
{
|
||||
- if (saved_regs_mask & (1 << SP_REGNUM))
|
||||
- /* Note - write back to the stack register is not enabled
|
||||
- (ie "ldmfd sp!..."). We know that the stack pointer is
|
||||
- in the list of registers and if we add writeback the
|
||||
- instruction becomes UNPREDICTABLE. */
|
||||
- print_multi_reg (f, "ldmfd\t%r", SP_REGNUM, saved_regs_mask);
|
||||
+ /* Load the registers off the stack. If we only have one register
|
||||
+ to load use the LDR instruction - it is faster. */
|
||||
+ if (bit_count (saved_regs_mask) == 1)
|
||||
+ {
|
||||
+ int reg = number_of_first_bit_set (saved_regs_mask);
|
||||
+
|
||||
+ switch (reg)
|
||||
+ {
|
||||
+ case SP_REGNUM:
|
||||
+ /* Mustn't use base writeback when loading SP. */
|
||||
+ asm_fprintf (f, "\tldr\t%r, [%r]\n", SP_REGNUM, SP_REGNUM);
|
||||
+ break;
|
||||
+
|
||||
+ case LR_REGNUM:
|
||||
+ if (eh_ofs)
|
||||
+ {
|
||||
+ /* The exception handler ignores the LR, so we do
|
||||
+ not really need to load it off the stack. */
|
||||
+ asm_fprintf (f, "\tadd\t%r, %r, #4\n", SP_REGNUM, SP_REGNUM);
|
||||
+ break;
|
||||
+ }
|
||||
+ /* else fall through */
|
||||
+
|
||||
+ default:
|
||||
+ asm_fprintf (f, "\tldr\t%r, [%r], #4\n", reg, SP_REGNUM);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
else
|
||||
- print_multi_reg (f, "ldmfd\t%r!", SP_REGNUM, saved_regs_mask);
|
||||
+ {
|
||||
+ if (saved_regs_mask & (1 << SP_REGNUM))
|
||||
+ /* Note - write back to the stack register is not enabled
|
||||
+ (ie "ldmfd sp!..."). We know that the stack pointer is
|
||||
+ in the list of registers and if we add writeback the
|
||||
+ instruction becomes UNPREDICTABLE. */
|
||||
+ print_multi_reg (f, "ldmfd\t%r", SP_REGNUM, saved_regs_mask);
|
||||
+ else
|
||||
+ print_multi_reg (f, "ldmfd\t%r!", SP_REGNUM, saved_regs_mask);
|
||||
+ }
|
||||
}
|
||||
|
||||
if (current_function_pretend_args_size)
|
||||
@@ -11401,22 +11441,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
-/* Return the number (counting from 0) of
|
||||
- the least significant set bit in MASK. */
|
||||
-
|
||||
-inline static int
|
||||
-number_of_first_bit_set (int mask)
|
||||
-{
|
||||
- int bit;
|
||||
-
|
||||
- for (bit = 0;
|
||||
- (mask & (1 << bit)) == 0;
|
||||
- ++bit)
|
||||
- continue;
|
||||
-
|
||||
- return bit;
|
||||
-}
|
||||
-
|
||||
/* Generate code to return from a thumb function.
|
||||
If 'reg_containing_return_addr' is -1, then the return address is
|
||||
actually on the stack, at the stack pointer. */
|
||||
22
toolchain/gcc/3.4.2/602-sdk-libstdc++-includes.patch
Normal file
22
toolchain/gcc/3.4.2/602-sdk-libstdc++-includes.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- gcc-3.4.1/libstdc++-v3/libmath/Makefile.am~ 2003-08-27 22:29:42.000000000 +0100
|
||||
+++ gcc-3.4.1/libstdc++-v3/libmath/Makefile.am 2004-07-22 16:41:45.152130128 +0100
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
libmath_la_SOURCES = stubs.c
|
||||
|
||||
-AM_CPPFLAGS = $(CANADIAN_INCLUDES)
|
||||
+AM_CPPFLAGS = $(CANADIAN_INCLUDES) -I$(toplevel_srcdir)/include
|
||||
|
||||
# Only compiling "C" sources in this directory.
|
||||
LIBTOOL = @LIBTOOL@ --tag CC
|
||||
--- gcc-3.4.1/libstdc++-v3/fragment.am.old 2004-07-22 18:24:58.024083656 +0100
|
||||
+++ gcc-3.4.1/libstdc++-v3/fragment.am 2004-07-22 18:24:59.019932264 +0100
|
||||
@@ -18,7 +18,7 @@
|
||||
$(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
|
||||
|
||||
# -I/-D flags to pass when compiling.
|
||||
-AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
|
||||
+AM_CPPFLAGS = $(GLIBCXX_INCLUDES) -I$(toplevel_srcdir)/include
|
||||
|
||||
|
||||
|
||||
44
toolchain/gcc/3.4.2/700-pr15068-fix.patch
Normal file
44
toolchain/gcc/3.4.2/700-pr15068-fix.patch
Normal file
@@ -0,0 +1,44 @@
|
||||
See http://gcc.gnu.org/PR15068
|
||||
|
||||
Fixes error
|
||||
|
||||
../sysdeps/generic/s_fmax.c: In function `__fmax':
|
||||
../sysdeps/generic/s_fmax.c:28: internal compiler error: in elim_reg_cond, at flow.c:3257
|
||||
Please submit a full bug report,
|
||||
with preprocessed source if appropriate.
|
||||
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
|
||||
make[2]: *** [/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/build-glibc/math/s_fmax.o] Error 1
|
||||
make[2]: Leaving directory `/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/glibc-20040822/math'
|
||||
make[1]: *** [math/others] Error 2
|
||||
make[1]: Leaving directory `/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/glibc-20040822'
|
||||
make: *** [all] Error 2
|
||||
|
||||
[ rediffed against gcc-3.4.1, with elbow grease, ending up with same thing as
|
||||
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/flow.c.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=1.563.4.2&r2=1.563.4.3 ]
|
||||
|
||||
--- gcc-3.4.1/gcc/flow.c.old 2004-02-27 19:39:19.000000000 -0800
|
||||
+++ gcc-3.4.1/gcc/flow.c 2004-08-26 07:29:46.000000000 -0700
|
||||
@@ -1878,6 +1878,7 @@
|
||||
rtx set_src = SET_SRC (pc_set (BB_END (bb)));
|
||||
rtx cond_true = XEXP (set_src, 0);
|
||||
rtx reg = XEXP (cond_true, 0);
|
||||
+ enum rtx_code inv_cond;
|
||||
|
||||
if (GET_CODE (reg) == SUBREG)
|
||||
reg = SUBREG_REG (reg);
|
||||
@@ -1886,11 +1887,13 @@
|
||||
in the form of a comparison of a register against zero.
|
||||
If the condition is more complex than that, then it is safe
|
||||
not to record any information. */
|
||||
- if (GET_CODE (reg) == REG
|
||||
+ inv_cond = reversed_comparison_code (cond_true, BB_END (bb));
|
||||
+ if (inv_cond != UNKNOWN
|
||||
+ && GET_CODE (reg) == REG
|
||||
&& XEXP (cond_true, 1) == const0_rtx)
|
||||
{
|
||||
rtx cond_false
|
||||
- = gen_rtx_fmt_ee (reverse_condition (GET_CODE (cond_true)),
|
||||
+ = gen_rtx_fmt_ee (inv_cond,
|
||||
GET_MODE (cond_true), XEXP (cond_true, 0),
|
||||
XEXP (cond_true, 1));
|
||||
if (GET_CODE (XEXP (set_src, 1)) == PC)
|
||||
70
toolchain/gcc/3.4.2/800-arm-bigendian.patch
Normal file
70
toolchain/gcc/3.4.2/800-arm-bigendian.patch
Normal file
@@ -0,0 +1,70 @@
|
||||
By Lennert Buytenhek <buytenh@wantstofly.org>
|
||||
Adds support for arm*b-linux* big-endian ARM targets
|
||||
|
||||
See http://gcc.gnu.org/PR16350
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-08-16 16:01:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-16 15:43:40.000000000 -0500
|
||||
@@ -30,17 +30,34 @@
|
||||
/* Do not assume anything about header files. */
|
||||
#define NO_IMPLICIT_EXTERN_C
|
||||
|
||||
+/*
|
||||
+ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
|
||||
+ * (big endian) configurations.
|
||||
+ */
|
||||
+#if TARGET_BIG_ENDIAN_DEFAULT
|
||||
+#define TARGET_ENDIAN_DEFAULT ARM_FLAG_BIG_END
|
||||
+#define TARGET_ENDIAN_OPTION "mbig-endian"
|
||||
+#define TARGET_LINKER_EMULATION "armelfb_linux"
|
||||
+#else
|
||||
+#define TARGET_ENDIAN_DEFAULT 0
|
||||
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
|
||||
+#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||
+#endif
|
||||
+
|
||||
/* Default is to use APCS-32 mode. */
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 | \
|
||||
+ ARM_FLAG_MMU_TRAPS | \
|
||||
+ TARGET_ENDIAN_DEFAULT )
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
|
||||
+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -101,7 +118,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
|
||||
-X \
|
||||
- %{mbig-endian:-EB}" \
|
||||
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
#endif
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-08-16 16:01:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-16 16:01:25.000000000 -0500
|
||||
@@ -672,6 +672,11 @@
|
||||
;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ case $target in
|
||||
+ arm*b-*)
|
||||
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||
+ ;;
|
||||
+ esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
gnu_ld=yes
|
||||
27
toolchain/gcc/3.4.2/810-arm-bigendian-uclibc.patch
Normal file
27
toolchain/gcc/3.4.2/810-arm-bigendian-uclibc.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-08-16 16:08:18.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-16 16:06:24.000000000 -0500
|
||||
@@ -107,7 +107,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
-X \
|
||||
- %{mbig-endian:-EB}" \
|
||||
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-08-16 16:08:18.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-16 16:03:25.000000000 -0500
|
||||
@@ -666,6 +666,11 @@
|
||||
;;
|
||||
arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ case $target in
|
||||
+ arm*b-*)
|
||||
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||
+ ;;
|
||||
+ esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
gnu_ld=yes
|
||||
270
toolchain/gcc/3.4.2/arm-softfloat.patch.conditional
Normal file
270
toolchain/gcc/3.4.2/arm-softfloat.patch.conditional
Normal file
@@ -0,0 +1,270 @@
|
||||
Note... modified my mjn3 to not conflict with the big endian arm patch.
|
||||
Warning!!! Only the linux target is aware of TARGET_ENDIAN_DEFAULT.
|
||||
Also changed
|
||||
#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
%{!mcpu=*:-mcpu=xscale} \
|
||||
%{mhard-float:-mfpu=fpa} \
|
||||
%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
to
|
||||
#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
%{mhard-float:-mfpu=fpa} \
|
||||
%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
in gcc/config/arm/linux-elf.h.
|
||||
#
|
||||
# Submitted:
|
||||
#
|
||||
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||
#
|
||||
# Description:
|
||||
#
|
||||
# Nicholas Pitre released this patch for gcc soft-float support here:
|
||||
# http://lists.arm.linux.org.uk/pipermail/linux-arm/2003-October/006436.html
|
||||
#
|
||||
# This version has been adapted to work with gcc 3.4.0.
|
||||
#
|
||||
# The original patch doesn't distinguish between softfpa and softvfp modes
|
||||
# in the way Nicholas Pitre probably meant. His description is:
|
||||
#
|
||||
# "Default is to use APCS-32 mode with soft-vfp. The old Linux default for
|
||||
# floats can be achieved with -mhard-float or with the configure
|
||||
# --with-float=hard option. If -msoft-float or --with-float=soft is used then
|
||||
# software float support will be used just like the default but with the legacy
|
||||
# big endian word ordering for double float representation instead."
|
||||
#
|
||||
# Which means the following:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, you should get
|
||||
# software floating point, using the VFP format. The produced object file
|
||||
# should have these flags in its header:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# * If you compile with -mhard-float, you should get hardware floating point,
|
||||
# which always uses the FPA format. Object file header flags should be:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# * If you compile with -msoft-float, you should get software floating point,
|
||||
# using the FPA format. This is done for compatibility reasons with many
|
||||
# existing distributions. Object file header flags should be:
|
||||
#
|
||||
# private flags = 200: [APCS-32] [FPA float format] [software FP]
|
||||
#
|
||||
# The original patch from Nicholas Pitre contained the following constructs:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
#
|
||||
# However, gcc doesn't accept this ";:" notation, used in the 3rd line. This
|
||||
# is probably the reason Robert Schwebel modified it to:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa -mfpu=softvfp}}"
|
||||
#
|
||||
# But this causes the following behaviour:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, the compiler generates
|
||||
# software floating point instructions, but *nothing* is passed to the
|
||||
# assembler, which results in an object file which has flags:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# This is not correct!
|
||||
#
|
||||
# * If you compile with -mhard-float, the compiler generates hardware floating
|
||||
# point instructions, and passes "-mfpu=fpa" to the assembler, which results
|
||||
# in an object file which has the same flags as in the previous item, but now
|
||||
# those *are* correct.
|
||||
#
|
||||
# * If you compile with -msoft-float, the compiler generates software floating
|
||||
# point instructions, and passes "-mfpu=softfpa -mfpu=softvfp" (in that
|
||||
# order) to the assembler, which results in an object file with flags:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# This is not correct, because the last "-mfpu=" option on the assembler
|
||||
# command line determines the actual FPU convention used (which should be FPA
|
||||
# in this case).
|
||||
#
|
||||
# Therefore, I modified this patch to get the desired behaviour. Every
|
||||
# instance of the notation:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa -mfpu=softvfp}
|
||||
#
|
||||
# was changed to:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}
|
||||
#
|
||||
# I also did the following:
|
||||
#
|
||||
# * Modified all TARGET_DEFAULT macros I could find to include ARM_FLAG_VFP, to
|
||||
# be consistent with Nicholas' original patch.
|
||||
# * Removed any "msoft-float" or "mhard-float" from all MULTILIB_DEFAULTS
|
||||
# macros I could find. I think that if you compile without any options, you
|
||||
# would like to get the defaults. :)
|
||||
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||
# anymore. (The required functions are now in libgcc.)
|
||||
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/coff.h gcc-3.4.1/gcc/config/arm/coff.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/coff.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/coff.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -31,11 +31,16 @@
|
||||
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
|
||||
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||
#endif
|
||||
|
||||
/* This is COFF, but prefer stabs. */
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/elf.h gcc-3.4.1/gcc/config/arm/elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/elf.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -46,7 +46,9 @@
|
||||
|
||||
#ifndef SUBTARGET_ASM_FLOAT_SPEC
|
||||
#define SUBTARGET_ASM_FLOAT_SPEC "\
|
||||
-%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
|
||||
+%{mapcs-float:-mfloat} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
#endif
|
||||
|
||||
#ifndef ASM_SPEC
|
||||
@@ -106,12 +108,17 @@
|
||||
#endif
|
||||
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
#endif
|
||||
|
||||
#define TARGET_ASM_FILE_START_APP_OFF true
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/linux-elf.h 2004-09-02 21:50:52.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-09-02 22:00:49.000000000 -0500
|
||||
@@ -44,12 +44,26 @@
|
||||
#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||
#endif
|
||||
|
||||
-/* Default is to use APCS-32 mode. */
|
||||
+/*
|
||||
+ * Default is to use APCS-32 mode with soft-vfp.
|
||||
+ * The old Linux default for floats can be achieved with -mhard-float
|
||||
+ * or with the configure --with-float=hard option.
|
||||
+ * If -msoft-float or --with-float=soft is used then software float
|
||||
+ * support will be used just like the default but with the legacy
|
||||
+ * big endian word ordering for double float representation instead.
|
||||
+ */
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT \
|
||||
- ( ARM_FLAG_APCS_32 | \
|
||||
- ARM_FLAG_MMU_TRAPS | \
|
||||
- TARGET_ENDIAN_DEFAULT )
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_SOFT_FLOAT \
|
||||
+ | TARGET_ENDIAN_DEFAULT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
+
|
||||
+#undef SUBTARGET_EXTRA_ASM_SPEC
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
@@ -57,7 +71,7 @@
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", TARGET_ENDIAN_OPTION, "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -72,7 +86,7 @@
|
||||
%{shared:-lc} \
|
||||
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||
|
||||
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||
+#define LIBGCC_SPEC "-lgcc"
|
||||
|
||||
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/t-linux gcc-3.4.1/gcc/config/arm/t-linux
|
||||
--- gcc-3.4.1-old/gcc/config/arm/t-linux 2003-09-20 16:09:07.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/t-linux 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -4,7 +4,10 @@
|
||||
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||
|
||||
LIB1ASMSRC = arm/lib1funcs.asm
|
||||
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||
+ _fixsfsi _fixunssfsi
|
||||
|
||||
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/unknown-elf.h gcc-3.4.1/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/unknown-elf.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/unknown-elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -30,7 +30,12 @@
|
||||
|
||||
/* Default to using APCS-32 and software floating point. */
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
/* Now we define the strings used to build the spec file. */
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/xscale-elf.h gcc-3.4.1/gcc/config/arm/xscale-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/xscale-elf.h 2003-07-01 18:26:43.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/xscale-elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -49,11 +49,12 @@
|
||||
endian, regardless of the endian-ness of the memory
|
||||
system. */
|
||||
|
||||
-#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
- %{mhard-float:-mfpu=fpa} \
|
||||
- %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{!mcpu=*:-mcpu=xscale} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
|
||||
+ { "mlittle-endian", "mno-thumb-interwork", "marm" }
|
||||
#endif
|
||||
442
toolchain/gcc/3.4.3/100-uclibc-conf.patch
Normal file
442
toolchain/gcc/3.4.3/100-uclibc-conf.patch
Normal file
@@ -0,0 +1,442 @@
|
||||
diff -urN gcc-3.4.1-dist/boehm-gc/configure gcc-3.4.1/boehm-gc/configure
|
||||
--- gcc-3.4.1-dist/boehm-gc/configure 2004-07-01 14:14:03.000000000 -0500
|
||||
+++ gcc-3.4.1/boehm-gc/configure 2004-08-12 16:22:57.000000000 -0500
|
||||
@@ -1947,6 +1947,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
||||
diff -urN gcc-3.4.1-dist/boehm-gc/ltconfig gcc-3.4.1/boehm-gc/ltconfig
|
||||
--- gcc-3.4.1-dist/boehm-gc/ltconfig 2002-11-20 09:59:06.000000000 -0600
|
||||
+++ gcc-3.4.1/boehm-gc/ltconfig 2004-08-12 15:54:42.000000000 -0500
|
||||
@@ -1981,6 +1981,23 @@
|
||||
fi
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
||||
+ file_magic_cmd=/usr/bin/file
|
||||
+ file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
version_type=sunos
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-12 15:54:42.000000000 -0500
|
||||
@@ -81,6 +81,18 @@
|
||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
+ %{b} %{Wl,*:%*} \
|
||||
+ %{static:-Bstatic} \
|
||||
+ %{shared:-shared} \
|
||||
+ %{symbolic:-Bsymbolic} \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
+ -X \
|
||||
+ %{mbig-endian:-EB}" \
|
||||
+ SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
%{b} %{Wl,*:%*} \
|
||||
%{static:-Bstatic} \
|
||||
@@ -91,6 +103,7 @@
|
||||
-X \
|
||||
%{mbig-endian:-EB}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
+#endif
|
||||
|
||||
#define TARGET_OS_CPP_BUILTINS() LINUX_TARGET_OS_CPP_BUILTINS()
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/cris/linux.h gcc-3.4.1/gcc/config/cris/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/cris/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -79,6 +79,25 @@
|
||||
#undef CRIS_DEFAULT_CPU_VERSION
|
||||
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||
|
||||
+#ifdef USE_UCLIBC
|
||||
+
|
||||
+#undef CRIS_SUBTARGET_VERSION
|
||||
+#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
|
||||
+
|
||||
+#undef CRIS_LINK_SUBTARGET_SPEC
|
||||
+#define CRIS_LINK_SUBTARGET_SPEC \
|
||||
+ "-mcrislinux\
|
||||
+ -rpath-link include/asm/../..%s\
|
||||
+ %{shared} %{static}\
|
||||
+ %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
|
||||
+ %{!shared: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
|
||||
+ %{!r:%{O2|O3: --gc-sections}}"
|
||||
+
|
||||
+#else /* USE_UCLIBC */
|
||||
+
|
||||
#undef CRIS_SUBTARGET_VERSION
|
||||
#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
|
||||
|
||||
@@ -93,6 +112,8 @@
|
||||
%{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
|
||||
%{!r:%{O2|O3: --gc-sections}}"
|
||||
|
||||
+#endif /* USE_UCLIBC */
|
||||
+
|
||||
|
||||
/* Node: Run-time Target */
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc gcc-3.4.1/gcc/config/cris/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/cris/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,3 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+TARGET_LIBGCC2_CFLAGS += -fPIC
|
||||
+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/i386/linux.h gcc-3.4.1/gcc/config/i386/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/i386/linux.h 2003-11-28 21:08:10.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/i386/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -118,6 +118,15 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
|
||||
%{static:-static}}}"
|
||||
#else
|
||||
+#if defined USE_UCLIBC
|
||||
+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
|
||||
%{!shared: \
|
||||
%{!ibcs: \
|
||||
@@ -126,6 +135,7 @@
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}}}"
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
/* A C statement (sans semicolon) to output to the stdio stream
|
||||
FILE the assembler definition of uninitialized global DECL named
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/mips/linux.h gcc-3.4.1/gcc/config/mips/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/mips/linux.h 2004-06-15 20:42:24.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/mips/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -109,6 +109,17 @@
|
||||
|
||||
/* Borrowed from sparc/linux.h */
|
||||
#undef LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_SPEC \
|
||||
+ "%(endian_spec) \
|
||||
+ %{shared:-shared} \
|
||||
+ %{!shared: \
|
||||
+ %{!ibcs: \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}}}"
|
||||
+#else
|
||||
#define LINK_SPEC \
|
||||
"%(endian_spec) \
|
||||
%{shared:-shared} \
|
||||
@@ -118,6 +129,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||
%{static:-static}}}"
|
||||
+#endif
|
||||
|
||||
#undef SUBTARGET_ASM_SPEC
|
||||
#define SUBTARGET_ASM_SPEC "\
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/linux.h gcc-3.4.1/gcc/config/rs6000/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/rs6000/linux.h 2004-02-25 09:11:19.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/rs6000/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -61,7 +61,11 @@
|
||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||
|
||||
#undef LINK_OS_DEFAULT_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
|
||||
+#else
|
||||
#define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
|
||||
+#endif
|
||||
|
||||
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h gcc-3.4.1/gcc/config/rs6000/sysv4.h
|
||||
--- gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h 2004-06-10 01:39:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/rs6000/sysv4.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -947,6 +947,7 @@
|
||||
mcall-linux : %(link_os_linux) ; \
|
||||
mcall-gnu : %(link_os_gnu) ; \
|
||||
mcall-netbsd : %(link_os_netbsd) ; \
|
||||
+ mcall-linux-uclibc : %(link_os_linux_uclibc); \
|
||||
mcall-openbsd: %(link_os_openbsd) ; \
|
||||
: %(link_os_default) }"
|
||||
|
||||
@@ -1124,6 +1125,10 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||
|
||||
+#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
|
||||
+
|
||||
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||
#endif
|
||||
@@ -1290,6 +1295,7 @@
|
||||
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||
+ { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
|
||||
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/linux.h gcc-3.4.1/gcc/config/sh/linux.h
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/linux.h 2004-01-11 20:29:13.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/linux.h 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -73,12 +73,21 @@
|
||||
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||
#undef SUBTARGET_LINK_SPEC
|
||||
+#ifdef USE_UCLIBC
|
||||
+#define SUBTARGET_LINK_SPEC \
|
||||
+ "%{shared:-shared} \
|
||||
+ %{!static: \
|
||||
+ %{rdynamic:-export-dynamic} \
|
||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
||||
+ %{static:-static}"
|
||||
+#else
|
||||
#define SUBTARGET_LINK_SPEC \
|
||||
"%{shared:-shared} \
|
||||
%{!static: \
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||
%{static:-static}"
|
||||
+#endif
|
||||
|
||||
#undef LIB_SPEC
|
||||
#define LIB_SPEC \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc gcc-3.4.1/gcc/config/sh/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+TARGET_LIBGCC2_CFLAGS = -fpic -DNO_FPSCR_VALUES
|
||||
+LIB1ASMFUNCS_CACHE = _ic_invalidate
|
||||
+
|
||||
+LIB2FUNCS_EXTRA=
|
||||
+
|
||||
+MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
|
||||
+MULTILIB_DIRNAMES=
|
||||
+MULTILIB_MATCHES =
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
+
|
||||
+EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc gcc-3.4.1/gcc/config/sh/t-sh64-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/sh/t-sh64-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,13 @@
|
||||
+EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o
|
||||
+
|
||||
+LIB1ASMFUNCS = \
|
||||
+ _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
|
||||
+ _shcompact_call_trampoline _shcompact_return_trampoline \
|
||||
+ _shcompact_incoming_args _ic_invalidate _nested_trampoline \
|
||||
+ _push_pop_shmedia_regs \
|
||||
+ _udivdi3 _divdi3 _umoddi3 _moddi3
|
||||
+
|
||||
+MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
|
||||
+MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
|
||||
+MULTILIB_MATCHES=
|
||||
+MULTILIB_EXCEPTIONS=
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/t-linux-uclibc gcc-3.4.1/gcc/config/t-linux-uclibc
|
||||
--- gcc-3.4.1-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/t-linux-uclibc 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -0,0 +1,15 @@
|
||||
+T_CFLAGS = -DUSE_UCLIBC
|
||||
+
|
||||
+# Compile crtbeginS.o and crtendS.o with pic.
|
||||
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
||||
+# Compile libgcc2.a with pic.
|
||||
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
||||
+
|
||||
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
||||
+# the symbol versions that glibc used.
|
||||
+#SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
||||
+
|
||||
+# Use unwind-dw2-fde
|
||||
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
||||
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
||||
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-04-21 10:12:35.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-12 15:59:46.000000000 -0500
|
||||
@@ -664,6 +664,12 @@
|
||||
extra_parts=""
|
||||
use_collect2=yes
|
||||
;;
|
||||
+arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
+ tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
+ gnu_ld=yes
|
||||
+ ;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
@@ -725,6 +731,10 @@
|
||||
tmake_file="cris/t-cris cris/t-elfmulti"
|
||||
gas=yes
|
||||
;;
|
||||
+cris-*-linux-uclibc*)
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
+ tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
|
||||
+ ;;
|
||||
cris-*-linux*)
|
||||
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
||||
tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
|
||||
@@ -988,6 +998,11 @@
|
||||
thread_file='single'
|
||||
fi
|
||||
;;
|
||||
+i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
|
||||
+ # with ELF format using uClibc
|
||||
+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
|
||||
+ ;;
|
||||
i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
|
||||
# with ELF format using glibc 2
|
||||
# aka GNU/Linux C library 6
|
||||
@@ -1547,6 +1562,16 @@
|
||||
gnu_ld=yes
|
||||
gas=yes
|
||||
;;
|
||||
+mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
|
||||
+ tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
+ case ${target} in
|
||||
+ mipsisa32*-*)
|
||||
+ target_cpu_default="MASK_SOFT_FLOAT"
|
||||
+ tm_defines="MIPS_ISA_DEFAULT=32"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc"
|
||||
+ ;;
|
||||
mips*-*-linux*) # Linux MIPS, either endian.
|
||||
tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
|
||||
case ${target} in
|
||||
@@ -1764,6 +1789,10 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxspe.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
;;
|
||||
+powerpc-*-linux-uclibc*)
|
||||
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
+ tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
|
||||
+ ;;
|
||||
powerpc-*-linux*)
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
|
||||
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
|
||||
@@ -1916,7 +1945,7 @@
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"
|
||||
;;
|
||||
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||
- tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver t-linux"
|
||||
+ tmake_file="sh/t-sh sh/t-elf t-slibgcc-elf-ver"
|
||||
case ${target} in
|
||||
sh*be-*-* | sh*eb-*-*) ;;
|
||||
*)
|
||||
@@ -1924,9 +1953,17 @@
|
||||
tmake_file="${tmake_file} sh/t-le"
|
||||
;;
|
||||
esac
|
||||
- tmake_file="${tmake_file} sh/t-linux"
|
||||
+ case ${target} in
|
||||
+ *-*-linux-uclibc*) tmake_file="${tmake_file} t-linux-uclibc sh/t-linux-uclibc" ;;
|
||||
+ *) tmake_file="${tmake_file} t-linux sh/t-linux" ;;
|
||||
+ esac
|
||||
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
|
||||
case ${target} in
|
||||
+ sh64*-*-linux-uclibc*)
|
||||
+ tmake_file="${tmake_file} sh/t-sh64-uclibc"
|
||||
+ tm_file="${tm_file} sh/sh64.h"
|
||||
+ extra_headers="shmedia.h ushmedia.h sshmedia.h"
|
||||
+ ;;
|
||||
sh64*)
|
||||
tmake_file="${tmake_file} sh/t-sh64"
|
||||
tm_file="${tm_file} sh/sh64.h"
|
||||
diff -urN gcc-3.4.1-dist/libtool.m4 gcc-3.4.1/libtool.m4
|
||||
--- gcc-3.4.1-dist/libtool.m4 2004-05-18 04:08:37.000000000 -0500
|
||||
+++ gcc-3.4.1/libtool.m4 2004-08-12 15:54:43.000000000 -0500
|
||||
@@ -689,6 +689,11 @@
|
||||
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ lt_cv_deplibs_check_method=pass_all
|
||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||
diff -urN gcc-3.4.1-dist/ltconfig gcc-3.4.1/ltconfig
|
||||
--- gcc-3.4.1-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
|
||||
+++ gcc-3.4.1/ltconfig 2004-08-12 15:55:48.000000000 -0500
|
||||
@@ -602,6 +602,7 @@
|
||||
|
||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||
case $host_os in
|
||||
+linux-uclibc*) ;;
|
||||
linux-gnu*) ;;
|
||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||
esac
|
||||
@@ -1262,6 +1263,24 @@
|
||||
dynamic_linker='GNU/Linux ld.so'
|
||||
;;
|
||||
|
||||
+linux-uclibc*)
|
||||
+ version_type=linux
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=no
|
||||
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
|
||||
+ soname_spec='${libname}${release}.so$major'
|
||||
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
||||
+ shlibpath_var=LD_LIBRARY_PATH
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ # This implies no fast_install, which is unacceptable.
|
||||
+ # Some rework will be needed to allow for fast_install
|
||||
+ # before this can be enabled.
|
||||
+ # Note: copied from linux-gnu, and may not be appropriate.
|
||||
+ hardcode_into_libs=yes
|
||||
+ # Assume using the uClibc dynamic linker.
|
||||
+ dynamic_linker="uClibc ld.so"
|
||||
+ ;;
|
||||
+
|
||||
netbsd*)
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
3246
toolchain/gcc/3.4.3/200-uclibc-locale.patch
Normal file
3246
toolchain/gcc/3.4.3/200-uclibc-locale.patch
Normal file
File diff suppressed because it is too large
Load Diff
47
toolchain/gcc/3.4.3/300-libstdc++-pic.patch
Normal file
47
toolchain/gcc/3.4.3/300-libstdc++-pic.patch
Normal file
@@ -0,0 +1,47 @@
|
||||
# DP: Build and install libstdc++_pic.a library.
|
||||
|
||||
--- gcc/libstdc++-v3/src/Makefile.am~ 2003-02-28 09:21:05.000000000 +0100
|
||||
+++ gcc/libstdc++-v3/src/Makefile.am 2003-02-28 09:28:50.000000000 +0100
|
||||
@@ -224,6 +224,10 @@
|
||||
@OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
|
||||
+install-exec-local:
|
||||
+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
|
||||
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
|
||||
+
|
||||
# Added bits to build debug library.
|
||||
if GLIBCPP_BUILD_DEBUG
|
||||
all-local: build_debug
|
||||
|
||||
--- gcc/libstdc++-v3/src/Makefile.in~ 2004-02-21 09:55:48.000000000 +0100
|
||||
+++ gcc/libstdc++-v3/src/Makefile.in 2004-02-21 09:59:34.000000000 +0100
|
||||
@@ -585,7 +585,7 @@
|
||||
|
||||
install-data-am: install-data-local
|
||||
|
||||
-install-exec-am: install-toolexeclibLTLIBRARIES
|
||||
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
@@ -618,6 +618,7 @@
|
||||
distclean-tags distdir dvi dvi-am info info-am install \
|
||||
install-am install-data install-data-am install-data-local \
|
||||
install-exec install-exec-am install-info install-info-am \
|
||||
+ install-exec-local \
|
||||
install-man install-strip install-toolexeclibLTLIBRARIES \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
@@ -707,6 +708,11 @@
|
||||
install_debug:
|
||||
(cd ${debugdir} && $(MAKE) \
|
||||
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
|
||||
+
|
||||
+install-exec-local:
|
||||
+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
|
||||
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
|
||||
+
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
79
toolchain/gcc/3.4.3/600-gcc34-arm-ldm-peephole.patch
Normal file
79
toolchain/gcc/3.4.3/600-gcc34-arm-ldm-peephole.patch
Normal file
@@ -0,0 +1,79 @@
|
||||
--- gcc-3.4.0/gcc/config/arm/arm.md.arm-ldm-peephole 2004-01-13 08:24:37.000000000 -0500
|
||||
+++ gcc-3.4.0/gcc/config/arm/arm.md 2004-04-24 18:18:04.000000000 -0400
|
||||
@@ -8810,13 +8810,16 @@
|
||||
(set_attr "length" "4,8,8")]
|
||||
)
|
||||
|
||||
+; Try to convert LDR+LDR+arith into [add+]LDM+arith
|
||||
+; On XScale, LDM is always slower than two LDRs, so only do this if
|
||||
+; optimising for size.
|
||||
(define_insn "*arith_adjacentmem"
|
||||
[(set (match_operand:SI 0 "s_register_operand" "=r")
|
||||
(match_operator:SI 1 "shiftable_operator"
|
||||
[(match_operand:SI 2 "memory_operand" "m")
|
||||
(match_operand:SI 3 "memory_operand" "m")]))
|
||||
(clobber (match_scratch:SI 4 "=r"))]
|
||||
- "TARGET_ARM && adjacent_mem_locations (operands[2], operands[3])"
|
||||
+ "TARGET_ARM && (!arm_tune_xscale || optimize_size) && adjacent_mem_locations (operands[2], operands[3])"
|
||||
"*
|
||||
{
|
||||
rtx ldm[3];
|
||||
@@ -8851,6 +8854,8 @@
|
||||
}
|
||||
if (val1 && val2)
|
||||
{
|
||||
+ /* This would be a loss on a Harvard core, but adjacent_mem_locations()
|
||||
+ will prevent it from happening. */
|
||||
rtx ops[3];
|
||||
ldm[0] = ops[0] = operands[4];
|
||||
ops[1] = XEXP (XEXP (operands[2], 0), 0);
|
||||
--- gcc-3.4.0/gcc/config/arm/arm.c.arm-ldm-peephole 2004-04-24 18:16:25.000000000 -0400
|
||||
+++ gcc-3.4.0/gcc/config/arm/arm.c 2004-04-24 18:18:04.000000000 -0400
|
||||
@@ -4593,8 +4593,11 @@
|
||||
arith_adjacentmem pattern to output an overlong sequence. */
|
||||
if (!const_ok_for_op (PLUS, val0) || !const_ok_for_op (PLUS, val1))
|
||||
return 0;
|
||||
-
|
||||
- return (reg0 == reg1) && ((val1 - val0) == 4 || (val0 - val1) == 4);
|
||||
+
|
||||
+ /* For Harvard cores, only accept pairs where one offset is zero.
|
||||
+ See comment in load_multiple_sequence. */
|
||||
+ return (reg0 == reg1) && ((val1 - val0) == 4 || (val0 - val1) == 4)
|
||||
+ && (!arm_ld_sched || val0 == 0 || val1 == 0);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -4838,6 +4841,11 @@
|
||||
*load_offset = unsorted_offsets[order[0]];
|
||||
}
|
||||
|
||||
+ /* For XScale a two-word LDM is a performance loss, so only do this if
|
||||
+ size is more important. See comments in arm_gen_load_multiple. */
|
||||
+ if (nops == 2 && arm_tune_xscale && !optimize_size)
|
||||
+ return 0;
|
||||
+
|
||||
if (unsorted_offsets[order[0]] == 0)
|
||||
return 1; /* ldmia */
|
||||
|
||||
@@ -5064,6 +5072,11 @@
|
||||
*load_offset = unsorted_offsets[order[0]];
|
||||
}
|
||||
|
||||
+ /* For XScale a two-word LDM is a performance loss, so only do this if
|
||||
+ size is more important. See comments in arm_gen_load_multiple. */
|
||||
+ if (nops == 2 && arm_tune_xscale && !optimize_size)
|
||||
+ return 0;
|
||||
+
|
||||
if (unsorted_offsets[order[0]] == 0)
|
||||
return 1; /* stmia */
|
||||
|
||||
--- gcc-3.4.0/gcc/genpeep.c.arm-ldm-peephole 2003-07-05 01:27:22.000000000 -0400
|
||||
+++ gcc-3.4.0/gcc/genpeep.c 2004-04-24 18:18:04.000000000 -0400
|
||||
@@ -381,6 +381,7 @@
|
||||
printf ("#include \"recog.h\"\n");
|
||||
printf ("#include \"except.h\"\n\n");
|
||||
printf ("#include \"function.h\"\n\n");
|
||||
+ printf ("#include \"flags.h\"\n\n");
|
||||
|
||||
printf ("#ifdef HAVE_peephole\n");
|
||||
printf ("extern rtx peep_operand[];\n\n");
|
||||
119
toolchain/gcc/3.4.3/601-gcc34-arm-ldm.patch
Normal file
119
toolchain/gcc/3.4.3/601-gcc34-arm-ldm.patch
Normal file
@@ -0,0 +1,119 @@
|
||||
--- gcc-3.4.0/gcc/config/arm/arm.c.arm-ldm 2004-02-27 09:51:05.000000000 -0500
|
||||
+++ gcc-3.4.0/gcc/config/arm/arm.c 2004-04-24 18:16:25.000000000 -0400
|
||||
@@ -8520,6 +8520,26 @@
|
||||
return_used_this_function = 0;
|
||||
}
|
||||
|
||||
+/* Return the number (counting from 0) of
|
||||
+ the least significant set bit in MASK. */
|
||||
+
|
||||
+#ifdef __GNUC__
|
||||
+inline
|
||||
+#endif
|
||||
+static int
|
||||
+number_of_first_bit_set (mask)
|
||||
+ int mask;
|
||||
+{
|
||||
+ int bit;
|
||||
+
|
||||
+ for (bit = 0;
|
||||
+ (mask & (1 << bit)) == 0;
|
||||
+ ++bit)
|
||||
+ continue;
|
||||
+
|
||||
+ return bit;
|
||||
+}
|
||||
+
|
||||
const char *
|
||||
arm_output_epilogue (rtx sibling)
|
||||
{
|
||||
@@ -8753,27 +8773,47 @@
|
||||
saved_regs_mask |= (1 << PC_REGNUM);
|
||||
}
|
||||
|
||||
- /* Load the registers off the stack. If we only have one register
|
||||
- to load use the LDR instruction - it is faster. */
|
||||
- if (saved_regs_mask == (1 << LR_REGNUM))
|
||||
- {
|
||||
- /* The exception handler ignores the LR, so we do
|
||||
- not really need to load it off the stack. */
|
||||
- if (eh_ofs)
|
||||
- asm_fprintf (f, "\tadd\t%r, %r, #4\n", SP_REGNUM, SP_REGNUM);
|
||||
- else
|
||||
- asm_fprintf (f, "\tldr\t%r, [%r], #4\n", LR_REGNUM, SP_REGNUM);
|
||||
- }
|
||||
- else if (saved_regs_mask)
|
||||
+ if (saved_regs_mask)
|
||||
{
|
||||
- if (saved_regs_mask & (1 << SP_REGNUM))
|
||||
- /* Note - write back to the stack register is not enabled
|
||||
- (ie "ldmfd sp!..."). We know that the stack pointer is
|
||||
- in the list of registers and if we add writeback the
|
||||
- instruction becomes UNPREDICTABLE. */
|
||||
- print_multi_reg (f, "ldmfd\t%r", SP_REGNUM, saved_regs_mask);
|
||||
+ /* Load the registers off the stack. If we only have one register
|
||||
+ to load use the LDR instruction - it is faster. */
|
||||
+ if (bit_count (saved_regs_mask) == 1)
|
||||
+ {
|
||||
+ int reg = number_of_first_bit_set (saved_regs_mask);
|
||||
+
|
||||
+ switch (reg)
|
||||
+ {
|
||||
+ case SP_REGNUM:
|
||||
+ /* Mustn't use base writeback when loading SP. */
|
||||
+ asm_fprintf (f, "\tldr\t%r, [%r]\n", SP_REGNUM, SP_REGNUM);
|
||||
+ break;
|
||||
+
|
||||
+ case LR_REGNUM:
|
||||
+ if (eh_ofs)
|
||||
+ {
|
||||
+ /* The exception handler ignores the LR, so we do
|
||||
+ not really need to load it off the stack. */
|
||||
+ asm_fprintf (f, "\tadd\t%r, %r, #4\n", SP_REGNUM, SP_REGNUM);
|
||||
+ break;
|
||||
+ }
|
||||
+ /* else fall through */
|
||||
+
|
||||
+ default:
|
||||
+ asm_fprintf (f, "\tldr\t%r, [%r], #4\n", reg, SP_REGNUM);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
else
|
||||
- print_multi_reg (f, "ldmfd\t%r!", SP_REGNUM, saved_regs_mask);
|
||||
+ {
|
||||
+ if (saved_regs_mask & (1 << SP_REGNUM))
|
||||
+ /* Note - write back to the stack register is not enabled
|
||||
+ (ie "ldmfd sp!..."). We know that the stack pointer is
|
||||
+ in the list of registers and if we add writeback the
|
||||
+ instruction becomes UNPREDICTABLE. */
|
||||
+ print_multi_reg (f, "ldmfd\t%r", SP_REGNUM, saved_regs_mask);
|
||||
+ else
|
||||
+ print_multi_reg (f, "ldmfd\t%r!", SP_REGNUM, saved_regs_mask);
|
||||
+ }
|
||||
}
|
||||
|
||||
if (current_function_pretend_args_size)
|
||||
@@ -11401,22 +11441,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
-/* Return the number (counting from 0) of
|
||||
- the least significant set bit in MASK. */
|
||||
-
|
||||
-inline static int
|
||||
-number_of_first_bit_set (int mask)
|
||||
-{
|
||||
- int bit;
|
||||
-
|
||||
- for (bit = 0;
|
||||
- (mask & (1 << bit)) == 0;
|
||||
- ++bit)
|
||||
- continue;
|
||||
-
|
||||
- return bit;
|
||||
-}
|
||||
-
|
||||
/* Generate code to return from a thumb function.
|
||||
If 'reg_containing_return_addr' is -1, then the return address is
|
||||
actually on the stack, at the stack pointer. */
|
||||
22
toolchain/gcc/3.4.3/602-sdk-libstdc++-includes.patch
Normal file
22
toolchain/gcc/3.4.3/602-sdk-libstdc++-includes.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- gcc-3.4.1/libstdc++-v3/libmath/Makefile.am~ 2003-08-27 22:29:42.000000000 +0100
|
||||
+++ gcc-3.4.1/libstdc++-v3/libmath/Makefile.am 2004-07-22 16:41:45.152130128 +0100
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
libmath_la_SOURCES = stubs.c
|
||||
|
||||
-AM_CPPFLAGS = $(CANADIAN_INCLUDES)
|
||||
+AM_CPPFLAGS = $(CANADIAN_INCLUDES) -I$(toplevel_srcdir)/include
|
||||
|
||||
# Only compiling "C" sources in this directory.
|
||||
LIBTOOL = @LIBTOOL@ --tag CC
|
||||
--- gcc-3.4.1/libstdc++-v3/fragment.am.old 2004-07-22 18:24:58.024083656 +0100
|
||||
+++ gcc-3.4.1/libstdc++-v3/fragment.am 2004-07-22 18:24:59.019932264 +0100
|
||||
@@ -18,7 +18,7 @@
|
||||
$(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
|
||||
|
||||
# -I/-D flags to pass when compiling.
|
||||
-AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
|
||||
+AM_CPPFLAGS = $(GLIBCXX_INCLUDES) -I$(toplevel_srcdir)/include
|
||||
|
||||
|
||||
|
||||
44
toolchain/gcc/3.4.3/700-pr15068-fix.patch
Normal file
44
toolchain/gcc/3.4.3/700-pr15068-fix.patch
Normal file
@@ -0,0 +1,44 @@
|
||||
See http://gcc.gnu.org/PR15068
|
||||
|
||||
Fixes error
|
||||
|
||||
../sysdeps/generic/s_fmax.c: In function `__fmax':
|
||||
../sysdeps/generic/s_fmax.c:28: internal compiler error: in elim_reg_cond, at flow.c:3257
|
||||
Please submit a full bug report,
|
||||
with preprocessed source if appropriate.
|
||||
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
|
||||
make[2]: *** [/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/build-glibc/math/s_fmax.o] Error 1
|
||||
make[2]: Leaving directory `/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/glibc-20040822/math'
|
||||
make[1]: *** [math/others] Error 2
|
||||
make[1]: Leaving directory `/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/glibc-20040822'
|
||||
make: *** [all] Error 2
|
||||
|
||||
[ rediffed against gcc-3.4.1, with elbow grease, ending up with same thing as
|
||||
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/flow.c.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=1.563.4.2&r2=1.563.4.3 ]
|
||||
|
||||
--- gcc-3.4.1/gcc/flow.c.old 2004-02-27 19:39:19.000000000 -0800
|
||||
+++ gcc-3.4.1/gcc/flow.c 2004-08-26 07:29:46.000000000 -0700
|
||||
@@ -1878,6 +1878,7 @@
|
||||
rtx set_src = SET_SRC (pc_set (BB_END (bb)));
|
||||
rtx cond_true = XEXP (set_src, 0);
|
||||
rtx reg = XEXP (cond_true, 0);
|
||||
+ enum rtx_code inv_cond;
|
||||
|
||||
if (GET_CODE (reg) == SUBREG)
|
||||
reg = SUBREG_REG (reg);
|
||||
@@ -1886,11 +1887,13 @@
|
||||
in the form of a comparison of a register against zero.
|
||||
If the condition is more complex than that, then it is safe
|
||||
not to record any information. */
|
||||
- if (GET_CODE (reg) == REG
|
||||
+ inv_cond = reversed_comparison_code (cond_true, BB_END (bb));
|
||||
+ if (inv_cond != UNKNOWN
|
||||
+ && GET_CODE (reg) == REG
|
||||
&& XEXP (cond_true, 1) == const0_rtx)
|
||||
{
|
||||
rtx cond_false
|
||||
- = gen_rtx_fmt_ee (reverse_condition (GET_CODE (cond_true)),
|
||||
+ = gen_rtx_fmt_ee (inv_cond,
|
||||
GET_MODE (cond_true), XEXP (cond_true, 0),
|
||||
XEXP (cond_true, 1));
|
||||
if (GET_CODE (XEXP (set_src, 1)) == PC)
|
||||
70
toolchain/gcc/3.4.3/800-arm-bigendian.patch
Normal file
70
toolchain/gcc/3.4.3/800-arm-bigendian.patch
Normal file
@@ -0,0 +1,70 @@
|
||||
By Lennert Buytenhek <buytenh@wantstofly.org>
|
||||
Adds support for arm*b-linux* big-endian ARM targets
|
||||
|
||||
See http://gcc.gnu.org/PR16350
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-08-16 16:01:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-16 15:43:40.000000000 -0500
|
||||
@@ -30,17 +30,34 @@
|
||||
/* Do not assume anything about header files. */
|
||||
#define NO_IMPLICIT_EXTERN_C
|
||||
|
||||
+/*
|
||||
+ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
|
||||
+ * (big endian) configurations.
|
||||
+ */
|
||||
+#if TARGET_BIG_ENDIAN_DEFAULT
|
||||
+#define TARGET_ENDIAN_DEFAULT ARM_FLAG_BIG_END
|
||||
+#define TARGET_ENDIAN_OPTION "mbig-endian"
|
||||
+#define TARGET_LINKER_EMULATION "armelfb_linux"
|
||||
+#else
|
||||
+#define TARGET_ENDIAN_DEFAULT 0
|
||||
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
|
||||
+#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||
+#endif
|
||||
+
|
||||
/* Default is to use APCS-32 mode. */
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_APCS_32 | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 | \
|
||||
+ ARM_FLAG_MMU_TRAPS | \
|
||||
+ TARGET_ENDIAN_DEFAULT )
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux -p"
|
||||
+#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -101,7 +118,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
|
||||
-X \
|
||||
- %{mbig-endian:-EB}" \
|
||||
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
#endif
|
||||
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-08-16 16:01:50.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-16 16:01:25.000000000 -0500
|
||||
@@ -672,6 +672,11 @@
|
||||
;;
|
||||
arm*-*-linux*) # ARM GNU/Linux with ELF
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ case $target in
|
||||
+ arm*b-*)
|
||||
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||
+ ;;
|
||||
+ esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
|
||||
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
gnu_ld=yes
|
||||
27
toolchain/gcc/3.4.3/810-arm-bigendian-uclibc.patch
Normal file
27
toolchain/gcc/3.4.3/810-arm-bigendian-uclibc.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff -urN gcc-3.4.1-dist/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-08-16 16:08:18.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-16 16:06:24.000000000 -0500
|
||||
@@ -107,7 +107,7 @@
|
||||
%{rdynamic:-export-dynamic} \
|
||||
%{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
||||
-X \
|
||||
- %{mbig-endian:-EB}" \
|
||||
+ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
||||
SUBTARGET_EXTRA_LINK_SPEC
|
||||
#else
|
||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||
diff -urN gcc-3.4.1-dist/gcc/config.gcc gcc-3.4.1/gcc/config.gcc
|
||||
--- gcc-3.4.1-dist/gcc/config.gcc 2004-08-16 16:08:18.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config.gcc 2004-08-16 16:03:25.000000000 -0500
|
||||
@@ -666,6 +666,11 @@
|
||||
;;
|
||||
arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
|
||||
tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/aout.h arm/arm.h"
|
||||
+ case $target in
|
||||
+ arm*b-*)
|
||||
+ tm_defines="TARGET_BIG_ENDIAN_DEFAULT=1 $tm_defines"
|
||||
+ ;;
|
||||
+ esac
|
||||
tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
|
||||
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
|
||||
gnu_ld=yes
|
||||
270
toolchain/gcc/3.4.3/arm-softfloat.patch.conditional
Normal file
270
toolchain/gcc/3.4.3/arm-softfloat.patch.conditional
Normal file
@@ -0,0 +1,270 @@
|
||||
Note... modified my mjn3 to not conflict with the big endian arm patch.
|
||||
Warning!!! Only the linux target is aware of TARGET_ENDIAN_DEFAULT.
|
||||
Also changed
|
||||
#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
%{!mcpu=*:-mcpu=xscale} \
|
||||
%{mhard-float:-mfpu=fpa} \
|
||||
%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
to
|
||||
#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
%{mhard-float:-mfpu=fpa} \
|
||||
%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
in gcc/config/arm/linux-elf.h.
|
||||
#
|
||||
# Submitted:
|
||||
#
|
||||
# Dimitry Andric <dimitry@andric.com>, 2004-05-01
|
||||
#
|
||||
# Description:
|
||||
#
|
||||
# Nicholas Pitre released this patch for gcc soft-float support here:
|
||||
# http://lists.arm.linux.org.uk/pipermail/linux-arm/2003-October/006436.html
|
||||
#
|
||||
# This version has been adapted to work with gcc 3.4.0.
|
||||
#
|
||||
# The original patch doesn't distinguish between softfpa and softvfp modes
|
||||
# in the way Nicholas Pitre probably meant. His description is:
|
||||
#
|
||||
# "Default is to use APCS-32 mode with soft-vfp. The old Linux default for
|
||||
# floats can be achieved with -mhard-float or with the configure
|
||||
# --with-float=hard option. If -msoft-float or --with-float=soft is used then
|
||||
# software float support will be used just like the default but with the legacy
|
||||
# big endian word ordering for double float representation instead."
|
||||
#
|
||||
# Which means the following:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, you should get
|
||||
# software floating point, using the VFP format. The produced object file
|
||||
# should have these flags in its header:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# * If you compile with -mhard-float, you should get hardware floating point,
|
||||
# which always uses the FPA format. Object file header flags should be:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# * If you compile with -msoft-float, you should get software floating point,
|
||||
# using the FPA format. This is done for compatibility reasons with many
|
||||
# existing distributions. Object file header flags should be:
|
||||
#
|
||||
# private flags = 200: [APCS-32] [FPA float format] [software FP]
|
||||
#
|
||||
# The original patch from Nicholas Pitre contained the following constructs:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
#
|
||||
# However, gcc doesn't accept this ";:" notation, used in the 3rd line. This
|
||||
# is probably the reason Robert Schwebel modified it to:
|
||||
#
|
||||
# #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
# %{mhard-float:-mfpu=fpa} \
|
||||
# %{!mhard-float: %{msoft-float:-mfpu=softfpa -mfpu=softvfp}}"
|
||||
#
|
||||
# But this causes the following behaviour:
|
||||
#
|
||||
# * If you compile without -mhard-float or -msoft-float, the compiler generates
|
||||
# software floating point instructions, but *nothing* is passed to the
|
||||
# assembler, which results in an object file which has flags:
|
||||
#
|
||||
# private flags = 0: [APCS-32] [FPA float format]
|
||||
#
|
||||
# This is not correct!
|
||||
#
|
||||
# * If you compile with -mhard-float, the compiler generates hardware floating
|
||||
# point instructions, and passes "-mfpu=fpa" to the assembler, which results
|
||||
# in an object file which has the same flags as in the previous item, but now
|
||||
# those *are* correct.
|
||||
#
|
||||
# * If you compile with -msoft-float, the compiler generates software floating
|
||||
# point instructions, and passes "-mfpu=softfpa -mfpu=softvfp" (in that
|
||||
# order) to the assembler, which results in an object file with flags:
|
||||
#
|
||||
# private flags = 600: [APCS-32] [VFP float format] [software FP]
|
||||
#
|
||||
# This is not correct, because the last "-mfpu=" option on the assembler
|
||||
# command line determines the actual FPU convention used (which should be FPA
|
||||
# in this case).
|
||||
#
|
||||
# Therefore, I modified this patch to get the desired behaviour. Every
|
||||
# instance of the notation:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa -mfpu=softvfp}
|
||||
#
|
||||
# was changed to:
|
||||
#
|
||||
# %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}
|
||||
#
|
||||
# I also did the following:
|
||||
#
|
||||
# * Modified all TARGET_DEFAULT macros I could find to include ARM_FLAG_VFP, to
|
||||
# be consistent with Nicholas' original patch.
|
||||
# * Removed any "msoft-float" or "mhard-float" from all MULTILIB_DEFAULTS
|
||||
# macros I could find. I think that if you compile without any options, you
|
||||
# would like to get the defaults. :)
|
||||
# * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed
|
||||
# anymore. (The required functions are now in libgcc.)
|
||||
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/coff.h gcc-3.4.1/gcc/config/arm/coff.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/coff.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/coff.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -31,11 +31,16 @@
|
||||
#define TARGET_VERSION fputs (" (ARM/coff)", stderr)
|
||||
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
|
||||
#endif
|
||||
|
||||
/* This is COFF, but prefer stabs. */
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/elf.h gcc-3.4.1/gcc/config/arm/elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/elf.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -46,7 +46,9 @@
|
||||
|
||||
#ifndef SUBTARGET_ASM_FLOAT_SPEC
|
||||
#define SUBTARGET_ASM_FLOAT_SPEC "\
|
||||
-%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
|
||||
+%{mapcs-float:-mfloat} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
#endif
|
||||
|
||||
#ifndef ASM_SPEC
|
||||
@@ -106,12 +108,17 @@
|
||||
#endif
|
||||
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
|
||||
#endif
|
||||
|
||||
#define TARGET_ASM_FILE_START_APP_OFF true
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/linux-elf.h gcc-3.4.1/gcc/config/arm/linux-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/linux-elf.h 2004-09-02 21:50:52.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-09-02 22:00:49.000000000 -0500
|
||||
@@ -44,12 +44,26 @@
|
||||
#define TARGET_LINKER_EMULATION "armelf_linux"
|
||||
#endif
|
||||
|
||||
-/* Default is to use APCS-32 mode. */
|
||||
+/*
|
||||
+ * Default is to use APCS-32 mode with soft-vfp.
|
||||
+ * The old Linux default for floats can be achieved with -mhard-float
|
||||
+ * or with the configure --with-float=hard option.
|
||||
+ * If -msoft-float or --with-float=soft is used then software float
|
||||
+ * support will be used just like the default but with the legacy
|
||||
+ * big endian word ordering for double float representation instead.
|
||||
+ */
|
||||
#undef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT \
|
||||
- ( ARM_FLAG_APCS_32 | \
|
||||
- ARM_FLAG_MMU_TRAPS | \
|
||||
- TARGET_ENDIAN_DEFAULT )
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_SOFT_FLOAT \
|
||||
+ | TARGET_ENDIAN_DEFAULT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
+
|
||||
+#undef SUBTARGET_EXTRA_ASM_SPEC
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
|
||||
|
||||
@@ -57,7 +71,7 @@
|
||||
|
||||
#undef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
|
||||
+ { "marm", TARGET_ENDIAN_OPTION, "mapcs-32", "mno-thumb-interwork" }
|
||||
|
||||
#define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
|
||||
|
||||
@@ -72,7 +86,7 @@
|
||||
%{shared:-lc} \
|
||||
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||
|
||||
-#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||
+#define LIBGCC_SPEC "-lgcc"
|
||||
|
||||
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
|
||||
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/t-linux gcc-3.4.1/gcc/config/arm/t-linux
|
||||
--- gcc-3.4.1-old/gcc/config/arm/t-linux 2003-09-20 16:09:07.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/t-linux 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -4,7 +4,10 @@
|
||||
LIBGCC2_DEBUG_CFLAGS = -g0
|
||||
|
||||
LIB1ASMSRC = arm/lib1funcs.asm
|
||||
-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
|
||||
+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
|
||||
+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
|
||||
+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
|
||||
+ _fixsfsi _fixunssfsi
|
||||
|
||||
# MULTILIB_OPTIONS = mhard-float/msoft-float
|
||||
# MULTILIB_DIRNAMES = hard-float soft-float
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/unknown-elf.h gcc-3.4.1/gcc/config/arm/unknown-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/unknown-elf.h 2004-02-24 08:25:22.000000000 -0600
|
||||
+++ gcc-3.4.1/gcc/config/arm/unknown-elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -30,7 +30,12 @@
|
||||
|
||||
/* Default to using APCS-32 and software floating point. */
|
||||
#ifndef TARGET_DEFAULT
|
||||
-#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
|
||||
+#define TARGET_DEFAULT \
|
||||
+ ( ARM_FLAG_SOFT_FLOAT \
|
||||
+ | ARM_FLAG_VFP \
|
||||
+ | ARM_FLAG_APCS_32 \
|
||||
+ | ARM_FLAG_APCS_FRAME \
|
||||
+ | ARM_FLAG_MMU_TRAPS )
|
||||
#endif
|
||||
|
||||
/* Now we define the strings used to build the spec file. */
|
||||
diff -urN gcc-3.4.1-old/gcc/config/arm/xscale-elf.h gcc-3.4.1/gcc/config/arm/xscale-elf.h
|
||||
--- gcc-3.4.1-old/gcc/config/arm/xscale-elf.h 2003-07-01 18:26:43.000000000 -0500
|
||||
+++ gcc-3.4.1/gcc/config/arm/xscale-elf.h 2004-09-02 21:51:15.000000000 -0500
|
||||
@@ -49,11 +49,12 @@
|
||||
endian, regardless of the endian-ness of the memory
|
||||
system. */
|
||||
|
||||
-#define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
|
||||
- %{mhard-float:-mfpu=fpa} \
|
||||
- %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
|
||||
+#define SUBTARGET_EXTRA_ASM_SPEC "\
|
||||
+%{!mcpu=*:-mcpu=xscale} \
|
||||
+%{mhard-float:-mfpu=fpa} \
|
||||
+%{!mhard-float: %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp}}"
|
||||
|
||||
#ifndef MULTILIB_DEFAULTS
|
||||
#define MULTILIB_DEFAULTS \
|
||||
- { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
|
||||
+ { "mlittle-endian", "mno-thumb-interwork", "marm" }
|
||||
#endif
|
||||
76
toolchain/gcc/Config.in
Normal file
76
toolchain/gcc/Config.in
Normal file
@@ -0,0 +1,76 @@
|
||||
# Choose gcc version.
|
||||
# WARNING -- 2.95 currently only builds for i386, arm, mips*, and powerpc.
|
||||
# WARNING -- 2.95 does not currently build natively for the target.
|
||||
|
||||
comment "Gcc Options"
|
||||
|
||||
choice
|
||||
prompt "GCC compiler Version"
|
||||
default BR2_GCC_VERSION_3_4_2
|
||||
help
|
||||
Select the version of gcc you wish to use.
|
||||
|
||||
config BR2_GCC_VERSION_2_95
|
||||
bool "gcc 2.95"
|
||||
depends on BR2_arm || BR2_i386 || BR2_mips || BR2_powerpc
|
||||
|
||||
config BR2_GCC_VERSION_3_3_3
|
||||
bool "gcc 3.3.3"
|
||||
|
||||
config BR2_GCC_VERSION_3_3_4
|
||||
bool "gcc 3.3.4"
|
||||
|
||||
config BR2_GCC_VERSION_3_3_5
|
||||
bool "gcc 3.3.5"
|
||||
|
||||
config BR2_GCC_VERSION_3_4_0
|
||||
bool "gcc 3.4.0"
|
||||
|
||||
config BR2_GCC_VERSION_3_4_1
|
||||
bool "gcc 3.4.1"
|
||||
|
||||
config BR2_GCC_VERSION_3_4_2
|
||||
bool "gcc 3.4.2"
|
||||
|
||||
config BR2_GCC_VERSION_3_4_3
|
||||
bool "gcc 3.4.3"
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_GCC_VERSION
|
||||
string
|
||||
default "2.95" if BR2_GCC_VERSION_2_95
|
||||
default "3.3.3" if BR2_GCC_VERSION_3_3_3
|
||||
default "3.3.4" if BR2_GCC_VERSION_3_3_4
|
||||
default "3.3.5" if BR2_GCC_VERSION_3_3_5
|
||||
default "3.4.0" if BR2_GCC_VERSION_3_4_0
|
||||
default "3.4.1" if BR2_GCC_VERSION_3_4_1
|
||||
default "3.4.2" if BR2_GCC_VERSION_3_4_2
|
||||
default "3.4.3" if BR2_GCC_VERSION_3_4_3
|
||||
|
||||
|
||||
config BR2_GCC_USE_SJLJ_EXCEPTIONS
|
||||
string
|
||||
default "--enable-sjlj-exceptions"
|
||||
help
|
||||
Currently the unwind stuff seems to work for staticly linked apps
|
||||
but not dynamic. So use setjmp/longjmp exceptions by default.
|
||||
|
||||
config BR2_EXTRA_GCC_CONFIG_OPTIONS
|
||||
string "Additional gcc options"
|
||||
default ""
|
||||
help
|
||||
Any additional gcc options you may want to include....
|
||||
|
||||
config BR2_INSTALL_LIBSTDCPP
|
||||
bool "Build/install c++ compiler and libstdc++?"
|
||||
default n
|
||||
help
|
||||
Build/install c++ compiler and libstdc++?
|
||||
|
||||
config BR2_INSTALL_LIBGCJ
|
||||
bool "Build/install java compiler and libgcj?"
|
||||
default n
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
Build/install java compiler and libgcj?
|
||||
6
toolchain/gcc/Config.in.2
Normal file
6
toolchain/gcc/Config.in.2
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_GCC_TARGET
|
||||
bool "native toolchain in the target filesystem"
|
||||
default n
|
||||
help
|
||||
If you want the target system to be able to run
|
||||
binutils/gcc and compile native code, say Y here.
|
||||
26
toolchain/gcc/Makefile.in
Normal file
26
toolchain/gcc/Makefile.in
Normal file
@@ -0,0 +1,26 @@
|
||||
GCC_VERSION:=$(strip $(subst ",, $(BR2_GCC_VERSION)))
|
||||
#"
|
||||
GCC_USE_SJLJ_EXCEPTIONS:=$(strip $(subst ",, $(BR2_GCC_USE_SJLJ_EXCEPTIONS)))
|
||||
#"
|
||||
TARGET_OPTIMIZATION:=$(strip $(subst ",, $(BR2_TARGET_OPTIMIZATION)))
|
||||
#""
|
||||
|
||||
|
||||
ifeq ($(BR2_SOFT_FLOAT),y)
|
||||
# gcc 3.4.x soft float configuration is different than previous versions.
|
||||
ifeq ($(findstring 3.4.,$(GCC_VERSION)),3.4.)
|
||||
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
||||
else
|
||||
SOFT_FLOAT_CONFIG_OPTION:=--without-float
|
||||
endif
|
||||
TARGET_SOFT_FLOAT:=-msoft-float
|
||||
ARCH_FPU_SUFFIX:=_nofpu
|
||||
else
|
||||
SOFT_FLOAT_CONFIG_OPTION:=
|
||||
TARGET_SOFT_FLOAT:=
|
||||
ARCH_FPU_SUFFIX:=
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET)),y)
|
||||
TARGETS+=gcc_target
|
||||
endif
|
||||
277
toolchain/gcc/gcc-uclibc-2.95.mk
Normal file
277
toolchain/gcc/gcc-uclibc-2.95.mk
Normal file
@@ -0,0 +1,277 @@
|
||||
# Makefile for to build a gcc/uClibc toolchain
|
||||
#
|
||||
# Copyright (C) 2002-2003 Erik Andersen <andersen@uclibc.org>
|
||||
# Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
|
||||
#
|
||||
# This program 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 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program 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 this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
ifeq ($(findstring 2.95,$(GCC_VERSION)),2.95)
|
||||
GCC_VERSION:=$(strip $(GCC_VERSION))
|
||||
|
||||
GCC_SITE:=http://www.uclibc.org/downloads/toolchain
|
||||
GCC_SOURCE:=gcc-20011006.tar.bz2
|
||||
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-20011006
|
||||
GCC_CAT:=bzcat
|
||||
|
||||
STLPORT_SITE=http://www.stlport.org/archive
|
||||
STLPORT_SOURCE=STLport-4.5.3.tar.gz
|
||||
STLPORT_DIR=$(TOOL_BUILD_DIR)/STLport-4.5.3
|
||||
GCC_STRIP_HOST_BINARIES:=true
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Setup some initial stuff
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
TARGET_LANGUAGES:=c,c++
|
||||
STLPORT_TARGET=stlport
|
||||
else
|
||||
TARGET_LANGUAGES:=c
|
||||
STLPORT_TARGET=
|
||||
endif
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build the first pass gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-initial
|
||||
|
||||
$(DL_DIR)/$(GCC_SOURCE):
|
||||
mkdir -p $(DL_DIR)
|
||||
$(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
|
||||
|
||||
$(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
||||
mkdir -p $(TOOL_BUILD_DIR)
|
||||
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||
touch $(GCC_DIR)/.unpacked
|
||||
|
||||
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
||||
# Apply any files named gcc-*.patch from the source directory to gcc
|
||||
toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) \*.patch\*
|
||||
#
|
||||
# We do not wish to build the libstdc++ library provided with gcc,
|
||||
# since it doesn't seem to work at all with uClibc plus gcc 2.95...
|
||||
#
|
||||
mv $(GCC_DIR)/libstdc++ $(GCC_DIR)/libstdc++.orig
|
||||
mv $(GCC_DIR)/libio $(GCC_DIR)/libio.orig
|
||||
#
|
||||
touch $(GCC_DIR)/.patched
|
||||
|
||||
# The --without-headers option stopped working with gcc 3.0 and has never been
|
||||
# # fixed, so we need to actually have working C library header files prior to
|
||||
# # the step or libgcc will not build...
|
||||
$(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
|
||||
mkdir -p $(GCC_BUILD_DIR1)
|
||||
-mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include
|
||||
# Important! Required for limits.h to be fixed.
|
||||
ln -sf include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
|
||||
(cd $(GCC_BUILD_DIR1); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=c \
|
||||
--disable-shared \
|
||||
--includedir=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include \
|
||||
--with-headers=$(TOOL_BUILD_DIR)/uClibc_dev/usr/include \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR1)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR1)/.compiled: $(GCC_BUILD_DIR1)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) all-gcc
|
||||
touch $(GCC_BUILD_DIR1)/.compiled
|
||||
|
||||
$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) install-gcc
|
||||
#rm -f $(STAGING_DIR)/bin/gccbug $(STAGING_DIR)/bin/gcov
|
||||
#rm -rf $(STAGING_DIR)/info $(STAGING_DIR)/man $(STAGING_DIR)/share/doc $(STAGING_DIR)/share/locale
|
||||
|
||||
gcc_initial: uclibc-configured binutils $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc
|
||||
|
||||
gcc_initial-clean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc_initial-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# STLport -- an alternative C++ library
|
||||
#
|
||||
#############################################################
|
||||
STLPORT_PATCH=toolchain/gcc/2.95/STLport-4.5.3.patch
|
||||
|
||||
$(DL_DIR)/$(STLPORT_SOURCE):
|
||||
$(WGET) -P $(DL_DIR) $(STLPORT_SITE)/$(STLPORT_SOURCE)
|
||||
|
||||
$(STLPORT_DIR)/Makefile: $(DL_DIR)/$(STLPORT_SOURCE) $(STLPORT_PATCH)
|
||||
zcat $(DL_DIR)/$(STLPORT_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||
cat $(STLPORT_PATCH) | patch -d $(STLPORT_DIR) -p1
|
||||
|
||||
$(STLPORT_DIR)/lib/libstdc++.a: $(STLPORT_DIR)/Makefile
|
||||
$(MAKE) ARCH=$(OPTIMIZE_FOR_CPU) PREFIX=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME) -C $(STLPORT_DIR)
|
||||
|
||||
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.a: $(STLPORT_DIR)/lib/libstdc++.a
|
||||
$(MAKE) ARCH=$(OPTIMIZE_FOR_CPU) PREFIX=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME) -C $(STLPORT_DIR) install
|
||||
|
||||
stlport: $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.a
|
||||
|
||||
stlport-source: $(DL_DIR)/$(STLPORT_SOURCE)
|
||||
|
||||
stlport-clean:
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++*
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/c++*
|
||||
-$(MAKE) -C $(STLPORT_DIR) clean
|
||||
|
||||
stlport-dirclean:
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libstdc++*
|
||||
rm -f $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/g++-v3*
|
||||
rm -rf $(STLPORT_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# second pass compiler build. Build the compiler targeting
|
||||
# the newly built shared uClibc library.
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
|
||||
|
||||
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libc.a
|
||||
mkdir -p $(GCC_BUILD_DIR2)
|
||||
(cd $(GCC_BUILD_DIR2); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR2)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) all
|
||||
touch $(GCC_BUILD_DIR2)/.compiled
|
||||
|
||||
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) install
|
||||
# Strip the host binaries
|
||||
ifeq ($(GCC_STRIP_HOST_BINARIES),true)
|
||||
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*
|
||||
endif
|
||||
# Set up the symlinks to enable lying about target name.
|
||||
set -e; \
|
||||
(cd $(STAGING_DIR); \
|
||||
ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
|
||||
cd bin; \
|
||||
for app in $(REAL_GNU_TARGET_NAME)-* ; do \
|
||||
ln -sf $${app} \
|
||||
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
|
||||
done; \
|
||||
);
|
||||
touch $(GCC_BUILD_DIR2)/.installed
|
||||
|
||||
gcc: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) uclibc \
|
||||
$(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS) $(STLPORT_TARGET)
|
||||
|
||||
gcc-source: $(DL_DIR)/$(GCC_SOURCE)
|
||||
|
||||
gcc-clean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Next build target gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR3:=$(BUILD_DIR)/gcc-$(GCC_VERSION)-target
|
||||
|
||||
$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
|
||||
mkdir -p $(GCC_BUILD_DIR3)
|
||||
(cd $(GCC_BUILD_DIR3); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=/usr \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=/usr/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR3)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(TARGET_GCC_ARGS) -C $(GCC_BUILD_DIR3) all
|
||||
touch $(GCC_BUILD_DIR3)/.compiled
|
||||
|
||||
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GCC_BUILD_DIR3) install
|
||||
# Remove broken specs file (cross compile flag is set).
|
||||
rm -f $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
-(cd $(TARGET_DIR)/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION); $(STRIP) cc1 cc1plus collect2 > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib; $(STRIP) libstdc++.so.*.*.* > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/lib; $(STRIP) libgcc_s.so.*.*.* > /dev/null 2>&1)
|
||||
#
|
||||
rm -f $(TARGET_DIR)/usr/lib/*.la*
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# Work around problem of missing syslimits.h
|
||||
cp -f $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/include/syslimits.h $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/include/
|
||||
# These are in /lib, so...
|
||||
#rm -rf $(TARGET_DIR)/usr/lib/libgcc_s.so*
|
||||
#touch -c $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc_target: uclibc_target binutils_target $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc_target-clean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
rm -f $(TARGET_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc_target-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
|
||||
endif
|
||||
321
toolchain/gcc/gcc-uclibc-3.x.mk
Normal file
321
toolchain/gcc/gcc-uclibc-3.x.mk
Normal file
@@ -0,0 +1,321 @@
|
||||
# Makefile for to build a gcc/uClibc toolchain
|
||||
#
|
||||
# Copyright (C) 2002-2003 Erik Andersen <andersen@uclibc.org>
|
||||
# Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
|
||||
#
|
||||
# This program 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 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program 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 this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
ifneq ($(findstring 2.95,$(GCC_VERSION)),2.95)
|
||||
GCC_VERSION:=$(strip $(GCC_VERSION))
|
||||
|
||||
#GCC_SITE:=ftp://ftp.gnu.org/gnu/gcc/releases/gcc-$(GCC_VERSION)
|
||||
GCC_SITE:=http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-$(GCC_VERSION)
|
||||
|
||||
#
|
||||
# snapshots....
|
||||
#GCC_VERSION:=3.3-20031013
|
||||
#GCC_SITE:=http://gcc.get-software.com/snapshots/$(GCC_VERSION)
|
||||
#
|
||||
GCC_SOURCE:=gcc-$(GCC_VERSION).tar.bz2
|
||||
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)
|
||||
GCC_CAT:=bzcat
|
||||
GCC_STRIP_HOST_BINARIES:=true
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Setup some initial stuff
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBGCJ),y)
|
||||
TARGET_LANGUAGES:=c,c++,java
|
||||
else
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
TARGET_LANGUAGES:=c,c++
|
||||
else
|
||||
TARGET_LANGUAGES:=c
|
||||
endif
|
||||
endif
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# build the first pass gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR1:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-initial
|
||||
|
||||
$(DL_DIR)/$(GCC_SOURCE):
|
||||
mkdir -p $(DL_DIR)
|
||||
$(WGET) -P $(DL_DIR) $(GCC_SITE)/$(GCC_SOURCE)
|
||||
|
||||
$(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
||||
mkdir -p $(TOOL_BUILD_DIR)
|
||||
$(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
|
||||
touch $(GCC_DIR)/.unpacked
|
||||
|
||||
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
||||
# Apply any files named gcc-*.patch from the source directory to gcc
|
||||
toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) \*.patch
|
||||
# Note: The soft float situation has improved considerably with gcc 3.4.x.
|
||||
# We can dispense with the custom spec files, as well as libfloat for the arm case.
|
||||
# However, we still need a patch for arm. There's a similar patch for gcc 3.3.x
|
||||
# which needs to be integrated so we can kill of libfloat for good, except for
|
||||
# anyone (?) who might still be using gcc 2.95. mjn3
|
||||
ifeq ($(BR2_SOFT_FLOAT),y)
|
||||
ifeq ("$(strip $(ARCH))","arm")
|
||||
toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) arm-softfloat.patch.conditional
|
||||
endif
|
||||
ifeq ("$(strip $(ARCH))","armeb")
|
||||
toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) arm-softfloat.patch.conditional
|
||||
endif
|
||||
# Not yet updated to 3.4.1.
|
||||
#ifeq ("$(strip $(ARCH))","i386")
|
||||
#toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc i386-gcc-soft-float.patch
|
||||
#endif
|
||||
endif
|
||||
touch $(GCC_DIR)/.patched
|
||||
|
||||
# The --without-headers option stopped working with gcc 3.0 and has never been
|
||||
# # fixed, so we need to actually have working C library header files prior to
|
||||
# # the step or libgcc will not build...
|
||||
|
||||
$(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
|
||||
mkdir -p $(GCC_BUILD_DIR1)
|
||||
(cd $(GCC_BUILD_DIR1); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=c \
|
||||
--disable-shared \
|
||||
--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR1)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR1)/.compiled: $(GCC_BUILD_DIR1)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) all-gcc
|
||||
touch $(GCC_BUILD_DIR1)/.compiled
|
||||
|
||||
$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc: $(GCC_BUILD_DIR1)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR1) install-gcc
|
||||
#rm -f $(STAGING_DIR)/bin/gccbug $(STAGING_DIR)/bin/gcov
|
||||
#rm -rf $(STAGING_DIR)/info $(STAGING_DIR)/man $(STAGING_DIR)/share/doc $(STAGING_DIR)/share/locale
|
||||
|
||||
gcc_initial: uclibc-configured binutils $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-gcc
|
||||
|
||||
gcc_initial-clean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc_initial-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR1)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# second pass compiler build. Build the compiler targeting
|
||||
# the newly built shared uClibc library.
|
||||
#
|
||||
#############################################################
|
||||
#
|
||||
# Sigh... I had to rework things because using --with-gxx-include-dir
|
||||
# causes issues with include dir search order for g++. This seems to
|
||||
# have something to do with "path translations" and possibly doesn't
|
||||
# affect gcc-target. However, I haven't tested gcc-target yet so no
|
||||
# guarantees. mjn3
|
||||
|
||||
GCC_BUILD_DIR2:=$(TOOL_BUILD_DIR)/gcc-$(GCC_VERSION)-final
|
||||
$(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched $(STAGING_DIR)/lib/libc.a
|
||||
mkdir -p $(GCC_BUILD_DIR2)
|
||||
# Important! Required for limits.h to be fixed.
|
||||
ln -sf ../include $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
|
||||
(cd $(GCC_BUILD_DIR2); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=$(STAGING_DIR) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
|
||||
$(GCC_USE_SJLJ_EXCEPTIONS) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR2)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) all
|
||||
touch $(GCC_BUILD_DIR2)/.compiled
|
||||
|
||||
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
|
||||
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) install
|
||||
# Strip the host binaries
|
||||
ifeq ($(GCC_STRIP_HOST_BINARIES),true)
|
||||
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*
|
||||
endif
|
||||
# Set up the symlinks to enable lying about target name.
|
||||
set -e; \
|
||||
(cd $(STAGING_DIR); \
|
||||
ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
|
||||
cd bin; \
|
||||
for app in $(REAL_GNU_TARGET_NAME)-* ; do \
|
||||
ln -sf $${app} \
|
||||
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
|
||||
done; \
|
||||
);
|
||||
#
|
||||
# Now for the ugly 3.3.x soft float hack...
|
||||
#
|
||||
ifeq ($(BR2_SOFT_FLOAT),y)
|
||||
ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
|
||||
# Make sure we have a soft float specs file for this arch
|
||||
if [ ! -f toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float ] ; then \
|
||||
echo soft float configured but no specs file for this arch ; \
|
||||
/bin/false ; \
|
||||
fi;
|
||||
# Replace specs file with one that defaults to soft float mode.
|
||||
if [ ! -f $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ] ; then \
|
||||
echo staging dir specs file is missing ; \
|
||||
/bin/false ; \
|
||||
fi;
|
||||
cp toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
endif
|
||||
endif
|
||||
#
|
||||
# Ok... that's enough of that.
|
||||
#
|
||||
touch $(GCC_BUILD_DIR2)/.installed
|
||||
|
||||
$(TARGET_DIR)/lib/libgcc_s.so.1: $(GCC_BUILD_DIR2)/.installed
|
||||
# These are in /lib, so...
|
||||
rm -rf $(TARGET_DIR)/usr/lib/libgcc_s.so*
|
||||
-$(STRIP) $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s.so.1
|
||||
-cp -a $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/lib/libgcc_s* $(TARGET_DIR)/lib/
|
||||
|
||||
gcc: uclibc-configured binutils gcc_initial $(LIBFLOAT_TARGET) uclibc \
|
||||
$(TARGET_DIR)/lib/libgcc_s.so.1 $(GCC_BUILD_DIR2)/.installed $(GCC_TARGETS)
|
||||
|
||||
gcc-source: $(DL_DIR)/$(GCC_SOURCE)
|
||||
|
||||
gcc-clean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR2)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Next build target gcc compiler
|
||||
#
|
||||
#############################################################
|
||||
GCC_BUILD_DIR3:=$(BUILD_DIR)/gcc-$(GCC_VERSION)-target
|
||||
|
||||
$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR2)/.installed
|
||||
mkdir -p $(GCC_BUILD_DIR3)
|
||||
(cd $(GCC_BUILD_DIR3); PATH=$(TARGET_PATH) \
|
||||
$(GCC_DIR)/configure \
|
||||
--prefix=/usr \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--enable-languages=$(TARGET_LANGUAGES) \
|
||||
--enable-shared \
|
||||
--with-gxx-include-dir=/usr/include/c++ \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-target-optspace \
|
||||
--with-gnu-ld \
|
||||
$(DISABLE_NLS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
|
||||
$(GCC_USE_SJLJ_EXCEPTIONS) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
touch $(GCC_BUILD_DIR3)/.configured
|
||||
|
||||
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) $(TARGET_GCC_ARGS) -C $(GCC_BUILD_DIR3) all
|
||||
touch $(GCC_BUILD_DIR3)/.compiled
|
||||
|
||||
#
|
||||
# gcc-lib dir changes names to gcc with 3.4.mumble
|
||||
#
|
||||
ifeq ($(findstring 3.4.,$(GCC_VERSION)),3.4.)
|
||||
GCC_LIB_SUBDIR=lib/gcc/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)
|
||||
else
|
||||
GCC_LIB_SUBDIR=lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)
|
||||
endif
|
||||
|
||||
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
|
||||
PATH=$(TARGET_PATH) \
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(GCC_BUILD_DIR3) install
|
||||
# Remove broken specs file (cross compile flag is set).
|
||||
rm -f $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/specs
|
||||
#
|
||||
# Now for the ugly 3.3.x soft float hack...
|
||||
#
|
||||
ifeq ($(BR2_SOFT_FLOAT),y)
|
||||
ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
|
||||
# Add a specs file that defaults to soft float mode.
|
||||
cp toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
# Make sure gcc does not think we are cross compiling
|
||||
$(SED) "s/^1/0/;" $(TARGET_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
|
||||
endif
|
||||
endif
|
||||
#
|
||||
# Ok... that's enough of that.
|
||||
#
|
||||
-(cd $(TARGET_DIR)/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/bin; find -type f | xargs $(STRIP) > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR); $(STRIP) cc1 cc1plus collect2 > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/usr/lib; $(STRIP) libstdc++.so.*.*.* > /dev/null 2>&1)
|
||||
-(cd $(TARGET_DIR)/lib; $(STRIP) libgcc_s.so.*.*.* > /dev/null 2>&1)
|
||||
#
|
||||
rm -f $(TARGET_DIR)/usr/lib/*.la*
|
||||
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
||||
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
||||
# Work around problem of missing syslimits.h
|
||||
@if [ ! -f $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/syslimits.h ] ; then \
|
||||
echo "warning: working around missing syslimits.h" ; \
|
||||
cp -f $(STAGING_DIR)/$(GCC_LIB_SUBDIR)/include/syslimits.h \
|
||||
$(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/ ; \
|
||||
fi
|
||||
# These are in /lib, so...
|
||||
#rm -rf $(TARGET_DIR)/usr/lib/libgcc_s.so*
|
||||
#touch -c $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc_target: uclibc_target binutils_target $(TARGET_DIR)/usr/bin/gcc
|
||||
|
||||
gcc_target-clean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
rm -f $(TARGET_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)*
|
||||
|
||||
gcc_target-dirclean:
|
||||
rm -rf $(GCC_BUILD_DIR3)
|
||||
|
||||
endif
|
||||
61
toolchain/gcc/i386-gcc-soft-float.patch
Normal file
61
toolchain/gcc/i386-gcc-soft-float.patch
Normal file
@@ -0,0 +1,61 @@
|
||||
diff -urN gcc-3.3.2-orig/gcc/config/i386/i386.h gcc-3.3.2/gcc/config/i386/i386.h
|
||||
--- gcc-3.3.2-orig/gcc/config/i386/i386.h 2003-06-25 16:18:31.000000000 -0500
|
||||
+++ gcc-3.3.2/gcc/config/i386/i386.h 2003-10-22 01:46:57.000000000 -0500
|
||||
@@ -653,6 +653,7 @@
|
||||
/* Define for XFmode or TFmode extended real floating point support.
|
||||
The XFmode is specified by i386 ABI, while TFmode may be faster
|
||||
due to alignment and simplifications in the address calculations. */
|
||||
+#if 0
|
||||
#define LONG_DOUBLE_TYPE_SIZE (TARGET_128BIT_LONG_DOUBLE ? 128 : 96)
|
||||
#define MAX_LONG_DOUBLE_TYPE_SIZE 128
|
||||
#ifdef __x86_64__
|
||||
@@ -660,6 +661,17 @@
|
||||
#else
|
||||
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 96
|
||||
#endif
|
||||
+#else
|
||||
+ /* Set up for x86 soft float with 64-bit long doubles, since that's
|
||||
+ * all the soft float emulation supports. */
|
||||
+#define LONG_DOUBLE_TYPE_SIZE (TARGET_128BIT_LONG_DOUBLE ? 128 : (TARGET_80387 ? 96 : 64))
|
||||
+#define MAX_LONG_DOUBLE_TYPE_SIZE 128
|
||||
+#ifdef __x86_64__
|
||||
+#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 128
|
||||
+#else
|
||||
+#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE (TARGET_80387 ? 96 : 64)
|
||||
+#endif
|
||||
+#endif
|
||||
|
||||
/* Set the value of FLT_EVAL_METHOD in float.h. When using only the
|
||||
FPU, assume that the fpcw is set to extended precision; when using
|
||||
diff -urN gcc-3.3.2-orig/gcc/config/t-linux gcc-3.3.2/gcc/config/t-linux
|
||||
--- gcc-3.3.2-orig/gcc/config/t-linux-uclibc 2003-06-04 11:56:11.000000000 -0500
|
||||
+++ gcc-3.3.2/gcc/config/t-linux-uclibc 2003-10-22 01:46:39.000000000 -0500
|
||||
@@ -21,3 +21,28 @@
|
||||
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
||||
$(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
|
||||
LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
||||
+
|
||||
+##############################################
|
||||
+# We want fine grained libraries, so use the new code to build the
|
||||
+# floating point emulation libraries.
|
||||
+FPBIT = fp-bit.c
|
||||
+DPBIT = dp-bit.c
|
||||
+
|
||||
+#LIB2FUNCS_EXTRA = xp-bit.c
|
||||
+
|
||||
+dp-bit.c: $(srcdir)/config/fp-bit.c
|
||||
+ echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
|
||||
+ echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
|
||||
+ echo '#endif' >> dp-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
|
||||
+ echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
|
||||
+ echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
|
||||
+ echo '#endif' >> fp-bit.c
|
||||
+ cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
||||
+
|
||||
+#MULTILIB_OPTIONS = msoft-float
|
||||
+#MULTILIB_DIRNAMES = soft-float
|
||||
+
|
||||
Reference in New Issue
Block a user