From: Jan-Benedict G. <jb...@us...> - 2005-09-23 08:54:31
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16681 Added Files: binutils-000002-add_vax-uclinux.patch binutils-000003-ld_add_vax-uclinux_target.patch binutils-000004-gas_add_vax-uclinux_target.patch gcc-000004-fix-length-PR23991.patch gcc-000005-disable-debugging-dwarf2.patch uclibc-000000-base.patch Log Message: - Current additional patches. - Don't even think that the uClibc would work right now. - ...but I'm working on it :-) --- NEW FILE: gcc-000005-disable-debugging-dwarf2.patch --- diff -Nurp src-gcc-fresh/gcc/config/vax/vax.c src-gcc-hacked/gcc/config/vax/vax.c --- src-gcc-fresh/gcc/config/vax/vax.c 2005-06-26 15:39:59.000000000 +0200 +++ src-gcc-hacked/gcc/config/vax/vax.c 2005-09-23 01:09:46.000000000 +0200 @@ -98,6 +98,13 @@ override_options (void) /* We're VAX floating point, not IEEE floating point. */ if (TARGET_G_FLOAT) REAL_MODE_FORMAT (DFmode) = &vax_g_format; + + if (write_symbols != NO_DEBUG) + { + warning (0, "-g is only supported when using GAS on this processor,"); + warning (0, "-g option disabled"); + write_symbols = NO_DEBUG; + } } /* Generate the assembly code for function entry. FILE is a stdio --- NEW FILE: binutils-000004-gas_add_vax-uclinux_target.patch --- diff -Nurp src-binutils-fresh/gas/configure.tgt src-binutils-hacked/gas/configure.tgt --- src-binutils-fresh/gas/configure.tgt 2005-09-12 18:56:17.000000000 +0200 +++ src-binutils-hacked/gas/configure.tgt 2005-09-12 20:34:13.000000000 +0200 @@ -363,7 +363,7 @@ case ${generic_target} in v850ea-*-*) fmt=elf ;; vax-*-netbsdelf*) fmt=elf em=nbsd ;; - vax-*-linux-*) fmt=elf em=linux ;; + vax-*-linux-* | vax-*-uclinux*) fmt=elf em=linux ;; xscale-*-coff) fmt=coff ;; xscale-*-elf) fmt=elf ;; --- NEW FILE: binutils-000003-ld_add_vax-uclinux_target.patch --- diff -Nurp src-binutils-fresh/ld/configure.tgt src-binutils-hacked/ld/configure.tgt --- src-binutils-fresh/ld/configure.tgt 2005-08-20 15:08:28.000000000 +0200 +++ src-binutils-hacked/ld/configure.tgt 2005-09-12 20:27:11.000000000 +0200 @@ -545,7 +545,7 @@ vax-*-netbsdelf*) targ_emul=elf32vax vax-*-netbsdaout* | vax-*-netbsd*) targ_emul=vaxnbsd targ_extra_emuls=elf32vax ;; -vax-*-linux-*) targ_emul=elf32vax +vax-*-linux-*|vax-*-uclinux*) targ_emul=elf32vax ;; w65-*-*) targ_emul=w65 ;; @@ -553,7 +553,7 @@ xstormy16-*-*) targ_emul=elf32xstormy16 ;; xtensa-*-*) targ_emul=elf32xtensa ;; -z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 +z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;; *-*-ieee*) targ_emul=vanilla ;; --- NEW FILE: binutils-000002-add_vax-uclinux.patch --- diff -Nurp src-binutils-fresh/bfd/config.bfd src-binutils-hacked/bfd/config.bfd --- src-binutils-fresh/bfd/config.bfd 2005-09-12 18:56:08.000000000 +0200 +++ src-binutils-hacked/bfd/config.bfd 2005-09-12 20:13:48.000000000 +0200 @@ -1339,6 +1339,10 @@ case "${targ}" in targ_defvec=bfd_elf32_vax_vec ;; + vax-*-uclinux) + targ_defvec=bfd_elf32_vax_vec + ;; + vax*-*-*vms*) targ_defvec=vms_vax_vec ;; diff -Nurp src-binutils-fresh/bfd/configure.in src-binutils-hacked/bfd/configure.in --- src-binutils-fresh/bfd/configure.in 2005-09-12 18:56:09.000000000 +0200 +++ src-binutils-hacked/bfd/configure.in 2005-09-12 20:13:48.000000000 +0200 @@ -370,7 +370,7 @@ changequote([,])dnl TRAD_HEADER='"hosts/tahoe.h"' ;; vax-*-netbsd* | vax-*-openbsd*) - COREFILE=netbsd-core.lo + COREFILE=netbsd-core.lo ;; vax-*-ultrix2*) COREFILE=trad-core.lo @@ -384,6 +384,10 @@ changequote([,])dnl COREFILE=trad-core.lo TRAD_HEADER='"hosts/vaxlinux.h"' ;; + vax-*-uclinux*) + COREFILE=trad-core.lo + TRAD_HEADER='"hosts/vaxlinux.h"' + ;; vax-*-*) COREFILE=trad-core.lo TRAD_HEADER='"hosts/vaxbsd.h"' --- NEW FILE: uclibc-000000-base.patch --- diff -Nurp -x entries uClibc/extra/Configs/Config.in uClibc-hacked-vax/extra/Configs/Config.in --- uClibc/extra/Configs/Config.in 2005-05-08 15:40:19.000000000 +0200 +++ uClibc-hacked-vax/extra/Configs/Config.in 2005-05-08 13:56:47.000000000 +0200 @@ -67,6 +67,9 @@ config TARGET_sparc config TARGET_v850 bool "v850" +config TARGET_vax + bool "vax" + config TARGET_x86_64 bool "x86_64" @@ -151,6 +154,10 @@ if TARGET_v850 source "extra/Configs/Config.v850" endif +if TARGET_vax +source "extra/Configs/Config.vax" [...2707 lines suppressed...] + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#define SIGCONTEXT int _code, struct sigcontext * +#define SIGCONTEXT_EXTRA_ARGS _code, +#define GET_PC(ctx) ((void *) (ctx)->pc) +#define GET_FRAME(ctx) ((void *) __builtin_frame_address (1)) +#define GET_STACK(ctx) ((void *) (ctx)->usp) +#define CALL_SIGHANDLER(handler, signo, ctx) \ + (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx)) --- NEW FILE: gcc-000004-fix-length-PR23991.patch --- diff -Nurp src-gcc-fresh/gcc/final.c src-gcc-hacked/gcc/final.c --- src-gcc-fresh/gcc/final.c 2005-09-22 22:06:42.000000000 +0200 +++ src-gcc-hacked/gcc/final.c 2005-09-22 23:45:10.000000000 +0200 @@ -443,6 +443,8 @@ get_attr_length_1 (rtx insn ATTRIBUTE_UN return length; #else /* not HAVE_ATTR_length */ return 0; +#define insn_default_length 0 +#define insn_min_length 0 #endif /* not HAVE_ATTR_length */ } |