patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 03 09:50:16 2009 +0000 (2009-05-03)
branchnewlib
changeset 1366 5e5d1e6f55d3
permissions -rw-r--r--
Update the newlib devel branch with stuff from /trunk@1498.

-------- diffstat follows --------
/devel/newlib/configure | 336 176 160 0 +++++++------
/devel/newlib/Makefile.in | 12 3 9 0 -
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/internals.sh | 1 0 1 0 -
/devel/newlib/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/functions | 111 5 106 0 ----
/devel/newlib/scripts/config.guess | 7 5 2 0 +
/devel/newlib/scripts/config.sub | 3 2 1 0 +
/devel/newlib/scripts/saveSample.sh.in | 4 2 2 0
/devel/newlib/docs/overview.txt | 8 6 2 0 +
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 8 4 4 0
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/config/kernel/linux.in | 108 2 106 0 ----
/devel/newlib/config/global/ct-behave.in | 22 13 9 0 +
/devel/newlib/config/global/download.in | 210 15 195 0 +-------
/devel/newlib/config/libc/glibc.in | 7 7 0 0 +
/devel/newlib/config/libc/glibc-eglibc.in-common | 15 14 1 0 +
45 files changed, 382 insertions(+), 839 deletions(-)
     1 Original patch from: ../4.3.2/340-make-mno-spe-work-as-expected.patch
     2 
     3 -= BEGIN original header =-
     4 2008-04-03  Nathan Froyd  <froydnj@codesourcery.com>
     5             Nathan Sidwell  <nathan@codesourcery.com>
     6 
     7         * config/rs6000/rs6000.opt (mspe): Remove Var property.
     8         (misel): Likewise.
     9         * config/rs6000/rs6000.h (rs6000_spe): Declare.
    10         (rs6000_isel): Likewise.
    11         * config/rs6000/rs6000.c (rs6000_spe): New variable.
    12         (rs6000_isel): New variable.
    13         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.                                                                                         
    14 
    15 -= END original header =-
    16 
    17 diff -durN gcc-4.3.3.orig/gcc/config/rs6000/rs6000.c gcc-4.3.3/gcc/config/rs6000/rs6000.c
    18 --- gcc-4.3.3.orig/gcc/config/rs6000/rs6000.c	2008-11-18 23:07:58.000000000 +0100
    19 +++ gcc-4.3.3/gcc/config/rs6000/rs6000.c	2009-01-27 22:28:55.000000000 +0100
    20 @@ -174,9 +174,15 @@
    21  /* Nonzero to use AltiVec ABI.  */
    22  int rs6000_altivec_abi;
    23  
    24 +/* Nonzero if we want SPE SIMD instructions.  */
    25 +int rs6000_spe;
    26 +
    27  /* Nonzero if we want SPE ABI extensions.  */
    28  int rs6000_spe_abi;
    29  
    30 +/* Nonzero to use isel instructions.  */
    31 +int rs6000_isel;
    32 +
    33  /* Nonzero if floating point operations are done in the GPRs.  */
    34  int rs6000_float_gprs = 0;
    35  
    36 @@ -2144,11 +2150,21 @@
    37        rs6000_parse_yes_no_option ("vrsave", arg, &(TARGET_ALTIVEC_VRSAVE));
    38        break;
    39  
    40 +    case OPT_misel:
    41 +      rs6000_explicit_options.isel = true;
    42 +      rs6000_isel = value;
    43 +      break;
    44 +
    45      case OPT_misel_:
    46        rs6000_explicit_options.isel = true;
    47        rs6000_parse_yes_no_option ("isel", arg, &(rs6000_isel));
    48        break;
    49  
    50 +    case OPT_mspe:
    51 +      rs6000_explicit_options.spe = true;
    52 +      rs6000_spe = value;
    53 +      break;
    54 +
    55      case OPT_mspe_:
    56        rs6000_explicit_options.spe = true;
    57        rs6000_parse_yes_no_option ("spe", arg, &(rs6000_spe));
    58 diff -durN gcc-4.3.3.orig/gcc/config/rs6000/rs6000.h gcc-4.3.3/gcc/config/rs6000/rs6000.h
    59 --- gcc-4.3.3.orig/gcc/config/rs6000/rs6000.h	2008-01-26 18:18:35.000000000 +0100
    60 +++ gcc-4.3.3/gcc/config/rs6000/rs6000.h	2009-01-27 22:28:55.000000000 +0100
    61 @@ -349,6 +349,8 @@
    62  extern int rs6000_ieeequad;
    63  extern int rs6000_altivec_abi;
    64  extern int rs6000_spe_abi;
    65 +extern int rs6000_spe;
    66 +extern int rs6000_isel;
    67  extern int rs6000_float_gprs;
    68  extern int rs6000_alignment_flags;
    69  extern const char *rs6000_sched_insert_nops_str;
    70 diff -durN gcc-4.3.3.orig/gcc/config/rs6000/rs6000.opt gcc-4.3.3/gcc/config/rs6000/rs6000.opt
    71 --- gcc-4.3.3.orig/gcc/config/rs6000/rs6000.opt	2007-10-31 08:56:01.000000000 +0100
    72 +++ gcc-4.3.3/gcc/config/rs6000/rs6000.opt	2009-01-27 22:28:55.000000000 +0100
    73 @@ -190,7 +190,7 @@
    74  -mvrsave=yes/no	Deprecated option.  Use -mvrsave/-mno-vrsave instead
    75  
    76  misel
    77 -Target Var(rs6000_isel)
    78 +Target
    79  Generate isel instructions
    80  
    81  misel=
    82 @@ -198,7 +198,7 @@
    83  -misel=yes/no	Deprecated option.  Use -misel/-mno-isel instead
    84  
    85  mspe
    86 -Target Var(rs6000_spe)
    87 +Target
    88  Generate SPE SIMD instructions on E500
    89  
    90  mpaired