[Bug c++/117470] New: new expression invalid size handling

2024-11-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- https://eel.is/c++draft/expr.new#8.6 says that for invalid sizes ::operator new{,[]} shouldn't be called (at least when not constant evaluating it), but either throw or result in nu

[Bug c/105863] RFE: C23 #embed

2024-11-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105863 --- Comment #20 from Jakub Jelinek --- What still isn't committed is the C++ optimization support of #embed. And, we need to decide what to do with the macro expansion for #embed, the current implementation isn't conformant (but maybe WG14 will

[Bug c++/117466] brk #1000 rsp. ud2

2024-11-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
|RESOLVED CC||jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- Because the testcase invokes UB (dereferences a NULL pointer) - d = in[0]; in particular where in is nullptr and path isolation just adds __builtin_trap after

[Bug tree-optimization/117439] [12/13/14 Regression] ICE in encode_tree_to_bitpos

2024-11-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117439 Jakub Jelinek changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13/14 Regression] ICE

[Bug c/117456] ICE: in expand_expr_real_2, at expr.cc:10567 with __builtin_stdc_rotate_left() on bitfield or _BitInt() of non-mode size

2024-11-06 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117456 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug c++/116208] `__ct_base ` is used instead of the ctor name in warning's `inlined from` when using LTO

2024-11-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug tree-optimization/117439] [12/13/14/15 Regression] ICE in encode_tree_to_bitpos

2024-11-05 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117439 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/117439] [12/13/14/15 Regression] ICE in encode_tree_to_bitpos

2024-11-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117439 --- Comment #4 from Jakub Jelinek --- And the last issue is that we don't optimize the dynamic initialization to static initialization, details in PR102876.

[Bug c++/102876] GCC fails to use constant initialization even when it knows the value to initialize

2024-11-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876 --- Comment #18 from Jakub Jelinek --- I think Richi didn't like it much, but my memory is fuzzy on it. The latest version of the patch was https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588539.html I'll need to look at IRC logs if somet

[Bug tree-optimization/117439] [12/13/14/15 Regression] ICE in encode_tree_to_bitpos

2024-11-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117439 --- Comment #3 from Jakub Jelinek --- There are multiple issues. One is that we uselessly use the sub_byte_op_p case for empty_ctor_p even if it starts and ends on byte boundary. The need for int_mode_for_size (bitlen, 0) check is native_encod

[Bug c++/117439] [12/13/14/15 Regression] ICE in encode_tree_to_bitpos

2024-11-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
] |encode_tree_to_bitpos |ICE in ||encode_tree_to_bitpos CC||jakub at gcc dot gnu.org Priority|P3 |P2 Last reconfirmed||2024-11-04

[Bug middle-end/117384] [15 regression] ICE when building gwenhywfar-5.10.1 (error: non-trivial conversion in ‘var_decl’)

2024-11-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117384 Jakub Jelinek changed: What|Removed |Added Keywords|needs-bisection | Status|ASSIGNED

[Bug libstdc++/117406] std::ilogb should return INT_MAX when argument is infinite also for 16-bit floats

2024-11-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117406 --- Comment #5 from Jakub Jelinek --- Fixed on the trunk so far.

[Bug libstdc++/117406] std::ilogb should return INT_MAX when argument is infinite also for 16-bit floats

2024-11-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117406 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org Ever

[Bug bootstrap/117407] [15 regression] bootstrap fails after r15-4847-g79a75b1f551821

2024-11-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
|jakub at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Target Milestone|--- |15.0 CC||jakub at gcc dot gnu.org

[Bug web/117401] Spell that ./configure --enable-link-mutex is deprecated

2024-11-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117401 --- Comment #3 from Jakub Jelinek --- That doesn't really matter. Anybody who used the option in GCC 13/14 got that deprecation message.

[Bug web/117401] Spell that ./configure --enable-link-mutex is deprecated

2024-11-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117401 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug lto/117388] Mangled name in 'In function' note before warning with LTO

2024-11-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117388 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug target/114801] [14/15 Regression] arm: ICE in find_cached_value, at rtx-vector-builder.cc:100 with MVE intrinsics

2024-11-01 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114801 --- Comment #37 from Jakub Jelinek --- B2I and B4I modes shouldn't exist, they aren't really boolean, they are really partial integer modes.

