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]

Fix MIPS --enable-werror build


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.

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


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