[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2023-07-17 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #16 from Rin Okuyama --- The fix has been cherry-picked for NetBSD: https://mail-index.netbsd.org/source-changes/2023/07/18/msg146078.html Let me thank you again, Oleg!

[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2023-07-09 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #10 from Rin Okuyama --- (In reply to Oleg Endo from comment #9) > Sorry for being late for 2 years with this. ... > Unfortunately GCC 10.5 has just been released recently and that was the last > version 10. > So the patch will be i

[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2023-07-09 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #8 from Rin Okuyama --- (In reply to Oleg Endo from comment #7) Hi Oleg. Thank you very much for your great work! I've tested your patch with GCC 10.4.0 in this weekend, and it perfectly worked: - testcase attached to comment #0 co

[Bug target/100107] [10/11/12/13 Regression] powerpc: redundant .machine directive clobbers CPU flags to assembler

2022-07-24 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100107 Rin Okuyama changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2021-07-21 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #6 from Rin Okuyama --- (In reply to Rin Okuyama from comment #3) > If that peephole is removed, GCC 10.3 generates working codes. > > NetBSD/shle built by this compiler works fine as far as I can see. > I'm carrying out full regres

[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2021-07-18 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #5 from Rin Okuyama --- Thank you for your kind attention! I look forward to hearing from you.

[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2021-07-18 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #3 from Rin Okuyama --- Thank you very much for your analysis! If that peephole is removed, GCC 10.3 generates working codes. NetBSD/shle built by this compiler works fine as far as I can see. I'm carrying out full regression tests

[Bug target/101469] wrong code with "-O2 -fPIE" for SH

2021-07-17 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 --- Comment #1 from Rin Okuyama --- I've confirmed that the problem also occurs for sh3-none-elf: $ sh3-none-elf-gcc -v Using built-in specs. COLLECT_GCC=/usr/pkg/cross-sh3-none-elf/bin/sh3-none-elf-gcc COLLECT_LTO_WRAPPER=/usr/pkg/cross-s

[Bug c/101469] New: wrong code with "-O2 -fPIE" for SH

2021-07-16 Thread rin at NetBSD dot org via Gcc-bugs
mponent: c Assignee: unassigned at gcc dot gnu.org Reporter: rin at NetBSD dot org CC: rin at NetBSD dot org Target Milestone: --- Target: shle--netbsdelf This Bug is for GCC 10.3 for shle: $ shle--netbsdelf-gcc -v Using built-in specs. COLLECT_GCC=/b

[Bug target/100108] [10 Regression] powerpc: recognize 32-bit CPU as POWER9 with -misel option

2021-04-21 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100108 --- Comment #11 from Rin Okuyama --- Segher, let me thank you again!

[Bug target/100108] [10/11 Regression] powerpc: recognize 32-bit CPU as POWER9 with -misel option

2021-04-19 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100108 --- Comment #7 from Rin Okuyama --- Thank you for discussion. The proposed patch works fine for me (except for missing ``;'' at the end of the line).

[Bug target/100108] [10/11 Regression] powerpc: recognize 32-bit CPU as POWER9 with -misel option

2021-04-16 Thread rin at NetBSD dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100108 --- Comment #2 from Rin Okuyama --- e500mc also supports isel. See its reference manual (Sec. 3.4.5.3): https://www.nxp.com/docs/en/reference-manual/E500MCRM.pdf or source code of binutils/gas: https://sourceware.org/git/?p=binutils-gdb.git;a

[Bug target/100108] New: [10 Regression] powerpc: recognize 32-bit CPU as POWER9 with -misel option

2021-04-15 Thread rin at NetBSD dot org via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rin at NetBSD dot org Target Milestone: --- Created attachment 50609 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50609&action=edit Fix for this regression

[Bug target/100107] New: [10 Regression] powerpc: redundant .machine directive clobbers CPU flags to assembler

2021-04-15 Thread rin at NetBSD dot org via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rin at NetBSD dot org Target Milestone: --- Created attachment 50608 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50608&action=edit Fix f

[Bug target/71216] [4.9/5/6/7 Regression] Incorrect PPC assembly due to inserted .machine pseudo-op

2016-12-28 Thread rin at NetBSD dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71216 --- Comment #11 from Rin Okuyama --- Thank you for your response, and sorry for the late reply. (In reply to Segher Boessenkool from comment #10) > > > That might or might not work; the user had better know what he is > > > doing if he uses an a

[Bug target/71216] [4.9/5/6/7 Regression] Incorrect PPC assembly due to inserted .machine pseudo-op

2016-12-17 Thread rin at NetBSD dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71216 --- Comment #9 from Rin Okuyama --- Hi Segher, Thank you for your kind reply. I committed your fix to NetBSD's local tree of GCC 5.4. > > However, I have a question on this fix. How about the case where > > "-Wa,-mXXX" option is given without "

[Bug target/71216] [4.9/5/6/7 Regression] Incorrect PPC assembly due to inserted .machine pseudo-op

2016-12-16 Thread rin at NetBSD dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71216 --- Comment #7 from Rin Okuyama --- I'm the submitter of Bug 78764. I confirmed that my problem has been resolved on gcc-5-branch. Let me thank you again for fixing it. However, I have a question on this fix. How about the case where "-Wa,-mXXX"

[Bug target/78764] CPU type option discarded on 32-bit powerpc

2016-12-16 Thread rin at NetBSD dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78764 --- Comment #3 from Rin Okuyama --- Thank you very much for your notification. I overlooked both fix and PR 71216. I'm so sorry for bothering you.

[Bug target/78764] New: CPU type option discarded on 32-bit powerpc

2016-12-10 Thread rin at NetBSD dot org
: target Assignee: unassigned at gcc dot gnu.org Reporter: rin at NetBSD dot org Target Milestone: --- Created attachment 40300 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40300&action=edit restrict usage of ".machine" pseudo-op to 64-bit powerpc GC