[Bug c/116357] [12/13/14/15 Regression] The item's address of the array is not correct if aligned is used

2025-01-26 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116357 --- Comment #12 from rguenther at suse dot de --- On Fri, 24 Jan 2025, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116357 > > --- Comment #10 from Jakub Jelinek --- > So, shall we go for > --- gcc/c/c-decl.c

[Bug middle-end/118490] [15 Regression] ICE Indefinite recursion transforming exp-log with -frounding-math since r15-5116-ge232dc3bb5c3e8

2025-01-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118490 --- Comment #4 from GCC Commits --- The master branch has been updated by Soumya AR : https://gcc.gnu.org/g:d8a7f07f7cf008e359dad631aaae1028776b9e18 commit r15-7222-gd8a7f07f7cf008e359dad631aaae1028776b9e18 Author: Soumya AR Date: Mon Jan 2

[Bug c++/118670] -Wdangling-reference false positive when returning a reference from a reference_wrapper

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118670 --- Comment #4 from Andrew Pinski --- (In reply to Jeremy R. from comment #3) > Thanks Andrew, > Two thoughts: > Firstly, I'm surprised to see a normal reference and a > std::reference_wrapper behaving differently for this diagnostic. What's the

[Bug c++/118670] -Wdangling-reference false positive when returning a reference from a reference_wrapper

2025-01-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118670 Jeremy R. changed: What|Removed |Added Resolution|DUPLICATE |FIXED --- Comment #3 from Jeremy R. --- Th

[Bug c++/109642] False Positive -Wdangling-reference with std::span-like classes

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109642 Andrew Pinski changed: What|Removed |Added CC||llvm at rifkin dot dev --- Comment #24

[Bug c++/118670] -Wdangling-reference false positive when returning a reference from a reference_wrapper

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

[Bug c++/118670] -Wdangling-reference false positive when returning a reference from a reference_wrapper

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

[Bug c++/118670] New: -Wdangling-reference false positive when returning a reference from a reference_wrapper

2025-01-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118670 Bug ID: 118670 Summary: -Wdangling-reference false positive when returning a reference from a reference_wrapper Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build - caused by r15-7008-g9f009e8865cda0

2025-01-26 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 Peter Bergner changed: What|Removed |Added Summary|[15 Regression] ICE: in |[15 Regression] ICE: in

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #9 from Andi Kleen --- With constexpr you are guaranteed an visible initializer. const would potentially require messing with IPA and might impossible.

[Bug libstdc++/118665] std::uniform_int_distribution infinite loop with generator returning 0

2025-01-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118665 --- Comment #1 from Jonathan Wakely --- Such a generator fails to meet the requirements so the program has undefined behaviour.

[Bug tree-optimization/118669] Misaligned store after after vectorization without using misaligned type with SVE

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118669 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 --- Comment #13 from Jonathan Wakely --- (In reply to Arthur O'Dwyer from comment #11) > Personally I encourage libstdc++ to join libc++ in optimizing as if P3349 > were already the law of the land. You're free to say "no, we must not > perform

