[Bug target/55212] [SH] Switch to LRA

2024-09-27 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #332 from John Paul Adrian Glaubitz --- Created attachment 59212 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59212&action=edit Preprocessed source from from comment #331

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #10 from Uroš Bizjak --- g:890e586486bb https://gcc.gnu.org/pipermail/gcc-patches/2014-August/394986.html

[Bug tree-optimization/116848] Check to see if is_maybe_undefined can be replaced with ssa_name_maybe_undef_p/mark_ssa_maybe_undefs in loop unrolling

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116848 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/116848] Check to see if is_maybe_undefined can be replaced with ssa_name_maybe_undef_p/mark_ssa_maybe_undefs in loop unrolling

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116848 --- Comment #2 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:9c04112fdc221b0a337f88572dfef4caaca78349 commit r15-3914-g9c04112fdc221b0a337f88572dfef4caaca78349 Author: Andrew Pinski Date: Th

[Bug tree-optimization/116818] gcc.target/aarch64/sve/strided_load_5.c fails since gcc-15-3735-g664e0ce580a8

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116818 --- Comment #2 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:b1c7095a1da11d2543222d98243d10f9cc9823ce commit r15-3916-gb1c7095a1da11d2543222d98243d10f9cc9823ce Author: Richard Biener Date:

[Bug tree-optimization/116818] gcc.target/aarch64/sve/strided_load_5.c fails since gcc-15-3735-g664e0ce580a8

2024-09-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116818 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread robert.hoelzl at posteo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 --- Comment #6 from Robert Hölzl --- Sorry I oversimplified the Problem. Here is the self contained C-file that allows to reproduce the Problem: ``` #include void f() { static uint8_t array[64]; for (uint8_t i = 0; i < sizeof(

[Bug tree-optimization/104789] [12/13/14/15 Regression] -Wstringop-overflow false positive at -O3 for an unrolled loop

2024-09-27 Thread rverschelde at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104789 --- Comment #16 from Rémi Verschelde --- Just noting that this is still reproducible in GCC 14.2 (14.2.1 20240912 (Red Hat 14.2.1-3)), with the reproducers from comment 7 and comment 9. I see it had milestone moved to successive 12.x minor rele

[Bug c++/116502] [15 Regression] -Wunused-result warning cannot be suppressed if coroutine awaiter returns a reference after r15-2318-g2664c1bf83855b

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116502 --- Comment #4 from GCC Commits --- The trunk branch has been updated by Arsen Arsenovic : https://gcc.gnu.org/g:05e4f07cad1eacf869c10622cae2a9cdee3b6a7a commit r15-3921-g05e4f07cad1eacf869c10622cae2a9cdee3b6a7a Author: Arsen ArsenoviÄ Date:

[Bug c++/116793] [15 regression] ice in gimplify_var_or_parm_decl, at gimplify.cc:3309 since r15-3513

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116793 --- Comment #14 from GCC Commits --- The trunk branch has been updated by Arsen Arsenovic : https://gcc.gnu.org/g:d888a8a8dcf391197ae82e2bbf99507effc27950 commit r15-3923-gd888a8a8dcf391197ae82e2bbf99507effc27950 Author: Arsen ArsenoviÄ Date:

[Bug c++/116502] [15 Regression] -Wunused-result warning cannot be suppressed if coroutine awaiter returns a reference after r15-2318-g2664c1bf83855b

2024-09-27 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116502 Arsen Arsenović changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/116809] Failure to build GCC on macOS 15 / Xcode 16 for Intel

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116809 --- Comment #31 from GCC Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:dd5b823ce238161156e7a4b6267bd30d7dde7c6b commit r15-3924-gdd5b823ce238161156e7a4b6267bd30d7dde7c6b Author: Mark Mentovai Date:

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 Uroš Bizjak changed: What|Removed |Added Status|REOPENED|SUSPENDED --- Comment #11 from Uroš Bizja

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #12 from Jonathan Wakely --- (In reply to Thiago Macieira from comment #3) > The bug as reported is invalid, because it reported the wrong thing. The > problem has nothing to do with -march=native. The bug report is frustratingly un

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #16 from Uroš Bizjak --- (In reply to GGanesh from comment #15) > I wanted to get it confirmed from our BIOS and Kernel developer manuals > (https://www.amd.com/content/dam/amd/en/documents/archived-tech-docs/ > programmer-references

