This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix MIPS --enable-werror build
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Jun 2012 11:26:41 +0100
- Subject: 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 ();