patches/gcc/3.4.1/gcc-3.4-sparc-pr16430-fix.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/3.4.1/gcc-3.4-sparc-pr16430-fix.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,42 @@
     1.4 +Message-ID: <33159.207.230.144.240.1093980498.squirrel@207.230.144.240>
     1.5 +Date: Tue, 31 Aug 2004 14:28:18 -0500 (CDT)
     1.6 +Subject: Crosstool 0.28-rc35
     1.7 +From: "Jason Rothstein" <fdragon@fdragon.org>
     1.8 +To: dank@kegel.com
     1.9 +
    1.10 +Could you please add the patches in GCC PR 16430 to GCC 3.4.1?
    1.11 +
    1.12 +http://gcc.gnu.org/PR16430
    1.13 +
    1.14 +These fix one of 2 current ICE conditions when building a sparc64 ada
    1.15 +compilers.
    1.16 +
    1.17 +
    1.18 +http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.271.4.16&r2=1.271.4.17
    1.19 +
    1.20 +===================================================================
    1.21 +RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.c,v
    1.22 +retrieving revision 1.271.4.16
    1.23 +retrieving revision 1.271.4.17
    1.24 +diff -u -r1.271.4.16 -r1.271.4.17
    1.25 +--- gcc/gcc/config/sparc/sparc.c	2004/07/08 13:00:56	1.271.4.16
    1.26 ++++ gcc/gcc/config/sparc/sparc.c	2004/07/08 14:36:51	1.271.4.17
    1.27 +@@ -5808,6 +5808,18 @@
    1.28 + 	    abort ();
    1.29 + 
    1.30 + 	  mode = mode_for_size (bytes * BITS_PER_UNIT, MODE_INT, 0);
    1.31 ++
    1.32 ++	  /* ??? We probably should have made the same ABI change in
    1.33 ++	     3.4.0 as the one we made for unions.   The latter was
    1.34 ++	     required by the SCD though, while the former is not
    1.35 ++	     specified, so we favored compatibility and efficiency.
    1.36 ++
    1.37 ++	     Now we're stuck for aggregates larger than 16 bytes,
    1.38 ++	     because OImode vanished in the meantime.  Let's not
    1.39 ++	     try to be unduly clever, and simply follow the ABI
    1.40 ++	     for unions in that case.  */
    1.41 ++	  if (mode == BLKmode)
    1.42 ++	    return function_arg_union_value (bytes, mode, regbase);
    1.43 + 	}
    1.44 +       else if (GET_MODE_CLASS (mode) == MODE_INT
    1.45 + 	       && GET_MODE_SIZE (mode) < UNITS_PER_WORD)