Patchwork target-microblaze/translate.c fails to compile with gcc 4.7

login
register
mail settings
Submitter Peter Chubb
Date June 7, 2012, 2:30 a.m.
Message ID <w4zk8fj1jz.wl%peter@chubb.wattle.id.au>
Download mbox | patch
Permalink /patch/163455/
State New
Headers show

Comments

Peter Chubb - June 7, 2012, 2:30 a.m.
n current qemu.git, I see:
 CC    microblaze-softmmu/translate.o
/home/peterc/src/work/QEMU/qemu-working/target-microblaze/translate.c: In function ‘dec_store’:
/home/peterc/src/work/QEMU/qemu-working/target-microblaze/translate.c:1108:5: error: invalid initializer

This is the obvious fix:
---
 target-microblaze/translate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--
Dr Peter Chubb				        peter.chubb AT nicta.com.au
http://www.ssrg.nicta.com.au          Software Systems Research Group/NICTA

Patch

Index: qemu-working/target-microblaze/translate.c
===================================================================
--- qemu-working.orig/target-microblaze/translate.c	2012-06-07 10:52:56.210980100 +1000
+++ qemu-working/target-microblaze/translate.c	2012-06-07 11:47:19.682479289 +1000
@@ -1105,7 +1105,7 @@  static void gen_store(DisasContext *dc,
 
 static void dec_store(DisasContext *dc)
 {
-    TCGv t, *addr, swx_addr, r_check = 0;
+    TCGv t, *addr, swx_addr, r_check;
     int swx_skip = 0;
     unsigned int size, rev = 0, ex = 0;