[Bug c/94522] New: Enhancement request: asm goto with outputs

2020-04-07 Thread bp at alien8 dot de
Assignee: unassigned at gcc dot gnu.org Reporter: bp at alien8 dot de Target Milestone: --- Hi all, this came up recently on the kernel ML (see https://lkml.kernel.org/r/20200402134051.gc9...@zn.tnic) and we thought it might be a good idea to support it. In the same

[Bug tree-optimization/92841] New: Optimize -fstack-protector-strong code generation a bit

2019-12-06 Thread bp at alien8 dot de
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bp at alien8 dot de Target Milestone: --- Created attachment 47435 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47435&action=edit prepocessed source Hi, I'm

[Bug target/92841] Optimize -fstack-protector-strong code generation a bit

2019-12-09 Thread bp at alien8 dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92841 --- Comment #5 from Boris --- Hohumm, looks good - this is the same site it generated with your patch: # arch/x86/kernel/cpu/scattered.c:48: { movq%gs:40, %rax# MEM[( long unsigned int *)40B], prephitmp_18 movq%rax, 1

[Bug target/92841] Optimize -fstack-protector-strong code generation a bit

2019-12-10 Thread bp at alien8 dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92841 --- Comment #6 from Boris --- Ok, so there was a mix-up between patterns with and without multi-nodes in your untested fix, which Micha found and fixed, see attached patch. (otherwise it wouldn't even build a whole kernel). With it, it fixed the

[Bug target/92841] Optimize -fstack-protector-strong code generation a bit

2019-12-10 Thread bp at alien8 dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92841 --- Comment #7 from Boris --- Created attachment 47465 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47465&action=edit Micha's patterns fix Fix for mix-up between patterns with and without multi-nodes.

[Bug target/92841] Optimize -fstack-protector-strong code generation a bit

2019-12-10 Thread bp at alien8 dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92841 --- Comment #10 from Boris --- Ok, fair enough. After all, security is not free. :) If you need me to test anything else, lemme know. Thx guys.

[Bug regression/55759] New: bogus warning when building drivers/ata/libata-core.c in v3.7 of the linux kernel

2012-12-20 Thread bp at alien8 dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55759 Bug #: 55759 Summary: bogus warning when building drivers/ata/libata-core.c in v3.7 of the linux kernel Classification: Unclassified Product: gcc Version: 4.7.2 Stat

[Bug regression/55759] bogus warning when building drivers/ata/libata-core.c in v3.7 of the linux kernel

2012-12-20 Thread bp at alien8 dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55759 --- Comment #2 from Boris 2012-12-20 16:20:34 UTC --- Created attachment 29015 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29015 gzipped preprocessed source of drivers/ata/libata-core.c

[Bug inline-asm/97708] New: Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-03 Thread bp at alien8 dot de via Gcc-bugs
Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: bp at alien8 dot de Target Milestone: --- Building the below on x86-64 with gcc9, gcc10 and Segher built with gcc11 20201015: --- int main(void

[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-03 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708 --- Comment #2 from Boris --- (In reply to Andrew Pinski from comment #1) > "g" constraint won't work here: So in that case gcc should fail the build. Which it does not.

[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-03 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708 --- Comment #7 from Boris --- (In reply to Jakub Jelinek from comment #6) > I agree with Andrew here, the compiler does what it is asked to do, so puts > the value into either memory or general purpose register. Neither "r" nor > "g" allows putt

[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-04 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708 --- Comment #11 from Boris --- Drop "general": "ā€˜gā€™ Any register, memory or immediate integer operand is allowed." because, as you guys say, it would stick it anywhere.

[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-04 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708 --- Comment #13 from Boris --- Then you'd need to add a sentence saying that the register asm() specification has lower prio and thus overridden by the input operand constraint. Which is what we have here. And then refer to the text Segher posted

[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-04 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708 --- Comment #16 from Boris --- (In reply to Jakub Jelinek from comment #14) > No, why? You ask it to go into a general register, so it goes there. The > local register variable has no priority at all. And where in the documentation does it say

[Bug inline-asm/97708] Inline asm does not use the local register asm specified with register ... asm() as input

2020-11-04 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97708 --- Comment #18 from Boris --- It would be awesome if this text continued: "... and specify any constraint letter that matches the register. If the operand constraint doesn't match the register, former has higher priority over the local register

[Bug other/106571] New: Implement -Wsection diag

2022-08-09 Thread bp at alien8 dot de via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: bp at alien8 dot de Target Milestone: --- Hi, clang has this -Wsection diag which does: https://clang.llvm.org/docs/DiagnosticsReference.html#wsection It would be good to have it in gcc too so that declarations like extern u64

[Bug c/106571] Implement -Wsection diag

2022-08-09 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106571 --- Comment #2 from Boris --- How can you check a mismatch if only the definition has the section attribute? Here's the kernel commit which fixes this for clang: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=db8

[Bug c/106571] Implement -Wsection diag

2022-08-10 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106571 --- Comment #5 from Boris --- (In reply to Michael Matz from comment #4) > Boris: what does DECLARE_PER_CPU() expand into? Are there other attributes > that could be usefully checked for mismatch between decl and def? Unfortunately, DECLARE_P

[Bug c/78736] enum warnings in GCC (request for -Wenum-conversion to be added)

2023-07-02 Thread bp at alien8 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78736 Boris changed: What|Removed |Added CC||bp at alien8 dot de --- Comment #20 from Boris