[Bug other/116253] RFE: support for nested diagnostics

2024-12-08 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116253 --- Comment #11 from David Malcolm --- An example of the nested diagnostics on Compiler Explorer: Trunk with -std=c++20 -fconcepts-diagnostics-depth=2 Text output (via -fdiagnostics-set-output=text:experimental-nesting=yes), showing indentatio

[Bug ada/117956] New: Assert failure in precondition, sinfo-nodes.ads

2024-12-08 Thread simon at pushface dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117956 Bug ID: 117956 Summary: Assert failure in precondition, sinfo-nodes.ads Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/117955] [15 Regression] GCC generate illegal riscv instruction `vsetvli zero,zero,e64,mf4,ta,ma` with -O2 and -O3

2024-12-08 Thread rvismith1115 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117955 --- Comment #3 from rvismith --- (In reply to Andrew Pinski from comment #1) > What version of qemu are you usirng? Thanks for your reply. I use qemu v9.1.0: ``` $ /home/emulator/qemu-9.1.0/build/qemu-riscv64 --version qemu-riscv64 version 9.1.

[Bug target/117953] [15 Regression] GCC miscompile rvv intrinsics at `-O2` and `-O3`, missing `csrwi` to modify `vxrm`

2024-12-08 Thread rvismith1115 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117953 --- Comment #1 from rvismith --- Here are results of array b I get (by gcc 15 + qemu 9.1.0): at -O0 (correct) >>> 0 2 5 7 10 12 15 17 20 22 at -O3 (rounding error) >>> 0 3 5 8 10 13 15 18 20 23

[Bug target/117955] [15 Regression] GCC generate illegal riscv instruction `vsetvli zero,zero,e64,mf4,ta,ma` with -O2 and -O3

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117955 --- Comment #2 from Andrew Pinski --- >From my reading of the V 1.0 spec, `vsetvli zero,zero,e64,mf4,ta,ma` should be valid still.

[Bug target/117955] [15 Regression] GCC generate illegal riscv instruction `vsetvli zero,zero,e64,mf4,ta,ma` with -O2 and -O3

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117955 --- Comment #1 from Andrew Pinski --- What version of qemu are you usirng?

[Bug tree-optimization/117935] [14/15 Regression] [[likely]] attribute is lost by phiopt1 in some cases since r14-203-ga2339e0fe9dbef

2024-12-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117935 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/117950] vector extraction view convert not detected

2024-12-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117950 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/117953] [15 Regression] GCC miscompile rvv intrinsics at `-O2` and `-O3`, missing `csrwi` to modify `vxrm`

2024-12-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117953 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0 Keywords|

[Bug tree-optimization/117954] [15 Regression] gcc.dg/tree-ssa/pr111456-1.c FAILs for non-LOGICAL_OP_NON_SHORT_CIRCUIT after r15-5646-gd1cf0d7a0f27fd

2024-12-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117954 --- Comment #3 from Richard Biener --- I can look to adjust the testcase (adding #pragma GCC unroll or --param logical-op-short-circuit=1) if nobody beats me to it.

[Bug target/117947] [14/15 Regression] GCC miscompile rvv intrinsics at `-O2` and `-O3`, use `vlenb` after an inappropriate `vsetvli`

2024-12-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117947 Richard Biener changed: What|Removed |Added Target||riscv Keywords|

[Bug target/117955] [15 Regression] GCC generate illegal riscv instruction `vsetvli zero,zero,e64,mf4,ta,ma` with -O2 and -O3

2024-12-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117955 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0 Keywords|

[Bug target/117957] vectorization pesimises std::vector push/pop test

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117957 --- Comment #4 from Andrew Pinski --- I suspect the issue is very similar (or the same) as PR 115777 .

