[Bug c++/121021] Move -Wuninitialized from -Wextra to -Wall

2025-07-09 Thread asenzz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 --- Comment #5 from Žarko Asen --- in my case (C++ 20) -Wunitialized was not enabled by -Wall therefore a critical bug slip through: const uint32_t x = x + 1; // where is a novel variable in the local and global scope This should have been cau

[Bug target/121022] New: Suboptimal code generation for atomic_thread_fence

2025-07-09 Thread mmyangfl at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121022 Bug ID: 121022 Summary: Suboptimal code generation for atomic_thread_fence Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug target/117007] Poor optimization for small vector constants needed for vector shift/rotate/mask generation

2025-07-09 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117007 Michael Meissner changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 121021, which changed state. Bug 121021 Summary: Move -Wuninitialized from -Wextra to -Wall https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 What|Removed |Added --

[Bug c++/121021] Move -Wuninitialized from -Wextra to -Wall

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 121021, which changed state. Bug 121021 Summary: Move -Wuninitialized from -Wextra to -Wall https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 What|Removed |Added --

[Bug c++/121021] Move -Wuninitialized from -Wextra to -Wall

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 Andrew Pinski changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Ever confirmed|1

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 121021, which changed state. Bug 121021 Summary: Move -Wuninitialized from -Wextra to -Wall https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 What|Removed |Added --

[Bug c++/121021] Move -Wuninitialized from -Wextra to -Wall

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/121021] Move -Wuninitialized from -Wextra to -Wall

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-07-10 Ever confirmed|0

[Bug c++/121021] New: Move -Wuninitialized from -Wextra to -Wall

2025-07-09 Thread asenzz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121021 Bug ID: 121021 Summary: Move -Wuninitialized from -Wextra to -Wall Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug tree-optimization/119876] suboptimal code for avx512 conditional move

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119876 --- Comment #4 from Andrew Pinski --- Note the difference between what I get with PR 119920 and what LLVM produces is due to the generation of `b[i] > 0 ? 1 : 2` for GCC; should we file this seperately? Jan where you did notice this?

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled since r16-1624-g6deab186535a5a

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 Sam James changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug target/114641] sh: fdpic optimization of function address breaks pointer equality

2025-07-09 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114641 --- Comment #5 from Oleg Endo --- (In reply to Rich Felker from comment #4) > It's a C conformance bug that's been present ever since the version of the > FDPIC support I submitted for merge, so I think it's appropriate for > backport to any bra

[Bug target/121015] [16 regression] ICE when building blender for x86_64 with -O3 -mavx

2025-07-09 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 H.J. Lu changed: What|Removed |Added Attachment #61827|0 |1 is obsolete|

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #5 from Sam James --- (In reply to Sam James from comment #0) > $ make -j$(nproc) -l$(nproc) This should read: $ make -j$(nproc) -l$(nproc) STAGE1_C{,XX}FLAGS="-O3 -march=znver2 -ggdb3"

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #4 from Sam James --- I'll bisect it now, I won't have a chance to try reduce until the weekend.

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #12 from Segher Boessenkool --- (In reply to Jakub Jelinek from comment #11) > Though even there is uninitialized read I guess from temp.a. > That said, LRA obviously shouldn't hang even on code which has UB at runtime. Of course.

[Bug target/114641] sh: fdpic optimization of function address breaks pointer equality

2025-07-09 Thread bugdal at aerifal dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114641 --- Comment #4 from Rich Felker --- It's a C conformance bug that's been present ever since the version of the FDPIC support I submitted for merge, so I think it's appropriate for backport to any branch that's still open and fixing bugs of this

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #3 from Sam James --- (In reply to Sam James from comment #2) > Created attachment 61828 [details] > genrecog.ii.xz > > genrecog.o itself is miscompiled. $ g++ -std=c++14 -c -ggdb3 -o build/genrecog.o /tmp/genrecog.ii -O2 -fno-vect

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 --- Comment #2 from Sam James --- Created attachment 61828 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61828&action=edit genrecog.ii.xz genrecog.o itself is miscompiled.

