Launchpad has imported 9 comments from the remote bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57637.
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://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2013-06-17T09:55:27+00:00 Ktkachov wrote: We're getting a miscompare on the 178.galgel benchmark in SPEC2000 on armv7l-unknown-linux-gnueabihf, on a Cortex-A15. The .mis file just says 'galgel.out' short. Bisection shows it started with r199439. 2013-05-30 Bernd Schmidt <ber...@codesourcery.com> Zhenqiang Chen <zhenqiang.c...@linaro.org> config/arm/arm-protos.h: Add and update function protos. config/arm/arm.c (use_simple_return_p): New added. (thumb2_expand_return): Check simple_return flag. config/arm/arm.md: Add simple_return and conditional simple_return. config/arm/iterators.md: Add iterator for return and simple_return. The compiler was configured: "--with-cpu=cortex-a15 --with-fpu=neon-vfpv4 --with-mode=thumb --with-float=hard --enable-languages=c,c++,fortran" The flags for the benchmark are -ffixed-form -mthumb -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -O3. It works with -O1, fails at -O2 and -O3 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/0 ------------------------------------------------------------------------ On 2013-06-18T07:48:36+00:00 Zhenqiang Chen wrote: I had reproduced it on chrome book. It failed due to "alignment exception" for O3. I will do more investigation. If this bug blocks your work, please try "-fno-shrink-wrap" to disable the optimization. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/1 ------------------------------------------------------------------------ On 2013-06-18T08:18:00+00:00 Ktkachov wrote: Thanks, Zhenqiang. For me, it's a segfault in function DGETF2. gdb backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0001d964 in dgetf2_ () (gdb) bt #0 0x0001d964 in dgetf2_ () #1 0x000255a4 in dgetrf_ () #2 0x00015856 in sysnsl_ () #3 0x0001194e in MAIN__ () at galgel.f90:9 Looking further into it, the segfault seems to be from the function idamax that is inlined in dgetf2. Hope this helps, Kyrill Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/2 ------------------------------------------------------------------------ On 2013-06-21T05:06:29+00:00 Zhenqiang Chen wrote: Created attachment 30330 pr57637.patch Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/3 ------------------------------------------------------------------------ On 2013-06-21T05:13:41+00:00 Zhenqiang Chen wrote: Root cause: For ARM, gcc might generate cond_exec insns before shrink-wrapping. But DF_LR_BB_INFO (bb)->def does not include def info from cond_exec insns. So the check in function move_insn_for_shrink_wrap is not enough. We'd check DF_LIVE_BB_INFO (bb)->gen. Kyrill, Please try the attached patch. If it works, I will send it for community review. Thanks! -Zhenqiang Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/4 ------------------------------------------------------------------------ On 2013-06-21T09:14:30+00:00 Ktkachov wrote: > Please try the attached patch. If it works, I will send it for community > review. Hi Zhenqiang, This seems to fix the miscompare on my setup, thanks! I haven't ran a full regression test on it though, but it seems reasonable at first glance. Kyrill Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/5 ------------------------------------------------------------------------ On 2013-06-21T20:15:40+00:00 Mikpe wrote: (In reply to zhenqiang.chen from comment #3) > Created attachment 30330 [details] > pr57637.patch This patch breaks Ada bootstrap on x86_64 for me: /tmp/objdir/./prev-gcc/xgcc -B/tmp/objdir/./prev-gcc/ -B/tmp/install49/x86_64-unknown-linux-gnu/bin/ -B/tmp/install49/x86_64-unknown-linux-gnu/bin/ -B/tmp/install49/x86_64-unknown-linux-gnu/lib/ -isystem /tmp/install49/x86_64-unknown-linux-gnu/include -isystem /tmp/install49/x86_64-unknown-linux-gnu/sys-include -c -g -O2 -gtoggle -gnatpg -W -Wall -g -O1 -fno-inline \ -nostdinc -I- -I. -Iada -I/tmp/gcc-4.9-20130616/gcc/ada -I/tmp/gcc-4.9-20130616/gcc/ada/gcc-interface /tmp/gcc-4.9-20130616/gcc/ada/a-except.adb -o ada/a-except.o raised STORAGE_ERROR : stack overflow or erroneous memory access make[3]: *** [ada/a-except.o] Error 1 make[3]: Leaving directory `/tmp/objdir/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/tmp/objdir' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/tmp/objdir' make: *** [bootstrap] Error 2 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/6 ------------------------------------------------------------------------ On 2013-06-26T07:29:48+00:00 Zhenqiang Chen wrote: Created attachment 30364 update patch Please try the updated patch. Local tests: x86-64 and pandaboard bootstrap OK. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/13 ------------------------------------------------------------------------ On 2013-06-26T09:23:01+00:00 Ktkachov wrote: (In reply to zhenqiang.chen from comment #7) > Created attachment 30364 [details] > update patch > > > Please try the updated patch. Local tests: x86-64 and pandaboard bootstrap This fixes the segfault in SPEC on arm for me. Is there a way to produce a testsuite testcase for this regression? The benchmark where this occurs is a large chunk of Fortran, not sure how easy it is to reduce it. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1194123/comments/14 ** Changed in: gcc Status: Unknown => New ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1194123 Title: [gcc-linaro wrong-code regression] gcc 4.8.1-2ubuntu1 to 4.8.1-3ubuntu1 breaks gtk on armhf To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/1194123/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs