[Bug c++/120504] [16 Regression] gcc-16 fails to build llvm-20 and gdb-16.3 unique_ptr.h:91:23: error: invalid application of 'sizeof' to incomplete type ... since r16-944-g0629924777ea20

2025-06-01 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120504 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Priorit

[Bug target/120476] New: LoongArch: -mtune=la664 is pessimizing even on LA664

2025-05-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120476 Bug ID: 120476 Summary: LoongArch: -mtune=la664 is pessimizing even on LA664 Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug sanitizer/120471] -fsanitize=undefined causes read of uninitialized variable when accessing element in an array at -O0 level

2025-05-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120471 Xi Ruoyao changed: What|Removed |Added Keywords||diagnostic, wrong-code --- Comment #7 from

[Bug sanitizer/120471] -fsanitize=undefined causes read of uninitialized variable when accessing element in an array at -O0 level

2025-05-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120471 --- Comment #6 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #5) > (In reply to xiaohuba2021 from comment #4) > > (In reply to Xi Ruoyao from comment #2) > > > I cannot reproduce it locally, nor on godbolt: > > > https://godbolt.org/z/r

[Bug sanitizer/120471] -fsanitize=undefined causes read of uninitialized variable when accessing element in an array at -O0 level

2025-05-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120471 Xi Ruoyao changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Xi Ruoyao --- (In

[Bug sanitizer/120471] -fsanitize=undefined causes read of uninitialized variable when accessing element in an array at -O0 level

2025-05-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120471 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Last reconfirme

[Bug libstdc++/81806] Split in pbds works in O(n) instead of O(log n)

2025-05-21 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81806 Xi Ruoyao changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug tree-optimization/120317] Missed DCE with __attribute__((const)) bijection function

2025-05-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120317 Xi Ruoyao changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug rtl-optimization/120050] [15/16 Regression] ICE bootstrapping on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 --enable-checking=yes,extra

2025-05-12 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 --- Comment #9 from Xi Ruoyao --- https://gcc.gnu.org/pipermail/gcc-patches/2025-May/683277.html

[Bug target/120050] [15/16 Regression] ICE bootstrapping on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 --enable-checking=yes,extra

2025-05-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 --- Comment #6 from Xi Ruoyao --- Before ext-dce: (insn 421 420 422 43 (set (reg:DI 523 [ i ]) (sign_extend:DI (reg:SI 423 [ _144 ]))) 238 {extendsidi2} (expr_list:REG_DEAD (reg:SI 423 [ _144 ]) (nil))) (insn 440 439 441 45

[Bug target/120050] [15/16 Regression] ICE bootstrapping on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 --enable-checking=yes,extra

2025-05-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 --- Comment #5 from Xi Ruoyao --- Before ext-dce: (insn 420 419 421 43 (set (reg:SI 423 [ _144 ]) (truncate:SI (reg:DI 304 [ ivtmp.55 ]))) 203 {truncdisi2} (nil)) (insn 421 420 422 43 (set (reg:DI 523 [ i ]) (sign_extend:DI

[Bug target/120050] [15/16 Regression] ICE bootstrapping on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 --enable-checking=yes,extra

2025-05-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 --- Comment #4 from Xi Ruoyao --- As a hack I disabled ext-dce for MIPS by default: diff --git a/gcc/config/mips/mips.cc b/gcc/config/mips/mips.cc index 24a28dcf817..cf4784c48bb 100644 --- a/gcc/config/mips/mips.cc +++ b/gcc/config/mips/mips.cc

[Bug target/120050] [15/16 Regression] ICE bootstrapping on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 --enable-checking=yes,extra

2025-05-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Xi Ruoyao changed: What|Removed |Added Keywords|needs-bisection |needs-reduction See Also|

[Bug other/120064] New: doc: -f[no-]ext-dce not documented

2025-05-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120064 Bug ID: 120064 Summary: doc: -f[no-]ext-dce not documented Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: other