[Bug ipa/113197] [12/13/14/15 Regression] ICE in in handle_call_arg, at tree-ssa-structalias.cc:4119 since r12-5177-g494bdadf28d0fb

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113197 --- Comment #10 from Sam James --- We're hitting this now, not sure how we didn't before. conntrack.i: ``` enum a { b } register_dccp(); void c(); void __attribute__((noreturn)) exit_error(enum a d) { __builtin_va_end(0); if (d) c();

[Bug target/116869] Profiler count register conflicts with regparm

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116869 --- Comment #1 from Andrew Pinski --- msdosdjgpp might be the only target which does not define NO_PROFILE_COUNTERS .

[Bug c++/116867] Incorrectly report a constexpr function as non-constant

2024-09-27 Thread hzhou11 at students dot kennesaw.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116867 --- Comment #3 from Heng Zhou --- (In reply to Andrew Pinski from comment #1) > Looks to be already fixed in GCC 13.3.0. Yes, it works with gcc 13.3. Thank you.

[Bug c++/111284] [12 Regression] Some passing-by-value parameters are mishandled since GCC 9, affecting libstdc++'s constexpr std::string

2024-09-27 Thread hzhou11 at students dot kennesaw.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111284 --- Comment #16 from Heng Zhou --- (In reply to Jakub Jelinek from comment #13) > Fixed also for 13.3. Yes, it works with gcc 13.3. Thank you.

[Bug c++/115919] ICE: in tsubst_expr, at cp/pt.cc:20300

2024-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115919 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/116869] New: Profiler count register conflicts with regparm

2024-09-27 Thread jwjagersma at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116869 Bug ID: 116869 Summary: Profiler count register conflicts with regparm Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/116869] Profiler count register conflicts with regparm for i386-pc-msdosdjgpp

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116869 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > msdosdjgpp might be the only target which does not define > NO_PROFILE_COUNTERS . I should say for x86.

[Bug libstdc++/116853] [15 regression] Bootstrap fails on Darwin, Solaris after r15-3859-g63a598deb0c9

2024-09-27 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116853 --- Comment #4 from Iain Sandoe --- fixed on Darwin, if it also works for Solaris then please feel free to close the BZ.

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #13 from Jonathan Wakely --- (In reply to Anonymous from comment #8) > (In reply to Thiago Macieira from comment #5) > > > This has nothing to do with -march=native. In fact, for the Gentoo people > > who are using -march=native, ev

[Bug target/115860] [15 regression] Register pairs and regrename since r15-1579-g792f97b44ffc5e

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115860 --- Comment #5 from GCC Commits --- The releases/gcc-13 branch has been updated by Stefan Schulze Frielinghaus : https://gcc.gnu.org/g:f7037fd03ad842dc69e20c03942f29d982ad655e commit r13-9058-gf7037fd03ad842dc69e20c03942f29d982ad655e Author: S

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 --- Comment #12 from GCC Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:cd430b1fd95dce5868ce6a8063119d253ea2f995 commit r15-3926-gcd430b1fd95dce5868ce6a8063119d253ea2f995 Author: Pan Li Date: Fri Sep 27 11:

[Bug fortran/83700] [Meta-bug] Fortran Coarray issues

2024-09-27 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83700 Bug 83700 depends on bug 77873, which changed state. Bug 77873 Summary: [Coarray] [OOP] ICE in gfc_is_class_scalar_expr, at fortran/class.c:380 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77873 What|Removed |A

[Bug fortran/77873] [Coarray] [OOP] ICE in gfc_is_class_scalar_expr, at fortran/class.c:380

2024-09-27 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77873 Andre Vehreschild changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread robert.hoelzl at posteo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 Robert Hölzl changed: What|Removed |Added Status|RESOLVED|WAITING Resolution|INVALID

[Bug fortran/83700] [Meta-bug] Fortran Coarray issues

