[Bug target/109456] `-ffixed-reg` cannot prevent using `reg` for ABI-mandated roles (argument register etc) and the behavior should be documented more clearly

2023-06-23 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #12 from gccriscvuser at proton dot me --- Updating the documentation is good, but there should also be an error diagnostic, right?

[Bug target/109456] `-ffixed` is ignored for `a` registers on RISC-V.

2023-06-09 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #8 from gccriscvuser at proton dot me --- Thoughts?

[Bug target/109456] `-ffixed` is ignored for `a` registers on RISC-V.

2023-05-01 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #7 from gccriscvuser at proton dot me --- To be clear, when I said "generator is emitting correct code", I mean with respect to the ABI specification. However, this is an actual bug, not a request for enhancement, because the

[Bug target/109456] `-ffixed` is ignored for `a` registers on RISC-V.

2023-05-01 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #6 from gccriscvuser at proton dot me --- I'm willing to agree that the generator is emitting correct code, but in that case, there should be an error- or fatal-level diagnostic indicating that `-ffixed` is not supported for `a4`

[Bug c/109456] `-ffixed` is ignored for `a` registers on RISC-V.

2023-04-09 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #1 from gccriscvuser at proton dot me --- Corrected URLs from original description: Register `a4` is normally used for passing parameters in a call. https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-cc.adoc As

[Bug c/109456] New: `-ffixed` is ignored for `a` registers on RISC-V.

2023-04-09 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 Bug ID: 109456 Summary: `-ffixed` is ignored for `a` registers on RISC-V. Product: gcc Version: 12.2.1 Status: UNCONFIRMED Keywords: inline-asm, wrong-code Severity: