Upstream author has provided a patch for this.
I attach it with this mail.

I think it should be ok on ia64, but I have no ia64 machine to test it.
As far as I know, QEMU does not emulate ia64 machines.

I plan to fix this bug on gcin 1.4.0 release.
The latest release of upstream is 1.4.0.pre13. I expect that 1.4.0 will
be released soon.

Wen-Yen Chuang (caleb)
--- gcin-1.3.9.orig/data/t2s-file.c
+++ gcin-1.3.9/data/t2s-file.c
@@ -53,10 +53,10 @@
     bzero(a, sizeof(a));
     bzero(b, sizeof(b));
     sscanf(tt,"%s %s",a,b);
-    t2s[t2sn].a=*((int *)a);
-    t2s[t2sn].b=*((int *)b);
-    s2t[t2sn].a=*((int *)b);
-    s2t[t2sn].b=*((int *)a);
+    memcpy(&t2s[t2sn].a, a, sizeof(t2s[0].a));
+    memcpy(&t2s[t2sn].b, b, sizeof(t2s[0].b));
+    memcpy(&s2t[t2sn].a, a, sizeof(s2t[0].a));
+    memcpy(&s2t[t2sn].b, b, sizeof(s2t[0].b));
     t2sn++;
 //    dbg("%s %s\n", a,b);
   }

Reply via email to