[Bug tree-optimization/110924] [14 Regression] ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed

2023-08-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110924 David Binderman changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug tree-optimization/110924] [14 Regression] ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed

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

[Bug c/110929] New: ICE: verify_ssa failed since r14-2946-g46c8c225455

2023-08-07 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110929 Bug ID: 110929 Summary: ICE: verify_ssa failed since r14-2946-g46c8c225455 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug c/110929] ICE: verify_ssa failed since r14-2946-g46c8c225455

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

[Bug tree-optimization/110924] [14 Regression] ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110924 Andrew Pinski changed: What|Removed |Added CC||shaohua.li at inf dot ethz.ch --- Comme

[Bug tree-optimization/96695] Failure to optimize combination of pointer comparison to nullptr and another pointer

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 --- Comment #6 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:58f1e185ff6d108171b9c8ea043796c85a65fcec commit r14-3014-g58f1e185ff6d108171b9c8ea043796c85a65fcec Author: Andrew Pinski Date: Sat

[Bug tree-optimization/96695] Failure to optimize combination of pointer comparison to nullptr and another pointer

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0 Status|ASSIGNED

[Bug middle-end/19987] [meta-bug] fold missing optimizations in general

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 96695, which changed state. Bug 96695 Summary: Failure to optimize combination of pointer comparison to nullptr and another pointer https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 What|Removed

[Bug tree-optimization/110924] [14 Regression] ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed

2023-08-07 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110924 --- Comment #6 from David Binderman --- Reduced C code is func_4_p_7, func_4_l_3204; func_15() __attribute__((cold)); func_15() { for (;;) ; } func_15_alias() __attribute__((alias("func_15"))); func_4() { func_15_alias(func_4_p_7 && saf

[Bug c++/110619] Dangling pointer returned from constexpr function converts in nullptr

2023-08-07 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110619 --- Comment #8 from Fedor Chelnokov --- Please note that GCC 13 also accepts invalid program (because dangling pointers were converted in nullptr): constexpr auto f(int a) { return &a; } constexpr auto g(int b) { return &b; } static_a

[Bug tree-optimization/18940] Loop is not vectorized when it should be (VRP)

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18940 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0 Status|NEW

[Bug tree-optimization/26731] Jump threading gets in the way of loops

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26731 Bug 26731 depends on bug 18940, which changed state. Bug 18940 Summary: Loop is not vectorized when it should be (VRP) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18940 What|Removed |Added -

[Bug tree-optimization/20084] missed optimization with conditional and loads and cross jumping

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

[Bug tree-optimization/26731] Jump threading gets in the way of loops

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26731 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2007-07-01 00:14:40 |2023-8-7 --- Comment #7 from Andrew Pins

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 Richard Biener changed: What|Removed |Added Target||x86_64-*-* aarch64-*-* Vers

[Bug tree-optimization/105832] [13/14 Regression] Dead Code Elimination Regression at -O3 (trunk vs. 12.1.0)

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

[Bug tree-optimization/30049] Variable-length arrays (VLA) should be converted to normal arrays if possible

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30049 Richard Biener changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Comment #4

[Bug tree-optimization/108360] [13/14 Regression] Dead Code Elimination Regression at -Os since r13-2048-g418b71c0d535bf

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108360 --- Comment #10 from Andrew Pinski --- This is the example code which is not optimized at the gimple level (but is at the RTL level): ``` void gg(); void hh(); void f1(int a, int b) { short t = a == b; t -= 1; unsigned t1 = t; if (t1 <=

[Bug tree-optimization/106293] [13 regression] 456.hmmer at -Ofast -march=native regressed by 19% on zen2 and zen3 in July 2022

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106293 --- Comment #27 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:73c14db6d1a8c1267137b94c41f2e2c9410dcbb1 commit r14-3015-g73c14db6d1a8c1267137b94c41f2e2c9410dcbb1 Author: Jan Hubicka Date: Mon

[Bug ada/110898] compilation of adacl-assert-integer.ads failed