[Bug fortran/117381] -fmax-identifier-length= is completely ignored

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117381 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/117386] -funsigned-bitfields support for the C++ front-end should be removed

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117386 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/117384] [15 regression] ICE when building gwenhywfar-5.10.1 (error: non-trivial conversion in ‘var_decl’)

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #5 from Jakub Jelinek --- Created attachment 59514 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59514&acti

[Bug c++/110137] implement clang -fassume-sane-operator-new

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110137 --- Comment #24 from Jakub Jelinek --- (In reply to Jason Merrill from comment #22) > But as Jonathan says in comment 10, the replaceable operator new is shared > by the whole program, so I don't see why we would need a per-call flag for > the g

[Bug c++/110137] implement clang -fassume-sane-operator-new

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110137 --- Comment #23 from Jakub Jelinek --- I've just tried: int i, j, k; void * foo () { i = 1; j = 2; void *p = __builtin_operator_new (32); j = 3; k = i; return p; } void * bar () { i = 1; j = 2; void *p = __builtin_malloc (32)

[Bug c++/110137] implement clang -fassume-sane-operator-new

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110137 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug middle-end/117354] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt (and asan in some cases)

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #12 from Jakub Jelinek --- Should be fixed now for 15.1+ so far.

[Bug c/117380] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in get_unwidened, at tree.cc:8019

2024-10-31 Thread jakub at gcc dot gnu.org via Gcc-bugs
||jakub at gcc dot gnu.org Keywords||error-recovery

[Bug c++/117370] std::nothrow variants of operator new are not optimized away when block is unused

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117370 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/117354] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt (and asan in some cases)

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug rtl-optimization/117360] [15 regression] ext-dce.cc:573:15: runtime error: shift exponent 127 is too large for 64-bit type 'long long unsigned int'

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117360 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug target/117312] RFE: x86 (and perhaps others): inline assembly: "red-zone" clobber

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117312 --- Comment #19 from Jakub Jelinek --- "memory" clobber is IMO about possibly changing any user var in memory behind the back of the compiler, not about changing whatever compiler internals stored somewhere on the stack in stack slots that don't

[Bug middle-end/117354] ICE: in extract_bit_field_1, at expmed.cc:1838 with _BitInt (and asan in some cases)

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354 --- Comment #9 from Jakub Jelinek --- Doesn't need -fsanitize=address, just ensuring the _BitInt(256) var is just 8-byte aligned is enough: struct S { unsigned char y; _BitInt(256) x; } s; __attribute__((noipa)) static void foo (const char

[Bug c/117367] [14/15 regression] Miscompile with different optimization flags

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
||jakub at gcc dot gnu.org Resolution|--- |INVALID --- Comment #4 from Jakub Jelinek --- The testcase is garbage or reduced to garbage, there are tons of UBs in it. E.g. int32_t *t = &e, j, k; for (; j < 3; j++) j is uninitialized here.

[Bug target/117296] [12/13/14 Regression] ICE: in expand_gimple_basic_block, at cfgexpand.cc:5896 with -mtune=k6 -mstringop-strategy=libcall -ffloat-store

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jakub at gcc dot gnu.org Known to work||15.0 Known to fail|15.0| Summary|[12/13/14/15 Regression]|[12/13/14 Regression] ICE: |ICE: in |in

[Bug middle-end/117348] [15 regression] genmatch.cc:597:13: error: 'fmemopen' was not declared in this sco pe; did you mean 'freopen'?

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
|--- |15.0 Status|UNCONFIRMED |RESOLVED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Hopefully fixed.

[Bug c/117021] [C2y] Implement N3370, Case range expressions

2024-10-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117021 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/117296] [12/13/14/15 Regression] ICE: in expand_gimple_basic_block, at cfgexpand.cc:5896 with -mtune=k6 -mstringop-strategy=libcall -ffloat-store

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117296 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug analyzer/117262] [15 regression] Analyzer doesn't handle RAW_DATA_CST properly

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117262 --- Comment #5 from Jakub Jelinek --- (In reply to David Malcolm from comment #4) > where arguably the type of the symbolic value should be >unsigned char[72] > rather than: >unsigned char > > This is because the analyzer is just using