[Bug tree-optimization/121020] [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121020 Sam James changed: What|Removed |Added Component|c |tree-optimization Target Milestone|---

[Bug c/121020] New: [16 regression] genrecog miscompiled

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-linker-build-id --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib

[Bug target/121019] New: Explore removal of DI patterns for rv32

2025-07-09 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121019 Bug ID: 121019 Summary: Explore removal of DI patterns for rv32 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: targe

[Bug target/121015] [16 regression] ICE when building blender for x86_64 with -O3 -mavx

2025-07-09 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 H.J. Lu changed: What|Removed |Added Last reconfirmed||2025-07-09 Assignee|unassigned at g

[Bug target/114641] sh: fdpic optimization of function address breaks pointer equality

2025-07-09 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114641 --- Comment #3 from Oleg Endo --- (In reply to Rich Felker from comment #2) > The surrounding if statement whose body the hunk modifies is conditioned on > TARGET_FDPIC, so it should not be able to alter non-FDPIC behavior. Ah, OK then. I just

[Bug bootstrap/119430] profiledbootstrap fails on armv7a-unknown-linux-gnueabhif (crashes in elists__append_elmt during stagefeedback)

2025-07-09 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119430 --- Comment #16 from Alexandre Oliva --- Created attachment 61826 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61826&action=edit candidate fix

[Bug target/114641] sh: fdpic optimization of function address breaks pointer equality

2025-07-09 Thread bugdal at aerifal dot cx via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114641 --- Comment #2 from Rich Felker --- The surrounding if statement whose body the hunk modifies is conditioned on TARGET_FDPIC, so it should not be able to alter non-FDPIC behavior.

[Bug target/114641] sh: fdpic optimization of function address breaks pointer equality

2025-07-09 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114641 Oleg Endo changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/111814] [SH] __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2025-07-09 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 --- Comment #13 from Oleg Endo --- (In reply to John Paul Adrian Glaubitz from comment #12) > (In reply to Oleg Endo from comment #11) > > Is there anything that needs to be addressed for this one? > > Yes, can this be backported to the 14 and

[Bug bootstrap/119430] profiledbootstrap fails on armv7a-unknown-linux-gnueabhif (crashes in elists__append_elmt during stagefeedback)

2025-07-09 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119430 --- Comment #15 from Alexandre Oliva --- -mlong-calls isn't enough, because with !flag_reorder_blocks_and_partition arm_long_call_p overrides it to false when functions share the same section. But with -ffunction-sections I got all the gnat1 so

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #10 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #9) > The problem if it is the scalar type rather than pointer to it is that it > could be e.g. too narrow to fit all the ACCESS_MODE values there. Think

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-09 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 --- Comment #11 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #10) > The problem is not restricted to mpi_isend. This was supposed to read: ... not restricted to mpi_irecv

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-09 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #11 from Jakub Jelinek --- Though even there is uninitialized read I guess from temp.a. That said, LRA obviously shouldn't hang even on code which has UB at runtime.

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #10 from Jakub Jelinek --- Slightly tweaked testcase to avoid -Wuninitialized as well as avoid the aliasing violation. typedef struct { int a; } A; unsigned char *a; char b; int c; void foo (vector char, vector char, vector char);

[Bug target/120993] powerpc64le with ibm128 long double LDBL_NORM_MAX does not conform to C23

2025-07-09 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120993 --- Comment #5 from Paul Eggert --- (In reply to Bruno Haible from comment #4) > in order to get a practically useful model, one should choose the > maximum possible value of p. > > In the case of the 'double-double' representation, this value

[Bug cobol/120765] gcobc broken shellscript

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120765 --- Comment #2 from GCC Commits --- The master branch has been updated by Robert Dubner : https://gcc.gnu.org/g:069bf2fe31e99f0415ddb6acaf76cfb6eee8bb6a commit r16-2155-g069bf2fe31e99f0415ddb6acaf76cfb6eee8bb6a Author: Robert Dubner Date: W

[Bug cobol/120794] extra separator periods lead to syntax error

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120794 --- Comment #3 from GCC Commits --- The master branch has been updated by Robert Dubner : https://gcc.gnu.org/g:069bf2fe31e99f0415ddb6acaf76cfb6eee8bb6a commit r16-2155-g069bf2fe31e99f0415ddb6acaf76cfb6eee8bb6a Author: Robert Dubner Date: W

[Bug cobol/119337] cobol: gcobc wrapper should deduce output name

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119337 --- Comment #7 from GCC Commits --- The master branch has been updated by Robert Dubner : https://gcc.gnu.org/g:069bf2fe31e99f0415ddb6acaf76cfb6eee8bb6a commit r16-2155-g069bf2fe31e99f0415ddb6acaf76cfb6eee8bb6a Author: Robert Dubner Date: W

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #9 from Jakub Jelinek --- The problem if it is the scalar type rather than pointer to it is that it could be e.g. too narrow to fit all the ACCESS_MODE values there. Think about unsigned _BitInt(1) counted_by.

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #8 from Jakub Jelinek --- The usual way would be to make the argument pointer to the scalar type, basically have the access mode the same type as the second argument. So e.g. int * or unsigned * or size_t * etc.

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #7 from qinzhao at gcc dot gnu.org --- I need to modify the testing case as following to enable __builtin_dynamic_object_size working as expected: /* The parameter m must be const qualified to avoid the m is marked as TREE_SIDE_E

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #6 from qinzhao at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #5) > Why do you need CLASS_OF_SIZE argument? If count is in bytes, simply pass 1 > to the TYPE_SIZE_UNIT argument. > ACCESS_MODE can be in the same argum