[Bug target/120050] [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Xi Ruoyao changed: What|Removed |Added Keywords||ice-checking --- Comment #2 from Xi Ruoyao

[Bug target/120050] [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 --- Comment #1 from Xi Ruoyao --- Hmm, the ICE with trunk is from gcc_checking_assert. Thus maybe the difference between 15 and 16 comes from the different --enable-checking setting.

[Bug target/120050] [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Xi Ruoyao changed: What|Removed |Added Target Milestone|--- |15.2 Keywords|

[Bug target/120050] New: [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3

2025-04-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120050 Bug ID: 120050 Summary: [15/16 Regression] Fail to bootstrap on mips64el with --with-arch=gs464 --with-build-config=bootstrap-O3 Product: gcc Version: 16.0 Status: UNCON

[Bug ipa/119973] [15 Regression] Wrong code at -O1 -fipa-pta

2025-04-28 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119973 --- Comment #9 from Xi Ruoyao --- (In reply to Sam James from comment #8) > Why'd you close? Doesn't it affect 15 too? Oops, I misread the 15 backport for another issue in my mail box as the fix for this :(.

[Bug ipa/68331] [meta-bug] fipa-pta issues

2025-04-28 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68331 Bug 68331 depends on bug 119973, which changed state. Bug 119973 Summary: [15 Regression] Wrong code at -O1 -fipa-pta https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119973 What|Removed |Added -

[Bug ipa/119973] [15 Regression] Wrong code at -O1 -fipa-pta

2025-04-28 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119973 Xi Ruoyao changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ipa/119973] [15/16 Regression] Wrong code at -O1 -fipa-pta

2025-04-28 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119973 Xi Ruoyao changed: What|Removed |Added Summary|[15/16 Regression] Wrong|[15/16 Regression] Wrong

[Bug ipa/119973] New: [15/16 Regression] Wrong code at -O1 -fipa-pta -flto

2025-04-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119973 Bug ID: 119973 Summary: [15/16 Regression] Wrong code at -O1 -fipa-pta -flto Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug target/119929] [16 Regression] build fails on mips64el-linux-gnu (and other mips targets) since r16-51-g727a43e0a66052

2025-04-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119929 Xi Ruoyao changed: What|Removed |Added CC||syq at gcc dot gnu.org, |

[Bug target/118885] gcc.target/i386/pr90579.c fails with PIE

2025-04-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118885 Xi Ruoyao changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug target/118885] gcc.target/i386/pr90579.c fails with PIE

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

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-04-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #26 from Xi Ruoyao --- (In reply to Jakub Jelinek from comment #24) > Maybe, but probably we need a whitelist or blacklist. > Because e.g. powerpc64le-linux I guess wants libquadmath because it > historically has been using it and lo

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-04-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #23 from Xi Ruoyao --- (In reply to Jakub Jelinek from comment #22) > I think for libgfortran the cleanest would be in the configure check whether > long double is IEEE quad and if so, have libgfor_cv_have_float128 no. > That can be

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-04-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #19 from Xi Ruoyao --- (In reply to Jakub Jelinek from comment #18) > _Float128 is definitely not for backward compatibility Sorry, I mean __float128. The problem here is we added __float128 as an alias of _Float128 for compatibili

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-04-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #16 from Xi Ruoyao --- (In reply to chenglulu from comment #15) > (In reply to Xi Ruoyao from comment #14) > > (In reply to chenglulu from comment #13) > > > There is a problem now. When gcc supports both _Float128 and Q suffixes, >

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-04-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #17 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #16) /* snip */ > diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4 > index a73207e5465..8913dacb2b1 100644 > --- a/libgfortran/acinclude.m4 > +++ b/libgfort

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-04-01 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #14 from Xi Ruoyao --- (In reply to chenglulu from comment #13) > There is a problem now. When gcc supports both _Float128 and Q suffixes, the > libquadmath library will be automatically linked when the fortran program is > compiled

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-29 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 Xi Ruoyao changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 --- Comment #8 from Xi Ruoyao --- https://gcc.gnu.org/pipermail/gcc-patches/2025-March/679454.html

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 Xi Ruoyao changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 --- Comment #7 from Xi Ruoyao --- Well, I think this is just PR116550. Before LRA: (jump_insn 930 383 1043 73 (parallel [ (set (pc) (if_then_else (ne (reg:DI 592 [424]) (const_int 1 [0x1]))

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 --- Comment #6 from Xi Ruoyao --- Created attachment 60899 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60899&action=edit my reduction My reduction is different: https://godbolt.org/z/GGc987xMY It obviously invokes undefined behavior

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-03-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 --- Comment #9 from Xi Ruoyao --- Ok for a backport into the 14 branch (where __float128 has been added)?

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-25 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 Xi Ruoyao changed: What|Removed |Added Resolution|DUPLICATE |FIXED --- Comment #24 from Xi Ruoyao --- S

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-23 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 Xi Ruoyao changed: What|Removed |Added Known to fail||14.2.0 Known to work|

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-23 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 Xi Ruoyao changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-23 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 --- Comment #4 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #3) > (In reply to Sam James from comment #2) > > Created attachment 60797 [details] > > reduced.i > > Hmm strangely I cannot reproduce the ICE with the reduced test case. .

[Bug target/119340] [14 regression] ICE when building gegl-0.4.52 on ppc64

2025-03-23 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119340 --- Comment #3 from Xi Ruoyao --- (In reply to Sam James from comment #2) > Created attachment 60797 [details] > reduced.i Hmm strangely I cannot reproduce the ICE with the reduced test case.

[Bug libstdc++/119429] size_t __nargs = -1 in std::format

2025-03-23 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119429 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #21 f

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-03-21 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 Xi Ruoyao changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/119408] LoongArch: Q Suffix for __float128 Literals Not Supported

