Annotation of gforth/arch/sharc/g21k-3.3.4-bp1.diff, revision 1.1
1.1 ! pazsan 1: diff -r -u g21k-3.3.4/adiach/gcc_ach.c g21k-3.3.4-bp1/adiach/gcc_ach.c
! 2: --- g21k-3.3.4/adiach/gcc_ach.c Wed Apr 12 14:39:56 2000
! 3: +++ g21k-3.3.4-bp1/adiach/gcc_ach.c Wed Sep 17 19:50:15 1997
! 4: @@ -4,7 +4,7 @@
! 5: #include <string.h>
! 6: #include <ctype.h>
! 7:
! 8: -#if defined(MSDOS) || defined(_WIN32)
! 9: +#ifdef MSDOS
! 10: #include <io.h>
! 11: #ifdef __GNUC__
! 12: #ifndef __EMX__
! 13: diff -r -u g21k-3.3.4/gcc/cccp.c g21k-3.3.4-bp1/gcc/cccp.c
! 14: --- g21k-3.3.4/gcc/cccp.c Wed Apr 12 14:39:56 2000
! 15: +++ g21k-3.3.4-bp1/gcc/cccp.c Wed Apr 12 14:50:14 2000
! 16: @@ -193,7 +193,10 @@
! 17: extern char *version_string;
! 18: extern struct tm *localtime ();
! 19: extern int sys_nerr;
! 20: +#if defined(linux)
! 21: +#else
! 22: extern char *sys_errlist[];
! 23: +#endif
! 24:
! 25: #ifndef errno
! 26: extern int errno;
! 27: diff -r -u g21k-3.3.4/gcc/config/21k/21k.md g21k-3.3.4-bp1/gcc/config/21k/21k.md
! 28: --- g21k-3.3.4/gcc/config/21k/21k.md Wed Apr 12 14:39:56 2000
! 29: +++ g21k-3.3.4-bp1/gcc/config/21k/21k.md Sun Nov 15 20:51:26 1998
! 30: @@ -3173,11 +3173,18 @@
! 31:
! 32: (define_insn ""
! 33: [(set (pc)
! 34: - (mem:PM
! 35: + (mem:PM (match_operand:PM 0 "register_operand" "y")))
! 36: + (use (label_ref:PM (match_operand:PM 2 "" "")))]
! 37: + ""
! 38: + "jump (m13,%0); %&"
! 39: + [(set_attr "type" "tablejump")
! 40: + (set_attr "length" "3")])
! 41:
! 42: +(define_insn ""
! 43: + [(set (pc)
! 44: + (mem:PM
! 45: (plus:PM (match_operand:PM 0 "register_operand" "d")
! 46: (match_operand:PM 1 "register_operand" "&y"))))
! 47: -
! 48: (use (label_ref:PM (match_operand:PM 2 "" "")))
! 49: (clobber (match_operand:PM 3 "register_operand" "z"))
! 50: (clobber (match_operand:PM 4 "register_operand" "y"))
! 51: @@ -3214,15 +3221,6 @@
! 52:
! 53: (define_insn ""
! 54: [(set (pc)
! 55: - (mem:PM (match_operand:PM 0 "register_operand" "y")))
! 56: - (use (label_ref:PM (match_operand:PM 1 "" "")))]
! 57: - ""
! 58: - "jump (m13,%0); %&"
! 59: - [(set_attr "type" "tablejump")
! 60: - (set_attr "length" "3")])
! 61: -
! 62: -(define_insn ""
! 63: - [(set (pc)
! 64: (mem:PM (match_operand:PM 0 "register_operand" "d")))
! 65: (use (label_ref:PM (match_operand:PM 1 "" "")))
! 66: (clobber (match_operand:PM 2 "register_operand" "z"))
! 67: @@ -3268,6 +3266,12 @@
! 68: "jump (m13,%0) %!;"
! 69: [(set_attr "type" "branch")])
! 70:
! 71: +(define_insn ""
! 72: + [(set (pc)
! 73: + (subreg:DM (match_operand:PM 0 "register_operand" "y") 0))]
! 74: + ""
! 75: + "jump (m13,%0) %!;"
! 76: + [(set_attr "type" "branch")])
! 77:
! 78: (define_insn ""
! 79: [(set (pc)
! 80: @@ -3303,7 +3307,6 @@
! 81: DONE;
! 82: }
! 83: }")
! 84: -
! 85:
! 86: ;; Subroutine calls (without return value)
! 87:
! 88: diff -r -u g21k-3.3.4/gcc/expr.c g21k-3.3.4-bp1/gcc/expr.c
! 89: --- g21k-3.3.4/gcc/expr.c Wed Sep 17 19:50:36 1997
! 90: +++ g21k-3.3.4-bp1/gcc/expr.c Mon Nov 2 00:19:46 1998
! 91: @@ -4248,12 +4248,14 @@
! 92: pop_obstacks ();
! 93: }
! 94: else if (modifier == EXPAND_INITIALIZER)
! 95: - forced_labels = gen_rtx (EXPR_LIST, VOIDmode,
! 96: - label_rtx (exp), forced_labels);
! 97: + {
! 98: + forced_labels = gen_rtx (EXPR_LIST, VOIDmode,
! 99: + label_rtx (exp), forced_labels);
! 100: + }
! 101: temp = gen_rtx (MEM, FUNCTION_MODE,
! 102: gen_rtx (LABEL_REF, Pmode1 (DEFAULT_CODE_Pmode),
! 103: label_rtx (exp)));
! 104: -
! 105: +
! 106: if (function != current_function_decl && function != 0)
! 107: LABEL_REF_NONLOCAL_P (XEXP (temp, 0)) = 1;
! 108: return temp;
! 109: diff -r -u g21k-3.3.4/gcc/flow.c g21k-3.3.4-bp1/gcc/flow.c
! 110: --- g21k-3.3.4/gcc/flow.c Wed Sep 17 19:50:37 1997
! 111: +++ g21k-3.3.4-bp1/gcc/flow.c Sat Nov 7 18:01:53 1998
! 112: @@ -531,6 +531,7 @@
! 113: && GET_CODE (PATTERN (insn)) == SET
! 114: && SET_DEST (PATTERN (insn)) == pc_rtx
! 115: && (GET_CODE (SET_SRC (PATTERN (insn))) == REG
! 116: + || GET_CODE (SET_SRC (PATTERN (insn))) == SUBREG
! 117: || GET_CODE (SET_SRC (PATTERN (insn))) == MEM))
! 118: {
! 119: rtx x;
! 120: diff -r -u g21k-3.3.4/gcc/gcc.c g21k-3.3.4-bp1/gcc/gcc.c
! 121: --- g21k-3.3.4/gcc/gcc.c Wed Apr 12 14:39:56 2000
! 122: +++ g21k-3.3.4-bp1/gcc/gcc.c Wed Apr 12 14:48:29 2000
! 123: @@ -54,7 +54,7 @@
! 124: #include <memory.h> /* stupid SunOS */
! 125: #include <strings.h>
! 126: #ifndef __GO32__
! 127: -#if !defined(SVR4) && !defined(sun)
! 128: +#if !defined(SVR4) && !defined(sun) && !defined(linux)
! 129: #include <vfork.h>
! 130: #endif
! 131: #include <sys/wait.h>
! 132: @@ -166,7 +166,7 @@
! 133: extern int sys_nerr;
! 134: #endif
! 135: #ifndef HAVE_STRERROR
! 136: -#if defined(bsd4_4)
! 137: +#if defined(bsd4_4) || defined(linux)
! 138: extern const char *const sys_errlist[];
! 139: #else
! 140: extern char *sys_errlist[];
! 141: @@ -1894,7 +1894,7 @@
! 142:
! 143: #if !defined(__MSDOS__) && !defined(OS2) && !defined(_WIN32)
! 144:
! 145: -#if !defined(sun) && !defined (SVR4) /* Who is this for? */
! 146: +#if !defined(sun) && !defined (SVR4) && !defined(linux) /* Who is this for? */
! 147: extern int execv (const char *a, const char **b), execvp (const char *a, const char **b);
! 148: #endif
! 149:
! 150: diff -r -u g21k-3.3.4/gcc/loop.c g21k-3.3.4-bp1/gcc/loop.c
! 151: --- g21k-3.3.4/gcc/loop.c Wed Sep 17 19:50:46 1997
! 152: +++ g21k-3.3.4-bp1/gcc/loop.c Sun Nov 1 21:31:07 1998
! 153: @@ -2625,8 +2625,13 @@
! 154: mark_loop_jump (XVECEXP (x, 1, i), loop_num);
! 155: return;
! 156:
! 157: + case SUBREG:
! 158: + mark_loop_jump (SUBREG_REG(x), loop_num);
! 159: + return;
! 160: default:
! 161: /* Nothing else should occur in a JUMP_INSN. */
! 162: + debug_rtx(x);
! 163: + return;
! 164: abort ();
! 165: }
! 166: }
! 167: diff -r -u g21k-3.3.4/gcc/sdbout.c g21k-3.3.4-bp1/gcc/sdbout.c
! 168: --- g21k-3.3.4/gcc/sdbout.c Wed Apr 12 14:39:56 2000
! 169: +++ g21k-3.3.4-bp1/gcc/sdbout.c Sun Oct 25 22:52:42 1998
! 170: @@ -58,7 +58,7 @@
! 171:
! 172: /* Mips systems use the SDB functions to dump out symbols, but
! 173: do not supply usable syms.h include files. */
! 174: -#if defined(USG) && !defined(MIPS) && !defined (hpux) && !defined(NO_SYMS_H)
! 175: +#if defined(USG) && !defined(MIPS) && !defined (hpux) && !defined(NO_SYMS_H) && !defined(linux)
! 176: #include <syms.h>
! 177: /* Use T_INT if we don't have T_VOID. */
! 178: #ifndef T_VOID
! 179: diff -r -u g21k-3.3.4/gcc/version.c g21k-3.3.4-bp1/gcc/version.c
! 180: --- g21k-3.3.4/gcc/version.c Wed Sep 17 19:51:01 1997
! 181: +++ g21k-3.3.4-bp1/gcc/version.c Sun Oct 25 22:41:50 1998
! 182: @@ -1 +1,3 @@
! 183: -char *version_string = "rel 3.3 <2.3.3 snapshot 930305>";
! 184: +/* The format of this file is important sed script in use */
! 185: +char *version_string =
! 186: + "rel3.3.4 21k/SHARC 3.3.4";
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>