[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 Bug 60663 depends on bug 63637, which changed state. Bug 63637 Summary: [4.9 Regression] CSE on x86 asm()-s no longer working due to PR/60663 fix https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63637 What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Sun Feb 1 17:33:19 2015 New Revision: 220323 URL: https://gcc.gnu.org/viewcvs?rev=220323&root=gcc&view=rev Log: Backported from mainline 2015-01-23 Jakub Jelinek PR rtl-optimization/63637 PR rtl-optimization/60663 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST if elt->cost is MAX_COST for ASM_OPERANDS. (find_sets_in_insn): Fix up comment typo. (cse_insn): Don't set src_volatile for all non-volatile ASM_OPERANDS in PARALLELs, but just those with multiple outputs or with "memory" clobber. Set elt->cost to MAX_COST for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST if new_src is ASM_OPERANDS and elt->cost is MAX_COST. * gcc.dg/pr63637-1.c: New test. * gcc.dg/pr63637-2.c: New test. * gcc.dg/pr63637-3.c: New test. * gcc.dg/pr63637-4.c: New test. * gcc.dg/pr63637-5.c: New test. * gcc.dg/pr63637-6.c: New test. * gcc.target/i386/pr63637-1.c: New test. * gcc.target/i386/pr63637-2.c: New test. * gcc.target/i386/pr63637-3.c: New test. * gcc.target/i386/pr63637-4.c: New test. * gcc.target/i386/pr63637-5.c: New test. * gcc.target/i386/pr63637-6.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-1.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-2.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-3.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-4.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-5.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-6.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-1.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-2.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-3.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-4.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-5.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-6.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/cse.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Fri Jan 23 19:55:16 2015 New Revision: 220059 URL: https://gcc.gnu.org/viewcvs?rev=220059&root=gcc&view=rev Log: PR rtl-optimization/63637 PR rtl-optimization/60663 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST if elt->cost is MAX_COST for ASM_OPERANDS. (find_sets_in_insn): Fix up comment typo. (cse_insn): Don't set src_volatile for all non-volatile ASM_OPERANDS in PARALLELs, but just those with multiple outputs or with "memory" clobber. Set elt->cost to MAX_COST for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST if new_src is ASM_OPERANDS and elt->cost is MAX_COST. * gcc.dg/pr63637-1.c: New test. * gcc.dg/pr63637-2.c: New test. * gcc.dg/pr63637-3.c: New test. * gcc.dg/pr63637-4.c: New test. * gcc.dg/pr63637-5.c: New test. * gcc.dg/pr63637-6.c: New test. * gcc.target/i386/pr63637-1.c: New test. * gcc.target/i386/pr63637-2.c: New test. * gcc.target/i386/pr63637-3.c: New test. * gcc.target/i386/pr63637-4.c: New test. * gcc.target/i386/pr63637-5.c: New test. * gcc.target/i386/pr63637-6.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr63637-1.c trunk/gcc/testsuite/gcc.dg/pr63637-2.c trunk/gcc/testsuite/gcc.dg/pr63637-3.c trunk/gcc/testsuite/gcc.dg/pr63637-4.c trunk/gcc/testsuite/gcc.dg/pr63637-5.c trunk/gcc/testsuite/gcc.dg/pr63637-6.c trunk/gcc/testsuite/gcc.target/i386/pr63637-1.c trunk/gcc/testsuite/gcc.target/i386/pr63637-2.c trunk/gcc/testsuite/gcc.target/i386/pr63637-3.c trunk/gcc/testsuite/gcc.target/i386/pr63637-4.c trunk/gcc/testsuite/gcc.target/i386/pr63637-5.c trunk/gcc/testsuite/gcc.target/i386/pr63637-6.c Modified: trunk/gcc/ChangeLog trunk/gcc/cse.c trunk/gcc/testsuite/ChangeLog
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 --- Comment #6 from yroux at gcc dot gnu.org --- Author: yroux Date: Thu Jun 12 09:13:57 2014 New Revision: 211497 URL: http://gcc.gnu.org/viewcvs?rev=211497&root=gcc&view=rev Log: 2014-05-23 Yvan Roux Backport from trunk r209419. 2014-04-15 Kyrylo Tkachov PR rtl-optimization/60663 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case, avoid 0 cost. Modified: branches/linaro/gcc-4_9-branch/gcc/ChangeLog.linaro branches/linaro/gcc-4_9-branch/gcc/config/arm/arm.c
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 --- Comment #5 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Tue Apr 15 14:04:06 2014 New Revision: 209419 URL: http://gcc.gnu.org/viewcvs?rev=209419&root=gcc&view=rev Log: PR rtl-optimization/60663 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case, avoid 0 cost. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.c
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 --- Comment #4 from Launchpad --- Arnd Bergmann added the following comment to Launchpad bug report 1296942: Looks good now, I have resumed ARM kernel build testing with gcc-4.9 now and don't see this any more. There is one new bug that came up instead but it seems unrelated. I'll open a new ticket for that. -- http://launchpad.net/bugs/1296942
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Jakub Jelinek --- Should be fixed now.
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 --- Comment #2 from Jakub Jelinek --- Author: jakub Date: Fri Apr 11 10:11:01 2014 New Revision: 209293 URL: http://gcc.gnu.org/viewcvs?rev=209293&root=gcc&view=rev Log: PR rtl-optimization/60663 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL. * gcc.target/arm/pr60663.c: New test. Added: trunk/gcc/testsuite/gcc.target/arm/pr60663.c Modified: trunk/gcc/ChangeLog trunk/gcc/cse.c trunk/gcc/testsuite/ChangeLog
[Bug rtl-optimization/60663] [4.9 Regression] Errors out on valid inline asm
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60663 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1 Status|UNCONFIRMED |NEW Last reconfirmed||2014-04-10 CC||jakub at gcc dot gnu.org Target Milestone|--- |4.9.0 Summary|Errors out on valid inline |[4.9 Regression] Errors out |asm |on valid inline asm Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek --- Supposedly introduced by r203160 which made inline asm with no input operands appear as having zero cost. Alternate patch posted at http://gcc.gnu.org/ml/gcc-patches/2014-04/msg00512.html