[Bug libstdc++/119037] Incorrect calculations of max_size involving basic_strings

2025-02-26 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119037 --- Comment #2 from Halalaluyafail3 --- (In reply to Andrew Pinski from comment #1) > Most likely max_size in std::basic_string should be something like: > > ``` > /// Returns the size() of the largest possible %string. > _GLIBCXX_

[Bug testsuite/116143] [15 regression] gcc.dg/plugin/diagnostic-* test fails intermittently

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116143 --- Comment #12 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:fb684f1654bdc831e17a5e538bdfee63ec0a5e4b commit r15-7723-gfb684f1654bdc831e17a5e538bdfee63ec0a5e4b Author: Jakub Jelinek Date:

[Bug middle-end/118819] [15 Regression] runtime error: signed integer overflow during bootstrap

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118819 --- Comment #7 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:b570f48c3dfb9ca3d640467cff67e569904009d4 commit r15-7722-gb570f48c3dfb9ca3d640467cff67e569904009d4 Author: Jakub Jelinek Date: T

[Bug libstdc++/119037] Incorrect calculations of max_size involving basic_strings

2025-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119037 --- Comment #1 from Andrew Pinski --- Most likely max_size in std::basic_string should be something like: ``` /// Returns the size() of the largest possible %string. _GLIBCXX_NODISCARD _GLIBCXX20_CONSTEXPR size_type max

[Bug jit/117047] [15 regression] Segfault in libgccjit garbage collection when compiling GNU Emacs with Native Compilation

2025-02-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117047 Sam James changed: What|Removed |Added Keywords||wrong-code --- Comment #26 from Sam James

[Bug jit/117047] [15 regression] Segfault in libgccjit garbage collection when compiling GNU Emacs with Native Compilation

2025-02-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117047 --- Comment #25 from Sam James --- I've reproduced it

[Bug libstdc++/119037] New: Incorrect calculations of max_size involving basic_strings

2025-02-26 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119037 Bug ID: 119037 Summary: Incorrect calculations of max_size involving basic_strings Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pr

[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-26 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118981 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #18 from Alejandro Colomar --- (In reply to Alejandro Colomar from comment #13) > (In reply to Paul Eggert from comment #12) > > Plus, i + 1 == 0 does not necessarily work if time_t is 'unsigned short' > > (yes that'd be really weir

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #17 from Alejandro Colomar --- (In reply to Eric Gallager from comment #16) > I'd just like to restate my preference for using separate named options > instead of numerical warning levels. Brainstorming some ideas for potential > nam

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug middle-end/119036] New: [OpenMP] dispatch with interop(obj) clause and obj == omp_interop_none should not set default-device-var ICV

2025-02-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119036 Bug ID: 119036 Summary: [OpenMP] dispatch with interop(obj) clause and obj == omp_interop_none should not set default-device-var ICV Product: gcc Version: 15.0 Status: U

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 H.J. Lu changed: What|Removed |Added Attachment #60590|0 |1 is obsolete|

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #14 from H.J. Lu --- (In reply to Hongtao Liu from comment #13) > (In reply to H.J. Lu from comment #11) > > Created attachment 60590 [details] > > A patch > > > > Can you try this on SPEC CPU? > > No big impact for both O2 and Ofa

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace (overly strict use of deleted function before ADL)

2025-02-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119034 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment #

[Bug c++/119035] Problem of __attribute__ and maybe gcc 14 and 15 accepts invalid

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

[Bug c++/119035] New: Problem of __attribute__ and maybe gcc 14 and 15 accepts invalid

2025-02-26 Thread qurong at ios dot ac.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119035 Bug ID: 119035 Summary: Problem of __attribute__ and maybe gcc 14 and 15 accepts invalid Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/118793] request NAMELIST reports of input errors indicate position of error and show line containing error

2025-02-26 Thread urbanjost at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118793 --- Comment #2 from urbanjost at comcast dot net --- I can imagine that different parsing of the input might make this very difficult but might also be very straight-forward so was hoping for the best. With small inputs it is not too bad, but err

