[Bug target/70216] [SH] Implement __builtin_trap

2017-12-06 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70216 --- Comment #22 from Segher Boessenkool --- ? Why me? What do I have to do with this? It's SH code, I'm not an SH maintainer. /confused

[Bug target/83289] [8 regression] i386/sse2-init-v2di-2.c, i386/avx256-unaligned-load-1.c, i386/avx256-unaligned-store-*.c fails

2017-12-05 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83289 --- Comment #2 from Segher Boessenkool --- Ah. It seems to be because the testcases test for /5, /4 etc., which is now printed as /4 resp. /3, because alternatives start counting at 0.

[Bug target/83289] [8 regression] i386/sse2-init-v2di-2.c, i386/avx256-unaligned-load-1.c, i386/avx256-unaligned-store-*.c fails

2017-12-05 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83289 --- Comment #1 from Segher Boessenkool --- Please show output and output from before it failed. And/or some analysis that shows why current is wrong. Etc. Or even better, make a patch to fix the testcase ;-)

[Bug rtl-optimization/83245] [8 regression] several tests fail starting with r255258

2017-12-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83245 Segher Boessenkool changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/83245] [8 regression] several tests fail starting with r255258

2017-12-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83245 --- Comment #3 from Segher Boessenkool --- Author: segher Date: Mon Dec 4 09:30:37 2017 New Revision: 255377 URL: https://gcc.gnu.org/viewcvs?rev=255377=gcc=rev Log: lra: Clobbers in a parallel are earlyclobbers (PR83245) The documentation

[Bug bootstrap/83265] [8 Regression] Bootstrap failure on powerpc64

2017-12-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83265 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug bootstrap/83265] [8 Regression] Bootstrap failure on powerpc64

2017-12-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83265 --- Comment #2 from Segher Boessenkool --- Author: segher Date: Mon Dec 4 09:19:27 2017 New Revision: 255376 URL: https://gcc.gnu.org/viewcvs?rev=255376=gcc=rev Log: PR bootstrap/83265 Revert 2017-12-01 Segher

[Bug target/43871] -mcpu=power4 -mtune=cell emits power7/cell-only opcodes

2017-12-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43871 --- Comment #6 from Segher Boessenkool --- Author: segher Date: Mon Dec 4 09:19:27 2017 New Revision: 255376 URL: https://gcc.gnu.org/viewcvs?rev=255376=gcc=rev Log: PR bootstrap/83265 Revert 2017-12-01 Segher

[Bug bootstrap/83265] [8 Regression] Bootstrap failure on powerpc64

2017-12-03 Thread segher at gcc dot gnu.org
||2017-12-03 Assignee|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- Mine.

[Bug target/83245] [8 regression] several tests fail starting with r255258

2017-12-02 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83245 Segher Boessenkool changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org

[Bug target/43871] -mcpu=power4 -mtune=cell emits power7/cell-only opcodes

2017-12-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43871 --- Comment #5 from Segher Boessenkool --- Author: segher Date: Sat Dec 2 01:23:41 2017 New Revision: 255349 URL: https://gcc.gnu.org/viewcvs?rev=255349=gcc=rev Log: rs6000: Set rs6000_cpu correctly (PR43871) We set rs6000_cpu based on

[Bug target/81288] [6/7/8 Regression] ICE on 32-bit BE powerpc targets -w -misel -O2 (-O3, -Ofast, -Os)

2017-12-01 Thread segher at gcc dot gnu.org
at gcc dot gnu.org |unassigned at gcc dot gnu.org --- Comment #6 from Segher Boessenkool --- Fixed for powerpc on all open branches. Still needs to be handled for powerpcspe.

[Bug target/81288] [6/7/8 Regression] ICE on 32-bit BE powerpc targets -w -misel -O2 (-O3, -Ofast, -Os)

2017-12-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81288 --- Comment #5 from Segher Boessenkool --- Author: segher Date: Fri Dec 1 20:37:33 2017 New Revision: 255338 URL: https://gcc.gnu.org/viewcvs?rev=255338=gcc=rev Log: rs6000: Improve comparison rtx_cost (PR81288) The current rs6000 rtx_cost

[Bug target/81288] [6/7/8 Regression] ICE on 32-bit BE powerpc targets -w -misel -O2 (-O3, -Ofast, -Os)

