This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: MCore: Fix building libgcc


Hi Guys,

  I am applying the patch below to fix a problem building libgcc for the
  mcore-elf target.  The cbranchsi4 pattern was applying a mode to the
  comparison operator which was preventing it from matching rtl
  generated by the middle end.

Cheers
  Nick

gcc/ChangeLog
2012-08-17  Nick Clifton  <nickc@redhat.com>

	* config/mcore/mcore.md (cbranchsi4): Remove mode from
	comparison.
  
Index: gcc/config/mcore/mcore.md
===================================================================
--- gcc/config/mcore/mcore.md	(revision 190466)
+++ gcc/config/mcore/mcore.md	(working copy)
@@ -1502,7 +1502,7 @@
 
 (define_expand "cbranchsi4"
   [(set (pc)
-	(if_then_else (match_operator:SI 0 "ordered_comparison_operator"
+	(if_then_else (match_operator 0 "ordered_comparison_operator"
 		       [(match_operand:SI 1 "mcore_compare_operand")
 			(match_operand:SI 2 "nonmemory_operand")])
 		      (label_ref (match_operand 3 ""))
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]