[Bug c++/117152] [12/13/14/15 Regression] Segmentation fault in permerror(unsigned int, char const*, ...)

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
||error-recovery CC||jakub at gcc dot gnu.org Summary|[15 Regression] |[12/13/14/15 Regression] |Segmentation fault in |Segmentation fault in |permerror(unsigned int

[Bug tree-optimization/117323] GCC failed to optimize value / 128 to value >> 7 when the range of value must be positive

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117323 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 --- Comment #5 from Jakub Jelinek --- Yes.

[Bug c++/117317] [12/13/14/15 Regression] ICE on call to virtual constexpr function via comparison operator in CRTP with multiple inheritance with template since r12-4202-g09d886e671f223

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug c++/117317] [12/13/14/15 Regression] ICE on call to virtual constexpr function via comparison operator in CRTP with multiple inheritance with template since r12-4202-g09d886e671f223

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #6

[Bug c++/117317] [12/13/14/15 Regression] ICE on call to virtual constexpr function via comparison operator in CRTP with multiple inheritance with template since r12-4202-g09d886e671f223

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317 --- Comment #5 from Jakub Jelinek --- Slightly cleaned up: struct C { constexpr bool operator== (const C &b) const { return foo (); } constexpr virtual bool foo () const = 0; }; class A : public C {}; class B : public C {}; template struct

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug libstdc++/117321] std::float16_t: undefined reference to `nextafterf16'

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117321 --- Comment #7 from Jakub Jelinek --- Fixed on the trunk so far. Guess it should be eventually backported to 14/13 too.

[Bug middle-end/117342] .base64 emitted when gas doesn't support it

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117342 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/117342] .base64 emitted when gas doesn't support it

2024-10-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117342 --- Comment #5 from Jakub Jelinek --- Combined build is when you build gcc together with binutils (and often other modules like gmp, mpfr, libmpc, etc.) by unpacking those into the same tree. The toplevel configure indeed doesn't check for .base

[Bug c/117021] [C2y] Implement N3370, Case range expressions

2024-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117021 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug libstdc++/117321] std::float16_t: undefined reference to `nextafterf16'

2024-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117321 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug c/117313] [15 regression] ICE when building linux-6.11.5 (output_constructor_regular_field, at varasm.cc:5672)

2024-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek --- Created attachment 59470 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59470&action=edit gcc15-pr117313.patch Untested fix.

