gcc-3.4-sparc-pr16430-fix.patch

来自「linux下编译交叉工具链的工具源码」· PATCH 代码 · 共 43 行

PATCH
43
字号
Message-ID: <33159.207.230.144.240.1093980498.squirrel@207.230.144.240>Date: Tue, 31 Aug 2004 14:28:18 -0500 (CDT)Subject: Crosstool 0.28-rc35From: "Jason Rothstein" <fdragon@fdragon.org>To: dank@kegel.comCould you please add the patches in GCC PR 16430 to GCC 3.4.1?http://gcc.gnu.org/PR16430These fix one of 2 current ICE conditions when building a sparc64 adacompilers.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===================================================================RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.c,vretrieving revision 1.271.4.16retrieving revision 1.271.4.17diff -u -r1.271.4.16 -r1.271.4.17--- gcc/gcc/config/sparc/sparc.c	2004/07/08 13:00:56	1.271.4.16+++ gcc/gcc/config/sparc/sparc.c	2004/07/08 14:36:51	1.271.4.17@@ -5808,6 +5808,18 @@ 	    abort ();  	  mode = mode_for_size (bytes * BITS_PER_UNIT, MODE_INT, 0);++	  /* ??? We probably should have made the same ABI change in+	     3.4.0 as the one we made for unions.   The latter was+	     required by the SCD though, while the former is not+	     specified, so we favored compatibility and efficiency.++	     Now we're stuck for aggregates larger than 16 bytes,+	     because OImode vanished in the meantime.  Let's not+	     try to be unduly clever, and simply follow the ABI+	     for unions in that case.  */+	  if (mode == BLKmode)+	    return function_arg_union_value (bytes, mode, regbase); 	}       else if (GET_MODE_CLASS (mode) == MODE_INT 	       && GET_MODE_SIZE (mode) < UNITS_PER_WORD)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?