Opened 14 years ago
Last modified 12 years ago
#27163 closed defect
gcc44 4.4.5 fails to build Leopard/ppc — at Version 1
Reported by: | jeremyhu (Jeremy Huddleston Sequoia) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | gcc44 |
Description (last modified by jeremyhu (Jeremy Huddleston Sequoia))
libtool: compile: /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_gcc44/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_gcc44/work/build/./gcc/ -B/opt/local/ppc-apple-darwin9/bin/ -B/opt/local/ppc-apple-darwin9/lib/ -isystem /opt/local/ppc-apple-darwin9/include -isystem /opt/local/ppc-apple-darwin9/sys-include -DHAVE_CONFIG_H -I/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_gcc44/work/gcc-4.4.5/boehm-gc/include -fexceptions -Iinclude -I././targ-include -I.//libc/include -g -pipe -ggdb3 -fexceptions -Iinclude -I././targ-include -I.//libc/include -c ../../../gcc-4.4.5/boehm-gc/os_dep.c -fno-common -DPIC -o .libs/os_dep.o In file included from /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_gcc44/work/gcc-4.4.5/boehm-gc/include/private/gc_priv.h:98, from ../../../gcc-4.4.5/boehm-gc/os_dep.c:17: /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_gcc44/work/gcc-4.4.5/boehm-gc/include/private/gc_locks.h: In function 'GC_test_and_set': /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_gcc44/work/gcc-4.4.5/boehm-gc/include/private/gc_locks.h:165: error: 'asm' operand has impossible constraints
inline static int GC_test_and_set(volatile unsigned int *addr) { int oldval; int temp = 1; /* locked value */ __asm__ __volatile__( "1:\tlwarx %0,0,%3\n" /* load and reserve */ "\tcmpwi %0, 0\n" /* if load is */ "\tbne 2f\n" /* non-zero, return already set */ "\tstwcx. %2,0,%1\n" /* else store conditional */ "\tbne- 1b\n" /* retry if lost reservation */ "\tsync\n" /* import barrier */ "2:\t\n" /* oldval is zero if we set */ : "=&r"(oldval), "=p"(addr) : "r"(temp), "1"(addr) : "cr0","memory"); return oldval; }
Change History (1)
comment:1 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.