[Bug target/121018] New: RVV codegen: spills unused vector registers on function call between RVV intrinsics

2025-07-09 Thread camel-cdr at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121018 Bug ID: 121018 Summary: RVV codegen: spills unused vector registers on function call between RVV intrinsics Product: gcc Version: 16.0 Status: UNCONFIRMED Seve

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #9 from Segher Boessenkool --- Hrm, the insn here is just a mulldi instruction, a bog-standard integer multiplication (by a constant, 6 here). But insn 58 (where the problems start, "Changing address in insn 58 r218:DI&0xfff

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #8 from Segher Boessenkool --- (Also tested on powerpc-linux (where things just work), and on powerpc64-linux (the older ABI, correct-endian), where it fails just the same as on LE).

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #7 from Segher Boessenkool --- Cool, thanks! 121007.c:36:3: warning: 'v4' may be used uninitialized [-Wmaybe-uninitialized] No clue why it says "may be" there, it obviously *is* used uninitialised, this is the first time it is used

[Bug c++/119328] ICE on generic lambda with defaulted parameter in requires clause

2025-07-09 Thread eczbek.void at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119328 --- Comment #3 from eczbek.void at gmail dot com --- This no longer appears to ICE but still errors: https://godbolt.org/z/699vW5dhn

[Bug tree-optimization/121004] float_var*0.0f if we know a is finite be just done as copysign(0.0, a)

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121004 --- Comment #8 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #7) > And obviously for -fno-signed-zeros optimize the copysign to just 0. Filed as PR 121017.

[Bug middle-end/121017] `__builtin_copysign(0.0, a)` should be optimized to 0.0 for -fno-signed-zeros

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121017 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug middle-end/121017] New: `__builtin_copysign(0.0, a)` should be optimized to 0.0 for -fno-signed-zeros

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121017 Bug ID: 121017 Summary: `__builtin_copysign(0.0, a)` should be optimized to 0.0 for -fno-signed-zeros Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords:

[Bug c++/121016] coroutine vs statement expressions ({})

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #6 from Marc Singer --- (In reply to Andrew Pinski from comment #5) > (In reply to Marc Singer from comment #4) > > I found that there are cases in the same program where it does compile. > > Yes there might be some cases where stat

[Bug c++/121016] coroutine vs statement expressions ({})

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #5 from Andrew Pinski --- (In reply to Marc Singer from comment #4) > I found that there are cases in the same program where it does compile. Yes there might be some cases where statement expressions will work but we know there are

[Bug c++/121016] coroutine vs statement expressions ({})

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #4 from Marc Singer --- I found that there are cases in the same program where it does compile.

[Bug c++/121016] coroutine vs statement expressions ({})

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #3 from Andrew Pinski --- I think you could just use do { } while(0) instead of a statement expression here. That is: #define COTHREAD_PROTOTHREAD(f) do {\ using namespace Glow::Cothreads;

[Bug c++/121016] coroutine appears to be allergic to {()}

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/121016] coroutine appears to be allergic to {()}

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #1 from Marc Singer --- Created attachment 61825 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61825&action=edit Preprocessed version of the failing source file.

[Bug c++/121016] New: coroutine appears to be allergic to {()}

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 Bug ID: 121016 Summary: coroutine appears to be allergic to {()} Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #4 from qinzhao at gcc dot gnu.org --- The size of the element of the FAM actually _cannot_ reliably depends on the original TYPE of the FAM that we passed as the 6th parameter to the .ACCESS_WITH_SIZE: TYPE_SIZE_UNIT (TREE_TYPE

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #6 from Jakub Jelinek --- Reduced -mcpu=power9 -O2: typedef struct { int a; } A; unsigned char *a; char b; int c; void foo (vector char, vector char, vector char); void bar (long stride) { vector char v0, v1, v2, v3, v4, v5; ve

[Bug fortran/120958] tree-sra "miscompiles" asynchronous MPI (mpi_irecv) in Fortran 77 because of wrong fnspec

