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

2023-08-05 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917 Bug ID: 110917 Summary: std::format_to(int*, ...) fails to compile because of _S_make_span Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords:

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

2023-08-05 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 --- Comment #18 from JuzheZhong --- (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 vectorize simple > unsigned short shift right, with

[Bug middle-end/110884] strncmp false positive with -Wstringop-overread on coreutils

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110884 --- Comment #4 from Andrew Pinski --- (In reply to Paul Eggert from comment #3) > > Using (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX) would work, but is > (as I wrote) awkward. Among other things, the coreutils code uses an enum to >

[Bug middle-end/110884] strncmp false positive with -Wstringop-overread on coreutils

2023-08-05 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110884 --- Comment #3 from Paul Eggert --- (In reply to Richard Biener from comment #2) > you are basically trying to use strcmp (a, b), so why not do that? strcmp would not work on Fedora 38, or on most current coreutils platforms. In the full

[Bug c++/102098] ICE when #include with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220

2023-08-05 Thread accelerator0099 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102098 Devourer Station changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/103524] [meta-bug] modules issue

2023-08-05 Thread accelerator0099 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 102098, which changed state. Bug 102098 Summary: ICE when #include with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102098 What|Removed

[Bug c++/102098] ICE when #include with -fmodules-ts -std=c++20 since r11-7530-g1e5cdb9f896fb220

2023-08-05 Thread accelerator0099 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102098 --- Comment #7 from Devourer Station --- Confirmed solved in 13.1.1

