[Bug c++/118752] clang::no_sanitize scopped attribute should be an alias to gnu::no_sanitize

2025-02-05 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118752 --- Comment #1 from Nick Desaulniers --- Perhaps clang::no_stack_protector, too. Thanks.

[Bug c/101537] -Wconversion false positive in ternary and |=

2025-01-28 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101537 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- C

[Bug c/96628] Feature request: __attribute__((no_builtin("Foo")))

2024-12-02 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96628 Nick Desaulniers changed: What|Removed |Added CC||keithp at keithp dot com,

[Bug target/77882] [Aarch64] Add 'naked' function attribute

2024-04-08 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77882 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- Co

[Bug tree-optimization/78512] [7 Regression] r242674 miscompiles Linux kernel

2023-09-13 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78512 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- Co

[Bug c/111219] -Wformat-truncation false negative with %p modifier

2023-08-28 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111219 --- Comment #2 from Nick Desaulniers --- Ah ok that makes sense. Would it be possible to get that behavior documented on this page? https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat-truncation We can probably modify clang

[Bug c/111219] New: -Wformat-truncation false negative with %p modifier

2023-08-28 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111219 Bug ID: 111219 Summary: -Wformat-truncation false negative with %p modifier Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug c/65213] Extend -Wmissing-declarations to variables [i.e. add -Wmissing-variable-declarations]

2023-08-08 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65213 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- Co

[Bug c/110947] New: Should -Wmissing-variable-declarations not trigger on register variables?

2023-08-08 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110947 Bug ID: 110947 Summary: Should -Wmissing-variable-declarations not trigger on register variables? Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: norm

[Bug middle-end/110728] should __attribute__((cleanup())) callback get invoked for indirect edges of asm goto

2023-08-03 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110728 --- Comment #10 from Nick Desaulniers --- (In reply to Michael Matz from comment #9) > That has to do with how we need to (possibly) > split > critical edges, which changes label identity, which in turn might actually > be the thing that's requi

[Bug c/91951] goto + mixed declarations + cleanup attribute considered harmful

2023-07-19 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91951 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- Co

[Bug middle-end/110728] should __attribute__((cleanup())) callback get invoked for indirect edges of asm goto

2023-07-19 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110728 --- Comment #7 from Nick Desaulniers --- (In reply to Andrew Pinski from comment #1) > I suspect PR 91951 is the same really. PR 91951 seems to be about a missing diagnostic dependent on optimization level. This bug report is more so a questio

[Bug middle-end/37722] destructors not called on computed goto

2023-07-19 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37722 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- Co

[Bug c/110728] New: should __attribute__((cleanup())) callback get invoked for indirect edges of asm goto

2023-07-18 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110728 Bug ID: 110728 Summary: should __attribute__((cleanup())) callback get invoked for indirect edges of asm goto Product: gcc Version: 14.0 Status: UNCONFIRMED Se

[Bug c/108896] provide "element_count" attribute to give more context to __builtin_dynamic_object_size() and -fsanitize=bounds

2023-05-25 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108896 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- C

[Bug c/108548] New: gcc asm goto with outputs not implicitly volatile

2023-01-25 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108548 Bug ID: 108548 Summary: gcc asm goto with outputs not implicitly volatile Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c/107385] New: [asm goto] "=r" vs "+r" for outputs along indirect edges

2022-10-24 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107385 Bug ID: 107385 Summary: [asm goto] "=r" vs "+r" for outputs along indirect edges Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prio

[Bug target/65372] -mprofile-kernel undocumented

2022-08-09 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65372 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com,

[Bug middle-end/100593] [ELF] -fno-pic: Use GOT to take address of an external default visibility function

2022-04-29 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100593 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- C

[Bug rtl-optimization/104236] asm statements containing %= assembler templates getting merged

2022-01-25 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104236 --- Comment #3 from Nick Desaulniers --- Thanks for the feedback. I guess I was expecting these two to be somewhat equivalent: void x (int a) { if (a) asm("# %0"::"i"(__COUNTER__)); else asm("# %0"::"i"(__COUNTER__)); }

