public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mathieu.malaterre at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63368] Provide an implementation for `__sync_val_compare_and_swap_8' on powerpc (32bits) Date: Thu, 25 Sep 2014 08:38:00 -0000 [thread overview] Message-ID: <bug-63368-4-8nRHzHvgTL@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-63368-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63368 --- Comment #4 from Mathieu Malaterre <mathieu.malaterre at gmail dot com> --- As stated in my original report I am running a PowerPC/32bits machine (not an ARM based one). AFAIK gcc 4.9.1 does not provide such implementation [*]. Could you please clarify what you mean by 'libatomic is there already' ? [*] % cat t.c #include <stdint.h> int main() { int64_t x = 0, y = 1; y = __sync_val_compare_and_swap(&x, x, y); return 0; } % gcc -v t.c -latomic Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc-linux-gnu/4.9/lto-wrapper Target: powerpc-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.1-15' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-powerpc/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-powerpc --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-powerpc --with-arch-directory=ppc --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-secureplt --disable-softfloat --with-cpu=default32 --disable-softfloat --enable-targets=powerpc-linux,powerpc64-linux --enable-multiarch --with-long-double-128 --enable-multilib --enable-checking=release --build=powerpc-linux-gnu --host=powerpc-linux-gnu --target=powerpc-linux-gnu Thread model: posix gcc version 4.9.1 (Debian 4.9.1-15) COLLECT_GCC_OPTIONS='-v' /usr/lib/gcc/powerpc-linux-gnu/4.9/cc1 -quiet -v -imultiarch powerpc-linux-gnu -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix t.c -msecure-plt -quiet -dumpbase t.c -auxbase t -version -o /tmp/ccNTY4Ab.s GNU C (Debian 4.9.1-15) version 4.9.1 (powerpc-linux-gnu) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include/powerpc-linux-gnu" ignoring nonexistent directory "/usr/lib/gcc/powerpc-linux-gnu/4.9/../../../../powerpc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/powerpc-linux-gnu/4.9/include /usr/local/include /usr/lib/gcc/powerpc-linux-gnu/4.9/include-fixed /usr/include/powerpc-linux-gnu /usr/include End of search list. GNU C (Debian 4.9.1-15) version 4.9.1 (powerpc-linux-gnu) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: c43d4b06b119d970361c68b09a8c4f80 COLLECT_GCC_OPTIONS='-v' as -v -a32 -mppc -many -mbig -o /tmp/cckOC6zg.o /tmp/ccNTY4Ab.s GNU assembler version 2.24.51 (powerpc-linux-gnu) using BFD version (GNU Binutils for Debian) 2.24.51.20140918 COMPILER_PATH=/usr/lib/gcc/powerpc-linux-gnu/4.9/:/usr/lib/gcc/powerpc-linux-gnu/4.9/:/usr/lib/gcc/powerpc-linux-gnu/:/usr/lib/gcc/powerpc-linux-gnu/4.9/:/usr/lib/gcc/powerpc-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/powerpc-linux-gnu/4.9/:/usr/lib/gcc/powerpc-linux-gnu/4.9/../../../powerpc-linux-gnu/:/usr/lib/gcc/powerpc-linux-gnu/4.9/../../../../lib/:/lib/powerpc-linux-gnu/:/lib/../lib/:/usr/lib/powerpc-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/powerpc-linux-gnu/4.9/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' /usr/lib/gcc/powerpc-linux-gnu/4.9/collect2 -plugin /usr/lib/gcc/powerpc-linux-gnu/4.9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/powerpc-linux-gnu/4.9/lto-wrapper -plugin-opt=-fresolution=/tmp/cc3I7gDk.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -V -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 /usr/lib/gcc/powerpc-linux-gnu/4.9/../../../powerpc-linux-gnu/crt1.o /usr/lib/gcc/powerpc-linux-gnu/4.9/../../../powerpc-linux-gnu/crti.o /usr/lib/gcc/powerpc-linux-gnu/4.9/crtbegin.o -L/usr/lib/gcc/powerpc-linux-gnu/4.9 -L/usr/lib/gcc/powerpc-linux-gnu/4.9/../../../powerpc-linux-gnu -L/usr/lib/gcc/powerpc-linux-gnu/4.9/../../../../lib -L/lib/powerpc-linux-gnu -L/lib/../lib -L/usr/lib/powerpc-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/powerpc-linux-gnu/4.9/../../.. /tmp/cckOC6zg.o -latomic -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/powerpc-linux-gnu/4.9/crtend.o /usr/lib/gcc/powerpc-linux-gnu/4.9/../../../powerpc-linux-gnu/crtn.o GNU ld (GNU Binutils for Debian) 2.24.51.20140918 Supported emulations: elf32ppclinux elf32ppc elf32ppcsim elf64ppc /tmp/cckOC6zg.o: In function `main': t.c:(.text+0x74): undefined reference to `__sync_val_compare_and_swap_8' collect2: error: ld returned 1 exit status
next prev parent reply other threads:[~2014-09-25 8:38 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-09-25 7:08 [Bug c/63368] New: undefined reference to `__sync_val_compare_and_swap_8' mathieu.malaterre at gmail dot com 2014-09-25 7:16 ` [Bug c/63368] " pinskia at gcc dot gnu.org 2014-09-25 7:31 ` [Bug c/63368] Provide an implementation for `__sync_val_compare_and_swap_8' on powerpc (32bits) mathieu.malaterre at gmail dot com 2014-09-25 7:34 ` pinskia at gcc dot gnu.org 2014-09-25 8:38 ` mathieu.malaterre at gmail dot com [this message] 2014-09-30 7:30 ` mathieu.malaterre at gmail dot com 2015-05-28 12:09 ` mathieu.malaterre at gmail dot com 2021-08-16 22:07 ` glaubitz at physik dot fu-berlin.de 2023-05-09 3:55 ` vital.had at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-63368-4-8nRHzHvgTL@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).