2023-08-07 Thread dkm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110898 --- Comment #3 from Marc Poulhiès --- Yes, I was confused also, as I've never seen this issue when using alire. Maybe check that your alr install is up to date, and if it's the case, report an issue in the corresponding project: https://github.c

[Bug tree-optimization/110361] [13/14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r13-2020-g16b013c9d9b

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

[Bug tree-optimization/110503] [13/14 Regression] Dead Code Elimination Regression at -O3 since r13-322-g7f04b0d786e

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

[Bug tree-optimization/49955] Fails to do partial basic-block SLP

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49955 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/110619] Dangling pointer returned from constexpr function converts in nullptr

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110619 --- Comment #9 from Jonathan Wakely --- (In reply to Fedor Chelnokov from comment #8) > This program must be rejected because of relational comparison of unrelated > pointers I disagree. If GCC were to define the behaviour of returning invalid

[Bug tree-optimization/110841] [14 Regression] Dead Code Elimination Regression since r14-2675-gef28aadad6e

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

[Bug tree-optimization/94427] 456.hmmer is 8-17% slower when compiled at -Ofast than with GCC 9

2023-08-07 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94427 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/110897] RISC-V: Fail to vectorize shift

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 --- Comment #19 from Richard Biener --- (In reply to JuzheZhong from comment #18) > (In reply to JuzheZhong from comment #17) > > Confirm by this try: > > https://godbolt.org/z/q7zx5zG5e > > > > Both ARM SVE trunk GCC and RISC-V GCC failed to v

[Bug tree-optimization/94427] 456.hmmer is 8-17% slower when compiled at -Ofast than with GCC 9

2023-08-07 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94427 --- Comment #4 from Jan Hubicka --- It is the same loop - it was float only in my mind (since the function return float value :) With loop splitting we no longer have the last iteration check, but we still have the underflow checks that are inde

[Bug tree-optimization/94427] 456.hmmer is 8-17% slower when compiled at -Ofast than with GCC 9

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94427 --- Comment #5 from Richard Biener --- (In reply to Jan Hubicka from comment #4) > It is the same loop - it was float only in my mind (since the function > return float value :) > > With loop splitting we no longer have the last iteration check,

[Bug c++/99403] Add header fix-it hints for std::this_thread::* and std::jthread

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99403 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2023-08-07 Ever confirmed|0

[Bug c++/99404] Diagnostics for undeclared members of a namespace don't say "namespace"

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99404 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/110930] New: Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 Bug ID: 110930 Summary: Fix-it hints suggest wrong header for names in the global namespace Product: gcc Version: 13.1.1 Status: UNCONFIRMED Keywords: diagnost

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 110897, which changed state. Bug 110897 Summary: RISC-V: Fail to vectorize shift https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 What|Removed |Added -

[Bug tree-optimization/110897] RISC-V: Fail to vectorize shift

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 JuzheZhong changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/110696] RISC-V: -march doesn't imply correctly

