[Bug sanitizer/99179] asan failures with -Os on x86_64-apple-darwin

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99179 --- Comment #8 from Andrew Pinski --- I don't see it failing in https://gcc.gnu.org/pipermail/gcc-testresults/2025-August/856338.html . Did this get fixed?

[Bug middle-end/117799] __builtin_memcmp not optimized for size

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117799 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |middle-end --- Comment #3 from Andrew P

[Bug target/117393] Consider inlining memcmp(a, b, small constant)==0 on -Os

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117393 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug tree-optimization/93265] memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 Andrew Pinski changed: What|Removed |Added CC||blubban at gmail dot com --- Comment #7

[Bug tree-optimization/117799] __builtin_memcmp not optimized for size

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

[Bug middle-end/90663] [13/14/15/16 Regression] strcmp (&a[i], a + i) not folded for arrays and constant index

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90663 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug debug/121157] -gcodeview does not work with Ada

2025-08-29 Thread andrew.teylu at vector dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #19 from Andrew Teylu --- (In reply to Mark Harmstone from comment #18) > (In reply to Eric Botcazou from comment #17) > > > As Eric said, the problem is essentially that CodeView isn't designed to > > > accommodate Ada's type system

[Bug tree-optimization/121355] std::array comparison inside struct comparison does not inline memcmp

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121355 --- Comment #2 from Andrew Pinski --- Created attachment 62246 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62246&action=edit Patch which I will test I still need some testcases though. But it gets the one in comment #0 correctly.

[Bug tree-optimization/121355] std::array comparison inside struct comparison does not inline memcmp

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121355 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org La

[Bug tree-optimization/88398] vectorization failure for a small loop to do byte comparison

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398 --- Comment #50 from Andrew Pinski --- This does get vectorized with SVE on the trunk.

[Bug middle-end/95887] suboptimal memcmp with embedded zero bytes

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95887 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #2 from Andrew Pin

[Bug middle-end/95887] suboptimal memcmp with embedded zero bytes

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95887 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID See Also|

[Bug middle-end/12086] memcmp(i,j,4) should use word (SI) subtraction

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12086 --- Comment #19 from Andrew Pinski --- *** Bug 95887 has been marked as a duplicate of this bug. ***

[Bug c/88662] Document trap representations of _Bool

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88662 --- Comment #21 from Andrew Pinski --- (In reply to Vincent Lefèvre from comment #20) > (In reply to Joseph S. Myers from comment #18) > > What aspects of the psABI for bool do you say GCC does not respect? > > I meant in general. So I've filed

[Bug tree-optimization/116651] vector::operator== on a newly created single element vector is not that good

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116651 Andrew Pinski changed: What|Removed |Added Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug tree-optimization/83819] [meta-bug] missing strlen optimizations

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 93265, which changed state. Bug 93265 Summary: memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os https://gcc.gnu.org/bugzill

[Bug tree-optimization/93265] memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |16.0 See Also|

[Bug tree-optimization/103647] constant array comparison not always folded

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

[Bug tree-optimization/116651] vector::operator== on a newly created single element vector is not that good

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116651 --- Comment #8 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:bfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 commit r16-3470-gbfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 Author: Andrew Pinski Date: Th

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #20 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:bfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 commit r16-3470-gbfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 Author: Andrew Pinski Date: Th

[Bug tree-optimization/103647] constant array comparison not always folded

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:bfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 commit r16-3470-gbfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 Author: Andrew Pinski Date: Th

[Bug tree-optimization/93265] memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 --- Comment #5 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:bfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 commit r16-3470-gbfa70ddb650ec91c2511d351b2b3c3f78dfad6d4 Author: Andrew Pinski Date: Thu

[Bug middle-end/119808] wrong code with _BitInt() and -ftree-coalesce-vars -fstack-protector-strong

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119808 --- Comment #10 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #9) > Fixed for 14.3 as well, though the #c7 case still needs to be analyzed. I can't reproduce testcase in comment #7.

[Bug libgcc/120691] _Decimal128 arithmetic error under FE_UPWARD

2025-08-29 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120691 Hongtao Liu changed: What|Removed |Added Last reconfirmed||2025-08-30 Status|RESOLVED

[Bug libgcc/121718] [16 Regression] _Decimal128 now requires -lm, fails to link gdb (mpfr is underlinked against fesetenv()) since r16-3448-g50064b2898edfb

2025-08-29 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121718 --- Comment #5 from Hongtao Liu --- Let's revert it first

[Bug tree-optimization/121722] wrong code generated with -O1 for a program using _BitInt()

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

[Bug target/121723] 'non-delegitimized UNSPEC UNSPEC_GOTPCREL (2) found in variable location' with -march=tigerlake

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

[Bug libgomp/114445] [OpenMP] indirect - race when creating lookup hash on the device, causing aborts

2025-08-29 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114445 --- Comment #5 from Tobias Burnus --- Patch for this PR (and PR119857) that moves the creation to the host: https://gcc.gnu.org/pipermail/gcc-patches/2025-August/693753.html Note it does not (yet?) address the issue of having multiple images

[Bug ipa/99951] Dead return value after modify_call() is not released

2025-08-29 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99951 Jeffrey A. Law changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/101822] Codegen bug for popcount

2025-08-29 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 Bug 101822 depends on bug 7, which changed state. Bug 7 Summary: Missed optimisation with -Os https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7 What|Removed |Added -

[Bug tree-optimization/99997] Missed optimisation with -Os

2025-08-29 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7 Jeffrey A. Law changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/99997] Missed optimisation with -Os

2025-08-29 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7 --- Comment #8 from Jeffrey A. Law --- Seems to be fixed on the trunk.

[Bug target/121208] Wrong user-level interrupt vector value with TLS variable when build with optimisation

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121208 Sam James changed: What|Removed |Added CC||izaberina at gmail dot com --- Comment #23

[Bug target/117909] no_caller_saved_registers vs tls with -fpic/pie

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117909 Sam James changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug fortran/114611] H edit descriptor should flag as error with -std-f95 (or higher)