[Bug fortran/107397] [11/12 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2023-08-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 Jerry DeLisle changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

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

2023-08-05 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110897 --- Comment #17 from JuzheZhong --- Confirm by this try: https://godbolt.org/z/q7zx5zG5e Both ARM SVE trunk GCC and RISC-V GCC failed to vectorize simple unsigned short shift right, with following failed information: :14:1: missed: couldn't

[Bug fortran/107397] [11/12 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #18 from CVS Commits --- The releases/gcc-11 branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:276288556d6b4f535466ddbe560ede4c71b7fd2e commit r11-10938-g276288556d6b4f535466ddbe560ede4c71b7fd2e Author: Steve Kargl

[Bug fortran/107397] [11/12 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #19 from CVS Commits --- The releases/gcc-11 branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:088d907f69901f8d7e40ea099ccb5e42999c472c commit r11-10939-g088d907f69901f8d7e40ea099ccb5e42999c472c Author: Jakub

[Bug fortran/107397] [11/12 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #17 from CVS Commits --- The releases/gcc-12 branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:a3931bf6093dbeda637601da07cdbbd07e57ccbd commit r12-9802-ga3931bf6093dbeda637601da07cdbbd07e57ccbd Author: Jakub Jelinek

[Bug fortran/107397] [11/12 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #16 from CVS Commits --- The releases/gcc-12 branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:495332f16df1f73c185a02be428e227e20850752 commit r12-9801-g495332f16df1f73c185a02be428e227e20850752 Author: Steve Kargl

[Bug tree-optimization/106884] ifcombine may move shift so it shifts more than bitwidth

2023-08-05 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106884 --- Comment #6 from Krister Walfridsson --- One more similar case (that may be the same as comment #3): int g; void foo(int a, int b, int c, int d, int e) { if ((10 + a) * b) { g = (c || (g >> d)) << 1; } } In this case,

[Bug fortran/107397] [11/12 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2023-08-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #15 from Jerry DeLisle --- Working this now.

[Bug fortran/103506] [11 Regression] ICE in gfc_free_namespace, at fortran/symbol.c:4039 since r10-2798-ge68a35ae4a65d2b3

2023-08-05 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103506 Jerry DeLisle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/103506] [11 Regression] ICE in gfc_free_namespace, at fortran/symbol.c:4039 since r10-2798-ge68a35ae4a65d2b3

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103506 --- Comment #19 from CVS Commits --- The releases/gcc-11 branch has been updated by Jerry DeLisle : https://gcc.gnu.org/g:238bce471c4391c47ffd4cd3f261f40006993f0e commit r11-10936-g238bce471c4391c47ffd4cd3f261f40006993f0e Author: Jerry

[Bug tree-optimization/110916] Architecture-dependent missed optimizations for double swapping

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110916 Andrew Pinski changed: What|Removed |Added Keywords||alias --- Comment #2 from Andrew

[Bug tree-optimization/110916] Architecture-dependent missed optimizations for double swapping

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110916 Andrew Pinski changed: What|Removed |Added Component|c++ |tree-optimization

[Bug c++/110916] New: [12/13/14 Regression] Architecture-dependent missed optimizations for double swapping

2023-08-05 Thread janschultke at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110916 Bug ID: 110916 Summary: [12/13/14 Regression] Architecture-dependent missed optimizations for double swapping Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug middle-end/52802] Equality rewrites pessimizes code

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

[Bug rtl-optimization/34072] unoptimal byte extraction.

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34072 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > So we still have an issue for the C++ example with memcpy. But the code did improve from GCC 6 to GCC 7 though. From .cfi_startproc subl$12,

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

2023-08-05 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 Keywords||patch URL|

[Bug modula2/108404] M2RTS_Halt fails with a segv (it should emit a diagnostic and exit).

2023-08-05 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108404 --- Comment #7 from Gaius Mulley --- I wonder if this bug has now been fixed via the other PR fixes. Specifically the rewrite of RTco.cc, the defensive use of select, bugfixes to HIGH and FIO.mod (memcpy parameters)? It might be worth a

[Bug tree-optimization/57650] Suboptimal code after TRUTH_AND_EXPR is changed into BIT_AND_EXPR

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57650 --- Comment #4 from Andrew Pinski --- Oh this is basically undoing the AND and then doing jump threading ...

[Bug tree-optimization/110915] vector version of `x == MIN & x > y` is not optimized

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110915 --- Comment #1 from Andrew Pinski --- These should work, I think, will try after finishing up the pointer: (match min_value VECTOR_CST (with { tree inner = uniform_integer_cst_p (t); } (if (inner && INTEGRAL_TYPE_P (TREE_TYPE

[Bug tree-optimization/110915] vector version of `x == MIN & x > y` is not optimized

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

[Bug tree-optimization/110915] New: vector version of `x == MIN & x > y` is not optimized

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110915 Bug ID: 110915 Summary: vector version of `x == MIN & x > y` is not optimized Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity:

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

2023-08-05 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/105574] coroutines: ICE when co_yield a r-value vector of non-POD type

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

[Bug c++/110913] internal compiler error when I pass temporary vector of string to co_await target function

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

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

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779 --- Comment #4 from CVS Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:0826ebd633e38bd55abd161c15deb431420f82a3 commit r14-3006-g0826ebd633e38bd55abd161c15deb431420f82a3 Author: Gaius Mulley Date:

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

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96695 --- Comment #4 from Andrew Pinski --- Created attachment 55694 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55694=edit Patch which I am testing

[Bug tree-optimization/110914] [11/12/13/14 Regression] Optimization eliminating necessary assignment before 0-byte memcpy

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

[Bug c/98536] warning with -Wvla-parameter for unspecified bound getting specified later

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98536 --- Comment #3 from CVS Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:39f413fc4b6979d194f2f736bd663eb7f5045168 commit r14-3005-g39f413fc4b6979d194f2f736bd663eb7f5045168 Author: Martin Uecker Date:

[Bug tree-optimization/110914] [11/12/13/14 Regression] Optimization eliminating necessary assignment before 0-byte memcpy

2023-08-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110914 Andrew Pinski changed: What|Removed |Added Summary|Optimization eliminating|[11/12/13/14 Regression]

[Bug c++/110914] Optimization eliminating necessary assignment before 0-byte memcpy

2023-08-05 Thread erosenberger at kinetica dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110914 --- Comment #1 from Eric Rosenberger --- Created attachment 55693 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55693=edit Test program Note: preprocessed .ii is too big to attach

[Bug c++/110914] New: Optimization eliminating necessary assignment before 0-byte memcpy

2023-08-05 Thread erosenberger at kinetica dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110914 Bug ID: 110914 Summary: Optimization eliminating necessary assignment before 0-byte memcpy Product: gcc Version: 11.4.0 Status: UNCONFIRMED Severity: normal

[Bug target/110202] _mm512_ternarylogic_epi64 generates unnecessary operations

2023-08-05 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110202 Alexander Monakov changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/81233] -Wdiscarded-qualifiers and Wincompatible-pointer-types missing important detail

2023-08-05 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81233 --- Comment #6 from Eric Gallager --- (In reply to Eric Gallager from comment #5) > (In reply to Marek Polacek from comment #3) > > Fixed. Further improvements are possible. > > Uh... reopening for the possible further improvements; >

[Bug target/105504] Fails to break dependency for vcvtss2sd xmm, xmm, mem

2023-08-05 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105504 --- Comment #7 from Eric Gallager --- (In reply to CVS Commits from comment #6) > The master branch has been updated by hongtao Liu : > > https://gcc.gnu.org/g:5e005393d4ff0a428c5f55b9ba7f65d6078a7cf5 > > commit

[Bug libstdc++/110909] Missed optimization: Suboptimal codegen in vector copy assignment

2023-08-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110909 --- Comment #2 from Jonathan Wakely --- Right, we don't have a std::copy-but-ranges-do-not-overlap that could be used instead.

[Bug c++/110911] Confusing diagnostic on misplaced static_assert

2023-08-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110911 --- Comment #2 from Jonathan Wakely --- Although Dave Malcolm has recommended that we don't use "did you mean...?" phrasing, but something like "static_assert not valid here, static_cast would be valid".

[Bug c/102558] missing warning comparing T[static N] to null

2023-08-05 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102558 Martin Uecker changed: What|Removed |Added CC||muecker at gwdg dot de --- Comment #1

[Bug c++/110911] Confusing diagnostic on misplaced static_assert

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

[Bug c++/110913] New: internal compiler error when I pass temporary vector of string to co_await target function

2023-08-05 Thread redboltz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110913 Bug ID: 110913 Summary: internal compiler error when I pass temporary vector of string to co_await target function Product: gcc Version: 13.2.1 Status: UNCONFIRMED

[Bug c++/110912] New: False assumption that constructors cannot alias any of their parameters

2023-08-05 Thread janschultke at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110912 Bug ID: 110912 Summary: False assumption that constructors cannot alias any of their parameters Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug c/110703] Incorrect "-Wfloat-conversion" diagnostic with _Generic

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110703 --- Comment #3 from CVS Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:54be338589ea93ad4ff53d22adde476a0582537b commit r14-3004-g54be338589ea93ad4ff53d22adde476a0582537b Author: Martin Uecker Date:

[Bug c/97100] -Wformat checks all arms of _Generic leading to irrelevant type expectation warnings

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97100 --- Comment #3 from CVS Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:54be338589ea93ad4ff53d22adde476a0582537b commit r14-3004-g54be338589ea93ad4ff53d22adde476a0582537b Author: Martin Uecker Date:

[Bug c/68193] _Generic -Woverflow false alarm

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193 --- Comment #8 from CVS Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:54be338589ea93ad4ff53d22adde476a0582537b commit r14-3004-g54be338589ea93ad4ff53d22adde476a0582537b Author: Martin Uecker Date:

[Bug c++/110911] New: Confusing diagnostic on misplaced static_assert

2023-08-05 Thread pacoarjonilla at yahoo dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110911 Bug ID: 110911 Summary: Confusing diagnostic on misplaced static_assert Product: gcc Version: og13 (devel/omp/gcc-13) Status: UNCONFIRMED Severity: normal Priority: P3