[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 --- Comment #12 from Jonathan Wakely --- (In reply to Alfredo Correa from comment #10) > In that case, wouldn't it be more consistent that the `contiguous_iterator` > concept checks for these `noexcept` characteristics? No, the standard is very

[Bug tree-optimization/118669] Misaligned store after after vectorization without misaligned type

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118669 --- Comment #1 from Andrew Pinski --- I suspect the issue is just not using the misaligned type. One thing to try is if gcc produces the misaligned store with -mstrict-align (which is will check when I get home).

[Bug tree-optimization/118669] New: Misaligned store after after vectorization

2025-01-26 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118669 Bug ID: 118669 Summary: Misaligned store after after vectorization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #8 from Andrew Pinski --- Constexpr is for c/c++ specific ideas of const expressions and not relevant to optimizations.

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #7 from Andrew Pinski --- (In reply to Andi Kleen from comment #6) > The C test case needs to use constexpr too. No it does not. Const variables which are initialized at compile time should be enough for the optimization. We alread

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread andi-gcc at firstfloor dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #6 from Andi Kleen --- The C test case needs to use constexpr too. #define DATA_SIZE 1024 static constexpr int TO_DATA_INDEX[DATA_SIZE] = {}; bool foo(int* data, unsigned char first_idx) { int second_idx = TO_DATA_INDEX[first_idx]

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 Peter Bergner changed: What|Removed |Added Status|WAITING |NEW --- Comment #6 from Peter Bergner

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 Segher Boessenkool changed: What|Removed |Added Status|NEW |WAITING --- Comment #5 from Segher

[Bug fortran/110993] Possibly bogus diagnostic on renamed interface import

2025-01-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110993 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot gnu

[Bug tree-optimization/118666] Canonicalization of `(a & CST) == CST` and `((~a) & CST) == 0`

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118666 --- Comment #3 from Andrew Pinski --- Looking into code generation for branches. https://godbolt.org/z/zWvYaKhWx The same applies as non branches.

[Bug modula2/118600] Assigning to a record from a constructor can cause an alignment exception

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

[Bug fortran/110993] Possibly bogus diagnostic on renamed interface import

2025-01-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110993 --- Comment #3 from anlauf at gcc dot gnu.org --- Created attachment 60286 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60286&action=edit Draft patch This patch also handles the case of interfaces of procedures with C binding. Currently

[Bug c++/118667] New: lambda references to bit-fields via structure binding is invalid

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118667 Bug ID: 118667 Summary: lambda references to bit-fields via structure binding is invalid Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: accepts-inval

[Bug c++/118668] lambda explict reference to anonymous union is allowed

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

[Bug c++/118668] New: lambda explict reference to anonymous union is allowed

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118668 Bug ID: 118668 Summary: lambda explict reference to anonymous union is allowed Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: accepts-invalid, c++-lambda Sever

[Bug middle-end/66240] RFE: extend -falign-xyz syntax

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66240 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |9.0

[Bug tree-optimization/118666] Canonicalization of `(a & CST) == CST` and `((~a) & CST) == 0`

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118666 --- Comment #2 from Andrew Pinski --- https://godbolt.org/z/xsYzTTzdE

[Bug tree-optimization/118666] Canonicalization of `(a & CST) == CST` and `((~a) & CST) == 0`

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118666 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug tree-optimization/118666] New: Canonicalization of `(a & CST) == CST` and `((~a) & CST) == 0`

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118666 Bug ID: 118666 Summary: Canonicalization of `(a & CST) == CST` and `((~a) & CST) == 0` Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimiza

[Bug fortran/110993] Possibly bogus diagnostic on renamed interface import

2025-01-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110993 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org --

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 --- Comment #4 from Peter Bergner --- So this isn't 32-bit specific. powerpc-linux defaults to -mcpu=601 and powerpc64-linux defaults to -mcpu=power4. Using -mcpu=power4 with either -m32 or -m64, we do not ICE. When using -mcpu=601 with eithe

[Bug c++/114292] [12/13/14/15 Regression] ICE with a generic (templated) lambda capturing a constant for VLA allocation

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114292 --- Comment #9 from Sam James --- Review is underway, see https://inbox.sourceware.org/gcc-patches/694bccdd-277b-43c4-8e99-38a38d45a...@redhat.com/.

[Bug c++/114292] [12/13/14/15 Regression] ICE with a generic (templated) lambda capturing a constant for VLA allocation

2025-01-26 Thread franckbehaghel_gcc at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114292 --- Comment #8 from Franck Behaghel --- > Patch submitted in > https://gcc.gnu.org/pipermail/gcc-patches/2024-December/671590.html Thanks for the fix. Look fine indeed. No more ICE. Could someone merge this into trunk ?

[Bug libstdc++/118665] New: std::uniform_int_distribution infinite loop with generator returning 0

2025-01-26 Thread cgnitash at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118665 Bug ID: 118665 Summary: std::uniform_int_distribution infinite loop with generator returning 0 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/96087] [12/13/14 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575

2025-01-26 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96087 Paul Thomas changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13/14 Regression] ICE

[Bug fortran/118640] [15 Regression] cp2k ICE in gfc_conv_expr_present since r15-5347

2025-01-26 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118640 Paul Thomas changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org Last re