[Bug target/117957] vectorization pesimises std::vector push/pop test

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
/opt/compiler-explorer/gcc-trunk-20241208/include/c++/15.0.0/bits/new_allocator.h:191:4: note: Cost model analysis for part in loop 1: Vector cost: 22 Scalar cost: 24 aarch64: 0 1 times scalar_store costs 1 in body _3 1 times scalar_store costs 1 in body 0 1 times unaligned_store (misalign -1

[Bug tree-optimization/117935] [14/15 Regression] [[likely]] attribute is lost by phiopt1 in some cases since r14-203-ga2339e0fe9dbef

2024-12-08 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117935 --- Comment #6 from Jason Merrill --- (In reply to Jan Hubicka from comment #5) > Note that propagation of branch probabilities from callee to caller > works only by kind of accident. I originally made branch prediction to > be done after early

[Bug target/117957] vectorization pesimises std::vector push/pop test

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117957 --- Comment #2 from Andrew Pinski --- _32 = {0, _3}; MEM [(unsigned int *)_101 + -8B] = _32;

[Bug libstdc++/87502] Poor code generation for std::string("c-style string")

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

[Bug tree-optimization/93558] missing mempcpy folding defeats strlen optimization

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93558 Andrew Pinski changed: What|Removed |Added Depends on||91019 --- Comment #1 from Andrew Pinski

[Bug c++/103827] function which takes an argument via (hidden) reference should assume the argument does not escape or is only read from

2024-12-08 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103827 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,

[Bug tree-optimization/117958] New: g++.dg/tree-ssa/pr117123.C fails on aarch64-linux-gnu

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117958 Bug ID: 117958 Summary: g++.dg/tree-ssa/pr117123.C fails on aarch64-linux-gnu Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization, testsuite-fail

[Bug libstdc++/87502] Poor code generation for std::string("c-style string")

2024-12-08 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87502 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org Ever confir

[Bug libstdc++/87502] Poor code generation for std::string("c-style string")

2024-12-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87502 --- Comment #10 from Jakub Jelinek --- __builtin_memcpy (&D.35539.D.25336._M_local_buf, "abc", 3); MEM[(char_type &)&D.35539 + 11] = 0; change to __builtin_memcpy (&D.35539.D.25336._M_local_buf, "abc", 4); seems like something that the strl

[Bug target/117926] [14 Regression] emits 3dnow (MMX) instruction from autovectorized GIMPLE without emms at -O2 since r14-2786-gade30fad6669e5

2024-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117926 --- Comment #11 from GCC Commits --- The releases/gcc-14 branch has been updated by Uros Bizjak : https://gcc.gnu.org/g:c08ae0cf33e7e8339456a4a9ba0c494600eadcf3 commit r14-11073-gc08ae0cf33e7e8339456a4a9ba0c494600eadcf3 Author: Uros Bizjak Da

[Bug target/117957] [15 regression] vectorization pesimises std::vector push/pop test

2024-12-08 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117957 Sam James changed: What|Removed |Added Target Milestone|--- |15.0 Version|unknown

[Bug tree-optimization/117954] [15 Regression] gcc.dg/tree-ssa/pr111456-1.c FAILs for non-LOGICAL_OP_NON_SHORT_CIRCUIT after r15-5646-gd1cf0d7a0f27fd

2024-12-08 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117954 Hans-Peter Nilsson changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug tree-optimization/117935] [14/15 Regression] [[likely]] attribute is lost by phiopt1 in some cases since r14-203-ga2339e0fe9dbef

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117935 --- Comment #7 from Andrew Pinski --- Looking into optimization passes that might ignore predictors, only phiopt will ignore them and maybe remove them. And that is what is happening here. Other passes will keep them around. Jump threading, etc.

[Bug target/117957] [15 regression] vectorization pesimises std::vector push/pop test

2024-12-08 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117957 --- Comment #5 from Jan Hubicka --- > I suspect the issue is very similar (or the same) as PR 115777 . Yep, I think it store-to-load forwarding. The stack is organized in pairs that are likely written independetly and loaded together. Sadly I t

[Bug ipa/106568] -freorder-blocks-algorithm appears to causes a crash in stable code, no way to disable it

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106568 --- Comment #27 from Andrew Pinski --- [local count: 1073741824]: [t.cc:102620:32 discrim 2] __builtin___ubsan_handle_builtin_unreachable ([t.cc:102620:32 discrim 2] &*.Lubsan_data109); PK_FinalTemplate(const AsymmetricAlgorithm &algori

[Bug libstdc++/87502] Poor code generation for std::string("c-style string")

2024-12-08 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87502 --- Comment #12 from Jan Hubicka --- > (In reply to Jakub Jelinek from comment #10) > > __builtin_memcpy (&D.35539.D.25336._M_local_buf, "abc", 3); > > MEM[(char_type &)&D.35539 + 11] = 0; > > change to > > __builtin_memcpy (&D.35539.D.2533

[Bug ipa/106568] -freorder-blocks-algorithm appears to causes a crash in stable code, no way to disable it

2024-12-08 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106568 Sam James changed: What|Removed |Added Keywords||needs-reduction --- Comment #26 from Sam Ja

[Bug libstdc++/87502] Poor code generation for std::string("c-style string")

2024-12-08 Thread terra at gnome dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87502 --- Comment #13 from M Welinder --- > The reason why full destructor is inlined is that we do not know what > foo is doing and it may make the string bigger. "const" does not promise > that the callee does not modify the object. :-( > So I th