[Bug libstdc++/117321] std::float16_t: undefined reference to `nextafterf16'

2024-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117321 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/117308] Undocumented implementation limits of C++ specification (ISO/IEC 14882)

2024-10-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117308 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c/117021] [C2y] Implement N3370, Case range expressions

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117021 --- Comment #4 from Jakub Jelinek --- Ah, ok, got it. Thanks.

[Bug c/41045] Extended asm with C operands doesn’t work at top level

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045 --- Comment #14 from Jakub Jelinek --- I don't see why it wouldn't, it uses the same code for handling % in the string as is used for extended asm inside of functions. Nothing before that actually parses/interprets the format string, the restric

[Bug c/117021] [C2y] Implement N3370, Case range expressions

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117021 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug tree-optimization/117287] [13/14/15 Regression] assume attribute related miscompilation

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117287 --- Comment #5 from Jakub Jelinek --- Why do you think it is more triggerable on trunk rather than on branches? The testcase ICEs on the 13/14 branches too, and the only reason I saw it on the trunk is that I was considering using [[assume (EXPR

[Bug tree-optimization/117287] [13/14/15 Regression] assume attribute related miscompilation

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117287 --- Comment #3 from Jakub Jelinek --- Whatever is done, it needs to be (worst case conservatively) correct, so if it can't or decides not to process some edge which does or might result into true result, assume the worst (VARYING etc.). Of cours

[Bug sanitizer/117209] [13/14 Regression] ICE: verify_gimple failed with asan.

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117209 Jakub Jelinek changed: What|Removed |Added Summary|[13/14/15 Regression] ICE: |[13/14 Regression] ICE:

[Bug sanitizer/117209] [13 Regression] ICE: verify_gimple failed with asan.

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117209 Jakub Jelinek changed: What|Removed |Added Summary|[13/14 Regression] ICE: |[13 Regression] ICE:

[Bug middle-end/117249] [12/13 Regression] --disable-checking is broken since r5-2450

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 Jakub Jelinek changed: What|Removed |Added Summary|[12/13/14 Regression] |[12/13 Regression] |-

[Bug sanitizer/117259] [12/13 Regression] warning: 'j.6' may be used uninitialized [-Wmaybe-unitialized] with -fsanitize=undefined

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259 Jakub Jelinek changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13 Regression] warning:

[Bug middle-end/117249] [12/13/14 Regression] --disable-checking is broken since r5-2450

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 Jakub Jelinek changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13/14 Regression]

[Bug lto/117201] [15 regression] libqrencode-4.1.1 miscompiled with LTO

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117201 Jakub Jelinek changed: What|Removed |Added CC||slyfox at gcc dot gnu.org --- Comment #

[Bug lto/117201] [15 regression] libqrencode-4.1.1 miscompiled with LTO

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117201 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug lto/117288] [15 Regression] LTO ICE in output_constructor_regular_field at varasm.cc:5644 on wolfssl-5.7.2 since r15-4377-gf9bac238840155

2024-10-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117288 Jakub Jelinek changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 Jakub Jelinek changed: What|Removed |Added Attachment #59415|0 |1 is obsolete|

[Bug tree-optimization/117287] [13/14/15 Regression] assume attribute related miscompilation

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117287 --- Comment #1 from Jakub Jelinek --- _Z3bazj._assume.0 assume inferred range of x_2(D) (param x) = [irange] unsigned int [9, 10] MASK 0x3 VALUE 0x8 on-exit update x_2(D) in BB2 : [irange] unsigned int [9, 10] MASK 0x3 VALUE 0x8 The _Z3bazj.

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 --- Comment #17 from Jakub Jelinek --- Given PR117287 I'm going to test just the #1 patch for now.

[Bug tree-optimization/117287] [13/14/15 Regression] assume attribute related miscompilation

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117287 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2 Keywords|build

[Bug tree-optimization/117287] [13/14/15 Regression] assume attribute related miscompilation

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117287 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2024-10-24 Status|UNCONFIRM

[Bug tree-optimization/117287] New: [13/14/15 Regression] assume attribute related miscompilation

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: amonakov at gcc dot gnu.org, jakub at gcc dot gnu.org, pinskia at gcc dot gnu.org

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 --- Comment #16 from Jakub Jelinek --- So, the powerpc gengtype issue during --disable-checking build with those 2 patches is about whether gcc_assert (union_or_struct_p (kind)); in gengtype.cc (new_structure) is present or commented out, if i

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 Jakub Jelinek changed: What|Removed |Added Attachment #59416|0 |1 is obsolete|

[Bug lto/117201] [15 regression] libqrencode-4.1.1 miscompiled with LTO

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #14 from Jakub Jelinek --- Created attachment 59428 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59428&action=edit gcc15-pr117201.patch Untested fix.

[Bug lto/117201] [15 regression] libqrencode-4.1.1 miscompiled with LTO

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117201 --- Comment #13 from Jakub Jelinek --- unsigned char a = 193; unsigned char *b = &a; void foo (void) { unsigned char c[] = { 0, 2, 1, 1, 2, 1, 2, 2, 6, 2, 1, 1, 1, 1, 2, 2, 0, 2, 1, 1, 2, 1, 2, 2, 1, 2, 1, 1, 2, 1, 2,

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 --- Comment #13 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #11) > Created attachment 59416 [details] > gcc15-pr117249-2.patch > > Untested patch to change the gcc_assert definition. Unfortunately this doesn't work, there ar

[Bug c/117030] [C2y] Implement N3367, More Modern Bit Utilities

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117030 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c/117145] [14/15 Regression] ICE: in make_ssa_name_fn, at tree-ssanames.cc:355 at -O1 and above with vector_size and VLA in struct argument since r14-1143-g42d1612eb5c3b2

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117145 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug sanitizer/117209] [13/14/15 Regression] ICE: verify_gimple failed with asan.

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117209 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug tree-optimization/116588] [14 Regression] wrong code with -O2 -fno-vect-cost-model -fno-tree-dominator-opts -fno-tree-fre --param=vrp-block-limit=0

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116588 --- Comment #9 from Jakub Jelinek --- Andrew, do you plan to backport this?

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 --- Comment #11 from Jakub Jelinek --- Created attachment 59416 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59416&action=edit gcc15-pr117249-2.patch Untested patch to change the gcc_assert definition.

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug middle-end/116891] [12/13 Regression] invalid optimization of -fma(-x,x,-z) when -O3 and -frounding-math are used

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
|invalid optimization of |optimization of |-fma(-x,x,-z) when -O3 and |-fma(-x,x,-z) when -O3 and |-frounding-math are used|-frounding-math are used CC||jakub at gcc dot gnu.org --- Comment #15 from

[Bug c/117190] [15 Regression] ICE on linux-6.11.3: in size_binop_loc, at fold-const.cc:2085

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
gcc dot gnu.org |jakub at gcc dot gnu.org Status|NEW |RESOLVED --- Comment #12 from Jakub Jelinek --- Should be fixed now.

[Bug c/117230] [14/15 Regression] ICE: in sizeof_pointer_memaccess_warning, at c-family/c-warn.cc:987 with -Wsizeof-pointer-memaccess

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117230 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/117199] [15 regression] libgcrypt-1.11.0 fails to link (warning: relocation against `.LC11' in read-only section `.text')

