[Bug other/118679] New: Missed optimization: inline functions, when operations can be done with smaller bit width

2025-01-27 Thread Explorer09 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118679 Bug ID: 118679 Summary: Missed optimization: inline functions, when operations can be done with smaller bit width Product: gcc Version: 14.2.0 Status: UNCONFIRMED

[Bug tree-optimization/118680] (smaller_type)MAX_EXPR<(larger_type)a, (larger_type)b> -> MAX_EXPR where smaller_type is the same as a/b types and smaller/larger type have the same sign

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

[Bug tree-optimization/118679] Missed optimization: inline functions, when operations can be done with smaller bit width

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118679 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Ever confirmed|0

[Bug other/118679] Missed optimization: inline functions, when operations can be done with smaller bit width

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118679 --- Comment #1 from Andrew Pinski --- On the trunk test1c and test2c are the only ones left and they are different issues.

[Bug other/118679] Missed optimization: inline functions, when operations can be done with smaller bit width

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

[Bug tree-optimization/118680] New: (smaller_type)MAX_EXPR<(larger_type)a, (larger_type)b> -> MAX_EXPR where smaller_type is the same as a/b types and smaller/larger type have the same sign

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118680 Bug ID: 118680 Summary: (smaller_type)MAX_EXPR<(larger_type)a, (larger_type)b> -> MAX_EXPR where smaller_type is the same as a/b types and smaller/larger type have the same sign

[Bug target/102758] [12/13/14/15 Regression] Failure to use registers optimally with return values (2 operands related and subreg)

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102758 --- Comment #9 from Andrew Pinski --- Note -frename-registers fixes up the register allocation ...

[Bug target/87763] [12/13/14/15 Regression] aarch64 target testcases fail after r265398 (gcc.target/aarch64/insv_1.c left/xfailed)

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87763 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Component|rtl-optimiza

[Bug target/114991] [14/15 Regression] AArch64: LDP pass does not handle some structure copies

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114991 --- Comment #5 from Andrew Pinski --- Note the testcase in comment #0 needs -fschedule-insns now to fail.

[Bug rtl-optimization/114575] [15 Regression] SVE addressing modes broken since g:839bc42772ba7af66af3bd16efed4a69511312ae

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

[Bug tree-optimization/102381] unexpected -Wmaybe-uninitialized with noreturn inside loop and conditional setting of variable

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102381 Sam James changed: What|Removed |Added Keywords||false-positive --- Comment #4 from Sam Jame

[Bug tree-optimization/102381] unexpected -Wmaybe-uninitialized with noreturn inside loop and conditional setting of variable

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102381 Sam James changed: What|Removed |Added Last reconfirmed|2021-09-17 00:00:00 |2025-1-28 Known to fail|

[Bug tree-optimization/108367] [12/13/14/15 Regression] ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 3) since r12-5138-ge82c382971664d6f

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108367 --- Comment #6 from Andrew Pinski --- I can't reproduce this starting in GCC 14.1.0. From the looks of it, it was a patch to loop ch which "fixes" the ICE but that would mean this has gone latent; just like how the patch which exposed this cause

[Bug tree-optimization/108367] [12/13/14/15 Regression] ICE: verify_ssa failed (error: definition in block 4 does not dominate use in block 3) since r12-5138-ge82c382971664d6f

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108367 --- Comment #5 from Andrew Pinski --- Created attachment 60306 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60306&action=edit testcase for easier access

[Bug tree-optimization/88575] gcc got confused by different comparison operators

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

[Bug tree-optimization/106992] [12/13/14/15 Regression] aarch64: Unexpected maybe-uninitialized warning when compiling fdlibm

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106992 --- Comment #4 from Sam James --- Created attachment 60305 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60305&action=edit test.c Just attaching the preprocessed godbolt testcase.

[Bug tree-optimization/85316] [meta-bug] VRP range propagation missed cases

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85316 Bug 85316 depends on bug 114559, which changed state. Bug 114559 Summary: [12/13/14/15 Regression] After function inlining some optimizations missing https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114559 What|Removed

[Bug tree-optimization/114559] [12/13/14/15 Regression] After function inlining some optimizations missing

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114559 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|12.5

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