[Bug c++/70769] function definition wrongfully allowed inside comma separated member declaration list

2024-12-08 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70769 Halalaluyafail3 changed: What|Removed |Added CC||luigighiron at gmail dot com --- Comme

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 Hongtao Liu changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |liuhongt at gcc dot gnu.org

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 --- Comment #6 from Hongtao Liu --- (In reply to Hongtao Liu from comment #5) > (In reply to Hongtao Liu from comment #4) > > The insn is generated by avoid_store_fowarding, and it is valid but failed > > reload > > Reload want to find a insn t

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 --- Comment #4 from Hongtao Liu --- The insn is generated by avoid_store_fowarding, and it is valid but failed reload 170Store forwarding detected: 171From: (insn 24 23 25 2 (set (mem/c:SI (pl

[Bug fortran/116261] [15 regression] gfortran.dg/sizeof_6.f90 -O1 timeout since r15-2739-g4cb07a38233

2024-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116261 --- Comment #15 from GCC Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:ad94070689b3fadafca14c188c650aad6b8600e7 commit r15-6021-gad94070689b3fadafca14c188c650aad6b8600e7 Author: Paul Thomas Date: Mon

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 --- Comment #5 from Hongtao Liu --- (In reply to Hongtao Liu from comment #4) > The insn is generated by avoid_store_fowarding, and it is valid but failed > reload Reload want to find a insn to move data from GPR to SSE_REGS but *movti_internal

[Bug sanitizer/117959] New: Address Sanitizer misses 'global-buffer-overflow' for a[-1]

2024-12-08 Thread 652023330028 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117959 Bug ID: 117959 Summary: Address Sanitizer misses 'global-buffer-overflow' for a[-1] Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal P

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 Hongtao Liu changed: What|Removed |Added Assignee|liuhongt at gcc dot gnu.org|unassigned at gcc dot gnu.org

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 --- Comment #7 from Hongtao Liu --- 5024 Choosing alt 6 in insn 295: (0) ?jc (1) Yd {*movti_internal} (sp_off=-128) 5025 Change to class INDEX_GPR16 for r273

[Bug target/117946] ICE: maximum number of generated reload insns per insn achieved (90) with -O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128

2024-12-08 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117946 --- Comment #8 from Hongtao Liu --- > Why class is changed to INDEX_GPR16 for r273 Note with -mapxf, ICE disappears

[Bug fortran/117901] [ 15 regression] class_transformational_1.f90 with -O3 and -fcheck=bounds gives ICE in make_ssa_name_fn

2024-12-08 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117901 --- Comment #6 from GCC Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:ad94070689b3fadafca14c188c650aad6b8600e7 commit r15-6021-gad94070689b3fadafca14c188c650aad6b8600e7 Author: Paul Thomas Date: Mon D

[Bug rtl-optimization/117248] gcc/libgcc/libgcc2.h:232:25: internal compiler error: Arithmetic exception

2024-12-08 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117248 --- Comment #17 from John David Anglin --- The original problem on hppa64-hp-hpux11.11 is fixed. The related problem on linux reported in comments 5 and 6 is also fixed. Only the testsuite fail reported in comment 16 remains.

[Bug rtl-optimization/117951] FAIL: 20_util/variant/run.cc -std=gnu++17 (test for excess errors)

2024-12-08 Thread danglin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117951 --- Comment #2 from John David Anglin --- Similar fails: FAIL: std/ranges/cartesian_product/1.cc -std=gnu++23 (test for excess errors) FAIL: std/ranges/cartesian_product/1.cc -std=gnu++26 (test for excess errors)

[Bug tree-optimization/117935] [14/15 Regression] [[likely]] attribute is lost by phiopt1 in some cases since r14-203-ga2339e0fe9dbef

2024-12-08 Thread hubicka at ucw dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117935 --- Comment #5 from Jan Hubicka --- Note that propagation of branch probabilities from callee to caller works only by kind of accident. I originally made branch prediction to be done after early inlining since it makes some patterns branch pred

[Bug tree-optimization/117957] New: vectorization pesimises std::vector push/pop test

2024-12-08 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117957 Bug ID: 117957 Summary: vectorization pesimises std::vector push/pop test Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug ada/117956] Assert failure in precondition, sinfo-nodes.ads

2024-12-08 Thread simon at pushface dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117956 --- Comment #1 from simon at pushface dot org --- It’s the -gnatX.

[Bug target/117957] vectorization pesimises std::vector push/pop test

2024-12-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117957 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |target Keywords|