[Bug c++/118661] [12/13/14/15 regression] Reading volatile qualified std::nullptr_t should be valid in a constant expression

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

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize with -mavx causes incorrect math since r14-9316-g7890836de20912

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 --- Comment #9 from Sam James --- That's why I blushed when I realised :D

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize with -mavx causes incorrect math since r14-9316-g7890836de20912

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > (In reply to Sam James from comment #1) > > Same on arm64. > > Well aarch64 does not have V4QI (I hope to finish that up for GCC 16 though). And char is unsign

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math since r14-9316-g7890836de20912

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-01-26 Status|UNCONFIRM

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math since r14-9316-g7890836de20912

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 --- Comment #6 from Andrew Pinski --- Created attachment 60284 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60284&action=edit Self contained testcase This now fails with `-O2 -mavx`.

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math since r14-9316-g7890836de20912

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 --- Comment #5 from Andrew Pinski --- (In reply to Sam James from comment #1) > Same on arm64. Well aarch64 does not have V4QI (I hope to finish that up for GCC 16 though).

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 --- Comment #25 from Thomas Koenig --- Created attachment 60283 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60283&action=edit Preliminary patch Here's a mostly-complete patch. It lacks test cases and and ChangeLog entries, but should w

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 Peter Bergner changed: What|Removed |Added Last reconfirmed||2025-01-26 Ever confirmed|0

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #5 from Andrew Pinski --- (In reply to Andi Kleen from comment #3) > I don't think you need range analysis for this, just the constexpr array > lookup needs to supply a constant. In the simplified testcase, saying all values of the

[Bug c/118664] Improve -Wswitch and -Wswitch-enum warnings for enum types

2025-01-26 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118664 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org

[Bug libstdc++/118647] Missed optimization to do memcpy/memmove for contiguous iterator

2025-01-26 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118647 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com ---

[Bug c/118664] New: Improve -Wswitch and -Wswitch-enum warnings for enum types

2025-01-26 Thread pipcet at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118664 Bug ID: 118664 Summary: Improve -Wswitch and -Wswitch-enum warnings for enum types Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pr

[Bug target/114085] Internal (cross) compiler error when building libstdc++ for the H8/300 family

2025-01-26 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114085 --- Comment #4 from Jeffrey A. Law --- So not really working on this, but figured I could take a quick looksie to see if it was something simple/easy to fix. The problem is we have this instruction heading into allocation: (insn 31 30 33 7 (set

[Bug target/114085] Internal (cross) compiler error when building libstdc++ for the H8/300 family

2025-01-26 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114085 Jeffrey A. Law changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #11 from Brecht Sanders --- Apparently MinGW-w64 dosn't like extern char** environ; To avoid this issue for now I commented out the following in gcc/cp/module.cc: extern char **environ; while (const char *var = environ[vars.leng

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #10 from Brecht Sanders --- Looks like _pgmptr was superseded by _get_pgmptr(). So I tried this quick and dirty fix to get past the issue: patch -ulbf libbacktrace/fileline.c << EOF @@ -262,3 +262,7 @@ to the wine binar

[Bug target/118646] [15 Regression] RISC-V: Needed FSRM getting eliminated - SPEC2017 527.cam4 failures

2025-01-26 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118646 Bug 118646 depends on bug 118103, which changed state. Bug 118103 Summary: [15 Regression] GCC miscompile rvv intrinsics at `-O3`, missing the `fsrm` instruction to the recover status of frm CSR https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11810

[Bug target/118103] [15 Regression] GCC miscompile rvv intrinsics at `-O3`, missing the `fsrm` instruction to the recover status of frm CSR

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

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math since r14-9316-g7890836de20912

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 Sam James changed: What|Removed |Added CC||rguenth at gcc dot gnu.org See Al

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #9 from Brecht Sanders --- Same thing happens with --enable-languages=c,c++,fortran,d What is causing the error: "undefined reference to `__imp___p__pgmptr'" ?

[Bug target/116330] -fcompare-debug -gno-statement-frontiers failure with -O3 -march=znver3 -mshstk when building qtbase-6.7.2

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116330 Sam James changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/118653] [14/15 Regression] ice in vectorizable_live_operation, at tree-vect-loop.cc:11573 since r14-5106-g95cfa2cdd1b525

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118653 Sam James changed: What|Removed |Added Keywords|needs-bisection | Summary|[14/15 Regression] ice

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #8 from Brecht Sanders --- Yes, that was with --languages=d only.

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #7 from Sam James --- Huh, is that really only with D enabled? I would expect it to happen otherwise.

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-26 Thread brechtsanders at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #6 from Brecht Sanders --- Sorry it took me a while to get the hang of building a canadian cross from Linux. When building gdc for Windows 64-bit I get the following: make[2]: Entering directory '/home/brecht/build-gcc/build_stage

