You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(11) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2002 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(12) |
Nov
|
Dec
|
2003 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(1) |
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(1) |
Apr
(35) |
May
(9) |
Jun
(10) |
Jul
|
Aug
(6) |
Sep
(23) |
Oct
(24) |
Nov
(18) |
Dec
(81) |
2006 |
Jan
(37) |
Feb
(2) |
Mar
(10) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(23) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Jan-Benedict G. <jb...@us...> - 2005-09-23 08:57:51
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17145 Modified Files: binutils-000001-tc_vax_c90fy.patch gcc-000003-add-vax-linux-target.patch Log Message: - Refreshing the patches, adjusting to non-BFD-assembler removal in mainline code. Index: gcc-000003-add-vax-linux-target.patch =================================================================== RCS file: /cvsroot/linux-vax/toolchain/patches/gcc-000003-add-vax-linux-target.patch,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- gcc-000003-add-vax-linux-target.patch 17 May 2005 10:13:30 -0000 1.6 +++ gcc-000003-add-vax-linux-target.patch 23 Sep 2005 08:57:43 -0000 1.7 @@ -1,27 +1,85 @@ -This patch adds vax-*-linux* as a generic VAX ELF target. We'll add the -Linux-specific definitions later. - -ChangeLog: - - * gcc/config.gcc add vax-*-linux* target - * gcc/config/vax/linux.h: add placeholder header for Linux definitions - diff -Nurp src-gcc-fresh/gcc/config/vax/linux.h src-gcc-hacked/gcc/config/vax/linux.h --- src-gcc-fresh/gcc/config/vax/linux.h 1970-01-01 01:00:00.000000000 +0100 -+++ src-gcc-hacked/gcc/config/vax/linux.h 2005-05-17 12:09:40.000000000 +0200 -@@ -0,0 +1,3 @@ ++++ src-gcc-hacked/gcc/config/vax/linux.h 2005-09-12 20:44:49.000000000 +0200 +@@ -0,0 +1,31 @@ ++#ifndef _CONFIG_VAX_LINUX_H ++/* ++ * Copyright (C) 2005 Free Software Foundation, Inc. ++ * ++ * This file is part of GCC. ++ * ++ * GCC 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, or (at your option) ++ * any later version. ++ * ++ * GCC 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 GCC; see the file COPYING. If not, write to ++ * ++ * Free Software Foundation ++ * 51 Franklin Street, Fifth Floor ++ * Boston, MA 02110-1301 ++ * USA ++ */ + -+/* Linux-specific definitions for VAX will go here */ ++/* ++ * This file contains definitions specific to Linux using GNU libc and ++ * the ELF binary format. ++ */ ++ ++#endif /* _CONFIG_VAX_LINUX_H */ +diff -Nurp src-gcc-fresh/gcc/config/vax/uclinux.h src-gcc-hacked/gcc/config/vax/uclinux.h +--- src-gcc-fresh/gcc/config/vax/uclinux.h 1970-01-01 01:00:00.000000000 +0100 ++++ src-gcc-hacked/gcc/config/vax/uclinux.h 2005-09-12 20:44:49.000000000 +0200 +@@ -0,0 +1,31 @@ ++#ifndef _CONFIG_VAX_UCLINUX_H ++/* ++ * Copyright (C) 2005 Free Software Foundation, Inc. ++ * ++ * This file is part of GCC. ++ * ++ * GCC 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, or (at your option) ++ * any later version. ++ * ++ * GCC 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 GCC; see the file COPYING. If not, write to ++ * ++ * Free Software Foundation ++ * 51 Franklin Street, Fifth Floor ++ * Boston, MA 02110-1301 ++ * USA ++ */ + ++/* ++ * This file contains definitions specific to Linux using the small uClibc ++ * and the ELF binary format. ++ */ ++ ++#endif /* _CONFIG_VAX_UCLINUX_H */ diff -Nurp src-gcc-fresh/gcc/config.gcc src-gcc-hacked/gcc/config.gcc ---- src-gcc-fresh/gcc/config.gcc 2005-05-09 20:51:44.000000000 +0200 -+++ src-gcc-hacked/gcc/config.gcc 2005-05-17 12:09:40.000000000 +0200 -@@ -2209,6 +2209,9 @@ vax-*-sysv*) # VAXen running system V +--- src-gcc-fresh/gcc/config.gcc 2005-09-12 18:58:44.000000000 +0200 ++++ src-gcc-hacked/gcc/config.gcc 2005-09-12 20:44:49.000000000 +0200 +@@ -2237,6 +2237,12 @@ vax-*-sysv*) # VAXen running system V tmake_file=vax/t-memfuncs use_fixproto=yes ;; -+vax-*-linux*) # vax running linux ELF binary format -+ tm_file="${tm_file} elfos.h linux.h vax/linux.h vax/elf.h" ++vax-*-uclinux*) # VAXen running Linux ELF with uClibc ++ tm_file="${tm_file} elfos.h linux.h vax/elf.h vax/uclinux.h" ++ ;; ++vax-*-linux*) # VAXen running Linux ELF with GNU libc ++ tm_file="${tm_file} elfos.h linux.h vax/elf.h vax/linux.h" + ;; vax-*-netbsdelf*) tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" Index: binutils-000001-tc_vax_c90fy.patch =================================================================== RCS file: /cvsroot/linux-vax/toolchain/patches/binutils-000001-tc_vax_c90fy.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- binutils-000001-tc_vax_c90fy.patch 5 Jun 2005 15:57:46 -0000 1.1 +++ binutils-000001-tc_vax_c90fy.patch 23 Sep 2005 08:57:43 -0000 1.2 @@ -1,44 +1,7 @@ -This patch removes K&Risms from tc-vax.c. - -2005-06-03 Jan-Benedict Glaw <jb...@lu...> - - gas/config/ - * tc-vax.c Big K&R update; remove unneeded parentheses at #defines; - Put #error text into quotes. - (md_begin): Add 'void' for no arguments. - (md_number_to_chars): Remove K&R argument declaration. - (md_apply_fix3): Dito. - (md_chars_to_number): Dito. - (md_assemble): Dito. - (md_estimate_size_before_relax): Dito. - (md_convert_frag): Dito. - (md_ri_to_chars): Dito. - (tc_aout_fix_to_chars): Dito. - (vip_begin): Dito. - (vip): Dito. - (vip_op_defaults): Dito. - (vip_op): Dito. - (md_create_short_jump): Dito. - (main): Dito. - (mumble): Dito. - (md_create_short_jump): Dito. - (md_create_long_jump): Dito. - (md_parse_option): Dito. - (md_show_usage): Dito. - (md_undefined_symbol): Dito. - (md_section_align): Dito. - (md_pcrel_from): Dito. - (tc_headers_hook): Dito. - (tc_gen_reloc): Dito. - (vax_reg_parse): Dito. Also, 'return' isn't a function, so remove - pointless braces around the return value. - (bignum_copy): K&R update. Also remove 'register' keyword. - (md_longopts): Add some spaces. - diff -Nurp src-binutils-fresh/gas/config/tc-vax.c src-binutils-hacked/gas/config/tc-vax.c ---- src-binutils-fresh/gas/config/tc-vax.c 2005-06-02 23:30:19.000000000 +0200 -+++ src-binutils-hacked/gas/config/tc-vax.c 2005-06-03 00:21:55.000000000 +0200 -@@ -283,7 +283,7 @@ static void vip PARAMS ((struct vit *, c +--- src-binutils-fresh/gas/config/tc-vax.c 2005-08-13 13:37:12.000000000 +0200 ++++ src-binutils-hacked/gas/config/tc-vax.c 2005-09-12 20:04:50.000000000 +0200 +@@ -279,7 +279,7 @@ static void vip PARAMS ((struct vit *, c static int vax_reg_parse PARAMS ((char, char, char, char)); void @@ -47,7 +10,7 @@ { const char *errtxt; FLONUM_TYPE *fP; -@@ -304,10 +304,7 @@ md_begin () +@@ -300,10 +300,7 @@ md_begin () } void @@ -59,24 +22,12 @@ { number_to_chars_littleendian (con, value, nbytes); } -@@ -316,10 +313,7 @@ md_number_to_chars (con, value, nbytes) - that they reference. */ - - void /* Knows about order of bytes in address. */ --md_apply_fix3 (fixP, valueP, seg) -- fixS *fixP; -- valueT *valueP; -- segT seg ATTRIBUTE_UNUSED; -+md_apply_fix3 (fixS *fixP, valueT*valueP, segT seg ATTRIBUTE_UNUSED) - { - valueT value = * valueP; - #ifdef BFD_ASSEMBLER -@@ -335,10 +329,12 @@ md_apply_fix3 (fixP, valueP, seg) +@@ -330,10 +327,12 @@ md_apply_fix (fixP, valueP, seg) fixP->fx_done = 1; } -+/* Convert a number from VAX byte order (little endian) into host -+ byte order. ++/* Convert a number from VAX byte order (little endian) ++ into host byte order. + con is the buffer to convert, + nbytes is the length of the given buffer. */ long @@ -87,7 +38,7 @@ { long retval; for (retval = 0, con += nbytes - 1; nbytes--; con--) -@@ -359,10 +355,10 @@ md_chars_to_number (con, nbytes) +@@ -354,10 +353,10 @@ md_chars_to_number (con, nbytes) */ static int @@ -102,7 +53,7 @@ { int significant_littlenums_dropped; -@@ -403,11 +399,10 @@ bignum_copy (register LITTLENUM_TYPE *in +@@ -398,11 +397,10 @@ bignum_copy (register LITTLENUM_TYPE *in return (significant_littlenums_dropped); } @@ -116,7 +67,7 @@ { /* Non-zero if operand expression's segment is not known yet. */ int is_undefined; -@@ -1284,9 +1279,7 @@ md_assemble (instruction_string) +@@ -1268,9 +1266,7 @@ md_assemble (instruction_string) Return the correct fr_subtype in the frag and the growth beyond fr_fix. */ int @@ -127,9 +78,9 @@ { if (RELAX_LENGTH (fragP->fr_subtype) == STATE_UNDF) { -@@ -1442,16 +1435,12 @@ md_estimate_size_before_relax (fragP, se +@@ -1425,10 +1421,8 @@ md_estimate_size_before_relax (fragP, se + * Caller will turn frag into a ".space 0". */ - #ifdef BFD_ASSEMBLER void -md_convert_frag (headers, seg, fragP) - bfd *headers ATTRIBUTE_UNUSED; @@ -137,18 +88,10 @@ - fragS *fragP; +md_convert_frag (bfd *headers ATTRIBUTE_UNUSED, segT seg ATTRIBUTE_UNUSED, + fragS *fragP) - #else - void --md_convert_frag (headers, seg, fragP) -- object_headers *headers ATTRIBUTE_UNUSED; -- segT seg ATTRIBUTE_UNUSED; -- fragS *fragP; -+md_convert_frag (object_headers *headers ATTRIBUTE_UNUSED, -+ segT seg ATTRIBUTE_UNUSED, fragS *fragP) - #endif { char *addressP; /* -> _var to change. */ -@@ -1601,9 +1590,7 @@ md_convert_frag (headers, seg, fragP) + char *opcodeP; /* -> opcode char(s) to change. */ +@@ -1577,9 +1571,7 @@ md_convert_frag (headers, seg, fragP) bit 0 as pcrel. */ #ifdef comment void @@ -159,20 +102,7 @@ { /* this is easy */ md_number_to_chars (the_bytes, ri.r_address, sizeof (ri.r_address)); -@@ -1620,10 +1607,8 @@ md_ri_to_chars (the_bytes, ri) - #ifdef OBJ_AOUT - #ifndef BFD_ASSEMBLER - void --tc_aout_fix_to_chars (where, fixP, segment_address_in_file) -- char *where; -- fixS *fixP; -- relax_addressT segment_address_in_file; -+tc_aout_fix_to_chars (char *where, fixS *fixP, -+ relax_addressT segment_address_in_file) - { - /* - * In: length of relocation (or of address) in chars: 1, 2 or 4. -@@ -1797,13 +1782,13 @@ static const short int vax_operand_width +@@ -1737,13 +1729,13 @@ static const short int vax_operand_width * */ #if (VIT_OPCODE_SYNTHETIC != 0x80000000) @@ -185,25 +115,26 @@ #if (VIT_OPCODE_SPECIAL != 0x40000000) - You have just broken the encoding below, which assumes the 0x40 M bit means - 'I am not to be "optimised" the way normal branches are'. -+#error "You have just broken the encoding below, which assumes the 0x40 MSB " \ -+ "bit means 'I am not to be "optimised" the way normal branches are'." ++#error "You have just broken the encoding below, which assumes the 0x40 " \ ++ "M bit means 'I am not to be "optimised" the way normal branches are'." #endif static const struct vot -@@ -1872,9 +1857,9 @@ static const struct vot +@@ -1812,9 +1804,10 @@ static const struct vot */ static const char * -vip_begin (synthetic_too, immediate, indirect, displen) - int synthetic_too; /* 1 means include jXXX op-codes. */ - const char *immediate, *indirect, *displen; -+vip_begin (int synthetic_too, /* 1 means include jXXX op-codes. */ -+ const char *immediate, -+ const char *indirect, const char *displen) ++vip_begin (int synthetic_too, ++ const char *immediate, /* 1 means include jXXX op-codes. */ ++ const char *indirect, ++ const char *displen) { const struct vot *vP; /* scan votstrs */ const char *retval = 0; /* error text */ -@@ -1920,9 +1905,8 @@ vip_begin (synthetic_too, immediate, ind +@@ -1860,9 +1853,8 @@ vip_begin (synthetic_too, immediate, ind */ static void @@ -215,7 +146,7 @@ { /* How to bit-encode this opcode. */ struct vot_wot *vwP; -@@ -2147,7 +2131,7 @@ main () +@@ -2087,7 +2079,7 @@ main () * R4 * R5 * R6 @@ -224,7 +155,7 @@ * R8 * R9 * R10 -@@ -2160,18 +2144,18 @@ main () +@@ -2100,18 +2092,19 @@ main () */ #include "safe-ctype.h" @@ -236,6 +167,8 @@ -int /* return -1 or 0:15 */ -vax_reg_parse (c1, c2, c3, c4) /* 3 chars of register name */ - char c1, c2, c3, c4; /* c3 == 0 if 2-character reg name */ +-{ +- int retval; /* return -1:15 */ +#define AP 12 +#define FP 13 +#define SP 14 @@ -244,27 +177,25 @@ +/* Returns the register number of something like '%r15' or 'ap', supplied + in four single chars. Returns -1 if the register isn't recognized, + 0..15 otherwise. */ + +- retval = -1; +int +vax_reg_parse (char c1, char c2, char c3, char c4) - { -- int retval; /* return -1:15 */ -- -- retval = -1; -+ int retval = -1; ++{ ++ int retval = -1; /* return -1:15 */ #ifdef OBJ_ELF if (c1 != '%') /* register prefixes are mandatory for ELF */ -@@ -2232,7 +2216,8 @@ vax_reg_parse (c1, c2, c3, c4) /* 3 char +@@ -2172,7 +2165,7 @@ vax_reg_parse (c1, c2, c3, c4) /* 3 char retval = PC; else retval = -1; - return (retval); -+ + return retval; } /* -@@ -2255,7 +2240,7 @@ vax_reg_parse (c1, c2, c3, c4) /* 3 char +@@ -2195,7 +2188,7 @@ vax_reg_parse (c1, c2, c3, c4) /* 3 char */ /* @@ -273,7 +204,7 @@ * * Arg block. * -@@ -2387,9 +2372,7 @@ vip_metacharacters[256] = +@@ -2327,9 +2320,7 @@ vip_metacharacters[256] = static char vip_metacharacters[256]; static void @@ -284,7 +215,7 @@ { unsigned char t; -@@ -2399,10 +2382,9 @@ vip_op_1 (bit, syms) +@@ -2339,10 +2330,8 @@ vip_op_1 (bit, syms) /* Can be called any time. More arguments may appear in future. */ static void @@ -292,19 +223,19 @@ - const char *immediate; - const char *indirect; - const char *displen; -+vip_op_defaults (const char *immediate, -+ const char *indirect, ++vip_op_defaults (const char *immediate, const char *indirect, + const char *displen) { vip_op_1 (VIP_IMMEDIATE, immediate); vip_op_1 (VIP_INDIRECT, indirect); -@@ -2470,15 +2452,11 @@ vip_op_defaults (immediate, indirect, di +@@ -2410,15 +2399,12 @@ vip_op_defaults (immediate, indirect, di * Again, I dare not explain it: just trace ALL the code! */ +/* Dissect user-input 'optext' (which is something like "@B^foo@bar(AP)[FP]:") + using the vop in vopP. vopP's vop_access and vop_width. We fill _ndx, _reg, + _mode, _short, _warn, _error, _expr_begin, _expr_end and _nbytes. */ ++ static void -vip_op (optext, vopP) - /* user's input string e.g.: "@B^foo@bar(AP)[FP]:" */ @@ -318,7 +249,7 @@ { /* track operand text forward */ char *p; -@@ -3173,7 +3151,8 @@ char my_immediate[200]; +@@ -3113,7 +3099,8 @@ char my_immediate[200]; char my_indirect[200]; char my_displen[200]; @@ -328,7 +259,7 @@ { printf ("enter immediate symbols eg enter # "); gets (my_immediate); -@@ -3259,9 +3238,8 @@ main () +@@ -3199,9 +3186,8 @@ main () } } @@ -336,12 +267,12 @@ - char *text; - int value; +void -+mumble (char *text, int value) ++mumble (char *text, intvalue) { printf ("%s:", text); if (value >= 0) -@@ -3280,12 +3258,10 @@ int md_long_jump_size = 6; - const int md_reloc_size = 8; /* Size of relocation record */ +@@ -3219,12 +3205,10 @@ int md_short_jump_size = 3; + int md_long_jump_size = 6; void -md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol) @@ -357,7 +288,7 @@ { valueT offset; -@@ -3299,12 +3275,8 @@ md_create_short_jump (ptr, from_addr, to +@@ -3238,12 +3222,8 @@ md_create_short_jump (ptr, from_addr, to } void @@ -372,15 +303,15 @@ { valueT offset; -@@ -3325,16 +3297,14 @@ const char *md_shortopts = "d:STt:V"; +@@ -3264,16 +3244,14 @@ const char *md_shortopts = "d:STt:V"; struct option md_longopts[] = { #ifdef OBJ_ELF #define OPTION_PIC (OPTION_MD_BASE) - {"pic", no_argument, NULL, OPTION_PIC}, -+ { "pic", no_argument, NULL, OPTION_PIC }, ++ { "pic", no_argument, NULL, OPTION_PIC, }, #endif - {NULL, no_argument, NULL, 0} -+ { NULL, no_argument, NULL, 0 } ++ { NULL, no_argument, NULL, 0, }, }; size_t md_longopts_size = sizeof (md_longopts); @@ -392,7 +323,7 @@ { switch (c) { -@@ -3409,8 +3379,7 @@ md_parse_option (c, arg) +@@ -3348,8 +3326,7 @@ md_parse_option (c, arg) } void @@ -402,7 +333,7 @@ { fprintf (stream, _("\ VAX options:\n\ -@@ -3435,17 +3404,14 @@ VMS options:\n\ +@@ -3374,17 +3351,14 @@ VMS options:\n\ /* We have no need to default values of symbols. */ symbolS * @@ -422,7 +353,7 @@ { return size; /* Byte alignment is fine */ } -@@ -3454,8 +3420,7 @@ md_section_align (segment, size) +@@ -3393,16 +3367,13 @@ md_section_align (segment, size) On the vax, they're relative to the address of the offset, plus its size. */ long @@ -432,19 +363,7 @@ { return fixP->fx_size + fixP->fx_where + fixP->fx_frag->fr_address; } -@@ -3463,8 +3428,7 @@ md_pcrel_from (fixP) - #ifdef OBJ_AOUT - #ifndef BFD_ASSEMBLER - void --tc_headers_hook(headers) -- object_headers *headers; -+tc_headers_hook (object_headers *headers) - { - #ifdef TE_NetBSD - N_SET_INFO(headers->header, OMAGIC, M_VAX4K_NETBSD, 0); -@@ -3476,9 +3440,7 @@ tc_headers_hook(headers) - #ifdef BFD_ASSEMBLER arelent * -tc_gen_reloc (section, fixp) - asection *section ATTRIBUTE_UNUSED; |
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 */ } |
From: Jan-Benedict G. <jb...@us...> - 2005-08-20 19:21:46
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2238 Modified Files: build_toolchain.sh Log Message: - Only create scrip for sending the check summary if checking was actually requested (as in: not turned off). Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- build_toolchain.sh 6 Aug 2005 23:52:33 -0000 1.14 +++ build_toolchain.sh 20 Aug 2005 19:21:38 -0000 1.15 @@ -456,7 +456,7 @@ # Create a test summary to be sent as a proof that the vax-linux # community exists and is still alive. - "${GCC_SRC}/contrib/test_summary" -m bin...@so... > "${ALL_BASE}/send_binutils_summary.sh" + build "${DO_CHECKS_BINUTILS}" && "${GCC_SRC}/contrib/test_summary" -m bin...@so... > "${ALL_BASE}/send_binutils_summary.sh" popd # @@ -500,6 +500,6 @@ # Create a test summary to be sent as a proof that the vax-linux # community exists and is still alive. - "${GCC_SRC}/contrib/test_summary" -m gcc...@gc... > "${ALL_BASE}/send_gcc_summary.sh" + build "${DO_CHECKS_GCC}" && "${GCC_SRC}/contrib/test_summary" -m gcc...@gc... > "${ALL_BASE}/send_gcc_summary.sh" popd |
From: Jan-Benedict G. <jb...@us...> - 2005-08-06 23:52:44
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21701 Modified Files: build_toolchain.sh Log Message: - Add missing '&&'. - German speak: "Alles wird gut. Morgen. Morgen wird alles gut." Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- build_toolchain.sh 6 Aug 2005 22:32:05 -0000 1.13 +++ build_toolchain.sh 6 Aug 2005 23:52:33 -0000 1.14 @@ -180,7 +180,7 @@ # # Echo configuration # -[ 1 -eq 1 ] echo " Target: ${TARGET}" +[ 1 -eq 1 ] && echo " Target: ${TARGET}" [ "${DO_TIMESTAMP_BINUTILS}" -ne 0 ] && echo " Binutils timestamp: ${TIMESTAMP_BINUTILS}" [ "${DO_TIMESTAMP_BINUTILS}" -eq 0 ] && echo " Binutils timestamp: last known" [ "${DO_TIMESTAMP_GCC}" -ne 0 ] && echo " GCC timestamp: ${TIMESTAMP_GCC}" |
From: Jan-Benedict G. <jb...@us...> - 2005-08-06 22:32:14
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11681 Modified Files: build_toolchain.sh Log Message: - Re-add the line I constantly keep deleting... - Add a reminder for poor old JBG to not delete this line. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- build_toolchain.sh 6 Aug 2005 22:29:09 -0000 1.12 +++ build_toolchain.sh 6 Aug 2005 22:32:05 -0000 1.13 @@ -180,6 +180,7 @@ # # Echo configuration # +[ 1 -eq 1 ] echo " Target: ${TARGET}" [ "${DO_TIMESTAMP_BINUTILS}" -ne 0 ] && echo " Binutils timestamp: ${TIMESTAMP_BINUTILS}" [ "${DO_TIMESTAMP_BINUTILS}" -eq 0 ] && echo " Binutils timestamp: last known" [ "${DO_TIMESTAMP_GCC}" -ne 0 ] && echo " GCC timestamp: ${TIMESTAMP_GCC}" |
From: Jan-Benedict G. <jb...@us...> - 2005-08-06 22:29:20
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11224 Modified Files: build_toolchain.sh Log Message: - Check if needed tools are installed. Credit to Maximilian Wilhelm. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- build_toolchain.sh 6 Aug 2005 21:26:44 -0000 1.11 +++ build_toolchain.sh 6 Aug 2005 22:29:09 -0000 1.12 @@ -2,6 +2,9 @@ set -e +# +# Test if some paths are set and correct +# if [ ! -d "${VAX_PATCHES_PATH}" ]; then echo "\$VAX_PATCHES_PATH isn't set--please source vax_toolchain_config" >&2 exit 1 @@ -17,6 +20,18 @@ # +# Test if all required tools are installed. +# +REQ_TOOLS="flex bison" +for tool in $REQ_TOOLS; do + if ! which $tool > /dev/null; then + echo "Error: $tool is required by `basename $0` but was not found on your system." >&2 + exit 1 + fi +done + + +# # -Werror behavior # # WERROR="--disable-werror" @@ -165,7 +180,6 @@ # # Echo configuration # - echo " Target: ${TARGET}" [ "${DO_TIMESTAMP_BINUTILS}" -ne 0 ] && echo " Binutils timestamp: ${TIMESTAMP_BINUTILS}" [ "${DO_TIMESTAMP_BINUTILS}" -eq 0 ] && echo " Binutils timestamp: last known" [ "${DO_TIMESTAMP_GCC}" -ne 0 ] && echo " GCC timestamp: ${TIMESTAMP_GCC}" |
From: Jan-Benedict G. <jb...@us...> - 2005-08-06 21:26:52
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1185 Modified Files: build_toolchain.sh Log Message: - Remove REPO_BASE_PATH, which isn't needed any longer. Thanks to Maximilian Wilhelm for spotting this. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- build_toolchain.sh 26 Jun 2005 12:03:31 -0000 1.10 +++ build_toolchain.sh 6 Aug 2005 21:26:44 -0000 1.11 @@ -2,8 +2,6 @@ set -e -REPO_BASE_PATH=/home/jbglaw/vax-linux/scm/cvs-repos - if [ ! -d "${VAX_PATCHES_PATH}" ]; then echo "\$VAX_PATCHES_PATH isn't set--please source vax_toolchain_config" >&2 exit 1 |
From: Jan-Benedict G. <jb...@us...> - 2005-08-03 20:15:44
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30559 Modified Files: update_upstream_cvs_sandboxes.sh Log Message: - Trade CPU cycles for bandwidth. Index: update_upstream_cvs_sandboxes.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/update_upstream_cvs_sandboxes.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- update_upstream_cvs_sandboxes.sh 5 Jun 2005 16:06:40 -0000 1.2 +++ update_upstream_cvs_sandboxes.sh 3 Aug 2005 20:15:36 -0000 1.3 @@ -12,7 +12,7 @@ glibc/ports-upstream-HEAD \ gcc/gcc-upstream-HEAD; do pushd "${UPSTREAM_SANDBOXES_PATH}/${COMPONENT}" - if ! cvs update -d -P; then + if ! cvs -z9 update -d -P; then echo "Failed to update $COMPONENT" >&2 exit 1 fi |
From: Jan-Benedict G. <jb...@us...> - 2005-06-26 12:03:40
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12501 Modified Files: build_toolchain.sh Log Message: - Allow building powerpc-linux Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- build_toolchain.sh 6 Jun 2005 07:41:29 -0000 1.9 +++ build_toolchain.sh 26 Jun 2005 12:03:31 -0000 1.10 @@ -224,6 +224,8 @@ ;; i*86-linux) ;; + powerpc*linux) + ;; *) echo "Configuration \"${TARGET}\" unknown..." >&2 false |
From: Jan-Benedict G. <jb...@us...> - 2005-06-06 07:41:40
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4873 Modified Files: build_toolchain.sh Log Message: - Pretty-print uClibc status. - Print out that we're about to sleep a bit. - Call the test_summary script to produce the email shell script for sending build reports to the FSF. Though, the script isn't actually called, that's up to you. Please keep in mind that the binutils part isn't all that bad at all, but gcc/g++ print out alot of FAILs because we're still missing a libc. The gcc-testresults mailing list has got a limit of 400K, so sending gcc status reports won't work right now (~1M in size). Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- build_toolchain.sh 5 Jun 2005 16:36:46 -0000 1.8 +++ build_toolchain.sh 6 Jun 2005 07:41:29 -0000 1.9 @@ -174,6 +174,8 @@ [ "${DO_TIMESTAMP_GCC}" -eq 0 ] && echo " GCC timestamp: last known" [ "${DO_TIMESTAMP_GLIBC}" -ne 0 ] && echo " Glibc timestamp: ${TIMESTAMP_GLIBC}" [ "${DO_TIMESTAMP_GLIBC}" -eq 0 ] && echo " Glibc timestamp: last known" +[ "${DO_TIMESTAMP_UCLIBC}" -ne 0 ] && echo " uClibc timestamp: ${TIMESTAMP_UCLIBC}" +[ "${DO_TIMESTAMP_UCLIBC}" -eq 0 ] && echo " uClibc timestamp: last known" [ "${DO_PATCHES_BINUTILS}" -ne 0 ] && echo " Patch Binutils: yes" [ "${DO_PATCHES_BINUTILS}" -eq 0 ] && echo " Patch Binutils: no" [ "${DO_PATCHES_GCC}" -ne 0 ] && echo " Patch Gcc: yes" @@ -182,12 +184,16 @@ [ "${DO_PATCHES_GLIBC}" -eq 0 ] && echo " Patch Glibc: no" [ "${DO_PATCHES_PORTS}" -ne 0 ] && echo " Patch Glibc-Ports: yes" [ "${DO_PATCHES_PORTS}" -eq 0 ] && echo " Patch Glibc-Ports: no" +[ "${DO_PATCHES_UCLIBC}" -ne 0 ] && echo " Patch uClibc: yes" +[ "${DO_PATCHES_UCLIBC}" -eq 0 ] && echo " Patch uClibc: no" [ "${DO_CHECKS_BINUTILS}" -ne 0 ] && echo " Check Binutils: yes" [ "${DO_CHECKS_BINUTILS}" -eq 0 ] && echo " Check Binutils: no" [ "${DO_CHECKS_GCC}" -ne 0 ] && echo " Check GCC: yes" [ "${DO_CHECKS_GCC}" -eq 0 ] && echo " Check GCC: no" [ "${DO_CHECKS_GLIBC}" -ne 0 ] && echo " Check GNU libc: yes" [ "${DO_CHECKS_GLIBC}" -eq 0 ] && echo " Check GNU libc: no" +[ "${DO_CHECKS_UCLIBC}" -ne 0 ] && echo " Check uClibc: yes" +[ "${DO_CHECKS_UCLIBC}" -eq 0 ] && echo " Check uClibc: no" # @@ -262,6 +268,7 @@ fi RESTART_LOOP=$(( ${RESTART_LOOP} + 1 )) + echo '(Sleeping 20sec because of failure)' sleep 20 done @@ -431,6 +438,10 @@ build "${BUILD_BINUTILS}" && execute make ${MAKEFLAGS} install-binutils build "${BUILD_LD}" && execute make ${MAKEFLAGS} install-ld build "${BUILD_GAS}" && execute make ${MAKEFLAGS} install-gas + + # Create a test summary to be sent as a proof that the vax-linux + # community exists and is still alive. + "${GCC_SRC}/contrib/test_summary" -m bin...@so... > "${ALL_BASE}/send_binutils_summary.sh" popd # @@ -471,5 +482,9 @@ # Install build "${BUILD_GCC1}" && execute make ${MAKEFLAGS} install-gcc + + # Create a test summary to be sent as a proof that the vax-linux + # community exists and is still alive. + "${GCC_SRC}/contrib/test_summary" -m gcc...@gc... > "${ALL_BASE}/send_gcc_summary.sh" popd |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:37:06
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5710 Modified Files: build_toolchain.sh Log Message: - First lines of code to also handle uClibc. Though, it's not yet being built. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- build_toolchain.sh 22 May 2005 15:32:37 -0000 1.7 +++ build_toolchain.sh 5 Jun 2005 16:36:46 -0000 1.8 @@ -21,8 +21,8 @@ # # -Werror behavior # -WERROR="--disable-werror" -# WERROR="" +# WERROR="--disable-werror" +WERROR="" # # Flags for make. @@ -42,13 +42,16 @@ DO_TIMESTAMP_GCC=0 DO_TIMESTAMP_GLIBC=0 DO_TIMESTAMP_PORTS=0 +DO_TIMESTAMP_UCLIBC=0 DO_PATCHES_BINUTILS=1 DO_PATCHES_GCC=1 DO_PATCHES_GLIBC=1 DO_PATCHES_PORTS=1 +DO_PATCHES_UCLIBC=1 DO_CHECKS_BINUTILS=1 DO_CHECKS_GCC=1 DO_CHECKS_GLIBC=1 +DO_CHECKS_UCLIBC=1 # # @@ -63,9 +66,11 @@ TIMESTAMP_GCC="${1}" TIMESTAMP_GLIBC="${1}" TIMESTAMP_PORTS="${1}" + TIMESTAMP_UCLIBC="${1}" DO_TIMESTAMP_BINUTILS=1 DO_TIMESTAMP_GCC=1 DO_TIMESTAMP_GLIBC=1 + DO_TIMESTAMP_UCLIBC=1 shift ;; --binutils-timestamp) @@ -86,12 +91,19 @@ DO_TIMESTAMP_GLIBC=1 shift ;; + --uclibc-timestamp|--uClibc-timestamp) + shift + TIMESTAMP_UCLIBC="${1}" + DO_TIMESTAMP_UCLIBC=1 + shift + ;; --omit-patches) shift DO_PATCHES_BINUTILS=0 DO_PATCHES_GCC=0 DO_PATCHES_GLIBC=0 DO_PATCHES_PORTS=0 + DO_PATCHES_UCLIBC=0 ;; --omit-binutils-patches) shift @@ -109,11 +121,16 @@ shift DO_PATCHES_PORTS=0 ;; + --omit-uclibc-patches|--omit-uClibc-patches) + shift + DO_PATCHES_UCLIBC=0 + ;; --omit-checks) shift DO_CHECKS_BINUTILS=0 DO_CHECKS_GCC=0 DO_CHECKS_GLIBC=0 + DO_CHECKS_UCLIBC=0 ;; --omit-binutils-checks) shift @@ -127,12 +144,16 @@ shift DO_CHECKS_GLIBC=0 ;; + --omit-uclibc-checks|--omit-uClibc-checks) + shift + DO_CHECKS_UCLIBC=0 + ;; -*) echo >&2 echo "Unrecognized option \"${1}\"" >&2 echo >&2 echo "Hint:" >&2 - echo "$0 [--timestamp | --{binutils,glibc,gcc}-timestamp | --omit-patches | --omit-{gcc,glibc,binutils,ports}-patches | --omit-checks | --omit-{binutils,gcc,glibc}-checks] <target>" >&2 + echo "$0 [--timestamp | --{binutils,glibc,gcc,uclibc}-timestamp | --omit-patches | --omit-{gcc,glibc,binutils,ports,uclibc}-patches | --omit-checks | --omit-{binutils,gcc,glibc,uclibc}-checks] <target>" >&2 echo "Target defaults to: ${TARGET}" >&2 exit 1 ;; @@ -182,7 +203,10 @@ vax*ultrix) GCC1_EXTRA_LANGUAGES=",c++" ;; - vax*linux) + vax*linux-*) + GCC1_EXTRA_LANGUAGES=",c++" + ;; + vax*linux|vax*linux-gnu) GCC1_EXTRA_LANGUAGES=",c++" ;; vax*netbsd) @@ -271,6 +295,7 @@ GLIBC_CVS="${UPSTREAM_SANDBOXES_PATH}/glibc/libc-upstream-HEAD" GLIBC_PORTS_CVS="${UPSTREAM_SANDBOXES_PATH}/glibc/ports-upstream-HEAD" GCC_CVS="${UPSTREAM_SANDBOXES_PATH}/gcc/gcc-upstream-HEAD" +UCLIBC_SVN="${UPSTREAM_SANDBOXES_PATH}/uclibc/uclibc-upstream-HEAD" # # @@ -289,11 +314,13 @@ BINUTILS_SRC="${SRC_BASE}/binutils" GLIBC_SRC="${SRC_BASE}/glibc" GCC_SRC="${SRC_BASE}/gcc" +UCLIBC_SRC="${SRC_BASE}/uclibc" BINUTILS_BUILD="${BUILD_BASE}/binutils" GCC1_BUILD="${BUILD_BASE}/gcc1" GLIBC_BUILD="${BUILD_BASE}/glibc" GCC2_BUILD="${BUILD_BASE}/gcc2" +UCLIBC_BUILD="${BUILD_BASE}/uclibc" # # Create all the directories @@ -305,10 +332,12 @@ mkdir "${BINUTILS_SRC}"; BINUTILS_SRC="`check_path "${BINUTILS_SRC}"`" mkdir "${GLIBC_SRC}"; GLIBC_SRC="`check_path "${GLIBC_SRC}"`" mkdir "${GCC_SRC}"; GCC_SRC="`check_path "${GCC_SRC}"`" +mkdir "${UCLIBC_SRC}"; UCLIBC_SRC="`check_path "${UCLIBC_SRC}"`" mkdir "${BINUTILS_BUILD}"; BINUTILS_BUILD="`check_path "${BINUTILS_BUILD}"`" mkdir "${GCC1_BUILD}"; GCC1_BUILD="`check_path "${GCC1_BUILD}"`" mkdir "${GLIBC_BUILD}"; GLIBC_BUILD="`check_path "${GLIBC_BUILD}"`" mkdir "${GCC2_BUILD}"; GCC2_BUILD="`check_path "${GCC2_BUILD}"`" +mkdir "${UCLIBC_BUILD}"; UCLIBC_BUILD="`check_path "${UCLIBC_BUILD}"`" # # Copy pristine sources @@ -317,6 +346,7 @@ copy_directory.sh "${GLIBC_CVS}" "${GLIBC_SRC}" copy_directory.sh "${GLIBC_PORTS_CVS}" "${GLIBC_SRC}" copy_directory.sh "${GCC_CVS}" "${GCC_SRC}" +copy_directory.sh "${UCLIBC_SVN}" "${UCLIBC_SRC}" # # Possibly force specific CVS timestamps @@ -336,13 +366,21 @@ execute --restart 6 cvs -z9 update -d -P -D "${TIMESTAMP_GLIBC}" popd fi +if [ "${DO_TIMESTAMP_UCLIBC}" -ne 0 ]; then + pushd "${UCLIBC_SRC}" + echo "Updating sources with SVN to reflect the state of a given timestamp hasn't ever been tested\!" >&2 + execute --restart 6 svn update -r "{${TIMESTAMP_UCLIBC}}" + popd +fi + # # Patch sources with our local patches # -[ "${DO_PATCHES_BINUTILS}" -ne 0 ] && execute try_patches.sh "binutils" "${BINUTILS_SRC}" "${VAX_PATCHES_PATH}" -[ "${DO_PATCHES_GCC}" -ne 0 ] && execute try_patches.sh "gcc" "${GCC_SRC}" "${VAX_PATCHES_PATH}" -[ "${DO_PATCHES_GLIBC}" -ne 0 ] && execute try_patches.sh "glibc" "${GLIBC_SRC}" "${VAX_PATCHES_PATH}" -[ "${DO_PATCHES_PORTS}" -ne 0 ] && execute try_patches.sh "ports" "${GLIBC_SRC}" "${VAX_PATCHES_PATH}" +[ "${DO_PATCHES_BINUTILS}" -ne 0 ] && execute try_patches.sh "binutils" "${BINUTILS_SRC}" "${VAX_PATCHES_PATH}" +[ "${DO_PATCHES_GCC}" -ne 0 ] && execute try_patches.sh "gcc" "${GCC_SRC}" "${VAX_PATCHES_PATH}" +[ "${DO_PATCHES_GLIBC}" -ne 0 ] && execute try_patches.sh "glibc" "${GLIBC_SRC}" "${VAX_PATCHES_PATH}" +[ "${DO_PATCHES_PORTS}" -ne 0 ] && execute try_patches.sh "ports" "${GLIBC_SRC}" "${VAX_PATCHES_PATH}" +[ "${DO_PATCHES_UCLIBC}" -ne 0 ] && execute try_patches.sh "uclibc" "${UCLIBC_SRC}" "${VAX_PATCHES_PATH}" # |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:24:39
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30857 Modified Files: README Log Message: - Finally update the README, too, to reflect the newly added uClibc repo. Index: README =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/README,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- README 15 Apr 2005 10:48:17 -0000 1.10 +++ README 5 Jun 2005 16:24:29 -0000 1.11 @@ -8,11 +8,12 @@ vax_toolchain_config ~~~~~~~~~~~~~~~~~~~~ This script is ment to be sourced by you into your shell. It'll set some -environment variables (where to find patches, CVS sandboxes, build space, ...) -Please feel free to add your pathes and check it in. This script will -always look a bit messy, so don't care about it... Also, the very first -thing you'd do it to actually source it, because all other scripts depend on -the variables being set here. To source this file, use this: +environment variables (where to find patches, CVS/SVN sandboxes, build +space, ...) Please feel free to add your pathes and check it in. This +script will always look a bit messy, so don't care about it... Also, the +very first thing you'd do it to actually source it, because all other +scripts depend on the variables being set here. To source this file, use +this: $ . /path/to/vax_toolchain_config @@ -25,14 +26,14 @@ prepare_toolchain_hacking.sh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This script copies the locally checked-out upstream sandbox for named -components (binutils, gcc, glibc, ports) and--if requested--applies -all VAX-specific patches. You'd call this script like: +components (binutils, gcc, glibc, ports, uclibc) and--if requested-- +applies all VAX-specific patches. You'd call this script like: $ prepare_toolchain_hacking.sh add_new_documentation gcc+patches This will create a directory ./add_new_documentation/ containing two -copies of the upstream CVS sandboxes, src-COMPONENT-fresh/ and -src-COMPONENT-hacked/ . Please do all your hacking in the *-hacked/ +copies of the upstream CVS sandboxes, src-$COMPONENT-fresh/ and +src-$COMPONENT-hacked/ . Please do all your hacking in the *-hacked/ directory. You can later on diff out your changes with: $ diff -Nurp src-COMPONENT-* > add_new_documentation.patch @@ -62,30 +63,34 @@ - Apply patches if you didn't ask for omitting this step - configure & build & check & install binutils - configure & build & check & install first-stage GCC + - Maybe it'll try other components (like glibc/uclibc and another + run on gcc for including userspace support). This script knows quite some command line arguments. Maybe call it once with --help... The last argument is the target to build for, which defaults to -vax-linux. +vax-linux. If you don't want to do specific things (like tracking down +breakages using binary search) you don't need any arguments at all. Just run +it. initial_cvs_checkout.sh ~~~~~~~~~~~~~~~~~~~~~~~ -This script will check out all upstream CVS repos for you and place them +This script will check out all upstream CVS/SVN repos for you and place them into the $UPSTREAM_SANDBOXES_PATH path. update_upstream_cvs_sandboxes.sh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This script will update all your checked-out upstream CVS sandboxes to -their respective HEAD versions. You'd run it everytime before you start -a build, prepare for hacking or whatever. +This script will update all your checked-out upstream CVS/SVN sandboxes to +their respective HEAD versions. You'd run it everytime before you start a +build, prepare for hacking or whatever. generate_upstream_patches.sh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can use this script to diff out the *-HEAD/ sandboxes with the *-HEAD-last/ sandboxes. This will, however, _not_ update the *-HEAD-last/ -sandboxes! The broken out patches will be placed into ${UPSTREAM_PATCHES_PATH}. +sandboxes! The broken out patches will be placed into $UPSTREAM_PATCHES_PATH. generate_and_apply_upstream_patches.sh @@ -98,12 +103,12 @@ try_patches.sh ~~~~~~~~~~~~~~ -This script gets three arguments (component (like binutils, gcc, glibc, ports), -the directory containing sources to be patched and a directory containing -patches). All patches (in the patches directory) are expected to follow this -filename convention: +This script gets three arguments (component (like binutils, gcc, glibc, ports +or uclibc), the directory containing sources to be patched and a directory +containing patches). All patches (in the patches directory) are expected to +follow this filename convention: - ${3}/COMPONENT-nnnnnn-some_description.patch + ${3}/$COMPONENT-nnnnnn-some_description.patch copy_directory.sh |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:19:09
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27988 Modified Files: vax_toolchain_config Log Message: - Mention the uClibc sandboxes, too. Index: vax_toolchain_config =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/vax_toolchain_config,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- vax_toolchain_config 20 Apr 2005 18:56:18 -0000 1.6 +++ vax_toolchain_config 5 Jun 2005 16:18:58 -0000 1.7 @@ -21,12 +21,14 @@ # ${UPSTREAM_SANDBOXES_PATH}/glibc/libc-upstream-HEAD-last/ # ${UPSTREAM_SANDBOXES_PATH}/glibc/ports-upstream-HEAD/ # ${UPSTREAM_SANDBOXES_PATH}/glibc/ports-upstream-HEAD-last/ +# ${UPSTREAM_SANDBOXES_PATH}/uclibc/uclibc-upstream-HEAD/ +# ${UPSTREAM_SANDBOXES_PATH}/uclibc/uclibc-upstream-HEAD-last/ # # Initially, the *-HEAD/ and *-HEAD-last/ should contain identical # content. (So please checkout *-HEAD/ and then copy over the content # to the other directory. Do _not_ do a fresh checkout into the # *-HEAD-last/ directory since somebody might check in changes in -# between. +# between or something.) # # There's a reason for having two copies of the sandboxes. The pure # *-HEAD/ version is used as the "current" state. If sources are about @@ -62,8 +64,8 @@ # When you run a build, a directory below ${BUILD_BASE_DIR} will be # created to contain: # -# ${BUILD_BASE_DIR}/build-20050414-181818-vax-linux/src/{binutils,gcc,glibc}/ -# ${BUILD_BASE_DIR}/build-20050414-181818-vax-linux/build/{binutils,gcc1,gcc2glibc}/ +# ${BUILD_BASE_DIR}/build-20050414-181818-vax-linux/src/{binutils,gcc,glibc,uclibc}/ +# ${BUILD_BASE_DIR}/build-20050414-181818-vax-linux/build/{binutils,gcc1,gcc2,glibc,uclibc}/ # ${BUILD_BASE_DIR}/build-20050414-181818-vax-linux/install/usr/bin/... # # The src/ directories will contain patched sources, containing all |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:16:07
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26442 Modified Files: prepare_toolchain_hacking.sh Log Message: - Allow uClibc hacking, too. Index: prepare_toolchain_hacking.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/prepare_toolchain_hacking.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- prepare_toolchain_hacking.sh 14 Apr 2005 20:33:47 -0000 1.1 +++ prepare_toolchain_hacking.sh 5 Jun 2005 16:15:58 -0000 1.2 @@ -44,6 +44,11 @@ DEST_BASE="`pwd`/src-ports" COMPONENT=ports ;; + uclibc*|uClibc*) + SRC_DIR="${UPSTREAM_SANDBOXES_PATH}/uclibc/uclibc-upstream-HEAD" + DEST_BASE="`pwd`/src-uclibc" + COMPONENT=uclibc + ;; *) echo "\"${1}\" is an unknown component." >&2 SRC_DIR="" |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:13:33
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25141 Modified Files: generate_and_apply_upstream_patches.sh generate_upstream_patches.sh Log Message: - Don't omit the uClibc upstream repository. Index: generate_and_apply_upstream_patches.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/generate_and_apply_upstream_patches.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- generate_and_apply_upstream_patches.sh 15 Apr 2005 08:43:17 -0000 1.3 +++ generate_and_apply_upstream_patches.sh 5 Jun 2005 16:13:23 -0000 1.4 @@ -21,8 +21,8 @@ diff -Nurp "`basename "${COMPONENT}"`-last" \ "`basename "${COMPONENT}"`" \ > "${UPSTREAM_PATCHES_PATH}/`basename "${COMPONENT}"`-${NOW}.patch" || true - diff -Nurp -x CVS "`basename "${COMPONENT}"`-last" \ - "`basename "${COMPONENT}"`" \ + diff -Nurp -x CVS -x .svn "`basename "${COMPONENT}"`-last" \ + "`basename "${COMPONENT}"`" \ > "${UPSTREAM_PATCHES_PATH}/`basename "${COMPONENT}"`-${NOW}-nocvs.patch" || true popd Index: generate_upstream_patches.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/generate_upstream_patches.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- generate_upstream_patches.sh 15 Apr 2005 08:43:18 -0000 1.4 +++ generate_upstream_patches.sh 5 Jun 2005 16:13:23 -0000 1.5 @@ -16,13 +16,14 @@ for COMPONENT in binutils/binutils-upstream-HEAD \ glibc/libc-upstream-HEAD \ glibc/ports-upstream-HEAD \ - gcc/gcc-upstream-HEAD; do + gcc/gcc-upstream-HEAD \ + uclibc/uclibc-upstream-HEAD; do pushd "${UPSTREAM_SANDBOXES_PATH}/`dirname "${COMPONENT}"`" diff -Nurp "`basename "${COMPONENT}"`-last" \ "`basename "${COMPONENT}"`" \ > "${UPSTREAM_PATCHES_PATH}/`basename "${COMPONENT}"`-${NOW}.patch" || true - diff -Nurp -x CVS "`basename "${COMPONENT}"`-last" \ - "`basename "${COMPONENT}"`" \ + diff -Nurp -x CVS -x .svn "`basename "${COMPONENT}"`-last" \ + "`basename "${COMPONENT}"`" \ > "${UPSTREAM_PATCHES_PATH}/`basename "${COMPONENT}"`-${NOW}-nocvs.patch" || true popd |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:07:05
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21499 Modified Files: update_upstream_cvs_sandboxes.sh Log Message: - Update uClibc's SVN sandbox, too. Index: update_upstream_cvs_sandboxes.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/update_upstream_cvs_sandboxes.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- update_upstream_cvs_sandboxes.sh 14 Apr 2005 20:41:39 -0000 1.1 +++ update_upstream_cvs_sandboxes.sh 5 Jun 2005 16:06:40 -0000 1.2 @@ -19,3 +19,12 @@ popd done +for COMPONENT in uclibc/uclibc-upstream-HEAD; do + pushd "${UPSTREAM_SANDBOXES_PATH}/${COMPONENT}" + if ! svn update; then + echo "Failed to update $COMPONENT" >&2 + exit 1 + fi + popd +done + |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 16:05:10
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20703 Modified Files: initial_cvs_checkout.sh Log Message: - Also checkout the SVN tree of uClibc. Index: initial_cvs_checkout.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/initial_cvs_checkout.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- initial_cvs_checkout.sh 17 Apr 2005 20:42:06 -0000 1.2 +++ initial_cvs_checkout.sh 5 Jun 2005 16:05:00 -0000 1.3 @@ -13,6 +13,7 @@ mkdir binutils mkdir gcc mkdir glibc + mkdir uclibc pushd binutils echo "If you're asked for a password right now, please answer with \"anoncvs\"" @@ -45,5 +46,11 @@ mkdir ports-upstream-HEAD-last copy_directory.sh ports-upstream-HEAD ports-upstream-HEAD-last popd + + pushd uclibc + svn co svn://uclibc.org/trunk/uClibc uclibc-upstream-HEAD + mkdir uclibc-upstream-HEAD-last + copy_directory.sh uclibc-upstream-HEAD uclibc-upstream-HEAD-last + popd popd |
From: Jan-Benedict G. <jb...@us...> - 2005-06-05 15:57:55
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17068 Added Files: binutils-000001-tc_vax_c90fy.patch Log Message: - Convert some code to ISO C90. --- NEW FILE: binutils-000001-tc_vax_c90fy.patch --- This patch removes K&Risms from tc-vax.c. 2005-06-03 Jan-Benedict Glaw <jb...@lu...> gas/config/ * tc-vax.c Big K&R update; remove unneeded parentheses at #defines; Put #error text into quotes. (md_begin): Add 'void' for no arguments. (md_number_to_chars): Remove K&R argument declaration. (md_apply_fix3): Dito. (md_chars_to_number): Dito. (md_assemble): Dito. (md_estimate_size_before_relax): Dito. (md_convert_frag): Dito. (md_ri_to_chars): Dito. (tc_aout_fix_to_chars): Dito. (vip_begin): Dito. (vip): Dito. (vip_op_defaults): Dito. (vip_op): Dito. (md_create_short_jump): Dito. (main): Dito. (mumble): Dito. (md_create_short_jump): Dito. (md_create_long_jump): Dito. (md_parse_option): Dito. (md_show_usage): Dito. (md_undefined_symbol): Dito. (md_section_align): Dito. (md_pcrel_from): Dito. (tc_headers_hook): Dito. (tc_gen_reloc): Dito. (vax_reg_parse): Dito. Also, 'return' isn't a function, so remove pointless braces around the return value. (bignum_copy): K&R update. Also remove 'register' keyword. (md_longopts): Add some spaces. diff -Nurp src-binutils-fresh/gas/config/tc-vax.c src-binutils-hacked/gas/config/tc-vax.c --- src-binutils-fresh/gas/config/tc-vax.c 2005-06-02 23:30:19.000000000 +0200 +++ src-binutils-hacked/gas/config/tc-vax.c 2005-06-03 00:21:55.000000000 +0200 @@ -283,7 +283,7 @@ static void vip PARAMS ((struct vit *, c static int vax_reg_parse PARAMS ((char, char, char, char)); void -md_begin () +md_begin (void) { const char *errtxt; FLONUM_TYPE *fP; @@ -304,10 +304,7 @@ md_begin () } void -md_number_to_chars (con, value, nbytes) - char con[]; - valueT value; - int nbytes; +md_number_to_chars (char con[], valueT value, int nbytes) { number_to_chars_littleendian (con, value, nbytes); } @@ -316,10 +313,7 @@ md_number_to_chars (con, value, nbytes) that they reference. */ void /* Knows about order of bytes in address. */ -md_apply_fix3 (fixP, valueP, seg) - fixS *fixP; - valueT *valueP; - segT seg ATTRIBUTE_UNUSED; +md_apply_fix3 (fixS *fixP, valueT*valueP, segT seg ATTRIBUTE_UNUSED) { valueT value = * valueP; #ifdef BFD_ASSEMBLER @@ -335,10 +329,12 @@ md_apply_fix3 (fixP, valueP, seg) fixP->fx_done = 1; } +/* Convert a number from VAX byte order (little endian) into host + byte order. + con is the buffer to convert, + nbytes is the length of the given buffer. */ long -md_chars_to_number (con, nbytes) - unsigned char con[]; /* Low order byte 1st. */ - int nbytes; /* Number of bytes in the input. */ +md_chars_to_number (unsigned char con[], int nbytes) { long retval; for (retval = 0, con += nbytes - 1; nbytes--; con--) @@ -359,10 +355,10 @@ md_chars_to_number (con, nbytes) */ static int -bignum_copy (register LITTLENUM_TYPE *in, - register int in_length, /* in sizeof(littlenum)s */ - register LITTLENUM_TYPE *out, - register int out_length /* in sizeof(littlenum)s */) +bignum_copy (LITTLENUM_TYPE *in, + int in_length, /* in sizeof(littlenum)s */ + LITTLENUM_TYPE *out, + int out_length /* in sizeof(littlenum)s */) { int significant_littlenums_dropped; @@ -403,11 +399,10 @@ bignum_copy (register LITTLENUM_TYPE *in return (significant_littlenums_dropped); } -/* vax:md_assemble() emit frags for 1 instruction */ +/* vax:md_assemble() emit frags for 1 instruction given in textual form. */ void -md_assemble (instruction_string) - char *instruction_string; /* A string: assemble 1 instruction. */ +md_assemble (char *instruction_string) { /* Non-zero if operand expression's segment is not known yet. */ int is_undefined; @@ -1284,9 +1279,7 @@ md_assemble (instruction_string) Return the correct fr_subtype in the frag and the growth beyond fr_fix. */ int -md_estimate_size_before_relax (fragP, segment) - fragS *fragP; - segT segment; +md_estimate_size_before_relax (fragS *fragP, segT segment) { if (RELAX_LENGTH (fragP->fr_subtype) == STATE_UNDF) { @@ -1442,16 +1435,12 @@ md_estimate_size_before_relax (fragP, se */ #ifdef BFD_ASSEMBLER void -md_convert_frag (headers, seg, fragP) - bfd *headers ATTRIBUTE_UNUSED; - segT seg ATTRIBUTE_UNUSED; - fragS *fragP; +md_convert_frag (bfd *headers ATTRIBUTE_UNUSED, segT seg ATTRIBUTE_UNUSED, + fragS *fragP) #else void -md_convert_frag (headers, seg, fragP) - object_headers *headers ATTRIBUTE_UNUSED; - segT seg ATTRIBUTE_UNUSED; - fragS *fragP; +md_convert_frag (object_headers *headers ATTRIBUTE_UNUSED, + segT seg ATTRIBUTE_UNUSED, fragS *fragP) #endif { char *addressP; /* -> _var to change. */ @@ -1601,9 +1590,7 @@ md_convert_frag (headers, seg, fragP) bit 0 as pcrel. */ #ifdef comment void -md_ri_to_chars (the_bytes, ri) - char *the_bytes; - struct reloc_info_generic ri; +md_ri_to_chars (char *the_bytes, struct reloc_info_generic ri) { /* this is easy */ md_number_to_chars (the_bytes, ri.r_address, sizeof (ri.r_address)); @@ -1620,10 +1607,8 @@ md_ri_to_chars (the_bytes, ri) #ifdef OBJ_AOUT #ifndef BFD_ASSEMBLER void -tc_aout_fix_to_chars (where, fixP, segment_address_in_file) - char *where; - fixS *fixP; - relax_addressT segment_address_in_file; +tc_aout_fix_to_chars (char *where, fixS *fixP, + relax_addressT segment_address_in_file) { /* * In: length of relocation (or of address) in chars: 1, 2 or 4. @@ -1797,13 +1782,13 @@ static const short int vax_operand_width * */ #if (VIT_OPCODE_SYNTHETIC != 0x80000000) -You have just broken the encoding below, which assumes the sign bit - means 'I am an imaginary instruction'. +#error "You have just broken the encoding below, which assumes the sign bit " \ + "means 'I am an imaginary instruction'." #endif #if (VIT_OPCODE_SPECIAL != 0x40000000) - You have just broken the encoding below, which assumes the 0x40 M bit means - 'I am not to be "optimised" the way normal branches are'. +#error "You have just broken the encoding below, which assumes the 0x40 MSB " \ + "bit means 'I am not to be "optimised" the way normal branches are'." #endif static const struct vot @@ -1872,9 +1857,9 @@ static const struct vot */ static const char * -vip_begin (synthetic_too, immediate, indirect, displen) - int synthetic_too; /* 1 means include jXXX op-codes. */ - const char *immediate, *indirect, *displen; +vip_begin (int synthetic_too, /* 1 means include jXXX op-codes. */ + const char *immediate, + const char *indirect, const char *displen) { const struct vot *vP; /* scan votstrs */ const char *retval = 0; /* error text */ @@ -1920,9 +1905,8 @@ vip_begin (synthetic_too, immediate, ind */ static void -vip (vitP, instring) - struct vit *vitP; /* We build an exploded instruction here. */ - char *instring; /* Text of a vax instruction: we modify. */ +vip (struct vit *vitP, /* We build an exploded instruction here. */ + char *instring) /* Text of a vax instruction: we modify. */ { /* How to bit-encode this opcode. */ struct vot_wot *vwP; @@ -2147,7 +2131,7 @@ main () * R4 * R5 * R6 - * R7 + * R7 * R8 * R9 * R10 @@ -2160,18 +2144,18 @@ main () */ #include "safe-ctype.h" -#define AP (12) -#define FP (13) -#define SP (14) -#define PC (15) - -int /* return -1 or 0:15 */ -vax_reg_parse (c1, c2, c3, c4) /* 3 chars of register name */ - char c1, c2, c3, c4; /* c3 == 0 if 2-character reg name */ +#define AP 12 +#define FP 13 +#define SP 14 +#define PC 15 + +/* Returns the register number of something like '%r15' or 'ap', supplied + in four single chars. Returns -1 if the register isn't recognized, + 0..15 otherwise. */ +int +vax_reg_parse (char c1, char c2, char c3, char c4) { - int retval; /* return -1:15 */ - - retval = -1; + int retval = -1; #ifdef OBJ_ELF if (c1 != '%') /* register prefixes are mandatory for ELF */ @@ -2232,7 +2216,8 @@ vax_reg_parse (c1, c2, c3, c4) /* 3 char retval = PC; else retval = -1; - return (retval); + + return retval; } /* @@ -2255,7 +2240,7 @@ vax_reg_parse (c1, c2, c3, c4) /* 3 char */ /* - * B u g s + * B u g s * * Arg block. * @@ -2387,9 +2372,7 @@ vip_metacharacters[256] = static char vip_metacharacters[256]; static void -vip_op_1 (bit, syms) - int bit; - const char *syms; +vip_op_1 (int bit, const char *syms) { unsigned char t; @@ -2399,10 +2382,9 @@ vip_op_1 (bit, syms) /* Can be called any time. More arguments may appear in future. */ static void -vip_op_defaults (immediate, indirect, displen) - const char *immediate; - const char *indirect; - const char *displen; +vip_op_defaults (const char *immediate, + const char *indirect, + const char *displen) { vip_op_1 (VIP_IMMEDIATE, immediate); vip_op_1 (VIP_INDIRECT, indirect); @@ -2470,15 +2452,11 @@ vip_op_defaults (immediate, indirect, di * Again, I dare not explain it: just trace ALL the code! */ +/* Dissect user-input 'optext' (which is something like "@B^foo@bar(AP)[FP]:") + using the vop in vopP. vopP's vop_access and vop_width. We fill _ndx, _reg, + _mode, _short, _warn, _error, _expr_begin, _expr_end and _nbytes. */ static void -vip_op (optext, vopP) - /* user's input string e.g.: "@B^foo@bar(AP)[FP]:" */ - char *optext; - /* Input fields: vop_access, vop_width. - Output fields: _ndx, _reg, _mode, _short, _warn, - _error _expr_begin, _expr_end, _nbytes. - vop_nbytes : number of bytes in a datum. */ - struct vop *vopP; +vip_op (char *optext, struct vop *vopP) { /* track operand text forward */ char *p; @@ -3173,7 +3151,8 @@ char my_immediate[200]; char my_indirect[200]; char my_displen[200]; -main () +int +main (int argc, char *argv[]) { printf ("enter immediate symbols eg enter # "); gets (my_immediate); @@ -3259,9 +3238,8 @@ main () } } -mumble (text, value) - char *text; - int value; +void +mumble (char *text, int value) { printf ("%s:", text); if (value >= 0) @@ -3280,12 +3258,10 @@ int md_long_jump_size = 6; const int md_reloc_size = 8; /* Size of relocation record */ void -md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol) - char *ptr; - addressT from_addr; - addressT to_addr ATTRIBUTE_UNUSED; - fragS *frag ATTRIBUTE_UNUSED; - symbolS *to_symbol ATTRIBUTE_UNUSED; +md_create_short_jump (char *ptr, addressT from_addr, + addressT to_addr ATTRIBUTE_UNUSED, + fragS *frag ATTRIBUTE_UNUSED, + symbolS *to_symbol ATTRIBUTE_UNUSED) { valueT offset; @@ -3299,12 +3275,8 @@ md_create_short_jump (ptr, from_addr, to } void -md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol) - char *ptr; - addressT from_addr ATTRIBUTE_UNUSED; - addressT to_addr; - fragS *frag; - symbolS *to_symbol; +md_create_long_jump (char *ptr, addressT from_addr ATTRIBUTE_UNUSED, + addressT to_addr, fragS *frag, symbolS *to_symbol) { valueT offset; @@ -3325,16 +3297,14 @@ const char *md_shortopts = "d:STt:V"; struct option md_longopts[] = { #ifdef OBJ_ELF #define OPTION_PIC (OPTION_MD_BASE) - {"pic", no_argument, NULL, OPTION_PIC}, + { "pic", no_argument, NULL, OPTION_PIC }, #endif - {NULL, no_argument, NULL, 0} + { NULL, no_argument, NULL, 0 } }; size_t md_longopts_size = sizeof (md_longopts); int -md_parse_option (c, arg) - int c; - char *arg; +md_parse_option (int c, char *arg) { switch (c) { @@ -3409,8 +3379,7 @@ md_parse_option (c, arg) } void -md_show_usage (stream) - FILE *stream; +md_show_usage (FILE *stream) { fprintf (stream, _("\ VAX options:\n\ @@ -3435,17 +3404,14 @@ VMS options:\n\ /* We have no need to default values of symbols. */ symbolS * -md_undefined_symbol (name) - char *name ATTRIBUTE_UNUSED; +md_undefined_symbol (char *name ATTRIBUTE_UNUSED) { return 0; } /* Round up a section size to the appropriate boundary. */ valueT -md_section_align (segment, size) - segT segment ATTRIBUTE_UNUSED; - valueT size; +md_section_align (segT segment ATTRIBUTE_UNUSED, valueT size) { return size; /* Byte alignment is fine */ } @@ -3454,8 +3420,7 @@ md_section_align (segment, size) On the vax, they're relative to the address of the offset, plus its size. */ long -md_pcrel_from (fixP) - fixS *fixP; +md_pcrel_from (fixS *fixP) { return fixP->fx_size + fixP->fx_where + fixP->fx_frag->fr_address; } @@ -3463,8 +3428,7 @@ md_pcrel_from (fixP) #ifdef OBJ_AOUT #ifndef BFD_ASSEMBLER void -tc_headers_hook(headers) - object_headers *headers; +tc_headers_hook (object_headers *headers) { #ifdef TE_NetBSD N_SET_INFO(headers->header, OMAGIC, M_VAX4K_NETBSD, 0); @@ -3476,9 +3440,7 @@ tc_headers_hook(headers) #ifdef BFD_ASSEMBLER arelent * -tc_gen_reloc (section, fixp) - asection *section ATTRIBUTE_UNUSED; - fixS *fixp; +tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp) { arelent *reloc; bfd_reloc_code_real_type code; |
From: Jan-Benedict G. <jb...@us...> - 2005-05-24 10:32:26
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11851 Removed Files: gcc-000008-fix-ICE-on-kernel_sched_c.patch Log Message: - No longer needed. Upstream has just imported a patch for this issue. --- gcc-000008-fix-ICE-on-kernel_sched_c.patch DELETED --- |
From: Jan-Benedict G. <jb...@us...> - 2005-05-23 11:26:45
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18630 Added Files: gcc-000008-fix-ICE-on-kernel_sched_c.patch Log Message: - Patch for PR#21638. Can be deleted once this PR is closed. --- NEW FILE: gcc-000008-fix-ICE-on-kernel_sched_c.patch --- This patch is basically http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21638 and *not* ment to be pushed in through the vax-linux project. Hopefully, it'll soon go in through testing by the bug tracking people. This patch is (C) 2005 by Andrew Pinski. When PR#21638 is closed, this patch should just be deleted. diff -Nurp src-gcc-fresh/gcc/tree-ssa-forwprop.c src-gcc-hacked/gcc/tree-ssa-forwprop.c --- src-gcc-fresh/gcc/tree-ssa-forwprop.c 2005-05-19 22:02:54.000000000 +0200 +++ src-gcc-hacked/gcc/tree-ssa-forwprop.c 2005-05-20 12:17:29.000000000 +0200 @@ -515,6 +515,7 @@ forward_propagate_addr_into_variable_arr /* Replace the pointer addition with array indexing. */ TREE_OPERAND (use_stmt, 1) = unshare_expr (TREE_OPERAND (stmt, 1)); TREE_OPERAND (TREE_OPERAND (TREE_OPERAND (use_stmt, 1), 0), 1) = index; + recompute_tree_invarant_for_addr_expr (TREE_OPERAND (use_stmt, 1)); /* That should have created gimple, so there is no need to record information to undo the propagation. */ @@ -633,6 +634,8 @@ forward_propagate_addr_expr (tree stmt) if (fold_stmt_inplace (use_stmt)) { tidy_after_forward_propagate_addr (use_stmt); + if (TREE_CODE (rhs) == ADDR_EXPR) + recompute_tree_invarant_for_addr_expr (rhs); return true; } else |
From: Jan-Benedict G. <jb...@us...> - 2005-05-22 15:32:48
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4598 Modified Files: build_toolchain.sh Log Message: - Allow to restart an operation /n/ times. Helpful for cvs update -D because the CVS servers will just drop connections if a given load is reached. Try again later, in the hope that the tagging/merging operation has finished. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- build_toolchain.sh 11 May 2005 19:29:33 -0000 1.6 +++ build_toolchain.sh 22 May 2005 15:32:37 -0000 1.7 @@ -205,21 +205,41 @@ # function execute() { local RETVAL + local RESTART_LOOP + local RESTART_MAX - echo "#" - echo "#" - echo "# Executing in `pwd`:" - echo "# $*" - echo "#" - echo "#" + RESTART_LOOP=1 + RESTART_MAX=1 + if [ "$1" = --restart ]; then + RESTART_MAX="$2" + shift 2 + fi - "$@" - RETVAL=$? + while [ "${RESTART_LOOP}" -le "${RESTART_MAX}" ]; do + echo "#" + echo "#" + echo "# Executing in `pwd` (run ${RESTART_LOOP}/${RESTART_MAX}):" + echo "# $*" + echo "#" + echo "#" - echo "#" - echo "# End of: $*" - echo "#" - echo + set +e + "$@" + RETVAL=$? + set -e + + echo "#" + echo "# End of: $*" + echo "#" + echo + + if [ "${RETVAL}" -eq 0 ]; then + return "${RETVAL}" + fi + + RESTART_LOOP=$(( ${RESTART_LOOP} + 1 )) + sleep 20 + done return "${RETVAL}" } @@ -303,17 +323,17 @@ # if [ "${DO_TIMESTAMP_BINUTILS}" -ne 0 ]; then pushd "${BINUTILS_SRC}" - execute cvs -z9 update -d -P -D "${TIMESTAMP_BINUTILS}" + execute --restart 6 cvs -z9 update -d -P -D "${TIMESTAMP_BINUTILS}" popd fi if [ "${DO_TIMESTAMP_GCC}" -ne 0 ]; then pushd "${GCC_SRC}" - execute cvs -z9 update -d -P -D "${TIMESTAMP_GCC}" + execute --restart 6 cvs -z9 update -d -P -D "${TIMESTAMP_GCC}" popd fi if [ "${DO_TIMESTAMP_GLIBC}" -ne 0 ]; then pushd "${GLIBC_SRC}" - execute cvs -z9 update -d -P -D "${TIMESTAMP_GLIBC}" + execute --restart 6 cvs -z9 update -d -P -D "${TIMESTAMP_GLIBC}" popd fi # |
From: Jan-Benedict G. <jb...@us...> - 2005-05-17 10:13:47
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9612 Modified Files: gcc-000003-add-vax-linux-target.patch Removed Files: gcc-000002-regnames-in-vax_md.patch gcc-000004-vax_h_cleanup.patch gcc-000005-gcc_unreachable_and_gcc_assert_for_abort.patch gcc-000006-remove_register_keyword.patch Log Message: - gcc-000002-regnames-in-vax_md.patch, gcc-000004-vax_h_cleanup.patch, gcc-000005-gcc_unreachable_and_gcc_assert_for_abort.patch and gcc-000006-remove_register_keyword.patch are now merged upstream. - Rediff gcc-000003-add-vax-linux-target.patch . --- gcc-000005-gcc_unreachable_and_gcc_assert_for_abort.patch DELETED --- --- gcc-000002-regnames-in-vax_md.patch DELETED --- Index: gcc-000003-add-vax-linux-target.patch =================================================================== RCS file: /cvsroot/linux-vax/toolchain/patches/gcc-000003-add-vax-linux-target.patch,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- gcc-000003-add-vax-linux-target.patch 1 May 2005 11:36:47 -0000 1.5 +++ gcc-000003-add-vax-linux-target.patch 17 May 2005 10:13:30 -0000 1.6 @@ -8,15 +8,15 @@ diff -Nurp src-gcc-fresh/gcc/config/vax/linux.h src-gcc-hacked/gcc/config/vax/linux.h --- src-gcc-fresh/gcc/config/vax/linux.h 1970-01-01 01:00:00.000000000 +0100 -+++ src-gcc-hacked/gcc/config/vax/linux.h 2005-05-01 12:41:25.000000000 +0200 ++++ src-gcc-hacked/gcc/config/vax/linux.h 2005-05-17 12:09:40.000000000 +0200 @@ -0,0 +1,3 @@ + +/* Linux-specific definitions for VAX will go here */ + diff -Nurp src-gcc-fresh/gcc/config.gcc src-gcc-hacked/gcc/config.gcc ---- src-gcc-fresh/gcc/config.gcc 2005-04-28 23:43:42.000000000 +0200 -+++ src-gcc-hacked/gcc/config.gcc 2005-05-01 12:41:25.000000000 +0200 -@@ -2181,6 +2181,9 @@ vax-*-sysv*) # VAXen running system V +--- src-gcc-fresh/gcc/config.gcc 2005-05-09 20:51:44.000000000 +0200 ++++ src-gcc-hacked/gcc/config.gcc 2005-05-17 12:09:40.000000000 +0200 +@@ -2209,6 +2209,9 @@ vax-*-sysv*) # VAXen running system V tmake_file=vax/t-memfuncs use_fixproto=yes ;; --- gcc-000004-vax_h_cleanup.patch DELETED --- --- gcc-000006-remove_register_keyword.patch DELETED --- |
From: Jan-Benedict G. <jb...@us...> - 2005-05-11 19:29:42
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1740 Modified Files: build_toolchain.sh Log Message: - Put newly created binutils in front of the path, not behind it. We actually want to use the bleeding edge tools, not some old tools that may be around in our path... - Force bash to kill it's command hash. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- build_toolchain.sh 4 May 2005 18:10:21 -0000 1.5 +++ build_toolchain.sh 11 May 2005 19:29:33 -0000 1.6 @@ -375,7 +375,12 @@ build "${BUILD_GAS}" && execute make ${MAKEFLAGS} install-gas popd -export PATH="$PATH:${INSTALL_BASE}/usr/bin" +# +# Extend our PATH with the newly built binutils; clear bash' command +# hash so that the new tools are used and not older ones... +# +export PATH="${INSTALL_BASE}/usr/bin:$PATH" +hash -r # # Build GCC, Part 1 |
From: Jan-Benedict G. <jb...@us...> - 2005-05-06 17:26:07
|
Update of /cvsroot/linux-vax/toolchain/patches In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8976 Modified Files: gcc-000006-remove_register_keyword.patch Log Message: - Spelinck fix. - All patches (except the add-the-vax-linux-target one) were just submitted to gcc...@gc.... Index: gcc-000006-remove_register_keyword.patch =================================================================== RCS file: /cvsroot/linux-vax/toolchain/patches/gcc-000006-remove_register_keyword.patch,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- gcc-000006-remove_register_keyword.patch 1 May 2005 12:35:30 -0000 1.4 +++ gcc-000006-remove_register_keyword.patch 6 May 2005 17:25:52 -0000 1.5 @@ -1,6 +1,6 @@ All sane compilers should figure out what to stuff into a register and -what now. So 'register' shouldn't be needed any longer. +what not. So 'register' shouldn't be needed any longer. 2005-04-23 Jan-Benedict Glaw <jb...@lu...> |
From: Jan-Benedict G. <jb...@us...> - 2005-05-04 18:10:30
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2442 Modified Files: build_toolchain.sh Log Message: - Complain about wrong arguments. Index: build_toolchain.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- build_toolchain.sh 27 Apr 2005 22:56:50 -0000 1.4 +++ build_toolchain.sh 4 May 2005 18:10:21 -0000 1.5 @@ -128,7 +128,10 @@ DO_CHECKS_GLIBC=0 ;; -*) - shift + echo >&2 + echo "Unrecognized option \"${1}\"" >&2 + echo >&2 + echo "Hint:" >&2 echo "$0 [--timestamp | --{binutils,glibc,gcc}-timestamp | --omit-patches | --omit-{gcc,glibc,binutils,ports}-patches | --omit-checks | --omit-{binutils,gcc,glibc}-checks] <target>" >&2 echo "Target defaults to: ${TARGET}" >&2 exit 1 |