[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-23 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Eric Botcazou changed: What|Removed |Added Status|WAITING |ASSIGNED CC|

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-23 Thread laurent at guerby dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #21 from Laurent GUERBY --- I'm not familiar with mips ABIs but on gcc mips machine there's 32 bit code. root@erpro8-fsf1:~# file /bin/ls /bin/ls: ELF 32-bit MSB executable, MIPS, MIPS-II version 1 (SYSV), dynamically linked (uses sh

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Martin Liška changed: What|Removed |Added Status|NEW |WAITING --- Comment #20 from Martin Liška

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #19 from Martin Liška --- (In reply to Laurent GUERBY from comment #18) > Marxin, you have a cfarm account and access to gcc22 / 23 / 24 which are > mips64 machines. If you need to change ssh keys see here: > https://cfarm.tetaneutral

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-22 Thread laurent at guerby dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #18 from Laurent GUERBY --- Marxin, you have a cfarm account and access to gcc22 / 23 / 24 which are mips64 machines. If you need to change ssh keys see here: https://cfarm.tetaneutral.net/login/

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-22 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #17 from Martin Liška --- (In reply to Felix Fietkau from comment #16) > Any update on this, or any way I could help in getting this fixed? > It would be nice if we could finally switch OpenWrt to a more recent GCC > version soon. I

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-02-22 Thread nbd at nbd dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #16 from Felix Fietkau --- Any update on this, or any way I could help in getting this fixed? It would be nice if we could finally switch OpenWrt to a more recent GCC version soon.

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-30 Thread lesliezhai at llvm dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #15 from Leslie Zhai --- (In reply to Felix Fietkau from comment #10) > (In reply to Leslie Zhai from comment #9) > > GCC 8.0 Still reproducible: > > > > > > : > >0: 8c830008lw v1,8(a0) > >4:

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-29 Thread laurent at guerby dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Laurent GUERBY changed: What|Removed |Added CC||law at redhat dot com --- Comment #14 f

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-28 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #13 from Segher Boessenkool --- There are *two* conditional branches leading to that "return 1". After dbr one is a delay-slot seq, and the other has lost the assignment of the return value.

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-28 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #12 from Segher Boessenkool --- It's the dbr ("reorg") pass that is deleting the insn.

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-23 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Martin Liška changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|marxin at gcc dot

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-22 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #11 from Paul Hua --- > > Actually, I think that assembly looks unaffected by the issue. > Right. > I have some doubts about the commits mentioned in this thread as well. > r240965 looks like it simply changes the code generator

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-21 Thread nbd at nbd dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Felix Fietkau changed: What|Removed |Added CC||nbd at nbd dot name --- Comment #10 from

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-21 Thread lesliezhai at llvm dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Leslie Zhai changed: What|Removed |Added CC||lesliezhai at llvm dot org.cn --- Comment

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-19 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #8 from Paul Hua --- On GCC 8.x, the r248351 fixed this. commit fd891ec7f659e8785c3ed5757f6e60c95117b837 Author: segher Date: Mon May 22 21:20:51 2017 + cfgcleanup: Ignore clobbers in bb_is_just_return The function

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-19 Thread paul.hua.gm at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Paul Hua changed: What|Removed |Added CC||paul.hua.gm at gmail dot com --- Comment #7 f

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Martin Liška changed: What|Removed |Added Status|WAITING |ASSIGNED --- Comment #6 from Martin Liška

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-03 Thread g...@hauke-m.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #5 from Hauke Mehrtens --- The description already contains the full function incl. 4006fc. Do you need more?

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2018-01-03 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2017-12-21 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 Martin Liška changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org --- Com

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2017-12-21 Thread g...@hauke-m.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #2 from Hauke Mehrtens --- Should I git bisect this or will someone else do this? If I should do that, is there some documentation on how to setup a test case and build and run this automatically?

[Bug target/83496] MIPS BE: wrong code generates under "-Os -mbranch-cost=1"

2017-12-19 Thread g...@hauke-m.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496 --- Comment #1 from Hauke Mehrtens --- I only tested the GCC 7.X snapshot from 14. December 2017, not the GCC 8.X version.