This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25613] New: sh compiler hangs when compiling some inline asm
- From: "vapier at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2005 13:42:50 -0000
- Subject: [Bug c/25613] New: sh compiler hangs when compiling some inline asm
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
attempting to build a package which tests a bunch of inline assembly snippets
to see if the host supports it ... in this case, this snippet caused a hang:
lantank # cat conftest.c
int main() {
unsigned long foo;
asm("pklb %1, %0" : "=r" (foo) : "rI" (foo));
return 0;
}
lantank # gcc -v -c conftest.c
Reading specs from /usr/lib/gcc/sh4-gentoo-linux-uclibc/3.4.5/specs
Configured with: /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/configure
--prefix=/usr --bindir=/usr/sh4-gentoo-linux-uclibc/gcc-bin/3.4.5
--includedir=/usr/lib/gcc/sh4-gentoo-linux-uclibc/3.4.5/include
--datadir=/usr/share/gcc-data/sh4-gentoo-linux-uclibc/3.4.5
--mandir=/usr/share/gcc-data/sh4-gentoo-linux-uclibc/3.4.5/man
--infodir=/usr/share/gcc-data/sh4-gentoo-linux-uclibc/3.4.5/info
--with-gxx-include-dir=/usr/lib/gcc/sh4-gentoo-linux-uclibc/3.4.5/include/g++-v3
--host=sh4-gentoo-linux-uclibc --build=sh4-gentoo-linux-uclibc
--disable-altivec --disable-nls --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libmudflap --disable-libgcj --enable-languages=c,c++ --enable-shared
--enable-threads=posix --disable-__cxa_atexit --enable-target-optspace
--enable-clocale=uclibc
Thread model: posix
gcc version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
/usr/libexec/gcc/sh4-gentoo-linux-uclibc/3.4.5/cc1 -quiet -v conftest.c -quiet
-dumpbase conftest.c -auxbase conftest -version -o /tmp/cctiJvYX.s
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/sh4-gentoo-linux-uclibc/3.4.5/../../../../sh4-gentoo-linux-uclibc/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/sh4-gentoo-linux-uclibc/3.4.5/include
/usr/include
End of search list.
GNU C version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
(sh4-gentoo-linux-uclibc)
compiled by GNU C version 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0,
pie-8.7.9).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
<hangs here>
attaching with strace shows that it's just spinning in an infinite loop
somewhere
tested Gentoo/gcc-3.4.5 native/cross sh4, FC4/gcc-4.0.0 cross
--
Summary: sh compiler hangs when compiling some inline asm
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vapier at gentoo dot org
GCC target triplet: sh4-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25613