patches/gcc/4.3.0/475-gcc43-pr35705.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jul 24 16:57:03 2008 +0000 (2008-07-24)
changeset 716 d557e8f3affc
permissions -rw-r--r--
Make gcc-4.3.x correctly build for ARM softfloat.

/trunk/patches/gcc/4.3.0/875-arm-softfloat.patch | 29 29 0 0 +++++++++++++++++++++++++++++
/trunk/patches/gcc/4.3.1/750-arm-softfloat.patch | 29 29 0 0 +++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
     1 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.0/gentoo/63_all_gcc43-pr35705.patch
     2 http://gcc.gnu.org/PR35705
     3 
     4 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
     5 
     6 	PR middle-end/35705
     7 	* fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
     8 	the expression is a function address.
     9 
    10 diff -durN gcc-4.3.0.orig/gcc/fold-const.c gcc-4.3.0/gcc/fold-const.c
    11 --- gcc-4.3.0.orig/gcc/fold-const.c	2008-02-27 15:12:33.000000000 +0100
    12 +++ gcc-4.3.0/gcc/fold-const.c	2008-06-10 14:45:09.000000000 +0200
    13 @@ -9357,7 +9357,7 @@
    14  	    }
    15  	}
    16  
    17 -      if (DECL_P (expr))
    18 +      if (DECL_P (expr) && TREE_CODE (expr) != FUNCTION_DECL)
    19  	return DECL_ALIGN_UNIT (expr);
    20      }
    21    else if (code == POINTER_PLUS_EXPR)