2025-01-27 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|NEW |RESOLVED Resolution|---

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

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114085 --- Comment #5 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:235215323c67d8ce021a00df0f42e2c1713c7959 commit r15-7242-g235215323c67d8ce021a00df0f42e2c1713c7959 Author: Jeff Law Date: Mon Jan 27

[Bug target/118678] Dubious optimization when compiling with -fpie -Os

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118678 --- Comment #5 from Andrew Pinski --- Also code size != relocation size.

[Bug target/118678] Dubious optimization when compiling with -fpie -Os

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118678 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > `rep movsl` is smaller than `rep movsq`. because movsq requires an extra prefix. So this is definitely smaller.

[Bug target/118678] Dubious optimization when compiling with -fpie -Os

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

[Bug target/118678] Dubious optimization when compiling with -fpie -Os

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118678 --- Comment #2 from Andrew Pinski --- Selected stringop expansion strategy: rep_4byte ;; args = *.LC10;

[Bug target/118678] Dubious optimization when compiling with -fpie -Os

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118678 Andrew Pinski changed: What|Removed |Added Component|middle-end |target --- Comment #1 from Andrew Pinsk

[Bug c/118678] New: Dubious optimization when compiling with -fpie -Os

2025-01-27 Thread joshudson at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118678 Bug ID: 118678 Summary: Dubious optimization when compiling with -fpie -Os Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

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

2025-01-27 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118103 --- Comment #15 from Vineet Gupta --- (In reply to Li Pan from comment #12) > > Hi Vineet, > > Could you please help to double check if below can help to resolve the cam4 > issue? Thanks and feel free to let me know if any help is required. >

[Bug tree-optimization/107699] [12/13/14/15 Regression] False positive -Warray-bounds, non-existent offset reported by GCC

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107699 --- Comment #15 from Andrew Pinski --- Another missed optimization: long unsigned int _8; ... _1 = _8 * 4; if (_1 != 0) goto ; [70.00%] else goto ; [30.00%] [local count: 751619365]: _2 = &data._M_elems + _1; _304 = (long

[Bug tree-optimization/109213] [13/14/15 Regression] -Os generates significantly more code since r13-723

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

[Bug tree-optimization/113434] [13/14 Regression] VRP misses conditional in loop is always false sometimes

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113434 Andrew Pinski changed: What|Removed |Added Known to work||15.0 Keywords|

[Bug c++/118677] Operator auto() requires () selects wrong overload

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

[Bug modula2/118010] -Wlto-type-mismatch warning/error during m2 bootstrap on arm (gm2-libs-boot/Glibc.h:206:16: warning: type of ‘libc_lseek’ does not match original declaration [-Wlto-type-mismatch]

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

[Bug target/118676] Getting "the ABI of passing union with ‘long double’ has changed in GCC 4.4" warning for a function that doesn't take long double and isn't subject to ABI at all (static)

2025-01-27 Thread nabijaczleweli at nabijaczleweli dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118676 --- Comment #4 from наб --- Thanks, I'll put that in there. https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html doesn't seem to indicate this change affects return values, either (it only says "passed"). I think static-linkage functions co

[Bug target/118676] Getting "the ABI of passing union with ‘long double’ has changed in GCC 4.4" warning for a function that doesn't take long double and isn't subject to ABI at all (static)

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118676 --- Comment #3 from Andrew Pinski --- You can turn off the note by -Wno-psabi .

[Bug target/118676] Getting "the ABI of passing union with ‘long double’ has changed in GCC 4.4" warning for a function that doesn't take long double and isn't subject to ABI at all (static)

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118676 --- Comment #2 from Andrew Pinski --- Note variant is an union underneath.

[Bug target/118676] Getting "the ABI of passing union with ‘long double’ has changed in GCC 4.4" warning for a function that doesn't take long double and isn't subject to ABI at all (static)

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118676 --- Comment #1 from Andrew Pinski --- Reduced: ``` union f { int a; long double b; }; f parse_from() { return {}; } ``` the warning should mention return here rather than argument ...

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

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

[Bug c++/118632] [15 Regression] 0 vs nullptr mixup as default argument of dependently typed NTTP since r15-2761

2025-01-27 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118632 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/118632] [15 Regression] 0 vs nullptr mixup as default argument of dependently typed NTTP since r15-2761

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118632 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:c7f16806f3cc8011a3e1bbbf59389df65087f330 commit r15-7240-gc7f16806f3cc8011a3e1bbbf59389df65087f330 Author: Jason Merrill Date: Mo

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

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

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

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

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 Andrew Pinski changed: What|Removed |Added Attachment #60303|0 |1 is obsolete|

