patches/binutils/2.20.1/120-sh-targets.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 17 19:48:49 2010 +0200 (2010-08-17)
changeset 2088 4f21ba5f8e91
parent 1621 patches/binutils/2.20/120-sh-targets.patch@60446d2e5660
permissions -rw-r--r--
binutils/binutils: forward-port the patchset from 2.20 to 2.20.1

Among other things, this should fix the issue reported by Thomas at:
http://sourceware.org/ml/crossgcc/2010-08/msg00115.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 
     2 
     3 diff -durN binutils-2.20.1.orig/configure binutils-2.20.1/configure
     4 --- binutils-2.20.1.orig/configure	2010-08-17 19:32:05.000000000 +0200
     5 +++ binutils-2.20.1/configure	2010-08-17 19:32:07.000000000 +0200
     6 @@ -3054,7 +3054,7 @@
     7    am33_2.0-*-linux*)
     8      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
     9      ;;
    10 -  sh-*-linux*)
    11 +  sh*-*-linux*)
    12      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    13      ;;
    14    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    15 @@ -3390,7 +3390,7 @@
    16    romp-*-*)
    17      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    18      ;;
    19 -  sh-*-* | sh64-*-*)
    20 +  sh*-*-* | sh64-*-*)
    21      case "${host}" in
    22        i[3456789]86-*-vsta) ;; # don't add gprof back in
    23        i[3456789]86-*-go32*) ;; # don't add gprof back in
    24 diff -durN binutils-2.20.1.orig/configure.ac binutils-2.20.1/configure.ac
    25 --- binutils-2.20.1.orig/configure.ac	2010-03-03 15:19:08.000000000 +0100
    26 +++ binutils-2.20.1/configure.ac	2010-08-17 19:32:07.000000000 +0200
    27 @@ -541,7 +541,7 @@
    28    am33_2.0-*-linux*)
    29      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    30      ;;
    31 -  sh-*-linux*)
    32 +  sh*-*-linux*)
    33      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    34      ;;    
    35    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    36 @@ -877,7 +877,7 @@
    37    romp-*-*)
    38      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    39      ;;
    40 -  sh-*-* | sh64-*-*)
    41 +  sh*-*-* | sh64-*-*)
    42      case "${host}" in
    43        i[[3456789]]86-*-vsta) ;; # don't add gprof back in
    44        i[[3456789]]86-*-go32*) ;; # don't add gprof back in