2025-03-21 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119408 Xi Ruoyao changed: What|Removed |Added Target Milestone|--- |14.3 --- Comment #5 from Xi Ruoyao --- (In

[Bug rust/119353] [15 regression] Rust fails to build (build failure: error[E0554]: `#![feature]` may not be used on the stable release channel)

2025-03-19 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119353 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #10 f

[Bug middle-end/119314] Possibly wrong code generation for branch after leaf function call

2025-03-18 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119314 Xi Ruoyao changed: What|Removed |Added Resolution|--- |INVALID CC|

[Bug target/117452] ICE: in patch_jump_insn, at cfgrtl.cc:1303 with -Ofast -mavx10.2 and __bf16

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

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #39 from Xi Ruoyao --- (In reply to Chen Chen from comment #38) > (In reply to Xi Ruoyao from comment #37) > > So if we revert r15-7525 now, would things work normally with just r15-6657? > > If so I'd suggest to revert r15-7525 (now

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-17 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 Xi Ruoyao changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug cobol/119213] gcc/cobol/Make-lang.in: suspicious -DEXEC_LIB with hardcoded lib64

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

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-15 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #32 from Xi Ruoyao --- Or perhaps you can run a bisect. Unfortunately I don't have SPEC access.

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2025-03-14 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #29 from Xi Ruoyao --- For 15 r15-7525 is intended for this issue. But I don't know if it's a good idea to backport it, as it's only a workaround, not a proper fix. Could someone try the diff in PR 115842 comment 6 (one time just o

[Bug tree-optimization/119253] RISC-V GCC auto-vectorizes unaligned memory access even if mvector-strict-align is enabled

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

[Bug target/119238] [15 Regression] error: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Werror=c++17-extensions]

2025-03-12 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119238 Xi Ruoyao changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/119238] [15 Regression] error: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Werror=c++17-extensions]

2025-03-12 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119238 --- Comment #3 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #2) > Oops I mistakenly believed the C++ standard for GCC code base was same as > the default of GCC. > > I agree with the fix in comment 1. Just thought it again and submit

[Bug target/119238] [15 Regression] error: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Werror=c++17-extensions]

2025-03-12 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119238 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Summar

[Bug cobol/119217] cobol: build broken on non-linux by unguarded use of Linux-specific facilities.

2025-03-11 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119217 --- Comment #4 from Xi Ruoyao --- (In reply to Richard Biener from comment #3) > Nah, cobol isn't a primary or default language. Oh I wrongly thought it was enabled by default.

[Bug cobol/119217] cobol: build broken on non-linux by unguarded use of Linux-specific facilities.

2025-03-11 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119217 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Priorit

[Bug rtl-optimization/119171] [15 Regression] error: ‘asm’ operand has impossible constraints or there are not enough registers

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

[Bug other/7826] Decimal constant -2147483648 cause a warning "decimal constant is so large that it is unsigned"

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7826 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Resolution|

[Bug c/96788] "integer constant is so large that it is unsigned" warning is incorrect

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #9 fro

[Bug c/119185] Feature: quasi object programming by retrieving base object of indirect C calls

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