[Bug target/111263] test case gfortran.dg/ieee/comparisons_3.F90 fails

2025-01-27 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111263 --- Comment #6 from Michael Meissner --- On the PowerPC side, it may be related to PR target/118541 where the IEEE comparison operators (isgreater, etc.) can generate conditional moves that involve instructions which will raise an error if one o

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 Andrew Pinski changed: What|Removed |Added Attachment #60302|0 |1 is obsolete|

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 Andrew Pinski changed: What|Removed |Added Attachment #60301|0 |1 is obsolete|

[Bug target/118541] Incorrect transformation to xscmpgtdp for Unordered Operations

2025-01-27 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118541 Michael Meissner changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |meissner at gcc dot gnu.org

[Bug c++/118677] New: Operator auto() requires () selects wrong overload

2025-01-27 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118677 Bug ID: 118677 Summary: Operator auto() requires () selects wrong overload Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #10 from Andrew Pinski --- Note making ArrayRef constructor constexpr works around the issue ...

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 Andrew Pinski changed: What|Removed |Added Attachment #60300|0 |1 is obsolete|

[Bug c++/118676] New: Getting "the ABI of passing union with ‘long double’ has changed in GCC 4.4" warning for a function that doesn't take long double and isn't subject to ABI at all (static)

2025-01-27 Thread nabijaczleweli at nabijaczleweli dot xyz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118676 Bug ID: 118676 Summary: Getting "the ABI of passing union with ‘long double’ has changed in GCC 4.4" warning for a function that doesn't take long double and isn't subject to ABI at

[Bug other/118675] New: Missing escaping of "{" and "}" within messages in SARIF output

2025-01-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118675 Bug ID: 118675 Summary: Missing escaping of "{" and "}" within messages in SARIF output Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 Andrew Pinski changed: What|Removed |Added Attachment #60299|0 |1 is obsolete|

