diff options
| author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-10 19:25:48 +0000 | 
|---|---|---|
| committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-10 19:25:48 +0000 | 
| commit | 1d8d2242239ca0472eb9a168f911fdc88f5bf53f (patch) | |
| tree | 9805d1be913bda014319f149a2fee2ee1994722f /toolchain/gcc/patches/llvm/952-bug_34762.patch | |
| parent | bcf5f70a6859b4ef275c8a63f001b5caf9eac6a3 (diff) | |
gcc: add llvm-gcc and llvm from trunk (does not successfully compile a target yet, but gets close)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18019 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/gcc/patches/llvm/952-bug_34762.patch')
| -rw-r--r-- | toolchain/gcc/patches/llvm/952-bug_34762.patch | 49 | 
1 files changed, 49 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/llvm/952-bug_34762.patch b/toolchain/gcc/patches/llvm/952-bug_34762.patch new file mode 100644 index 000000000..f17d8d2e2 --- /dev/null +++ b/toolchain/gcc/patches/llvm/952-bug_34762.patch @@ -0,0 +1,49 @@ +http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34762 + +--- a/gcc/reload.c ++++ b/gcc/reload.c +@@ -4817,7 +4817,7 @@ find_reloads_address (enum machine_mode  + 		  find_reloads_address (GET_MODE (tem), &tem, XEXP (tem, 0), + 					&XEXP (tem, 0), opnum, + 					ADDR_TYPE (type), ind_levels, insn); +-		  if (tem != orig) ++	          if (!rtx_equal_p (tem, orig)) + 		    push_reg_equiv_alt_mem (regno, tem); + 		} + 	      /* We can avoid a reload if the register's equivalent memory +@@ -5617,7 +5617,7 @@ find_reloads_address_1 (enum machine_mod + 				      RELOAD_OTHER, + 				      ind_levels, insn); +  +-		if (tem != orig) ++	        if (!rtx_equal_p (tem, orig)) + 		  push_reg_equiv_alt_mem (regno, tem); +  + 		/* Then reload the memory location into a base +@@ -5684,7 +5684,7 @@ find_reloads_address_1 (enum machine_mod + 		  find_reloads_address (GET_MODE (tem), &tem, XEXP (tem, 0), + 					&XEXP (tem, 0), opnum, type, + 					ind_levels, insn); +-		  if (tem != orig) ++	          if (!rtx_equal_p (tem, orig)) + 		    push_reg_equiv_alt_mem (regno, tem); + 		  /* Put this inside a new increment-expression.  */ + 		  x = gen_rtx_fmt_e (GET_CODE (x), GET_MODE (x), tem); +@@ -5876,7 +5876,7 @@ find_reloads_address_1 (enum machine_mod + 		find_reloads_address (GET_MODE (x), &x, XEXP (x, 0), + 				      &XEXP (x, 0), opnum, ADDR_TYPE (type), + 				      ind_levels, insn); +-		if (x != tem) ++	        if (!rtx_equal_p (x, tem)) + 		  push_reg_equiv_alt_mem (regno, x); + 	      } + 	  } +@@ -6104,7 +6104,7 @@ find_reloads_subreg_address (rtx x, int  + 					       XEXP (tem, 0), &XEXP (tem, 0), + 					       opnum, type, ind_levels, insn); + 	      /* ??? Do we need to handle nonzero offsets somehow?  */ +-	      if (!offset && tem != orig) ++	      if (!offset && !rtx_equal_p (tem, orig)) + 		push_reg_equiv_alt_mem (regno, tem); +  + 	      /* For some processors an address may be valid in the  | 