[Bug bootstrap/104236] New: asm statements containing %= assembler templates getting merged

2022-01-25 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104236 Bug ID: 104236 Summary: asm statements containing %= assembler templates getting merged Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug inline-asm/98096] Inconsistent operand numbering for asm goto with in-out operands

2021-12-10 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98096 --- Comment #5 from Nick Desaulniers --- While the changes to gcc/stmt.c and the second asm goto statement in gcc/testsuite/gcc.c-torture/compile/pr98096.c in https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=72d78655a91bb2f89ac4432cfd6374380d6f9987

[Bug c/103640] New: asm goto w/ outputs numbering with tied outputs differs from clang

2021-12-09 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103640 Bug ID: 103640 Summary: asm goto w/ outputs numbering with tied outputs differs from clang Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug libgcc/103034] New: implement multiply with overflow (__muloti4/__mulodi4/__mulosi4)

2021-11-01 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103034 Bug ID: 103034 Summary: implement multiply with overflow (__muloti4/__mulodi4/__mulosi4) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug c/91432] gcc -Wimplicit-fallthrough does not warn when fallthrough to break;

2021-07-27 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91432 --- Comment #5 from Nick Desaulniers --- > Not warning in this case is a very intentional part of those design decisions. Can you provide a link to the discussion about this specific case? Is re-evaluating the decision out of the question?

[Bug c/66425] (void) cast doesn't suppress __attribute__((warn_unused_result))

2021-07-27 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- Co

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-24 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #23 from Nick Desaulniers --- (In reply to Fangrui Song from comment #18) > I > think a similar topic may need to be raided on llvm-dev side as I feel this > is the tip of the iceberg - more attributes can be similarly leveraged. So,

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-22 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #16 from Nick Desaulniers --- Clang patch (no_profile -> no_profile_instrument_function): https://reviews.llvm.org/D104658 Kernel patches v2: https://lore.kernel.org/lkml/20210621231822.2848305-1-ndesaulni...@google.com/

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-21 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #15 from Nick Desaulniers --- (In reply to Fangrui Song from comment #14) > Can a no_profile_instrument_function function be inlined into a function > without the attribute? This may be controversial but I'd argue that it can. > GCC n

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-21 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #12 from Nick Desaulniers --- Ah, perfect! commit 1225d6b1134b ("Introduce no_profile_instrument_function attribute") LGTM: https://godbolt.org/z/779xzndY6 Looks like it landed in GCC 7.1. Let me change over the attribute identifi

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-18 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #10 from Nick Desaulniers --- Link to kernel patches: https://lore.kernel.org/lkml/20210618233023.1360185-1-ndesaulni...@google.com/

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-17 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #9 from Nick Desaulniers --- (In reply to Fangrui Song from comment #8) > I am thinking of __attribute__((no_profile)). > > In Clang, > -fprofile-generate(-fcs-profile-generate)/-fprofile-instr-generate/-fprofile- > arcs are all diff

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-14 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 Nick Desaulniers changed: What|Removed |Added CC||elver at google dot com,

[Bug tree-optimization/100363] gcc generating wider load/store than warranted at -O3

2021-05-05 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100363 Nick Desaulniers changed: What|Removed |Added CC||ndesaulniers at google dot com --- C

[Bug c/98826] New: [gcc vs g++] qualified type of members of anonymous struct

2021-01-25 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98826 Bug ID: 98826 Summary: [gcc vs g++] qualified type of members of anonymous struct Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal P

[Bug c/94722] implement __attribute__((no_stack_protector)) function attribute

2020-12-17 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94722 --- Comment #10 from Nick Desaulniers --- (In reply to Jakub Jelinek from comment #9) > I've said in that thread that I don't really like disabling the inlining, if > we wanted to make sure everything is stack protected, we'd need to disable > al