2017-12-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81288 --- Comment #4 from Segher Boessenkool --- Author: segher Date: Fri Dec 1 20:35:52 2017 New Revision: 255337 URL: https://gcc.gnu.org/viewcvs?rev=255337=gcc=rev Log: rs6000: Improve comparison rtx_cost (PR81288) The current rs6000 rtx_cost

[Bug target/83156] [8 regression] gcc.target/i386/pr82361-1.c fail

2017-11-30 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83156 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/83156] [8 regression] gcc.target/i386/pr82361-1.c fail

2017-11-29 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83156 --- Comment #4 from Segher Boessenkool --- Author: segher Date: Wed Nov 29 22:42:37 2017 New Revision: 255260 URL: https://gcc.gnu.org/viewcvs?rev=255260=gcc=rev Log: combine: Do not throw away unneeded arms of parallels (PR83156) The fix for

[Bug rtl-optimization/82621] [6/7 Regression] wrong code with -Og -fgcse -fweb

2017-11-29 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #11 from Segher Boessenkool --- Author: segher Date: Wed Nov 29 22:42:37 2017 New Revision: 255260 URL: https://gcc.gnu.org/viewcvs?rev=255260=gcc=rev Log: combine: Do not throw away unneeded arms of parallels (PR83156) The fix for

[Bug rtl-optimization/81020] [6/7 Regression] wrong code with -O -fno-tree-bit-ccp -fno-tree-coalesce-vars -fno-tree-vrp

2017-11-28 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81020 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug target/81288] [6/7/8 Regression] ICE on 32-bit BE powerpc targets -w -misel -O2 (-O3, -Ofast, -Os)

2017-11-27 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81288 --- Comment #3 from Segher Boessenkool --- Author: segher Date: Tue Nov 28 01:28:57 2017 New Revision: 255188 URL: https://gcc.gnu.org/viewcvs?rev=255188=gcc=rev Log: rs6000: Improve comparison rtx_cost (PR81288) The current rs6000 rtx_cost

[Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-'

2017-11-26 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143 --- Comment #12 from Segher Boessenkool --- Yes I use sh4-linux, but trunk (not 7). Will try 7 later.

[Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-'

2017-11-26 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143 --- Comment #9 from Segher Boessenkool --- What flags does it need? I can't get it to fail.

[Bug target/83156] [8 regression] gcc.target/i386/pr82361-1.c fail

2017-11-25 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83156 --- Comment #3 from Segher Boessenkool --- Hrm, looking for a REG_UNUSED of the dests (instead of of anything) fixes f1 and f2, but not the rest.

[Bug target/83156] [8 regression] gcc.target/i386/pr82361-1.c fail

2017-11-25 Thread segher at gcc dot gnu.org
||2017-11-25 Assignee|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Segher Boessenkool --- Ah, I see what is happening -- there are REG_UNUSED notes here that do not refer

[Bug other/83150] GCC's internal use of `abort`is unsafe in several ways

2017-11-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83150 --- Comment #4 from Segher Boessenkool --- (In reply to Ben Longbons from comment #3) > (In reply to Andrew Pinski from comment #2) > > Plugins are not well defined in GCC. > > That excuse is getting *really* old. No matter how often you

[Bug target/83143] [SH]: Assembler messages: invalid operands (*UND* and .text sections) for `-'

2017-11-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug rtl-optimization/81288] [6/7/8 Regression] ICE on 32-bit BE powerpc targets -w -misel -O2 (-O3, -Ofast, -Os)

2017-11-24 Thread segher at gcc dot gnu.org
|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org

[Bug rtl-optimization/82621] [6/7 Regression] wrong code with -Og -fgcse -fweb

2017-11-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/82621] [6/7 Regression] wrong code with -Og -fgcse -fweb

2017-11-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #9 from Segher Boessenkool --- Author: segher Date: Fri Nov 24 17:03:04 2017 New Revision: 255143 URL: https://gcc.gnu.org/viewcvs?rev=255143=gcc=rev Log: combine: Don't split insns if half is unused (PR82621) If we have a PARALLEL

[Bug rtl-optimization/82621] [6/7 Regression] wrong code with -Og -fgcse -fweb

2017-11-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #8 from Segher Boessenkool --- Author: segher Date: Fri Nov 24 17:00:57 2017 New Revision: 255142 URL: https://gcc.gnu.org/viewcvs?rev=255142=gcc=rev Log: combine: Don't split insns if half is unused (PR82621) If we have a PARALLEL

[Bug rtl-optimization/82621] [6/7 Regression] wrong code with -Og -fgcse -fweb

2017-11-23 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #7 from Segher Boessenkool --- *** Bug 81291 has been marked as a duplicate of this bug. ***

[Bug target/81291] [6/7 Regression] wrong code with -O2 -fno-rerun-cse-after-loop -fno-tree-ter -fno-tree-vrp -funroll-loops due to improper carry

2017-11-23 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81291 Segher Boessenkool changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/83123] Int compare - different asm code for different return type

2017-11-23 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83123 --- Comment #2 from Segher Boessenkool --- In the first case (with the extend to SImode) the extend is combined with the AND, to an AND in SImode. After that, the 3-insn combination of the two shifts with the AND is something combine knows how

[Bug target/82674] ICE with -fstack-clash-protection

2017-11-22 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82674 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/82190] Possibly latent miscompilation issue on ppc64le-linux-gnu for memcpy-bi.c with -fweb -fno-optimize-strlen

2017-11-22 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82190 Segher Boessenkool changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/18154] Inefficient max/min code for PowerPC

2017-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18154 --- Comment #13 from Segher Boessenkool --- Trunk now generates isel for power9.

[Bug target/83084] [7/8 Regression] -fcompare-debug failure on ppc64le

2017-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83084 --- Comment #3 from Segher Boessenkool --- Is this because the var_location contains an unspec_volatile? Is that a target bug, then?

[Bug tree-optimization/67530] Failure to eliminate dead code produced by vector lowering

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67530 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug rtl-optimization/66552] Missed optimization when shift amount is result of signed modulus

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66552 --- Comment #4 from Segher Boessenkool --- Trunk does (both -m32 and -m64) srawi 9,4,5 addze 9,9 slwi 9,9,5 subf 4,9,4 srw 3,3,4 and rlwinm 4,4,0,27,31 srw 3,3,4 so the original problem

[Bug bootstrap/81315] powerpc64 vs building lang/gcc7-devel (on FreeBSD head): xgcc gets segmentation fault

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81315 --- Comment #5 from Segher Boessenkool --- This was BE, on a compiler that defaults to power4 ("970 without altivec"). I.e. the default for powerpc64-linux.

[Bug rtl-optimization/70134] combine misses jump optimization on powerpc64le

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70134 --- Comment #3 from Segher Boessenkool --- PowerPC has no simple way to set a CR field to "equal". We could add a pattern to do that (which will cost 2 insns, so works for 3->2 combinations, like we in fact get here; something like li X,0 ;

[Bug target/68690] PowerPC64: TOC save in PHP core loop results in load hit store

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68690 Segher Boessenkool changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/77687] frame access after release without redzone on powerpc

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77687 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/77687] frame access after release without redzone on powerpc

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77687 --- Comment #8 from Segher Boessenkool --- Author: segher Date: Mon Nov 20 20:10:28 2017 New Revision: 254968 URL: https://gcc.gnu.org/viewcvs?rev=254968=gcc=rev Log: rs6000: Don't touch below the stack pointer (PR77687) With the 32-bit SVR4

[Bug target/81291] [6/7/8 Regression] wrong code with -O2 -fno-rerun-cse-after-loop -fno-tree-ter -fno-tree-vrp -funroll-loops due to improper carry

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81291 --- Comment #4 from Segher Boessenkool --- Fixed on trunk. This may be the same as PR82621, which I'll backport this week.

[Bug bootstrap/81315] powerpc64 vs building lang/gcc7-devel (on FreeBSD head): xgcc gets segmentation fault

2017-11-20 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81315 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug target/81362] [8 regression] FAIL: gcc.dg/vect/no-vfa-vect-57.c execution test

2017-11-19 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81362 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug rtl-optimization/37262] Two branches of the same condition being emitted

2017-11-19 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37262 Segher Boessenkool changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/37262] Two branches of the same condition being emitted

2017-11-19 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37262 --- Comment #8 from Segher Boessenkool --- This is fixed on trunk. I'll bisect it to see if it is worth backporting.

[Bug target/61729] FAIL: g++.dg/abi/scoped1.C -std=gnu++11 execution test

2017-11-18 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61729 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/82621] [6/7/8 Regression] wrong code with -Og -fgcse -fweb

2017-11-17 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #6 from Segher Boessenkool --- Fixed on trunk, backports pending.

[Bug rtl-optimization/82621] [6/7/8 Regression] wrong code with -Og -fgcse -fweb

2017-11-17 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #5 from Segher Boessenkool --- Author: segher Date: Fri Nov 17 14:46:04 2017 New Revision: 254874 URL: https://gcc.gnu.org/viewcvs?rev=254874=gcc=rev Log: combine: Don't split insns if half is unused (PR82621) If we have a PARALLEL

[Bug target/82621] [6/7/8 Regression] wrong code with -Og -fgcse -fweb

2017-11-17 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #4 from Segher Boessenkool --- Lack of coffee: the CA feeding into insn 90 is from insn 89, not from 77.

[Bug target/82621] [6/7/8 Regression] wrong code with -Og -fgcse -fweb

2017-11-17 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82621 --- Comment #3 from Segher Boessenkool --- Trying 77 -> 90: 77: {r196:SI=0-r188:SI;ca:SI=leu(r188:SI,0);} REG_UNUSED ca:SI 90: {r197:SI=r196:SI+r196:SI+ca:SI;clobber ca:SI;} REG_DEAD r196:SI REG_DEAD ca:SI

[Bug target/82621] [6/7/8 Regression] wrong code with -Og -fgcse -fweb

2017-11-17 Thread segher at gcc dot gnu.org
||2017-11-17 CC||segher at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Segher Boessenkool --- Confirmed

[Bug target/82907] [8 regression] gcc.target/powerpc/p9-xxbr-1.c fails after r254464

2017-11-17 Thread segher at gcc dot gnu.org
||segher at gcc dot gnu.org Resolution|--- |FIXED --- Comment #1 from Segher Boessenkool --- This is fixed.

[Bug ipa/82908] [8 regression] gcc.dg/tree-prof/cmpsf-1.c and gcc.dg/tree-prof/20050826-2.c fail starting with r254452

2017-11-17 Thread segher at gcc dot gnu.org
||2017-11-17 CC||segher at gcc dot gnu.org Ever confirmed|0 |1

[Bug c/82940] Suboptimal code for (a & 0x7f) | (b & 0x80) on powerpc

2017-11-17 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82940 --- Comment #3 from Segher Boessenkool --- In combine, we start with insn_cost 4 for10: r137:SI=r136:QI#0&0x7f REG_DEAD r136:QI insn_cost 4 for13: r140:SI=r132:SI&0xff80 REG_DEAD r132:SI insn_cost 4 for16:

[Bug c/82940] Suboptimal code for (a & 0x7f) | (b & 0x80) on powerpc

2017-11-17 Thread segher at gcc dot gnu.org
|UNCONFIRMED |NEW Last reconfirmed||2017-11-17 CC||segher at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Segher Boessenkool --- On trunk it does (with -m32 -O2): g

[Bug rtl-optimization/82982] [8 Regression] ICE: qsort checking failed (error: qsort comparator non-negative on sorted output: 5) in ready_sort_real in haifa scheduler

2017-11-17 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82982 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/69737] [5 Regression] FAIL: gcc.c-torture/execute/pr64682.c -O2 execution test

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69737 --- Comment #7 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:23:30 2017 New Revision: 254565 URL: https://gcc.gnu.org/viewcvs?rev=254565=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #20 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:23:30 2017 New Revision: 254565 URL: https://gcc.gnu.org/viewcvs?rev=254565=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/64682] [5 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64682 --- Comment #13 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:23:30 2017 New Revision: 254565 URL: https://gcc.gnu.org/viewcvs?rev=254565=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/69567] PowerPC64: cstore optimisation produces bad code

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69567 --- Comment #12 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:23:30 2017 New Revision: 254565 URL: https://gcc.gnu.org/viewcvs?rev=254565=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/64682] [5 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64682 --- Comment #12 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:21:06 2017 New Revision: 254564 URL: https://gcc.gnu.org/viewcvs?rev=254564=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #19 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:21:06 2017 New Revision: 254564 URL: https://gcc.gnu.org/viewcvs?rev=254564=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/69567] PowerPC64: cstore optimisation produces bad code

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69567 --- Comment #11 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:21:06 2017 New Revision: 254564 URL: https://gcc.gnu.org/viewcvs?rev=254564=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug rtl-optimization/69737] [5 Regression] FAIL: gcc.c-torture/execute/pr64682.c -O2 execution test

2017-11-09 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69737 --- Comment #6 from Segher Boessenkool --- Author: segher Date: Thu Nov 9 10:21:06 2017 New Revision: 254564 URL: https://gcc.gnu.org/viewcvs?rev=254564=gcc=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool

[Bug target/77850] FAIL: gcc.dg/compat/scalar-by-value-4 c_compat_x_tst.o-c_compat_y_tst.o execute

2017-11-08 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77850 Segher Boessenkool changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/77850] FAIL: gcc.dg/compat/scalar-by-value-4 c_compat_x_tst.o-c_compat_y_tst.o execute

2017-11-08 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77850 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org

[Bug target/82848] [8 Regression] ICE in expand_expr_real_2, at expr.c:8715

2017-11-05 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82848 Segher Boessenkool changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/15596] [6/7/8 Regression] Missed optimization with bitfields with return value

2017-11-03 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15596 --- Comment #29 from Segher Boessenkool --- We currently generate fun: lwz 8,0(3) rlwimi 8,4,12,0,31-12 rlwinm 10,8,24,24,31 stw 8,0(3) rlwinm 10,10,0,30,27 ori 10,10,0x8 stb 10,2(3)

[Bug rtl-optimization/60818] ICE in validate_condition_mode on powerpc*-linux-gnu*

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #18 from Segher Boessenkool --- Excellent, thanks for testing! I'll backport it next week.

[Bug rtl-optimization/60818] ICE in validate_condition_mode on powerpc*-linux-gnu*

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60818 --- Comment #29 from Segher Boessenkool --- Is there anything left to do here? Or can this PR be closed.

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #16 from Segher Boessenkool --- Should be fixed on trunk now. Steve, could you see if it fixes the SPEC problem for you?

[Bug rtl-optimization/69567] PowerPC64: cstore optimisation produces bad code

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69567 --- Comment #10 from Segher Boessenkool --- Author: segher Date: Wed Nov 1 16:40:42 2017 New Revision: 254315 URL: https://gcc.gnu.org/viewcvs?rev=254315=gcc=rev Log: combine: Fix bug in giving up placing REG_DEAD notes (PR82683) When we have

[Bug rtl-optimization/64682] [5 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64682 --- Comment #11 from Segher Boessenkool --- Author: segher Date: Wed Nov 1 16:40:42 2017 New Revision: 254315 URL: https://gcc.gnu.org/viewcvs?rev=254315=gcc=rev Log: combine: Fix bug in giving up placing REG_DEAD notes (PR82683) When we have

[Bug rtl-optimization/69737] [5 Regression] FAIL: gcc.c-torture/execute/pr64682.c -O2 execution test

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69737 --- Comment #5 from Segher Boessenkool --- Author: segher Date: Wed Nov 1 16:40:42 2017 New Revision: 254315 URL: https://gcc.gnu.org/viewcvs?rev=254315=gcc=rev Log: combine: Fix bug in giving up placing REG_DEAD notes (PR82683) When we have

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-11-01 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #15 from Segher Boessenkool --- Author: segher Date: Wed Nov 1 16:40:42 2017 New Revision: 254315 URL: https://gcc.gnu.org/viewcvs?rev=254315=gcc=rev Log: combine: Fix bug in giving up placing REG_DEAD notes (PR82683) When we have

[Bug target/82674] ICE with -fstack-clash-protection

2017-10-31 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82674 --- Comment #8 from Segher Boessenkool --- Author: segher Date: Tue Oct 31 09:49:40 2017 New Revision: 254252 URL: https://gcc.gnu.org/viewcvs?rev=254252=gcc=rev Log: Subject: [PATCH] rs6000: Fix crash with big stack clash interval (PR82674)

[Bug target/82674] ICE with -fstack-clash-protection

2017-10-30 Thread segher at gcc dot gnu.org
at redhat dot com |segher at gcc dot gnu.org --- Comment #6 from Segher Boessenkool --- I have a patch; regchecking now.

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-27 Thread segher at gcc dot gnu.org
|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org --- Comment #13 from Segher Boessenkool --- I have a simpler patch. It is testing...

[Bug target/82674] ICE with -fstack-clash-protection

2017-10-27 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82674 --- Comment #4 from Segher Boessenkool --- Yeah. The only problem is 64kB is actually an interesting case to support, since that is the page size on modern systems :-(

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-26 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #10 from Segher Boessenkool --- reg-notes.def says /* The value in REG dies in this insn (i.e., it is not needed past this insn). If REG is set in this insn, the REG_DEAD note may, but need not, be omitted. */ REG_NOTE

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-25 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #17 from Segher Boessenkool --- So we have a compare:CCFPU, the resulting flags is used in a GE only, and ix86_cc_mode thinks the best mode to use for that is CCFP. Which is fine, except compare:CCFPU is a different instruction, and

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-25 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #15 from Segher Boessenkool --- My point is that doing this only for FLOAT_MODE_P makes no real sense. If we can describe ordered comparisons with special CC modes, we should do tests with those modes only here.

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-25 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #12 from Segher Boessenkool --- But why only do this for FLOAT_MODE_P? Either the logic here isn't correct, or cc_modes_compatible isn't the correct hook (we'll need a new hook then?), or determining ordered/unordered by CC mode

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #10 from Segher Boessenkool --- So should combine use targetm.cc_modes_compatible here?

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #8 from Segher Boessenkool --- Maybe you can handle this in can_change_dest_mode? That will catch the similar cases, too.

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #5 from Segher Boessenkool --- The combination 8 -> 9 (where the GE is introduced) does not call SELECT_CC_MODE at all.

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #9 from Segher Boessenkool --- The "failed to match" messages are hugely important (in fact, I want it to print more: _why_ did combination fail, in all the cases where it is not because of recog). The "deferring deletion" messages

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #7 from Segher Boessenkool --- Yes, it requires to look back a bit (the info always is in this dump file though!) The alternative would be to dump even more info, grow the log files by a factor two or so.

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #5 from Segher Boessenkool --- Oh, it does show the intermediate results: Trying 18 -> 19: Successfully matched this instruction: (set (reg/f:DI 78 [ _7 ]) (plus:DI (ashift:DI (reg:DI 83 [ _26 ]) (const_int 2 [0x2]))

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #3 from Segher Boessenkool --- Ah. So we start with insn_cost 4 for18: r91:DI=r83:DI<<0x2 REG_DEAD r83:DI insn_cost 4 for19: r78:DI=r76:DI+r91:DI REG_DEAD r91:DI REG_DEAD r76:DI insn_cost 20 for20:

[Bug rtl-optimization/82683] Combine: GCC generates bad code with -tune=thunderx2t99

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82683 --- Comment #2 from Segher Boessenkool --- At the start of combine you have insn_cost 4 for18: r91:DI=r83:DI<<0x2 REG_DEAD r83:DI Is that death note not correct?

[Bug rtl-optimization/82692] [8 Regression] Ordered comparisons used for unordered built-ins

2017-10-24 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692 --- Comment #3 from Segher Boessenkool --- The combine output you showed is _not_ succeeding though? "matched" just means the rtx was recog()'ed; not that it was actually replaced.

[Bug c++/82663] optimizer duplicates assembly jump label (when -std=c++11 and -O3)

2017-10-22 Thread segher at gcc dot gnu.org
||segher at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Segher Boessenkool --- That's not valid code. See the last paragraph of https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Extended-Asm.html#Volatile : Under certain

[Bug c/82636] powerpc: Unnecessary copy of __ieee128 parameter

2017-10-20 Thread segher at gcc dot gnu.org
|NEW Last reconfirmed||2017-10-20 CC||segher at gcc dot gnu.org Ever confirmed|0 |1

[Bug rtl-optimization/82602] IRA considers volatile asm to be moveable

2017-10-18 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82602 Segher Boessenkool changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

<    4   5   6   7   8   9   10   11   12   13   >