Patchwork Fix MIPS --enable-werror build

login
register
mail settings
Submitter Richard Sandiford
Date June 24, 2012, 10:26 a.m.
Message ID <87txy180pq.fsf@talisman.home>
Download mbox | patch
Permalink /patch/166875/
State New
Headers show

Comments

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

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 ();