Patchwork Commit: MCore: Fix building libgcc

login
register
mail settings
Submitter Nick Clifton
Date Aug. 17, 2012, 9:52 a.m.
Message ID <87mx1tsv4z.fsf@redhat.com>
Download mbox | patch
Permalink /patch/178180/
State New
Headers show

Comments

Nick Clifton - Aug. 17, 2012, 9:52 a.m.
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.

Patch

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 ""))