2025-07-09 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120958 --- Comment #9 from kargls at comcast dot net --- (In reply to anlauf from comment #8) > (In reply to Martin Jambor from comment #7) > > (In reply to kargls from comment #5) > > > > > > So, if I understand, you want an fnspec of ". . w w w w w w

[Bug tree-optimization/104547] std::vector::resize(v.size() - n) produces poor code

2025-07-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104547 --- Comment #13 from Jonathan Wakely --- This test fails with this proposed patch: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/689128.html

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #5 from Andrew Pinski --- (In reply to Segher Boessenkool from comment #4) > So LRA gets into an infinite loop here as well, do we know that to be > true already, is that actually seen? Yes from the .reload dump: ``` Changing addres

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #4 from Segher Boessenkool --- (In reply to Andrew Pinski from comment #1) > This is definitely sounding more and more like PR 93658. Yes, and maybe the error / fix / workaround will be similar: replace a VECTOR_MEM_ALTIVEC_P by VEC

[Bug target/121007] [15/16 Regression] compiler hangs when building ffpmeg with -mcpu=power9 on ppc64le

2025-07-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121007 --- Comment #3 from Segher Boessenkool --- Does anyone want to take this? Fame and fortune await! We need a reduced test case btw :-)

[Bug target/120999] Assembler warning about MOVPRFX generation for NBSL instructions

2025-07-09 Thread ktkachov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120999 ktkachov at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #14 from Sam James --- (In reply to Sam James from comment #13) > It looks like the last commit this machine built python3.14t at was > r16-1594-gb03e0d69b37f6e which predates preserve_none being added > (r16-1692-g9804b23198b39f). >

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #13 from Sam James --- It looks like the last commit this machine built python3.14t at was r16-1594-gb03e0d69b37f6e which predates preserve_none being added (r16-1692-g9804b23198b39f). We had a similar problem in PR120840.

[Bug libstdc++/120997] std::span::subspan returns initializer list

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120997 --- Comment #5 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:a72d0e1a8bf0770ddf1d8d0ebe589f92a4fab4ef commit r16-2152-ga72d0e1a8bf0770ddf1d8d0ebe589f92a4fab4ef Author: Jonathan Wakely Date:

[Bug target/121013] Possible miscompilation triggered by __builtin_stack_address() at `-O3`.

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121013 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target|

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 --- Comment #11 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:2492bab503f57f2cf6e08e5c104f7a1d31d34047 commit r16-2149-g2492bab503f57f2cf6e08e5c104f7a1d31d34047 Author: Jason Merrill Date: W

[Bug c++/121012] [16 Regression] Error on lambda with auto parameter as template argument

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121012 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:d1c92ea10d30e4cf359faa8bbe3782ed6173d8a9 commit r16-2148-gd1c92ea10d30e4cf359faa8bbe3782ed6173d8a9 Author: Jason Merrill Date: We

[Bug c++/120917] warning: use of 'auto' in template argument only available with '-fconcepts-ts'

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917 --- Comment #28 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:d1c92ea10d30e4cf359faa8bbe3782ed6173d8a9 commit r16-2148-gd1c92ea10d30e4cf359faa8bbe3782ed6173d8a9 Author: Jason Merrill Date: W

[Bug c++/119838] optional template keyword with global namespace causing error

2025-07-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119838 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/113563] Rejects capture of `this` in C++23 `this auto` lambda

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113563 --- Comment #18 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:131ba6137bca263d7381ad3331840ee05e306fc9 commit r16-2147-g131ba6137bca263d7381ad3331840ee05e306fc9 Author: Jason Merrill Date: W

[Bug c++/121008] [16 Regression] Error on 'this' inside noexcept specifier of lambda capturing 'this' inside noexcept specifier

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121008 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:131ba6137bca263d7381ad3331840ee05e306fc9 commit r16-2147-g131ba6137bca263d7381ad3331840ee05e306fc9 Author: Jason Merrill Date: We

[Bug c++/119838] optional template keyword with global namespace causing error

2025-07-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119838 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:2ca183c113effe2d334b2227f4fdfa5666db8874 commit r16-2146-g2ca183c113effe2d334b2227f4fdfa5666db8874 Author: Marek Polacek Date: Tu

[Bug middle-end/121013] Possible miscompilation triggered by __builtin_stack_address() at `-O3`.

2025-07-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121013 --- Comment #1 from Andrew Pinski --- https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/Return-Address.html#index-_005f_005fbuiltin_005fstack_005faddress

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 Richard Biener changed: What|Removed |Added Keywords||needs-bisection --- Comment #12 from R

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-07-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 --- Comment #10 from Iain Sandoe --- (In reply to Jason Merrill from comment #9) > (In reply to Jason Merrill from comment #8) > > Iain, will you backport r16-1507? > > Actually, I'll do it. that's fine too - my plan is to back port the stack

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #11 from Sam James --- Without -fprofile-generate: │ 0001ed00 <_Py_Check_ArgsIterable>: │ _Py_Check_ArgsIterable(): │ mov0x18(%rdx),%rax │ cmpq $0x0,0xe8(%rax) │ je 1ed20 <_Py_Check_ArgsIterable+0x20>

[Bug c++/120243] [15/16 Regression] Exception rethrown from coroutine promise type unhandled_exception not caught under -O1

2025-07-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120243 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Com

[Bug target/120870] [16 regression] CPython miscompiled with preserve_none and CFLAGS="-O2 -march=znver2 -ggdb3"

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120870 --- Comment #10 from Sam James --- Created attachment 61824 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61824&action=edit ceval.i.xz ceval.o is broken. ``` $ gcc -c -fno-strict-overflow -O2 -mavx -mtune=znver2 -std=c11 -fvisibility=hi

[Bug c++/121012] [16 Regression] Error on lambda with auto parameter as template argument

2025-07-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121012 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug target/121015] [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 --- Comment #2 from Sam James --- This fails with just -O2: ``` union { int i; float f; } int_as_float_u; int render_result_from_bake_w, render_result_from_bake_h_seed_pass; float *render_result_from_bake_h_primitive, *render_result_from_ba

[Bug target/121015] [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 Sam James changed: What|Removed |Added CC||hjl.tools at gmail dot com Target Milesto

[Bug target/111814] [SH] __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2025-07-09 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 --- Comment #12 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #11) > Is there anything that needs to be addressed for this one? Yes, can this be backported to the 14 and 15 branches or are the changes too intrusive? I j

[Bug middle-end/121000] __builtin_dynamic_object_size should work for FAM with VLA element when annotated with counted_by

2025-07-09 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121000 --- Comment #3 from qinzhao at gcc dot gnu.org --- (In reply to Richard Biener from comment #2) > > we can cleanly see that _26 is an uninitialized variable, whose > > initialization has been eliminated by the previous optimization already due >

[Bug tree-optimization/121004] float_var*0.0f if we know a is finite be just done as copysign(0.0, a)

2025-07-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121004 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #7

[Bug target/121015] [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121015 --- Comment #1 from Sam James --- I'm reducing it now.

[Bug target/121015] New: [16 regression] ICE when building blender

2025-07-09 Thread sjames at gcc dot gnu.org via Gcc-bugs
ld-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250709 (experimental) a09b415b87cd98e3a4f3e197ad4e9e67a335c1d4 (Gentoo Hardened 16.0. p, commit 9dd46ee2eb01d30892f1c6db1599e82a9c6e8b04) ```

[Bug tree-optimization/121014] vectorizer uses RDIV_EXPR for integer types

2025-07-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121014 Richard Biener changed: What|Removed |Added Last reconfirmed||2025-07-09 CC|

[Bug tree-optimization/121014] New: vectorizer uses RDIV_EXPR for integer types

2025-07-09 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121014 Bug ID: 121014 Summary: vectorizer uses RDIV_EXPR for integer types Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree

[Bug c/121013] New: Possible miscompilation triggered by __builtin_stack_address() at `-O3`.

2025-07-09 Thread moorabbit at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121013 Bug ID: 121013 Summary: Possible miscompilation triggered by __builtin_stack_address() at `-O3`. Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: nor

[Bug c++/121008] [16 Regression] Error on 'this' inside noexcept specifier of lambda capturing 'this' inside noexcept specifier

2025-07-09 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121008 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org

[Bug preprocessor/96027] Windows: gcc does not resolve long relative header paths correctly

2025-07-09 Thread Oliver.Old at loewen dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96027 Oliver Old changed: What|Removed |Added CC||Oliver.Old at loewen dot de --- Comment #2

[Bug c++/121008] [16 Regression] Error on 'this' inside noexcept specifier of lambda capturing 'this' inside noexcept specifier

2025-07-09 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121008 Marek Polacek changed: What|Removed |Added Priority|P3 |P1 Keywords|needs-bisection

[Bug gcov-profile/120229] [GCOV] AutoFDO cannot distinguish privatized functions within an LTO partition

2025-07-09 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120229 --- Comment #2 from Jan Hubicka --- See thread https://gcc.gnu.org/pipermail/gcc-patches/2025-July/689018.html

  1   2   >