2025-08-29 Thread w6ws at earthlink dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114611 --- Comment #8 from Walter Spector --- I built a snapshot of gfortran today. Tested it, and all looks great. Thanks!

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 --- Comment #6 from Sam James --- elfutils, python, mpfr, ocaml are fine. FF will take a bit longer as the machine which hit it is slower (laptop, not desktop), but I wouldn't wait on that once you're happy.

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #11 from Martin Jambor --- (In reply to Andrew Pinski from comment #7) > Confirmed as at least SRA moving over to the wrong aliasing set for the new > store to the variable. Right, that is why I asked Michal to assign the bug to me.

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug modula2/121629] Where to install 3rd party library .def files

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121629 Bug 121629 depends on bug 121709, which changed state. Bug 121709 Summary: [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 --- Comment #11 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:8ab3bbadefb7f61086dec3da982059779f7cff51 commit r16-3467-g8ab3bbadefb7f61086dec3da982059779f7cff51 Author: Gaius Mulley Date: Fr

[Bug modula2/121629] Where to install 3rd party library .def files

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121629 --- Comment #5 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:8ab3bbadefb7f61086dec3da982059779f7cff51 commit r16-3467-g8ab3bbadefb7f61086dec3da982059779f7cff51 Author: Gaius Mulley Date: Fri

[Bug debug/121157] -gcodeview does not work with Ada

2025-08-29 Thread maharmstone at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #16 from Mark Harmstone --- I've sent a fix for this to the list: https://inbox.sourceware.org/gcc-patches/20250829203610.12218-1-m...@harmstone.com/T/#u As Eric said, the problem is essentially that CodeView isn't designed to accom

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 Gaius Mulley changed: What|Removed |Added Attachment #62242|0 |1 is obsolete|

[Bug debug/121157] -gcodeview does not work with Ada

2025-08-29 Thread maharmstone at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #18 from Mark Harmstone --- (In reply to Eric Botcazou from comment #17) > > As Eric said, the problem is essentially that CodeView isn't designed to > > accommodate Ada's type system. > > Yes, but STABS was in the same case so spec

[Bug debug/121157] -gcodeview does not work with Ada

2025-08-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157 --- Comment #17 from Eric Botcazou --- > As Eric said, the problem is essentially that CodeView isn't designed to > accommodate Ada's type system. Yes, but STABS was in the same case so special encodings were devised to work around its limitati

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 --- Comment #5 from Sam James --- Thanks. I'll try it now on Python and FF too.

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 --- Comment #4 from H.J. Lu --- (In reply to Sam James from comment #2) > Here's another testcase from elfutils. It has two files, I haven't tried to > condense it into one to keep it more realistic, but I can if needed. > $ gcc -O3 -flto dwarf

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #9 from Andrew Pinski --- With thashx4 being inlined, SRA does the replacement but does the right thing since the int64_t loads become BIT_FIELD_REF .

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > SRA does not reload ctx after thashx4.part.0.constprop either: > ``` > _2 = MEM [(char * {ref-all})sk_5(D)]; > ctx_14 = _2; > MEM[(struct *)&ctx] = ctx_

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libgcc/121718] [16 Regression] _Decimal128 now requires -lm, fails to link gdb (mpfr is underlinked against fesetenv()) since r16-3448-g50064b2898edfb

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121718 Sam James changed: What|Removed |Added Last reconfirmed||2025-08-29 Ever confirmed|0

[Bug tree-optimization/121698] [16 Regression] FAIL: g++.dg/opt/pr94589-2.C

2025-08-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121698 Jakub Jelinek changed: What|Removed |Added Attachment #62241|0 |1 is obsolete|

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 --- Comment #2 from Sam James --- Here's another testcase from elfutils. It has two files, I haven't tried to condense it into one to keep it more realistic, but I can if needed. ``` $ cat dwarf_error.i static __thread int global_error; int dwa

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #8 from Andrew Pinski --- The other thing to note is SRA is doing something wrong after the call to thashx4.part.0.constprop. ``` MEM [(char * {ref-all})&ctx] = _2; thashx4.part.0.constprop (sg_7(D), sg_7(D), sg_7(D), sg_7(D),

[Bug fortran/121728] [PDT] Testcase gfortran.dg/pr95090.f90 ICEs under valgrind

2025-08-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121728 --- Comment #2 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #1) > Adding 'implicit none' leads to proper rejection of the testcase: > > pr121728.f90:8:12: > > 8 | type(t(n)) :: z > |1 > Fatal Err

[Bug fortran/121728] [PDT] Testcase gfortran.dg/pr95090.f90 ICEs under valgrind

2025-08-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121728 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||ice-on-invalid-code --- Comm

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

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

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #6 from Andrew Pinski --- SRA changes it: ``` Candidate (43984): ctx Allowed ADDR_EXPR of ctx because of thashx4.part.0.constprop (sg_7(D), sg_7(D), sg_7(D), sg_7(D), &ctx.pub_seed[0]); Created a replacement for ctx offset: 0, size:

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #5 from Andrew Pinski --- There might be a bug but it was exposed by the DSE patch though. We start out with: MEM [(char * {ref-all})&ctx] = _2; But by the time we get to DSE we have: MEM[(struct *)&ctx] = _2; Which changed

[Bug fortran/121728] New: [PDT] Testcase gfortran.dg/pr95090.f90 ICEs under valgrind

2025-08-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121728 Bug ID: 121728 Summary: [PDT] Testcase gfortran.dg/pr95090.f90 ICEs under valgrind Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Pr

[Bug testsuite/121690] [13/14/15/16 regression] Regression for dg-output checks on macOS

2025-08-29 Thread azoff at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121690 --- Comment #12 from Torbjorn SVENSSON --- (In reply to Andrew Pinski from comment #11) > So here is what I think happens. the \n happens at the end of the buffer so > it is changed into \n\r into the buffer and then the next character from the

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 --- Comment #9 from Sam James --- Thanks Gaius, I'll give that a whack now.

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #4 fr

[Bug diagnostics/121039] RFE: optionally capture suppressed diagnostics in SARIF output

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121039 --- Comment #3 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:9e98b37f32f8bff72885904fc66ea7ec8fefec58 commit r16-3465-g9e98b37f32f8bff72885904fc66ea7ec8fefec58 Author: David Malcolm Date: F

[Bug fortran/93330] CHARACTER: Wrong kind=4 resolution + missing string-length mismatch actual/dummy diagnostic

2025-08-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93330 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|-

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 --- Comment #8 from Gaius Mulley --- Created attachment 62242 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62242&action=edit Proposed fix for default include directories using cpp_include_defaults Many thanks for the bug report and buil

[Bug tree-optimization/121698] [16 Regression] FAIL: g++.dg/opt/pr94589-2.C

2025-08-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121698 Jakub Jelinek changed: What|Removed |Added Attachment #62239|0 |1 is obsolete|

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #3 from Andrew Pinski --- So I think the problem is you access via uint64_t and then via the struct which causes the undefined behavior.

[Bug target/121548] [15 Regression] ICE: SIGSEGV in satisfies_constraint_vu (constraints.md:199) with -O -mrvv-vector-bits=zvl -march=rv64gv

2025-08-29 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121548 Jeffrey A. Law changed: What|Removed |Added Summary|[15/16 Regression] ICE: |[15 Regression] ICE:

[Bug target/121548] [15/16 Regression] ICE: SIGSEGV in satisfies_constraint_vu (constraints.md:199) with -O -mrvv-vector-bits=zvl -march=rv64gv

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121548 --- Comment #2 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:25bbc0f20a25a1db59baaf36d119ce274968747f commit r16-3463-g25bbc0f20a25a1db59baaf36d119ce274968747f Author: Jeff Law Date: Fri Aug 29

[Bug fortran/121727] New: Missed optimization passing character actual to shorter dummy with value attribute

2025-08-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121727 Bug ID: 121727 Summary: Missed optimization passing character actual to shorter dummy with value attribute Product: gcc Version: 16.0 Status: UNCONFIRMED Sever

[Bug fortran/121727] Missed optimization passing character actual to shorter dummy with value attribute

2025-08-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121727 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||missed-optimization

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #2 from Sam James --- (In reply to Michal Jireš from comment #0) > The issue is with uint8_t pub_seed[SPX_N]; > The `memcpy(ctx.pub_seed, ...)` is incorrectly being optimized away, > followed by > `pub_seed` being casted and read via

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 --- Comment #1 from Andrew Pinski --- I am 99% sure this is still not allowed. Let me look into this when I get home.

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 Sam James changed: What|Removed |Added Target Milestone|--- |15.3 Summary|Possible miscompila

[Bug tree-optimization/121726] New: Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-08-29 Thread mjires at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 Bug ID: 121726 Summary: Possible miscompilation with strict aliasing, uint8_t[] to uint64_t* Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: alias

[Bug fortran/93330] CHARACTER: Wrong kind=4 resolution + missing string-length mismatch actual/dummy diagnostic

2025-08-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93330 --- Comment #3 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:18e49f19f5907de8d28cd33a8789946a3f5092ce commit r16-3462-g18e49f19f5907de8d28cd33a8789946a3f5092ce Author: Harald Anlauf Date: Th

[Bug tree-optimization/121698] [16 Regression] FAIL: g++.dg/opt/pr94589-2.C

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

[Bug tree-optimization/121720] [13/14/15/16 Regression] std::min_element is not optimized at -O2

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

[Bug tree-optimization/121720] [13/14/15/16 Regression] std::min_element is not optimized at -O2

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

[Bug tree-optimization/121720] [13/14/15/16 Regression] std::min_element is not optimized at -O2

2025-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121720 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.5

[Bug c++/92413] [temp.explicit] Explicit template instantiations should not define member functions that are not defined at the point of instantiation

2025-08-29 Thread ddvamp007 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92413 Artyom Kolpakov changed: What|Removed |Added CC||ddvamp007 at gmail dot com --- Comment

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 --- Comment #1 from Sam James --- .. and -mtls-dialect=gnu2.

[Bug tree-optimization/101641] Bogus redundant store removal

2025-08-29 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101641 --- Comment #8 from Segher Boessenkool --- Hi! (In reply to Richard Biener from comment #7) > Wow, and this time it's even combine coming into play! But it is just something that happens during the instruction combiner pass, not anything to do

[Bug target/121725] [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121725 Sam James changed: What|Removed |Added Target Milestone|--- |16.0

[Bug target/121725] New: [16 regression] ICE when building binutils-libs-2.45 (candidate_gnu2_tls_p, at config/i386/i386-features.cc:4300)

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
ludes --with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-linker-build-id --with-build-config=bootstrap-O3 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250829 (experimental) 79e0dbf1c44fc23d870b8a08ad3562454efea015 (Gentoo Harde

[Bug c++/121724] New: Bad file data error on modules with nested namespace that does not match with global module fragment

2025-08-29 Thread shach.nkku at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121724 Bug ID: 121724 Summary: Bad file data error on modules with nested namespace that does not match with global module fragment Product: gcc Version: 16.0 Status: UNCONFIRM

[Bug target/121723] 'non-delegitimized UNSPEC UNSPEC_GOTPCREL (2) found in variable location' with -march=tigerlake

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121723 --- Comment #2 from Sam James --- Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-pc-linux-gnu Configured with

[Bug target/121723] 'non-delegitimized UNSPEC UNSPEC_GOTPCREL (2) found in variable location' with -march=tigerlake

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121723 --- Comment #1 from Sam James --- Created attachment 62237 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62237&action=edit c-attribs.cc

[Bug target/121723] New: 'non-delegitimized UNSPEC UNSPEC_GOTPCREL (2) found in variable location' with -march=tigerlake

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121723 Bug ID: 121723 Summary: 'non-delegitimized UNSPEC UNSPEC_GOTPCREL (2) found in variable location' with -march=tigerlake Product: gcc Version: 16.0 Status: UNCONFIRMED

[Bug c++/121720] [13/14/15/16 Regression] std::min_element is not optimized at -O2

2025-08-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121720 --- Comment #1 from Jonathan Wakely --- Possibly caused by r15-3986-g3e1bd6470e4deb but I'm not sure

[Bug lto/121719] inline asm defining label + -O2 -flto -ffat-lto-objects result in duplicated symbol

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

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 Gaius Mulley changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #7 from Gaius Mulle

[Bug tree-optimization/121722] New: wrong code generated with -O1 for a program using _BitInt()

2025-08-29 Thread kdudka at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121722 Bug ID: 121722 Summary: wrong code generated with -O1 for a program using _BitInt() Product: gcc Version: unknown Status: UNCONFIRMED Keywords: wrong-code

[Bug modula2/121709] [16 regression] Failed bootstrap in m2 (m2/gm2-lang.cc:547:39: error: ‘PREFIX_INCLUDE_DIR’ was not declared in this scope)

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121709 --- Comment #6 from Gaius Mulley --- Many thanks for the references to cppdefault and sysroot, I'll generate a patch.

[Bug modula2/121721] New: tiny wideset example takes too much time to compile

2025-08-29 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121721 Bug ID: 121721 Summary: tiny wideset example takes too much time to compile Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug lto/121719] inline asm defining label + -O2 -flto -ffat-lto-objects result in duplicated symbol

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

[Bug c++/121720] New: [13.4 / 14.3 / 15 / 16 Regression] std::min_element is not optimized at -O2

2025-08-29 Thread moncef.mechri at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121720 Bug ID: 121720 Summary: [13.4 / 14.3 / 15 / 16 Regression] std::min_element is not optimized at -O2 Product: gcc Version: 14.3.0 Status: UNCONFIRMED Severity:

[Bug libgcc/121718] [16 Regression] _Decimal128 now requires -lm, fails to link gdb (mpfr is underlinked against fesetenv()) since r16-3448-g50064b2898edfb

2025-08-29 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121718 Sam James changed: What|Removed |Added Target Milestone|--- |16.0 Keywords|

[Bug target/121096] [16 Regression] ICE: in store_by_pieces, at expr.cc:1847 with -Os -mtune=... -mstringop-strategy=vector_loop

2025-08-29 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121096 H.J. Lu changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

  1   2   >