[Bug tree-optimization/118657] Missed optimization (unreachable branch could be pruned after taking into account the possible values of a constexpr lookup table)

2025-01-26 Thread nicula.iccc at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118657 --- Comment #4 from Ionuț Nicula --- Note that my actual usecase with this kind of transformation is slightly more complex. Instead of having the lookup table filled with zeros (or any single value), it's filled with arbitrary values that satisf

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 Sam James changed: What|Removed |Added CC||bergner at gcc dot gnu.org,

[Bug target/118663] [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 Sam James changed: What|Removed |Added CC||vmakarov at gcc dot gnu.org See A

[Bug target/118663] New: [15 Regression] ICE: in rs6000_emit_move, at config/rs6000/rs6000.cc:11091 during libgcc build

2025-01-26 Thread zsojka at seznam dot cz via Gcc-bugs
ecking-yes-rtl-df-extra-powerpc Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.1 20250126 (experimental) (GCC) And for the reduced testcase: $ /repo/build-gcc-trunk-powerpc/gcc/cc1 _sd_to_si.i -O2 _sd_to_si.i:3:1: warning: no semicolon at end o

[Bug target/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 Sam James changed: What|Removed |Added Component|tree-optimization |target --- Comment #3 from Sam James --- (

[Bug tree-optimization/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 --- Comment #2 from Sam James --- ``` int addup(char *num) { int val = num[0] + num[1] + num[2] + num[3]; if (num[3] >= 0) val++; return val; } int main(int, char *[]) { char num[4] = {1, 1, 1, -1}; if (addup(num) != 2) __buil

[Bug tree-optimization/118662] [14/15 regression] -ftree-slp-vectorize causes incorrect math

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 Sam James changed: What|Removed |Added Component|target |tree-optimization Summary|-ftree

[Bug c/118662] New: -ftree-slp-vectorize causes incorrect math

2025-01-26 Thread joakim.rosqvist at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 Bug ID: 118662 Summary: -ftree-slp-vectorize causes incorrect math Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/118661] [12/13/14/15 regression] Reading volatile qualified std::nullptr_t should be valid in a constant expression

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118661 --- Comment #2 from Andrew Pinski --- Related https://cplusplus.github.io/CWG/issues/2140.html

[Bug target/95646] [GCC 9/10] arm-none-eabi function attribute 'cmse_nonsecure_entry' wipes register values with -Os

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95646 Sam James changed: What|Removed |Added Target Milestone|--- |10.4

[Bug target/95646] [GCC 9/10] arm-none-eabi function attribute 'cmse_nonsecure_entry' wipes register values with -Os

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95646 Sam James changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/118661] [12/13/14/15 regression] Reading volatile qualified std::nullptr_t should be valid in a constant expression

2025-01-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118661 Sam James changed: What|Removed |Added Summary|Reading volatile qualified |[12/13/14/15 regression]

[Bug c++/118661] New: Reading volatile qualified std::nullptr_t should be valid in a constant expression

2025-01-26 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118661 Bug ID: 118661 Summary: Reading volatile qualified std::nullptr_t should be valid in a constant expression Product: gcc Version: 15.0 Status: UNCONFIRMED Sever

[Bug tree-optimization/118658] `(a | CST)` -> a if we know that a already contains all bits of CST set

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118658 --- Comment #2 from Andrew Pinski --- Note like PR 118660 implementing this optimization gets in the way. That is take: ``` unsigned short f(unsigned a) { if ((a & 3) != 3) return a | 1; return a | 1; } ``` Afterwards we get: ``` [local

[Bug tree-optimization/118660] [14/15 Regression] VRP gets in the way sometimes

2025-01-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118660 --- Comment #2 from Andrew Pinski --- This one is slightly harder to handle: ``` unsigned short f(unsigned a) { if ((a & 3) != 3) return a & 1; return a & 1; } ``` We get: ``` [local count: 1073741824]: _1 = a_4(D) & 3; if (_1 != 3)

[Bug tree-optimization/118653] [14/15 Regression] ice in vectorizable_live_operation, at tree-vect-loop.cc:11573

2025-01-26 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118653 --- Comment #13 from David Binderman --- Also before 2024-04-01: foundBugs $ ../results.d8cf8917ed3d7e07/bin/gcc -c -w -g -O3 bug1083.c during GIMPLE pass: vect runData/keep/in.39468.c: In function ‘main’: runData/keep/in.39468.c:1246:5: intern