Fix MIPS --enable-werror build

Submitted by Richard Sandiford on June 24, 2012, 10:26 a.m.

Details

Message ID 87txy180pq.fsf@talisman.home
State New
Headers show

Commit Message

Richard Sandiford June 24, 2012, 10:26 a.m.
As per subject.  Tested on mips64-elf and mipsisa64-elf.  Applied.

Richard


gcc/
	* config/mips/mips.c (mips_process_sync_loop): Add missing
	enum cast.

Patch hide | download patch | download mbox

Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c	2012-06-23 21:41:21.000000000 +0100
+++ gcc/config/mips/mips.c	2012-06-23 21:41:22.065523986 +0100
@@ -12048,7 +12048,7 @@  #define READ_OPERAND(WHAT, DEFAULT) \
       model = MEMMODEL_ACQUIRE;
       break;
     default:
-      model = INTVAL (operands[memmodel_attr]);
+      model = (enum memmodel) INTVAL (operands[memmodel_attr]);
     }
 
   mips_multi_start ();