2024-10-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117199 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug analyzer/117262] [15 regression] Analyzer doesn't handle RAW_DATA_CST properly

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117262 --- Comment #2 from Jakub Jelinek --- Sure, it is trunk only, introduced in r15-4375. Would be nice if it could be handled similarly to apply_ctor_val_to_range by creating just a single record for the whole range, just with slightly different me

[Bug target/117229] [15 regression] "libcpp, c, middle-end: Optimize initializers using #embed in C" vs. GCN '-march=gfx908'

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117229 --- Comment #6 from Jakub Jelinek --- (In reply to Thomas Schwinge from comment #2) > OK, that's going to be "fun": > During "manual bisecting", I found that I can, for example, also make it > PASS this way: The h array is const unsigned char

[Bug target/117229] [15 regression] "libcpp, c, middle-end: Optimize initializers using #embed in C" vs. GCN '-march=gfx908'

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117229 --- Comment #8 from Jakub Jelinek --- I'd suggest the embed-100.c hack mentioned above, then you can easily shrink the embed-1.c testcase if it still reproduces (hopefully just to the two strstr calls or what) and similarly reduce the embed-100.

[Bug analyzer/117262] New: [15 regression] Analyzer doesn't handle RAW_DATA_CST properly

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
-fail, wrong-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: ams at gcc dot gnu.org, burnus at gcc dot gnu.org, dmalcolm at gc

[Bug target/117229] [15 regression] "libcpp, c, middle-end: Optimize initializers using #embed in C" vs. GCN '-march=gfx908'

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117229 Jakub Jelinek changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org --- Comment

[Bug sanitizer/117259] [12/13/14/15 Regression] warning: 'j.6' may be used uninitialized [-Wmaybe-unitialized] with -fsanitize=undefined

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259 --- Comment #7 from Jakub Jelinek --- I don't think throwing more save_expr calls is the right way here. The problem is that save_expr can just return what has been passed to it without building a SAVE_EXPR. In some cases for the PMFs it is fin

[Bug c++/117257] Problem of std::complex and maybe GCC accepts invalid

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117257 --- Comment #4 from Jakub Jelinek --- Of course, I'd be afraid we'd break a lot of code if it is changed. Note, C++11 list initialization of _Complex has been added exactly for std::complex, see PR48760.

[Bug c++/117257] Problem of std::complex and maybe GCC accepts invalid

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117257 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c++/117256] When initializing an object, padding bits are not set to zero

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117256 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug sanitizer/117259] [12/13/14/15 Regression] warning: 'j.6' may be used uninitialized [-Wmaybe-unitialized] with -fsanitize=undefined

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259 --- Comment #6 from Jakub Jelinek --- Slightly simplified testcase (still -fsanitize=undefined -Wuninitialized): struct A { void foo () {} }; struct B { void (A::*b) (); B (void (A::*x) ()) : b(x) {}; }; const B c[1] = { { &A::foo } }; void foo

[Bug target/117229] [15 regression] "libcpp, c, middle-end: Optimize initializers using #embed in C" vs. GCN '-march=gfx908'

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117229 --- Comment #1 from Jakub Jelinek --- All of those tests are the same source (3 of them include the fourth), just differ in used options. Could you please sed -i -e 's|abort ()|__builtin_printf ("%d FAIL\\n", __LINE__)|p' c-c++-common/cpp-embed

[Bug c/117230] [14/15 Regression] ICE: in sizeof_pointer_memaccess_warning, at c-family/c-warn.cc:987 with -Wsizeof-pointer-memaccess

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117230 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug middle-end/117249] [12/13/14/15 Regression] --disable-checking is broken since r5-2450

2024-10-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117249 --- Comment #7 from Jakub Jelinek --- Then we could use [[assume (EXPR)]]; if the attribute is supported, that would never evaluate the side-effects but still optimize the non-side-effect cases and some easy side-effect cases too if inlining + V

  1   2   3   4   5   6   7   8   9   10   >