2024-09-27 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83700 Bug 83700 depends on bug 77885, which changed state. Bug 77885 Summary: [Coarray] [OOP] ICE in gfc_add_class_array_ref, at fortran/class.c:259 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77885 What|Removed |Ad

[Bug fortran/77885] [Coarray] [OOP] ICE in gfc_add_class_array_ref, at fortran/class.c:259

2024-09-27 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77885 Andre Vehreschild changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug tree-optimization/104789] [12/13/14/15 Regression] -Wstringop-overflow false positive at -O3 for an unrolled loop

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104789 Sam James changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment #17 f

[Bug libstdc++/116847] [15 regression] r15-3859-g63a598deb0c9fc causes many excess errors

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116847 --- Comment #16 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ddc72ba6c6c2c84a1a95340840bd5fde1f2bde44 commit r15-3928-gddc72ba6c6c2c84a1a95340840bd5fde1f2bde44 Author: Jakub Jelinek Date:

[Bug libstdc++/116847] [15 regression] r15-3859-g63a598deb0c9fc causes many excess errors

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116847 --- Comment #17 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:64072e60b1599ae7d347c2cdee46c3b0e37fc338 commit r15-3929-g64072e60b1599ae7d347c2cdee46c3b0e37fc338 Author: Jakub Jelinek Date:

[Bug analyzer/116864] New: "*" and "......" in false positive -Wanalyzer-use-of-uninitialized-value

2024-09-27 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116864 Bug ID: 116864 Summary: "*" and ".." in false positive -Wanalyzer-use-of-uninitialized-value Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: nor

[Bug c++/55004] [meta-bug] constexpr issues

2024-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 116867, which changed state. Bug 116867 Summary: Incorrectly report a constexpr function as non-constant https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116867 What|Removed |Added -

[Bug c++/116867] Incorrectly report a constexpr function as non-constant

2024-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116867 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/111284] [12 Regression] Some passing-by-value parameters are mishandled since GCC 9, affecting libstdc++'s constexpr std::string

2024-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111284 Marek Polacek changed: What|Removed |Added CC||hzhou11 at students dot kennesaw.e

[Bug c++/116867] New: Incorrectly report a constexpr function as non-constant

2024-09-27 Thread hzhou11 at students dot kennesaw.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116867 Bug ID: 116867 Summary: Incorrectly report a constexpr function as non-constant Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Pri

[Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102594 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:96e0370f4daef29b918aafcff68c7f5e4ef397fd commit r15-3933-g96e0370f4daef29b918aafcff68c7f5e4ef397fd Author: Marek Polacek Date: Th

[Bug c++/116866] RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

2024-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116866 --- Comment #3 from Jonathan Wakely --- If we add [[nodiscard]] to the constructors of the standard exception types then we get a warning with no compiler changes needed: struct Exception { [[nodiscard]] Exception(const char*) { } }; int d

[Bug middle-end/116868] New: GCC trunk doesn't eliminate a superfluous new/delete pair

2024-09-27 Thread dccitaliano at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116868 Bug ID: 116868 Summary: GCC trunk doesn't eliminate a superfluous new/delete pair Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug middle-end/116868] GCC trunk doesn't eliminate a superfluous new/delete pair

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

[Bug c++/116866] RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

2024-09-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116866 --- Comment #4 from David Malcolm --- (In reply to Jonathan Wakely from comment #3) > If we add [[nodiscard]] to the constructors of the standard exception types > then we get a warning with no compiler changes needed: ...in Compiler Explorer a

[Bug middle-end/114855] ICE: Segfault when compiling large autogenerated C source file

2024-09-27 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114855 --- Comment #57 from Andrew Macleod --- FWIW, on my last run, enabling early VRP sped up my -O1 compilation by a fair amount. total compilation dropped from 480 seconds to 380 seconds... It took 2.5 seconds to run, and im going to guess might

[Bug analyzer/116865] New: ICE when compiling GNU coreutils numfmt with -fanalyzer

2024-09-27 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116865 Bug ID: 116865 Summary: ICE when compiling GNU coreutils numfmt with -fanalyzer Product: gcc Version: 14.2.1 Status: UNCONFIRMED Keywords: ice-checking

[Bug analyzer/116865] ICE when compiling GNU coreutils numfmt with -fanalyzer

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116865 --- Comment #2 from Andrew Pinski --- ./cc1 -fanalyzer t.i -quiet -O2 during IPA pass: analyzer src/numfmt.c: In function ‘unit_to_umax’: src/numfmt.c:843:53: internal compiler error: in build2, at tree.cc:5099 0x25cc02e internal_error(char cons

[Bug analyzer/116865] ICE when compiling GNU coreutils numfmt with -fanalyzer

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116865 --- Comment #1 from Andrew Pinski --- if ((code == MINUS_EXPR || code == PLUS_EXPR || code == MULT_EXPR) && arg0 && arg1 && tt && POINTER_TYPE_P (tt) /* When sizetype precision doesn't match that of pointers we need to be

[Bug middle-end/116753] [13/14/15 Regression] GCC trunk (-O3) can't fold a loop into a constant

2024-09-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116753 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com,

[Bug tree-optimization/116861] [15 regression] ICE when building netpbm-11.2.10

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116861 Sam James changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pan2.li at intel dot com Res

[Bug analyzer/116865] ICE when compiling GNU coreutils numfmt with -fanalyzer

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

[Bug c++/116866] New: RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

2024-09-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116866 Bug ID: 116866 Summary: RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception Product: gcc Version: unknown

[Bug c++/116866] RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116866 --- Comment #1 from Andrew Pinski --- >We could add [[nodiscard]] to the class declaration, but I think that doesn't >actually work with gcc right now (it doesn't warn when it should) That would be PR 85973 .

[Bug c++/116866] RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

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

[Bug c++/116866] RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

2024-09-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116866 --- Comment #2 from David Malcolm --- A simple example: #include int divide(int num, int denom) { if (denom == 0) std::invalid_argument ("division by zero"); // forgot "throw" return num / denom; } which compiles with -Wall wit

[Bug c++/102594] ICE in decay_conversion, at cp/typeck.c:2311 since r8-7514-ge278212eeea4f57d

2024-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102594 --- Comment #4 from Marek Polacek --- Fixed on trunk so far. I think it makes sense to backport to 14.

[Bug c++/116867] Incorrectly report a constexpr function as non-constant

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116867 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection, |

[Bug target/116869] Profiler count register conflicts with regparm for i386-pc-msdosdjgpp

2024-09-27 Thread jwjagersma at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116869 --- Comment #3 from jwjagersma at gmail dot com --- (In reply to Andrew Pinski from comment #1) > msdosdjgpp might be the only target which does not define > NO_PROFILE_COUNTERS . I figured as much, but wasn't sure. From briefly poking around i

[Bug target/116870] Corrupt executable created by GCC 14.2 on Windows MinGW64 with mingw-w64-x86_64-toolchain

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116870 Andrew Pinski changed: What|Removed |Added Resolution|--- |MOVED Target|mingw-w64-x86_

[Bug target/116870] New: Corrupt executable created by GCC 14.2 on Windows MinGW64 with mingw-w64-x86_64-toolchain

2024-09-27 Thread zmajeed at sbcglobal dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116870 Bug ID: 116870 Summary: Corrupt executable created by GCC 14.2 on Windows MinGW64 with mingw-w64-x86_64-toolchain Product: gcc Version: 14.2.0 Status: UNCONFIRMED

[Bug c++/116866] RFE: warn about suspected missing "throw" when discarding temporaries that inherit from std::exception

2024-09-27 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116866 --- Comment #5 from David Malcolm --- (In reply to Jonathan Wakely from comment #3) > If we add [[nodiscard]] to the constructors of the standard exception types > then we get a warning with no compiler changes needed: Is it possible to do this

[Bug sanitizer/116863] New: TSAN segfault in __sanitizer::CombinedAllocator::Allocate

2024-09-27 Thread jpeng_xy at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116863 Bug ID: 116863 Summary: TSAN segfault in __sanitizer::CombinedAllocator::Allocate Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/116793] [15 regression] ice in gimplify_var_or_parm_decl, at gimplify.cc:3309 since r15-3513

