Launchpad has imported 6 comments from the remote bug at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29833.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://documentation.ubuntu.com/launchpad/user/reference/bugs/multi-project-bugs/about-multi-project-bugs/#bugs-in-external-trackers. ------------------------------------------------------------------------ On 2006-11-14T14:25:33+00:00 Jan Schmidt wrote: Actual version string from gcc: 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) Configured with: ../src/configure -v --enable- languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable- shared --with-system-zlib --libexecdir=/usr/lib --without-included- gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Using __builtin_prefetch with the default compiler flags (i.e, mtune=generic) generates a 3dnow prefetch instruction (prefetchw), which won't run on em64t cpus. Attaching test file. Compiling this with gcc -otest test.c produces a binary that faults on em64t. Compiling with 'gcc -o test -mno-3dnow test.c' generates a prefetcht0 instruction, which works. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/66702/comments/14 ------------------------------------------------------------------------ On 2006-11-14T14:26:06+00:00 Jan Schmidt wrote: Created attachment 12617 simple test file Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/66702/comments/15 ------------------------------------------------------------------------ On 2006-11-14T15:54:09+00:00 Rguenth wrote: What does adding '-v' to the compile command say? It seems Ubuntu is using a default -march that enables 3dnow (k8 or opteron maybe) - it should use x86_64 instead. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/66702/comments/16 ------------------------------------------------------------------------ On 2006-11-14T15:56:48+00:00 Rguenth wrote: For SUSE 4.1.2 I get prefetcht0 generated. So this is an Ubuntu bug. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/66702/comments/17 ------------------------------------------------------------------------ On 2006-11-14T16:09:27+00:00 Jan Schmidt wrote: It's using -mtune=generic: Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) /usr/lib/gcc/x86_64-linux-gnu/4.1.2/cc1 -quiet -v test.c -quiet -dumpbase test.c -mtune=generic -auxbase test -version -fstack-protector -fstack-protector -o /tmp/cc5wy3wa.s ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/include" ignoring nonexistent directory "/usr/include/x86_64-linux-gnu" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include /usr/include End of search list. GNU C version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5) (x86_64-linux-gnu) compiled by GNU C version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5). GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128174 Compiler executable checksum: 69b037dea6ceacffa2e97527b1ac3ca3 as -V -Qy -o /tmp/ccONENBd.o /tmp/cc5wy3wa.s GNU assembler version 2.17 (x86_64-linux-gnu) using BFD version 2.17 Debian GNU/Linux /usr/lib/gcc/x86_64-linux-gnu/4.1.2/collect2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o test /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 /tmp/ccONENBd.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.1.2/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/crtn.o Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/66702/comments/18 ------------------------------------------------------------------------ On 2006-11-14T16:29:39+00:00 Rguenth wrote: Please file a bug with Ubuntu instead. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.1/+bug/66702/comments/19 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/66702 Title: GCC emits 3DNow!-specific instruction for __builtin_prefetch To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/66702/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