[Bug gcov-profile/118442] -fprofile-generate wrongly adds instrumentation after musttail call

2025-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118442 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > That comes from flow_call_edges_add, see gimple_flow_call_edges_add in > tree-cfg.cc Reading the comments in gimple_flow_call_edges_add is interesting because i

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

2025-02-26 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119013 Jeffrey A. Law changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/118992] Redundant argument set up for call

2025-02-26 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118992 --- Comment #13 from Hongtao Liu --- (In reply to H.J. Lu from comment #11) > Created attachment 60590 [details] > A patch > > Can you try this on SPEC CPU? No big impact for both O2 and Ofast on SPEC2017.

[Bug tree-optimization/118976] [12/13/14/15 regression] Correctness Issue: SVE vectorization results in data corruption when cpu has 128bit vectors but compiled with -mcpu=neoverse-v1 (which is only f

2025-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118976 --- Comment #14 from Andrew Pinski --- (In reply to avieira from comment #13) > > the VECTOR_CST just goes over the elements in the VECTOR_CST and calls this > recursively, making the change: > --- a/gcc/fold-const.cc > +++ b/gcc/fold-const.cc

[Bug middle-end/119033] [13/14/15 regression] Unsafe FRE of pointer assignment since r13-469-g9a53101caadae1

2025-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119033 --- Comment #2 from Andrew Pinski --- (In reply to Sam James from comment #1) > r13-469-g9a53101caadae1 but latent before I guess No I think that kinda of introdued it, it simplified `((size_t)a == (size_t)b) ? b : a` into just `a`: phiopt mat

[Bug middle-end/119033] [13/14/15 regression] Unsafe FRE of pointer assignment since r13-469-g9a53101caadae1

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

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace

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

[Bug middle-end/119033] [13/14/15 regression] Unsafe FRE of pointer assignment since r13-469-g9a53101caadae1

2025-02-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119033 Sam James changed: What|Removed |Added Summary|[13/14/15 regression] |[13/14/15 regression] |Un

[Bug ipa/119012] [riscv] Bootstrap comparison failure: gcc/rust/rust-lex.o differs

2025-02-26 Thread rsworktech at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119012 --- Comment #3 from Levi Zim --- Weird. It seems that I cannot reproduce it outside of our packaging infra.

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace

2025-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119034 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > This is odd, doing this: > ``` > namespace foo > { > struct X { }; > void func(X) { } > } > > namespace bar > { > int func() = delete; > template >

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace

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

[Bug c++/119034] Nested using-declaration doesn't do ADL or uses wrong associated namespace

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119034 --- Comment #1 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > If the helper classes are written like this then all compilers are happy: Actually that's not true, MSVC is still unhappy. I think the adl_func concept is n

[Bug c++/119034] New: Nested using-declaration doesn't do ADL or uses wrong associated namespace

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119034 Bug ID: 119034 Summary: Nested using-declaration doesn't do ADL or uses wrong associated namespace Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: rej

[Bug fortran/108369] FM509 Fails to compile with error when using undocumented -x option

2025-02-26 Thread jvdelisle at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369 --- Comment #23 from Jerry DeLisle --- I have modified gcc.texi here to yield, after make info, the following pasted out of my terminal viewing with info: ‘-x LANGUAGE’ Specify explicitly the LANGUAGE for the following input files (ra

[Bug target/67771] integer-to-floating-point conversions wrongly produce -0 in FE_DOWNWARD mode

2025-02-26 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67771 --- Comment #6 from John Paul Adrian Glaubitz --- (In reply to Joseph S. Myers from comment #5) > Various glibc functions work around this using FIX_INT_FP_CONVERT_ZERO, I > suppose the new log10f implementation taken from CORE-MATH needs such a

[Bug middle-end/119033] [13/14/15 regression] Unsafe FRE of pointer assignment

2025-02-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119033 Sam James changed: What|Removed |Added Keywords||wrong-code Target Milestone|---

[Bug c++/112490] infinite meta error in reverse_iterator::iterator>>

2025-02-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #15 from Vincent Lefèvre --- (In reply to Vincent Lefèvre from comment #14) > (In reply to Jakub Jelinek from comment #4) > > If you want to compare against all ones time_t, just use ~(time_t)0 or > > similar. > > This one is a bad

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #14 from Vincent Lefèvre --- (In reply to Jakub Jelinek from comment #4) > If you want to compare against all ones time_t, just use ~(time_t)0 or > similar. This one is a bad idea as it may have issues with signed types (when not in

[Bug c++/112490] infinite meta error in reverse_iterator::iterator>>

2025-02-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org S

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #13 from Alejandro Colomar --- (In reply to Paul Eggert from comment #12) > Plus, i + 1 == 0 does not necessarily work if time_t is 'unsigned short' > (yes that'd be really weird for time_t, but ISO C and POSIX allow it and > I try

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #12 from Paul Eggert --- On 2/26/25 07:29, vincent-gcc at vinc17 dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 > > --- Comment #11 from Vincent Lefèvre --- > (In reply to Alejandro Colomar from comment #10) >

[Bug fortran/108680] Wrong DTIO arguments with -fdefault-integer-8

2025-02-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108680 --- Comment #13 from anlauf at gcc dot gnu.org --- (In reply to kargls from comment #11) > If we're discussing derived-type IO, then it is clear from > Fortran 2023, 12.6.4.8.2, (see p. 255) that the unit number > has the default integer kind wit

[Bug libstdc++/118083] __possibly_const_range misses input_range constraint

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118083 --- Comment #3 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:640697f7c2def415db81c84010ae25be0785d867 commit r15-7720-g640697f7c2def415db81c84010ae25be0785d867 Author: Patrick Palka Date: W

[Bug c/114870] [13/14 Regression] stddef.h problem with -Wsystem-headers and -std=gnu23 (which is the default since GCC 15)

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

[Bug c/119001] [15 Regression] ICE: in output_constructor_regular_field, at varasm.cc:5833

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119001 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c/119001] [15 Regression] ICE: in output_constructor_regular_field, at varasm.cc:5833

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119001 --- Comment #7 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ad2908ed4ec5eff3cad3fd142cde5c1fac4788e9 commit r15-7719-gad2908ed4ec5eff3cad3fd142cde5c1fac4788e9 Author: Jakub Jelinek Date: W

[Bug c/114870] [13/14/15 Regression] stddef.h problem with -Wsystem-headers and -std=gnu23 (which is the default since GCC 15)

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870 --- Comment #2 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:8d22474af76a386eed488b3c66124134f0e41363 commit r15-7718-g8d22474af76a386eed488b3c66124134f0e41363 Author: Jakub Jelinek Date: W

[Bug rtl-optimization/119002] [15 Regression] Comparison miscompilation on ppc64le and s390x since r15-6777

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119002 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:40bf0770563501f4c6d7e92cdaa1fa361caa commit r15-7717-g40bf0770563501f4c6d7e92cdaa1fa361caa Author: Jakub Jelinek Date: W

[Bug tree-optimization/118953] [14/15 regression] Miscompile at -O2 since r14-2473-g602e824eec30a7

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118953 --- Comment #6 from Jakub Jelinek --- I think the bug is in irange::union_bitmask with *this [irange] long long unsigned int [0, 0][17, 17][25, 25] MASK 0xc000 VALUE 0x2d and r [irange] long long unsigned int [0, 0] r.m_bitmask is MA

[Bug tree-optimization/118953] [14/15 regression] Miscompile at -O2 since r14-2473-g602e824eec30a7

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118953 --- Comment #5 from Jakub Jelinek --- So, I think this is incorrect handling of the masks/values during range union. As written earlier, we have # RANGE [irange] long long unsigned int [0, +INF] MASK 0xc000 VALUE 0x2d _3 = _2 + 1

[Bug middle-end/119021] [15 Regression] RTL checking ICEs after r15-7700

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug middle-end/119021] [15 Regression] RTL checking ICEs after r15-7700

2025-02-26 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021 --- Comment #6 from Vladimir Makarov --- (In reply to Jakub Jelinek from comment #4) > Can't it just look at the present insn and if it is no longer asm but > NOTE_INSN_DELETED, ignore it? RA keep erroneous asm goto (for keeping CFG correctnes

[Bug c++/112490] infinite meta error in reverse_iterator::iterator>>

2025-02-26 Thread gessos.paul at yahoo dot gr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112490 Chameleon changed: What|Removed |Added CC||gessos.paul at yahoo dot gr --- Comment #4

[Bug ipa/118318] [15 regression] ICE when building firefox-134.0 with PGO

2025-02-26 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118318 --- Comment #16 from Martin Jambor --- (In reply to Jan Hubicka from comment #13) > [...] > > Here are two calls to + and it is not clear which one triggers the ICE. > However sum += e->count.ipa (); quite obviously preserves the fact that sum

[Bug target/115458] [15 regression] [RISC-V] ICE in lra_split_hard_reg_for, at lra-assigns.cc:1868 unable to find a register to spill since r15-518-g99b1daae18c095

2025-02-26 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115458 Jeffrey A. Law changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/119033] New: Unsafe FRE of pointer assignment

2025-02-26 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119033 Bug ID: 119033 Summary: Unsafe FRE of pointer assignment Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end

[Bug middle-end/119021] [15 Regression] RTL checking ICEs after r15-7700

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021 --- Comment #5 from GCC Commits --- The master branch has been updated by Vladimir Makarov : https://gcc.gnu.org/g:7ce3a8e872d945d537a7e7ba1bd3f45b1cf9a6d2 commit r15-7716-g7ce3a8e872d945d537a7e7ba1bd3f45b1cf9a6d2 Author: Vladimir N. Makarov

[Bug tree-optimization/118953] [14/15 regression] Miscompile at -O2 since r14-2473-g602e824eec30a7

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118953 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug libstdc++/108823] ranges::transform could be smarter with two sized ranges

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108823 --- Comment #3 from Jonathan Wakely --- Or decltype(ranges::size(r1) + ranges::size(r2)) ?

[Bug libstdc++/108823] ranges::transform could be smarter with two sized ranges

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108823 --- Comment #2 from Jonathan Wakely --- Is std::min(ranges::size(__r1), ranges::size(__r2)) safe? Probably not, since we could have iota(0LL, LLONG_MAX) on a 32-bit host where size_t is 32-bit. So I suppose it should be uintmax_t instead.

[Bug libstdc++/108823] ranges::transform could be smarter with two sized ranges

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108823 --- Comment #1 from Jonathan Wakely --- So maybe something like: --- a/libstdc++-v3/include/bits/ranges_algo.h +++ b/libstdc++-v3/include/bits/ranges_algo.h @@ -758,11 +758,21 @@ namespace ranges _Out __result, _Fp __binary_op,

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

2025-02-26 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118185 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug rtl-optimization/118739] [15 Regression] wrong code at -O{s,3} with "-fno-tree-forwprop -fno-tree-vrp" on x86_64-linux-gnu since r15-268-g9dbff9c05520a7

2025-02-26 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118739 --- Comment #17 from Uroš Bizjak --- V2 patch at [1]: [1] https://gcc.gnu.org/pipermail/gcc-patches/2025-February/676494.html

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #11 from Vincent Lefèvre --- (In reply to Alejandro Colomar from comment #10) [about i + 1 == 0 instead of i == -1] > But this causes readability issues. For error-handling, programmers are > used to writing ==-1, and doing +1==0 wo

[Bug tree-optimization/119030] [15 Regression] wrong optimization

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119030 --- Comment #3 from Jakub Jelinek --- Started with r15-7597-g3768bedf7b5fcdd63a18871ecfce665ae1b8d87e static inline unsigned foo (long long tag) { return tag & 0x8000; } static inline long long bar (long long tag) { if (foo (tag)) retu

[Bug target/116032] [12/13/14/15 Regression] gcc.target/arm/pr40457-2.c produces larger code for armv7ve+neon

2025-02-26 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116032 --- Comment #6 from Christophe Lyon --- I mean in this case CONST_VECTOR already has a cost of 16

[Bug tree-optimization/119030] [15 Regression] wrong optimization

2025-02-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119030 Marek Polacek changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug ipa/119012] [riscv] Bootstrap comparison failure: gcc/rust/rust-lex.o differs

2025-02-26 Thread rsworktech at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119012 --- Comment #2 from Levi Zim --- (In reply to Andrew Pinski from comment #1) > Can you attach the preprocessed source for rust-lex.cc ? Do you mean re-running the command that produces rust-lex.o but with -save-temps? > The big difference betw

[Bug target/116032] [12/13/14/15 Regression] gcc.target/arm/pr40457-2.c produces larger code for armv7ve+neon

2025-02-26 Thread clyon at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116032 Christophe Lyon changed: What|Removed |Added CC||clyon at gcc dot gnu.org --- Comment

[Bug c++/119032] New: Should using brace elison for designated initializer be reminded under '-pedantic-errors'?

2025-02-26 Thread rush102333 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119032 Bug ID: 119032 Summary: Should using brace elison for designated initializer be reminded under '-pedantic-errors'? Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 --- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #4 from Jakub Jelinek --- > Does it have in that case the desired effect? I mean, does Solaris dynamic > linker complain with that > __extension__ __asm (".globl _ZSt21io

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 --- Comment #10 from Alejandro Colomar --- (In reply to Vincent Lefèvre from comment #9) > (In reply to Paul Eggert from comment #8) > > (In reply to Jakub Jelinek from comment #4) > > > just use ~(time_t)0 or similar. > > That has a cast, and p

[Bug c++/119030] [15 Regression] wrong optimization

2025-02-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119030 Richard Biener changed: What|Removed |Added Target||x86_64-*-* Keywords|

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 --- Comment #7 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #5 from Jakub Jelinek --- > Is _GLIBCXX_USE_INIT_PRIORITY_ATTRIBUTE defined on Solaris when using Solaris > ld and/or when using gld? On Solaris 11.4, it is always define

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread ro at CeBiTec dot Uni-Bielefeld.DE via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 --- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Jonathan Wakely --- > Hmm, does this imply we should have a separate baseline files for those two > configurations? I'd rather not if it can somehow be avoided.

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 --- Comment #5 from Jakub Jelinek --- Is _GLIBCXX_USE_INIT_PRIORITY_ATTRIBUTE defined on Solaris when using Solaris ld and/or when using gld?

[Bug c++/119030] New: 15 Regression wrong optimization

2025-02-26 Thread frank.mehnert at googlemail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119030 Bug ID: 119030 Summary: 15 Regression wrong optimization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ A

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug c/119011] -Wsign-compare: Split it into several levels

2025-02-26 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011 Vincent Lefèvre changed: What|Removed |Added CC||vincent-gcc at vinc17 dot net --- Com

[Bug middle-end/119021] [15 Regression] RTL checking ICEs after r15-7700

2025-02-26 Thread vmakarov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021 --- Comment #3 from Vladimir Makarov --- (In reply to Jakub Jelinek from comment #2) > So, either remove that call too, or move it into lra_asm_insn_error before > the insn has been deleted. Vlad, I'll defer this to you. Sorry for the issues w

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 --- Comment #3 from Jonathan Wakely --- The header has: // For construction of filebuffers for cout, cin, cerr, clog et. al. // When the init_priority attribute is usable, we do this initialization // in the compiled library instead (src

[Bug middle-end/119021] [15 Regression] RTL checking ICEs after r15-7700

2025-02-26 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119021 --- Comment #4 from Jakub Jelinek --- (In reply to Vladimir Makarov from comment #3) > (In reply to Jakub Jelinek from comment #2) > > So, either remove that call too, or move it into lra_asm_insn_error before > > the insn has been deleted. Vla

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 Jonathan Wakely changed: What|Removed |Added Keywords||ABI --- Comment #2 from Jonathan Wake

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/118964] include in the module causes a compilation error

2025-02-26 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118964 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #6

[Bug c++/118986] [15 Regression] internal compiler error: in replace_decl, at cp/constexpr.cc

2025-02-26 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118986 --- Comment #9 from Marek Polacek --- In cp_fold_r we have: TARGET_EXPR >>> so object=D.2701, and init is the expr_stmt. We unwrap the EXPR_STMT/INIT_EXPR/TARGET_EXPR and end up evaluating the f1 call. f1 returns c2; the type of D.2701

[Bug target/118949] [15 regression] RISC-V: Extra FRM writes since GCC-14.2 since r15-5943-gdc0dea98c96e02

2025-02-26 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118949 --- Comment #9 from Jeffrey A. Law --- I'd kind of lean towards the scheduler to fix this up. I've got an old patch that I put on ICE that might be helpful. https://inbox.sourceware.org/gcc-patches/d59x71nu21wx.3ndzz35ya8...@gmail.com/T/

[Bug target/118835] ICE in s390_valid_shift_count since r10-1731-ge2839e47894f0b

2025-02-26 Thread stefansf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118835 Stefan Schulze Frielinghaus changed: What|Removed |Added Resolution|--- |FIXED Status|

[Bug target/118835] [12 Regression] ICE in s390_valid_shift_count since r10-1731-ge2839e47894f0b

2025-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118835 --- Comment #5 from GCC Commits --- The releases/gcc-12 branch has been updated by Stefan Schulze Frielinghaus : https://gcc.gnu.org/g:b27fa6a7ca86a9b885cb4dbe8a55991e7fb666f0 commit r12-10967-gb27fa6a7ca86a9b885cb4dbe8a55991e7fb666f0 Author:

[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 c/118233] -Werror=stringop-overflow __builtin___memcpy_chk

2025-02-26 Thread costamagnagianfranco at yahoo dot it via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118233 --- Comment #4 from Gianfranco --- Hello, ping?

[Bug libstdc++/119029] [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 Rainer Orth changed: What|Removed |Added Target Milestone|--- |15.0

[Bug libstdc++/119029] New: [15 regression] abi_check FAILs on Solaris with gld

2025-02-26 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119029 Bug ID: 119029 Summary: [15 regression] abi_check FAILs on Solaris with gld Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug libstdc++/106612] ranges::iter_move does not consider iterator's value categories

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106612 --- Comment #2 from Jonathan Wakely --- This type fails to satisfy std::indirectly_readable so isn't an iterator. I don't see why we should care about the result of ranges::iter_move on such a type, it should be ill-formed. The fact that the sta

[Bug libstdc++/106612] ranges::iter_move does not consider iterator's value categories

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

[Bug tree-optimization/119016] [15 regression] svn miscompiled with -O2 -mavx -fno-vect-cost-model since r15-6807-g68326d5d1a593d

2025-02-26 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119016 --- Comment #13 from Sam James --- Mea culpa. I hope my ratio of valid bugs excuses it a bit ;) Filed https://marc.info/?l=subversion-dev&m=174056933428992&w=2.

[Bug libstdc++/105609] ranges::move(_backward) should use ranges​::​iter_move instead of std​::​move

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105609 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/119027] Problem of 'case' statement not in switch statement and maybe gcc 10 accepts invalid

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119027 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

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

2025-02-26 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119028 Richard Biener changed: What|Removed |Added Keywords||missed-optimization --- Comment #1 fro

[Bug libstdc++/118209] ranges::sort doesn't use iter_move, cannot sort zip of move-only type

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118209 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/100795] ranges::sample should not use std::sample directly

2025-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100795 Jonathan Wakely changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com ---

  1   2   >