2023-08-07 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110696 JuzheZhong changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/110931] New: [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 Bug ID: 110931 Summary: [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: n

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread luoyonggang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #8 from 罗勇刚(Yonggang Luo) --- (In reply to Hongtao.liu from comment #7) > No, I think what clang does is correct, Thanks, yeap, according to https://github.com/llvm/llvm-project/issues/64477 I think clang did it well. GCC also need

[Bug tree-optimization/110932] New: [14 Regression] Dead Code Elimination Regression since r14-2230-g7e904d6c7f2

2023-08-07 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110932 Bug ID: 110932 Summary: [14 Regression] Dead Code Elimination Regression since r14-2230-g7e904d6c7f2 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: n

[Bug c++/110933] New: Add warning flags to check against integer overflow

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 Bug ID: 110933 Summary: Add warning flags to check against integer overflow Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #1 from Niklas Hambüchen --- A tangentially related issue is bug 24542 which is about another common overflow bug, the pattern "u64 = u32 * u32". Just linking it here because people interested in solving integer overflow issues may

[Bug c/24542] potential unwanted truncation of operation overflow should be warned on assignment to wider variable

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542 --- Comment #15 from Niklas Hambüchen --- Another common integer overflow bug type is the "for (u32 i = 0; i < u64; ++i)" pattern, as well as general widening comparisons. I filed bug 110933 for those; just linking it here for people interested

[Bug ipa/106116] Missed optimization: in no_reorder-attributed functions, tail calls to the subsequent function could just be function-to-function fallthrough

2023-08-07 Thread pskocik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106116 --- Comment #4 from Petr Skocik --- It would be interesting to do this at the assembler level, effectively completely turning what's equivalent to `jmp 1f; 1:` to nothing. This would also be in line with the GNU assembler's apparent philosophy t

[Bug c/110934] New: m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread wbx at openadk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Bug ID: 110934 Summary: m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #9 from Hongtao.liu --- > There is a redundant xor instrunction, There's false dependence issue on some specific processors. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62011 > Without `-mbmi` option, gcc can not compile and all o

[Bug target/110762] [11/12/13 Regression] inappropriate use of SSE (or AVX) insns for v2sf mode operations

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110762 --- Comment #24 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:831017d5e72173f2c58e5475b7fcd35ee07a601f commit r14-3032-g831017d5e72173f2c58e5475b7fcd35ee07a601f Author: liuhongt Date: Fri Aug

[Bug rtl-optimization/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Richard Biener changed: What|Removed |Added Target||m68k Component|c

[Bug rtl-optimization/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread wbx at openadk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #3 from Waldemar Brodkorb --- Is this correct to use -E to generate the file?

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #2 from Richard Biener --- I think there should be specific warnings for the specific cases, not one that tries to be general. The example you give might be -Wiv-bound-conversion?

[Bug rtl-optimization/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread wbx at openadk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #2 from Waldemar Brodkorb --- Created attachment 55701 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55701&action=edit bsd-closefrom preprocessed

[Bug tree-optimization/110932] [14 Regression] Dead Code Elimination Regression since r14-2230-g7e904d6c7f2

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110932 Richard Biener changed: What|Removed |Added Target Milestone|--- |14.0 CC|

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

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

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 --- Comment #2 from Jonathan Wakely --- Yeah, that using-directive complicates things.

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 Florian Weimer changed: What|Removed |Added CC||fw at gcc dot gnu.org --- Comment #2 f

[Bug middle-end/110869] [14 regression] ICE in decompose, at rtl.h:2297

2023-08-07 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110869 --- Comment #17 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #16 from Stefan Schulze Frielinghaus ibm.com> --- > Turns out that my dejagnu foo is weak ;-) I came up with a wrong target > selector. Should be fixed in the new attachm

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread luoyonggang at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #10 from 罗勇刚(Yonggang Luo) --- (In reply to Hongtao.liu from comment #9) > > Without `-mbmi` option, gcc can not compile and all other three compiler > > can compile. > > As long as it keeps semantics(respect zero input), I think t

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #3 from Michael Matz --- Huh, since when does clang implement this? See also https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624004.html where I asked for comments about a similar, but not same, mechanism. I came from the an

[Bug target/110921] Relax _tzcnt_u32 support x86, all x86 arch support for this instrunction

2023-08-07 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110921 --- Comment #11 from Hongtao.liu --- (In reply to 罗勇刚(Yonggang Luo) from comment #10) > (In reply to Hongtao.liu from comment #9) > > > > Without `-mbmi` option, gcc can not compile and all other three compiler > > > can compile. > > > > As lo

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #4 from Michael Matz --- (In reply to Florian Weimer from comment #2) > I tried to write up something for the x86-64 psABI: > > Document the ABI for __preserve_most__ function calls >

[Bug libstdc++/110432] macOS: Segmentation fault when using stdlibc++ from gcc 13.1 in combination with clang-16

2023-08-07 Thread sascha.scandella at dentsplysirona dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110432 --- Comment #19 from Sascha Scandella --- (In reply to Jonathan Wakely from comment #17) > The fix has been backported to gcc-13 now. There should be a release > candidate for 13.2 in the next day or so, please try it out on macOS to make > sure

[Bug target/110926] [14 regression] Bootstrap failure (matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_m

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110926 --- Comment #9 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:af6cfd7b663909688c6ca55b6e9f859cdde4310f commit r14-3034-gaf6cfd7b663909688c6ca55b6e9f859cdde4310f Author: liuhongt Date: Mon Aug

[Bug target/110926] [14 regression] Bootstrap failure (matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_m

2023-08-07 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110926 --- Comment #10 from Hongtao.liu --- Fixed in GCC14.

[Bug target/110901] -march does not override -mcpu (big.little on aarch64

2023-08-07 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110901 Richard Earnshaw changed: What|Removed |Added Last reconfirmed||2023-08-07 Ever confirmed|0

[Bug tree-optimization/110935] New: Missed BB reduction vectorization because of missed eliding of a permute

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110935 Bug ID: 110935 Summary: Missed BB reduction vectorization because of missed eliding of a permute Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: nor

[Bug tree-optimization/110935] Missed BB reduction vectorization because of missed eliding of a permute

2023-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110935 Richard Biener changed: What|Removed |Added Target||x86_64-*-* Known to fail|

[Bug target/110908] [aarch64] Internal compiler error when using -ffixed-x30

2023-08-07 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110908 Richard Earnshaw changed: What|Removed |Added Last reconfirmed||2023-08-07 Status|UNCONF

[Bug middle-end/110869] [14 regression] ICE in decompose, at rtl.h:2297

2023-08-07 Thread stefansf at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110869 --- Comment #18 from Stefan Schulze Frielinghaus --- Thanks again for testing. Very much appreciated! I like the idea of a comment and posted a patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-August/626514.html

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #5 from Florian Weimer --- (In reply to Michael Matz from comment #3) > For ABIs you generally want a good mix between caller- and callee-saved > registers. The x86-64 psABI didn't do that on the SSE regs for conscious, but > meanwhi

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 Jan Hubicka changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment #6

[Bug libstdc++/110853] [c++-concepts] Bad interaction between deduction guide with decay and constraints

2023-08-07 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110853 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #

[Bug modula2/110779] SysClock can not read the clock

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 --- Comment #6 from CVS Commits --- The releases/gcc-13 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:4f8d84955dd5c9d2882d09e9c249240efe3a02aa commit r13-7691-g4f8d84955dd5c9d2882d09e9c249240efe3a02aa Author: Gaius Mulley Da

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #3 from Andrew Pinski --- Try -Wconversion. Also there is no overflow here as unsigned is always defined as wrapping.

[Bug libstdc++/110917] std::format_to(int*, ...) fails to compile because of _S_make_span

2023-08-07 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917 --- Comment #2 from Arthur O'Dwyer --- > Alternatively, we could replace the contiguous_iterator<_OutIter> constraint > with constructible_from, _OutIter, iter_difference_t<_OutIter>>. I think `is_same` is preferable to `constructible_from<...

[Bug c/24542] potential unwanted truncation of operation overflow should be warned on assignment to wider variable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542 --- Comment #16 from Andrew Pinski --- (In reply to Niklas Hambüchen from comment #15) > Another common integer overflow bug type is the "for (u32 i = 0; i < u64; > ++i)" pattern, as well as general widening comparisons. > > I filed bug 110933 f

[Bug libstdc++/110917] std::format_to(int*, ...) fails to compile because of _S_make_span

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917 --- Comment #3 from Jonathan Wakely --- It fails for non-contrived cases like this too: char8_t buf[32]; std::format_to(buf, "");

[Bug tree-optimization/109959] `(a > 1) ? 0 : (a == 1)` is not optimized when spelled out at -O2+

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109959 --- Comment #12 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:b57bd27cb68fdbe5d9dcd571b1cb66f72b841290 commit r14-3036-gb57bd27cb68fdbe5d9dcd571b1cb66f72b841290 Author: Andrew Pinski Date: S

[Bug tree-optimization/109959] `(a > 1) ? 0 : (a == 1)` is not optimized when spelled out at -O2+

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109959 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0 Resolution|---

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

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

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Target Milestone|

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

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

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 --- Comment #2 from Andrew Pinski --- Basically there is a missing VRP happening here: l.0_1 [irange] int [-INF, -65536][0, 0][65536, +INF] Partial equiv (b_6 pe8 l.0_1) : b_6 = (char) l.0_1; ... Obvious that b_6 will have the range [

[Bug target/110926] [14 regression] Bootstrap failure (matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_m

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

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #7 from Michael Matz --- (In reply to Florian Weimer from comment #5) > > It also makes argument registers be callee-saved, which is very > > unconventional. > > Isn't this done for the this pointer in some C++ ABIs? There are some

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 --- Comment #4 from Andrew Pinski --- I see Jonathan had mentioned this issue in bug 85690 comment #1 too.

[Bug c++/110930] Fix-it hints suggest wrong header for names in the global namespace

2023-08-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110930 --- Comment #5 from Jonathan Wakely --- Ah yes, this is a dup of the second half of that one, but maybe worth keeping it separate.

[Bug analyzer/110933] Add warnings to detect wrapping happening inside a loop (an infinite loop)

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 Andrew Pinski changed: What|Removed |Added Summary|Add warning flags to check |Add warnings to detect

[Bug sanitizer/110936] New: if constexpr: member function pointers cannot be checked with ubsan

2023-08-07 Thread jeanmichael.celerier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110936 Bug ID: 110936 Summary: if constexpr: member function pointers cannot be checked with ubsan Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/110931] [14 Regression] Dead Code Elimination Regression since r14-2890-gcc2003cd875

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931 --- Comment #3 from Andrew Pinski --- Here is one that has always failed due to a similar issue where the inner cast was removed: ``` void foo(void); int l=1000; int main(void) { short t = l; int t1 = t; if (t1 == 0) { signed char b =

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread fw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #8 from Florian Weimer --- (In reply to Michael Matz from comment #7) > > > Does the clang implementation take into account the various problematic > > > cases that arise when calling a normal function from a (say) preserve_all > > >

[Bug target/110899] RFE: Attributes preserve_most and preserve_all

2023-08-07 Thread matz at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110899 --- Comment #9 from Michael Matz --- (In reply to Florian Weimer from comment #8) > (In reply to Michael Matz from comment #7) > > > > Does the clang implementation take into account the various problematic > > > > cases that arise when calling

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com --- Com

[Bug libstdc++/67791] [10 Regression] Crash using std::thread and iostream with dynamic loading of a shared library

2023-08-07 Thread colin.davidson at codeplay dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791 colin.davidson at codeplay dot com changed: What|Removed |Added CC||colin.davidson at cod

[Bug tree-optimization/110937] New: (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110937 Bug ID: 110937 Summary: (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimizatio

[Bug modula2/110779] SysClock can not read the clock

2023-08-07 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 Rainer Orth changed: What|Removed |Added CC||ro at gcc dot gnu.org Status|

[Bug ipa/110378] IPA-SRA for destructors

2023-08-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110378 --- Comment #6 from CVS Commits --- The master branch has been updated by Martin Jambor : https://gcc.gnu.org/g:da1a888b524d620c7a17f368b69c46934b69495c commit r14-3038-gda1a888b524d620c7a17f368b69c46934b69495c Author: Martin Jambor Date: M

[Bug target/110908] [aarch64] Internal compiler error when using -ffixed-x30

2023-08-07 Thread zach-gcc at cs dot stanford.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110908 --- Comment #5 from zach-gcc at cs dot stanford.edu --- I am implementing software fault isolation on top of GCC and would like for GCC to only ever store addresses in x30. Use of x30 in its link register role is desired (saving/restoring etc. is

[Bug tree-optimization/110937] (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

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

[Bug tree-optimization/110937] (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110937 --- Comment #1 from Andrew Pinski --- Created attachment 55702 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55702&action=edit Patch which I am testing

[Bug tree-optimization/110937] (bool0 ? bool1^1 : bool1) is not optimized to bool0 ^ bool1

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110937 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Created attachment 55702 [details] > Patch which I am testing Actually I am going to fix this with PR 100798.

[Bug middle-end/100798] a?~t:t and (-(!!a))^t don't produce the same assembly code

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

  1   2   >