[Bug tree-optimization/119186] Using __builtin_ctz results in a error result.

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119186 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org Statu

[Bug c/119185] Feature: quasi object programming by retrieving base object of indirect C calls

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185 --- Comment #6 from Xi Ruoyao --- (In reply to Uroš Platiše from comment #5) > My assumption was that the object is anyway in the regs and the mere issue > would be accessing its value. You assumption is incorrect as I've already said. It's j

[Bug c/119185] Feature: quasi object programming by retrieving base object of indirect C calls

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185 --- Comment #4 from Xi Ruoyao --- (In reply to Jonathan Wakely from comment #2) > What if the function is not called indirectly, wouldn't the implicit object > ref just be garbage? > > My response to this is "just use C++". Then you have functi

[Bug preprocessor/119184] Long time with nested function macros

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119184 Xi Ruoyao changed: What|Removed |Added Resolution|--- |WONTFIX CC|

[Bug rtl-optimization/119127] [15 Regression] ICE in decompose, at rtl.h:2312 during RTL pass: late_combine

2025-03-10 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119127 Xi Ruoyao changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/119182] Compiler Fails to Diagnose Redefinition of Type Alias in Lambda Scope

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

[Bug c++/119180] GCC Accepts Non-Standard Variable-Length Arrays (VLAs) in C++ Without Warnings

2025-03-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119180 --- Comment #2 from Xi Ruoyao --- > Actual Result: > GCC compiles the code silently (or with -pedantic warns but still succeeds). "Warns but still succeeds" is a correct behavior. The standard NEVER says "the code should be rejected." It only

[Bug c++/119180] GCC Accepts Non-Standard Variable-Length Arrays (VLAs) in C++ Without Warnings

2025-03-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119180 Xi Ruoyao changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug c++/110848] Consider enabling -Wvla by default in non-GNU C++ modes

2025-03-09 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110848 Xi Ruoyao changed: What|Removed |Added CC||qurong at ios dot ac.cn --- Comment #26 fro

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-05 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 Xi Ruoyao changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/119127] [15 Regression] ICE in decompose, at rtl.h:2312 during RTL pass: late_combine

2025-03-05 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119127 --- Comment #6 from Xi Ruoyao --- More simplified test case: int x; struct Type { unsigned SubclassData : 24; } y; void test(void) { x = y.SubclassData * 37; }

[Bug rtl-optimization/119127] [15 Regression] ICE in decompose, at rtl.h:2312 during RTL pass: late_combine

2025-03-05 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119127 --- Comment #5 from Xi Ruoyao --- (In reply to chenglulu from comment #4) > (In reply to Xi Ruoyao from comment #3) > > It happens at: > > > > trying to combine definition of r94 in: > >15: r94:DI=r92:DI<<0x2&0xfffc > > REG_DEAD

[Bug rtl-optimization/119127] [15 Regression] ICE in decompose, at rtl.h:2312 during RTL pass: late_combine

2025-03-05 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119127 --- Comment #3 from Xi Ruoyao --- It happens at: trying to combine definition of r94 in: 15: r94:DI=r92:DI<<0x2&0xfffc REG_DEAD r92:DI into: 17: r96:DI=sign_extend(r87:SI+r94:DI#0) REG_DEAD r94:DI REG_DEAD r87:SI i

[Bug rtl-optimization/119127] [15 Regression] ICE in decompose, at rtl.h:2312 during RTL pass: late_combine

2025-03-05 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119127 Xi Ruoyao changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug libstdc++/119089] FAIL: 23_containers/vector/debug/assign4_backtrace_neg.cc -std=gnu++17 (test for excess errors)

2025-03-04 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119089 --- Comment #14 from Xi Ruoyao --- (In reply to John David Anglin from comment #13) > Debian doesn't ship fixed pthread.h but they are in my personal > builds. I will probably remove fixed pthread.h from my personal > builds. Or use --disable-

[Bug c/119095] GCC in Ubuntu 20.04, 22.04 and 24.04 all have this problem.

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

[Bug libstdc++/119089] FAIL: 23_containers/vector/debug/assign4_backtrace_neg.cc -std=gnu++17 (test for excess errors)

2025-03-03 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119089 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #12 f

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 --- Comment #6 from Xi Ruoyao --- https://gcc.gnu.org/pipermail/gcc-patches/2025-March/676725.html

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 Xi Ruoyao changed: What|Removed |Added See Also||https://github.com/cisco/op

