GNOME Bugzilla – Bug 603780
bad assembly in gatomic.c for armv7 with thumb2
Last modified: 2010-04-12 10:58:30 UTC
Created attachment 149080 [details] use gcc intrinsics instead of inline asm if supported Launchpad bug: https://launchpad.net/bugs/491342 latest glib upload failed to build in lucid: 12:52 < asac> https://edge.launchpad.net/ubuntu/+source/glib2.0/2.23.0-1ubuntu1/+build/1374402 12:53 < asac> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/build/buildd/glib2.0-2.23.0/glib -I.. -I/build/buildd/glib2.0-2.23.0 -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -DG_DISABLE_SINGLE_INCLUDES -pthread -g -O2 -Wall -g -O2 -MT gatomic.lo -MD -MP -MF .deps/gatomic.Tpo -c /build/buildd/glib2.0-2.23.0/glib/gatomic.c -fPIC -DPIC -o .libs/gatomic.o 12:53 < asac> /tmp/cc7twNnB.s: Assembler messages: 12:53 < asac> /tmp/cc7twNnB.s:161: Error: selected processor does not support `swp r3,r5,[r4]' 12:53 < asac> /tmp/cc7twNnB.s:179: Error: selected processor does not support `swp r3,r5,[r4]' attaching patch by Dave Martin <Dave.Martin@arm.com> submitted here: https://bugs.edge.launchpad.net/ubuntu/+source/glib2.0/+bug/491342/comments/5
Created attachment 149081 [details] [review] improved patch better patch combining the previous one and the improvement patch posted here: https://bugs.edge.launchpad.net/glib/+bug/491342/comments/8
Can someone with sufficient permissions close this bug as duplicate of #498810 ? It doesn't make sense to discuss different solutions for the same issue in different bugs.
After I took a look into the patch, I'd rather make this bug as a duplicate of bug 498810.
Oops! I meant bug 531902.
Now glib can be compiled with -mthumb and march=armv7-a options if GCC is newer than 4.4.1. I confirmed it with gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 on Ubuntu karmic on ARM. Alexander, I will close this bug as a duplicate of bug 531902, if you Ubuntu guys are OK.
*** This bug has been marked as a duplicate of bug 531902 ***
we looked at recent update two weeks ago and it seems not all ops are now using intrisincs for arm ... seems the patch somehow was for ia64?