[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-27 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 --- Comment #12 from Vladimir Makarov --- (In reply to Peter Bergner from comment #11) > > With the test case, rld_mode is SDmode and our > secondary_memory_needed_mode(SDmode) returns DDmode for reasons described > above. However, newly added

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #7 from Andrew Pinski --- Created attachment 60299 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60299&action=edit Semi reduced

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

2025-01-27 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118646 Vineet Gupta changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

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

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118646 --- Comment #5 from GCC Commits --- The master branch has been updated by Vineet Gupta : https://gcc.gnu.org/g:019fe9c4d4c7cc9e325b5460d277ebaec108a838 commit r15-7239-g019fe9c4d4c7cc9e325b5460d277ebaec108a838 Author: Vineet Gupta Date: Fri

[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-27 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 --- Comment #11 from Peter Bergner --- (In reply to Peter Bergner from comment #10) > Similarly for -O2 -m64 -mcpu={power6,power5,power4,...}, LRA goes into a > infinite loop. Adding a little info for Vlad. The insn LRA is transforming is: (in

[Bug fortran/118499] Exponentiation of UNSIGNED is rejected

2025-01-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118499 --- Comment #26 from Thomas Koenig --- There is a bit more that can be done when the exponent is known at compile time. For example, unsigned(kind=4) :: x y = x**13u could be translated as if (x & 7 == 0) /* Check for divisibili

[Bug c/118674] [12/13/14/15 Regression] ICE: Segmentation fault

2025-01-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118674 Marek Polacek changed: What|Removed |Added Target Milestone|--- |12.5 Summary|ICE: Segmentati

[Bug c/118674] ICE: Segmentation fault

2025-01-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118674 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #6 from Andrew Pinski --- the main issue can be shown by (still need includes for SmallVector/ArrayRef): ``` enum class Extension : unsigned { SPV_KHR_integer_dot_product = 17 }; [[gnu::noinline]] llvm::SmallVector, 1> getIntegerDo

[Bug rtl-optimization/116073] [15 regression] invalid rtl sharing compiling compiling FileSystem.mod caused by ext-dce

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

[Bug c/118674] New: ICE: Segmentation fault

2025-01-27 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118674 Bug ID: 118674 Summary: ICE: Segmentation fault Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: un

[Bug fortran/108454] ICE in gfc_trans_common, at fortran/trans-common.cc:1385

2025-01-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108454 --- Comment #2 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #1) > The code crashing gfortran may actually be valid. I set a breakpoint in parse.cc:7386 Breakpoint 1, gfc_parse_file () at ../../gcc-trunk/gcc/fortran/parse.c

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #5 from Andrew Pinski --- mlir::spirv::getIntegerDotProductExtensions: -TARGET_EXPR >> - (const Extension &) &extension }>, ._M_len=1}> >>; +TARGET_EXPR >>; +const struct ArrayRef * D.1250733; +<<< Un

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #3 from Sam James --- Created attachment 60294 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60294&action=edit 005t.original-diff.xz (+ is bad)

[Bug c++/118671] [15 regression] ICE in output_constructor_regular_field at, varasm.cc since r15-7089

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

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #4 from Sam James --- Created attachment 60295 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60295&action=edit 006t.gimple-diff.xz (+ is bad)

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #2 from Sam James --- The difference is visible with `g++ IntegerDotProductOps.cpp.ii -Os -fno-exceptions -fno-rtti -c`.

[Bug c++/118673] [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 --- Comment #1 from Sam James --- If I drop the prints I added to getIntegerDotProductCapabilities, the difference goes back to: ``` │ Disassembly of section .text._ZN4mlir5spirv6SDotOp15getCapabilitiesEv: │ │ : │ mlir::spirv

[Bug c++/118673] New: [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673 Bug ID: 118673 Summary: [14/15 regression] LLVM's libMLIR miscompiled since r14-1705-g2764335bd336f2 Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: w

[Bug fortran/103284] ICE in get_unique_type_string, at fortran/class.c:502

2025-01-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103284 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 - caused by r15-7008-g9f009e8865cda0

2025-01-27 Thread bergner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118663 --- Comment #10 from Peter Bergner --- (In reply to Peter Bergner from comment #9) > extern void bar (void); > void > foo (_Decimal32 *dst, _Decimal32 src) > { > bar (); > *dst = src; > } I'll note if I configure my gcc as a --target=powerp

[Bug fortran/103284] ICE in get_unique_type_string, at fortran/class.c:502

2025-01-27 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103284 anlauf at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2025-01-27 Ever confirme

[Bug rtl-optimization/118638] [14/15 Regression] Miscompile with -Os and -O0/1/2/3 since r14-4810

2025-01-27 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118638 Richard Sandiford changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Com

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

2025-01-27 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 Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/117504] [12/13/14/15 Regression] Incorrect code emitted when using "constexpr std::array" since r8-3497-g281e6c1d8f1b4c

2025-01-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117504 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org P

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

2025-01-27 Thread simartin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114292 Simon Martin changed: What|Removed |Added Known to work||15.0 --- Comment #11 from Simon Martin

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

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114292 --- Comment #10 from GCC Commits --- The master branch has been updated by Simon Martin : https://gcc.gnu.org/g:ceabea405ffdc851736e240111be9b297ad86c53 commit r15-7238-gceabea405ffdc851736e240111be9b297ad86c53 Author: Simon Martin Date: We

[Bug c++/118672] ICE on template lambda expression return a lambda type

2025-01-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118672 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug target/117173] can_vec_perm_const_p does not consider costs

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117173 --- Comment #8 from GCC Commits --- The master branch has been updated by Robin Dapp : https://gcc.gnu.org/g:006b4e45f3ab169a47146b31d9721c79098236ac commit r15-7235-g006b4e45f3ab169a47146b31d9721c79098236ac Author: Robin Dapp Date: Thu Oct

[Bug c++/118672] ICE on template lambda expression

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

[Bug c++/118672] New: ICE on invalid template lambda expression

2025-01-27 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118672 Bug ID: 118672 Summary: ICE on invalid template lambda expression Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/116524] FAIL: g++.dg/modules/permissive-error-1.C -std=c++17 (internal compiler error: Segmentation fault)

2025-01-27 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116524 John David Anglin changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRME

[Bug c++/107522] ICE in parameter_mapping_equivalent_p on trunk

2025-01-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107522 Patrick Palka changed: What|Removed |Added Target Milestone|--- |14.3 Resolution|---

[Bug libstdc++/100249] missing forwarding std::__invoke result in ranges::is_permutation and ranges::clamp

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100249 --- Comment #16 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:d121d1e1dd874731a648086772e6c40e34fa5de9 commit r14-11251-gd121d1e1dd874731a648086772e6c40e34fa5de9 Author: Giuseppe D'An

[Bug libstdc++/118185] ranges::clamp doesn't perfectly forward its projected arguments

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118185 --- Comment #2 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:d121d1e1dd874731a648086772e6c40e34fa5de9 commit r14-11251-gd121d1e1dd874731a648086772e6c40e34fa5de9 Author: Giuseppe D'Ang

[Bug c++/107522] ICE in parameter_mapping_equivalent_p on trunk

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107522 --- Comment #4 from GCC Commits --- The releases/gcc-14 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:0af8fc22338ef0dd09c9b469aafb19262aa8eeb9 commit r14-11250-g0af8fc22338ef0dd09c9b469aafb19262aa8eeb9 Author: Patrick Palka

[Bug c++/84796] ICE in a template parameter pack expansion

2025-01-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84796 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org See

[Bug rtl-optimization/118638] [14/15 Regression] Miscompile with -Os and -O0/1/2/3 since r14-4810

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

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

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110993 --- Comment #5 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:9104472b645f76a212af9f9c58378500f9ba937e commit r15-7234-g9104472b645f76a212af9f9c58378500f9ba937e Author: Harald Anlauf Date: S

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

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

[Bug rtl-optimization/118638] [14/15 Regression] Miscompile with -Os and -O0/1/2/3 since r14-4810

2025-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118638 --- Comment #15 from Jakub Jelinek --- So the bug is in else if (GET_CODE (inner) == MULT && CONST_INT_P (XEXP (inner, 1)) && pos_rtx == 0 && pos == 0) { /* We're extracting the least significant bits of an rtx

[Bug middle-end/116845] gcc.dg/pr109393.c test fails on ilp32 targets (and maybe others)

2025-01-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116845 --- Comment #10 from Sam James --- (In reply to Konstantinos Eleftheriou from comment #9) > But, this isn't the case for AArch64 using ILP32, which isn't optimized at > all. We've just deprecated that, mind (doesn't negate that it could affect

[Bug c++/94404] [meta-bug] C++ core issues

2025-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 115769, which changed state. Bug 115769 Summary: Implement CWG 2867 - Order of initialization for structured bindings https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115769 What|Removed |A

[Bug c++/116524] FAIL: g++.dg/modules/permissive-error-1.C -std=c++17 (internal compiler error: Segmentation fault)

2025-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116524 --- Comment #3 from GCC Commits --- The master branch has been updated by John David Anglin : https://gcc.gnu.org/g:9d450dee7112635a541c5a34268d54f63da48f71 commit r15-7233-g9d450dee7112635a541c5a34268d54f63da48f71 Author: John David Anglin D

[Bug rtl-optimization/118638] [14/15 Regression] Miscompile with -Os and -O0/1/2/3 since r14-4810

2025-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118638 --- Comment #14 from Jakub Jelinek --- make_compound_operation_int incorrectly turns (ashiftrt:SI (ashift:SI (mult:SI (reg:SI 107 [ a_5 ]) (const_int 3 [0x3])) (const_int 31 [0x1f])) (const_int 31 [0x1f])) into (mult:SI (

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

2025-01-27 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 --- Comment #17 from rguenther at suse dot de --- > Am 27.01.2025 um 17:38 schrieb ubizjak at gmail dot com > : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118662 > > --- Comment #15 from Uroš Bizjak --- > The testcase now generates (-

[Bug c++/118671] [15 regression] ICE in output_constructor_regular_field at, varasm.cc

2025-01-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118671 Marek Polacek changed: What|Removed |Added Priority|P3 |P1 Last reconfirmed|

[Bug middle-end/116845] gcc.dg/pr109393.c test fails on ilp32 targets (and maybe others)

2025-01-27 Thread konstantinos.eleftheriou at vrull dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116845 --- Comment #9 from Konstantinos Eleftheriou --- This is optimized in x86 using -m32 during "combine", the problem is that the test cases check for the optimization in GIMPLE. But, this isn't the case for AArch64 using ILP32, which isn't optimiz

  1   2   >