[Bug target/106585] RISC-V: Miss optimization with code gen for zbs

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106585 Xi Ruoyao changed: What|Removed |Added Summary|RISC-V: Mis-optimized code |RISC-V: Miss optimization

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 Xi Ruoyao changed: What|Removed |Added Attachment #60632|0 |1 is obsolete|

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 --- Comment #2 from Xi Ruoyao --- (In reply to Xi Ruoyao from comment #1) > Created attachment 60632 [details] > untested patch It causes an ICE with V16QI y = __builtin_lsx_vldx ((char *)0, t); I'll fix it before sending the patch.

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 Xi Ruoyao changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/119084] LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 Xi Ruoyao changed: What|Removed |Added Keywords||wrong-code Target|

[Bug target/119084] New: LoongArch: __builtin_lsx_vldx can be incorrectly reordered

2025-03-02 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 Bug ID: 119084 Summary: LoongArch: __builtin_lsx_vldx can be incorrectly reordered Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pr

[Bug target/119077] gcc option -mint8 leads to undefined reference to `__builtin_avr_delay_cycles'

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

[Bug rtl-optimization/119013] LoongArch and RISC-V: Redundant sign-extension after moving 32-bit values from FPR into 64-bit GPR

2025-02-27 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119013 --- Comment #2 from Xi Ruoyao --- (In reply to Jeffrey A. Law from comment #1) > The way we typically deal with these issues with rv64 is to create a DImode > temporary and store the result in there. We then use a narrowing subreg to > copy fro

[Bug middle-end/119028] Inconsistent behavior across optimization levels in GCC 14.2.0

2025-02-26 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119028 Xi Ruoyao changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug rtl-optimization/119013] New: LoongArch and RISC-V: Redundant sign-extension after moving 32-bit values from FPR into 64-bit GPR

2025-02-25 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119013 Bug ID: 119013 Summary: LoongArch and RISC-V: Redundant sign-extension after moving 32-bit values from FPR into 64-bit GPR Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c/118997] Wrong struct padding or documentation is misleading

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

[Bug c++/118981] "_GLOBAL__sub_I.00099_tzdb.cc" defined twice in the assembly output for c++20/tzdb.cc with -fvtable-verify=std (--enable-vtable-verify)

2025-02-24 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 --- Comment #41 from Xi Ruoyao --- So fixed? Or should we reject the code if it uses init_priority(99) and -fvtable-verify at the same time?

[Bug middle-end/118981] "_GLOBAL__sub_I.00099_tzdb.cc" defined twice in the assembly output for c++20/tzdb.cc with -fvtable-verify=std (--enable-vtable-verify)

2025-02-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 Xi Ruoyao changed: What|Removed |Added Keywords||needs-reduction --- Comment #29 from Xi Ruo

[Bug libstdc++/118981] "_GLOBAL__sub_I.00099_tzdb.cc" defined twice in the assembly output for c++20/tzdb.cc with -fvtable-verify=std (--enable-vtable-verify)

2025-02-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 Xi Ruoyao changed: What|Removed |Added Status|WAITING |NEW Keywords|

[Bug libstdc++/118981] tzdb.cc contains 3 times in sequence: [[gnu::init_priority(99)]]

2025-02-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 --- Comment #23 from Xi Ruoyao --- I just tried bootstrapping GCC and I couldn't reproduce the failure. The output assembly seems normal regarding _GLOBAL__sub_I.00099_tzdb.cc: .section.text.startup._GLOBAL__sub_I.00099_tzdb.cc,"ax",@p

[Bug libstdc++/118981] tzdb.cc contains 3 times in sequence: [[gnu::init_priority(99)]]

2025-02-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 --- Comment #21 from Xi Ruoyao --- (In reply to Erich Löw from comment #16) > In parallel: how did I come to "CCFLAGS=-pipe -march=native -O2 -fPIC > -fomit-frame-pointer"? > --> They are from linux kernel compiling This is not correct. The cu

[Bug libstdc++/118981] tzdb.cc contains 3 times in sequence: [[gnu::init_priority(99)]]

2025-02-22 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 Xi Ruoyao changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

  1   2   3   4   5   6   7   8   9   10   >