2024-09-27 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116793 Arsen Arsenović changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 --- Comment #8 from Richard Earnshaw --- BTW, rewriting the code as: #include typedef uint32_t __attribute__((aligned(1))) u32_u; void f() { static uint8_t array[64]; for (uint8_t i = 0; i < sizeof(array); i++) {

[Bug fortran/81265] allocatable coarrays in submodule subroutines wrongly identified as unallocated

2024-09-27 Thread vehre at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81265 Andre Vehreschild changed: What|Removed |Added Status|NEW |WAITING CC|

[Bug target/115860] [15 regression] Register pairs and regrename since r15-1579-g792f97b44ffc5e

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115860 --- Comment #6 from GCC Commits --- The releases/gcc-12 branch has been updated by Stefan Schulze Frielinghaus : https://gcc.gnu.org/g:7051fa5fa4eaa24785a64072490c1e0c65039915 commit r12-10729-g7051fa5fa4eaa24785a64072490c1e0c65039915 Author:

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread Ganesh.Gopalasubramanian at amd dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #15 from GGanesh --- I wanted to get it confirmed from our BIOS and Kernel developer manuals (https://www.amd.com/content/dam/amd/en/documents/archived-tech-docs/programmer-references/50742_15h_Models_60h-6Fh_BKDG.pdf). RDRAND is *s

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread rearnsha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 Richard Earnshaw changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug tree-optimization/116785] [15 Regression] RAJAPerf REDUCE_SUM regresses with r15-792-gf0a02467bbc35a

2024-09-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116785 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug target/83464] [SH] ICE: in final_scan_insn, at final.c:3025 with -mlra

2024-09-27 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83464 --- Comment #9 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #8) > (In reply to John Paul Adrian Glaubitz from comment #6) > > (In reply to Oleg Endo from comment #5) > > > I'm not sure this is an acceptable solution. It

[Bug c++/56556] Wshadow warns for private members in base classes

2024-09-27 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56556 Pierre Ossman changed: What|Removed |Added CC||ossman at cendio dot se --- Comment #5 f

[Bug c++/78147] The -Wshadow warning is too aggressive with constructor parameters

2024-09-27 Thread ossman at cendio dot se via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147 Pierre Ossman changed: What|Removed |Added CC||ossman at cendio dot se --- Comment #9 f

[Bug sanitizer/116863] TSAN segfault in __sanitizer::CombinedAllocator::Allocate

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116863 --- Comment #1 from Andrew Pinski --- Can you report this upstream to LLVM (libsanitizer upstream is LLVM) since I suspect you will hit it with tsan with LLVM too?

[Bug c++/116852] -fvisibility-inlines-hidden does not hide template functions without 'inline'

2024-09-27 Thread joerg.richter--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116852 --- Comment #4 from Jörg Richter --- > I don't think there's a way besides wrapping those inside #pragma GCC > visibility, using attributes and/or -fvisibility I had hoped the point of -fvisibility-inlines-hidden is to not have to do this in s

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug libstdc++/116847] [15 regression] r15-3859-g63a598deb0c9fc causes many excess errors

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

[Bug middle-end/116860] [15 Regression] New test case gcc.dg/tree-ssa/fold-xor-and-or.c from r15-3866-ga88d6c6d777ad7 fails

2024-09-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116860 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug middle-end/116860] [15 Regression] New test case gcc.dg/tree-ssa/fold-xor-and-or.c from r15-3866-ga88d6c6d777ad7 fails

2024-09-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116860 --- Comment #3 from Jakub Jelinek --- Even on targets like riscv, if one tries int cmp1(int d1, int d2, int d3) { if (((d1 ^ d2) & 0xabcd) == 0 || d3 != 42 || d1 != d2) return 0; return 1; } (i.e. inserts in between completely unrelated

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #14 from Jonathan Wakely --- FWIW, libstdc++ checks for RDRND support at runtime using __get_cpuid_max, even when it was detected when compiling.

[Bug libstdc++/116853] [15 regression] Bootstrap fails on Darwin, Solaris after r15-3859-g63a598deb0c9

2024-09-27 Thread ro at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116853 Rainer Orth changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread robert.hoelzl at posteo dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 Robert Hölzl changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #17 from Thiago Macieira --- (In reply to comment #8) > I have to disagree. I specifically stated in the Qt bug that affected users > were using -march=native and that was being resolved to -march=bdver4, so > everything is not fine

[Bug target/116854] GCC incorrectly assumes all CPUs where -march=native resolves to -march=bdver4 will have RDRND support

2024-09-27 Thread thiago at kde dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116854 --- Comment #18 from Thiago Macieira --- (In reply to Uroš Bizjak from comment #16) > --quote-- > Note, that clearing the RDRAND CPUID bit does not prevent a processor > that normally supports the RDRAND instruction from executing it. So any > c

[Bug target/116856] Generated Code with unaligned uint32_t potentially hardfaults on ARM (due to LDRD)

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116856 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/116842] [15 Regression] ICE definition in block follows the use

2024-09-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116842 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2024-09-27 Status|UNCONFIRM

[Bug c/116871] New: -Wincompatible-pointer-types for function pointers could highlight the mismatch better

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116871 Bug ID: 116871 Summary: -Wincompatible-pointer-types for function pointers could highlight the mismatch better Product: gcc Version: 13.3.1 Status: UNCONFIRMED

[Bug c/116871] -Wincompatible-pointer-types for function pointers could highlight the mismatch better

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116871 --- Comment #2 from Sam James --- This matters more when you have quite long typedefs and the difference is just a const on one parameter.

[Bug c/116871] -Wincompatible-pointer-types for function pointers could highlight the mismatch better

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116871 --- Comment #1 from Sam James --- tbh, I actually think we could do a bit better again and somehow annotate &f in the diagram and colourise the 'float' vs 'int'?

[Bug target/69374] install.texi is bit-rotten

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69374 --- Comment #23 from GCC Commits --- The trunk branch has been updated by Gerald Pfeifer : https://gcc.gnu.org/g:2531f014fb2364777fb1ce09641db85bda5883b7 commit r15-3941-g2531f014fb2364777fb1ce09641db85bda5883b7 Author: Gerald Pfeifer Date:

[Bug c/116871] -Wincompatible-pointer-types for function pointers could highlight the mismatch better

2024-09-27 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116871 Sam James changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug tree-optimization/116835] [12/13/14/15 Regression] phiprop will prop back into a loop

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116835 --- Comment #9 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Phiprop use commit on the edge, maybe that could be improved/changed. That won't work because the edges which are in use here are the edges of the PHI. Still

[Bug tree-optimization/116873] New: esra does not remove unused store sometimes

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116873 Bug ID: 116873 Summary: esra does not remove unused store sometimes Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement

[Bug tree-optimization/116874] phiprop should handle more than just `a->t`

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

[Bug tree-optimization/116874] New: phiprop should handle more than just `a->t`

2024-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116874 Bug ID: 116874 Summary: phiprop should handle more than just `a->t` Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement

[Bug c++/116803] Linkage fails if modules are compiled in a certain order

2024-09-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116803 Nathaniel Shead changed: What|Removed |Added Resolution|--- |FIXED Assignee|unassigned a

[Bug c++/116160] [DR36] Rejects repeated using-declaration `using A::x;` [namespace.udecl]

2024-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116160 --- Comment #5 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:2196a20b82bdde2aeb099bcfd164fa29a698e837 commit r15-3939-g2196a20b82bdde2aeb099bcfd164fa29a698e837 Author: Nathaniel Shead Date:

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

2024-09-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 116803, which changed state. Bug 116803 Summary: Linkage fails if modules are compiled in a certain order https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116803 What|Removed |Added --

[Bug middle-end/116868] GCC trunk doesn't eliminate a superfluous new/delete pair

2024-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116868 --- Comment #2 from Jonathan Wakely --- Yes, they're all the same bug, and depend on Bug 110137

[Bug c++/116748] [15 Regression] internal compiler error: in pop_local_binding, at cp/name-lookup.cc:2651

2024-09-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116748 Nathaniel Shead changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/94404] [meta-bug] C++ core issues

2024-09-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 116160, which changed state. Bug 116160 Summary: [DR36] Rejects repeated using-declaration `using A::x;` [namespace.udecl] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116160 What|Removed

  1   2   >