[Bug target/104611] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0 on aarch64

2022-10-29 Thread zhongyunde at huawei dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104611 --- Comment #3 from vfdff --- As the load instructions usually have long latency, so do it need some extra restrict when we try this transformation?

[Bug target/61664] Microblaze exception handling fails

2022-10-29 Thread alpsayin at alpsayin dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61664 --- Comment #3 from Alp Sayin --- (In reply to Alp Sayin from comment #2) > This issue still persists. I've hit the exact same problem with gcc-12.1.0 > built from zephyrproject-rtos/gcc fork. > But more interestingly, I noticed that following

[Bug target/107459] microblaze moddi3 implementation is buggy

2022-10-29 Thread alpsayin at alpsayin dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107459 --- Comment #1 from Alp Sayin --- Created attachment 53792 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53792=edit Proposed patch (is the original patch) Proposed patch is the removal of buggy moddi3 implementation and falling back to

[Bug libgcc/107459] New: microblaze moddi3 implementation is buggy

2022-10-29 Thread alpsayin at alpsayin dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107459 Bug ID: 107459 Summary: microblaze moddi3 implementation is buggy Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/107458] std::fma generates slow scalar-call

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107458 --- Comment #4 from Andrew Pinski --- The C++ standard defines fma as doing (a*b) + c in infinite precision (and then round), this is why GCC cannot inline if your target does not have a FMA instruction. There is still no bug here.

[Bug c++/107458] std::fma generates slow scalar-call

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

[Bug c++/107458] std::fma generates slow scalar-call

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107458 --- Comment #2 from Andrew Pinski --- fmaf80_manually, fmaf64_manually, and fmaf32_manually are not exactly fma. at least for x86-64-v2 due not doing the add before the rounding of the multiply.

[Bug c++/107458] std::fma generates slow scalar-call

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107458 --- Comment #1 from Andrew Pinski --- Created attachment 53790 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53790=edit testcase -march=x86-64-v2 -O3 -std=c++20 -Wall -mno-vzeroupper Please attach the testcase next time instead of just

[Bug target/61664] Microblaze exception handling fails

2022-10-29 Thread alpsayin at alpsayin dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61664 Alp Sayin changed: What|Removed |Added CC||alpsayin at alpsayin dot com --- Comment #2

[Bug c++/107458] New: std::fma generates slow scalar-call

2022-10-29 Thread g.peterhoff--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107458 Bug ID: 107458 Summary: std::fma generates slow scalar-call Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug fortran/100103] Automatic reallocation fails inside select rank

2022-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103 Bug 100103 depends on bug 100098, which changed state. Bug 100098 Summary: Polymorphic pointers and allocatables have incorrect rank https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100098 What|Removed |Added

[Bug fortran/100098] Polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100098 anlauf at gcc dot gnu.org changed: What|Removed |Added Resolution|--- |FIXED

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug fortran/100103] Automatic reallocation fails inside select rank

2022-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100103 Bug 100103 depends on bug 100097, which changed state. Bug 100097 Summary: Unlimited polymorphic pointers and allocatables have incorrect rank https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097 What|Removed

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:f6e4a3b40b69e4f682db2fe49139b17de1b2ef8c commit r11-10345-gf6e4a3b40b69e4f682db2fe49139b17de1b2ef8c Author: José Rui

[Bug fortran/100098] Polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100098 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:f6e4a3b40b69e4f682db2fe49139b17de1b2ef8c commit r11-10345-gf6e4a3b40b69e4f682db2fe49139b17de1b2ef8c Author: José Rui

[Bug fortran/100098] Polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100098 --- Comment #5 from CVS Commits --- The releases/gcc-12 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:2b20cf18a62842e2659e891b0c607769638e07f9 commit r12-8877-g2b20cf18a62842e2659e891b0c607769638e07f9 Author: José Rui

[Bug fortran/100097] Unlimited polymorphic pointers and allocatables have incorrect rank

2022-10-29 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100097 --- Comment #4 from CVS Commits --- The releases/gcc-12 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:2b20cf18a62842e2659e891b0c607769638e07f9 commit r12-8877-g2b20cf18a62842e2659e891b0c607769638e07f9 Author: José Rui

[Bug c/105555] ICE: in fold_offsetof, at c-family/c-common.cc:6815

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10 --- Comment #3 from Andrew Pinski --- Note the C++ front-end works with this code.

[Bug target/107454] ICE: Segmentation fault (in single_set)

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107454 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug target/99657] ICE: in extract_insn, at recog.c:2769 with SVE code without -march=+sve

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99657 --- Comment #11 from Andrew Pinski --- *** Bug 107454 has been marked as a duplicate of this bug. ***

[Bug target/107456] std::atomic::fetch_xxx generate LOCK CMPXCHG instead of simpler LOCK instructions

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

[Bug c++/107457] ICE when template lambda alias used as default template argument

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107457 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Last reconfirmed|

[Bug rtl-optimization/107455] Suboptimal codegen for some branch-on-zero cases

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107455 --- Comment #2 from Andrew Pinski --- Note GCC does this optimization at the gimple level some of the times when it comes to the same type. Witness: int x (int t) { if (t & 256) return -26; return 0; }

[Bug rtl-optimization/107455] Suboptimal codegen for some branch-on-zero cases

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107455 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug rtl-optimization/107455] Suboptimal codegen for some branch-on-zero cases

2022-10-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107455 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization

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

2022-10-29 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #7 from anlauf at gcc dot gnu.org --- Created attachment 53789 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53789=edit Formatted patch Here's the commands to generate the attached formatted patch, assuming that decl.cc was

[Bug c++/107457] New: ICE when template lambda alias used as default template argument

2022-10-29 Thread aandrejevas5 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107457 Bug ID: 107457 Summary: ICE when template lambda alias used as default template argument Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/96868] C++20 designated initializer erroneous warnings

2022-10-29 Thread chfast at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868 --- Comment #6 from Paweł Bylica --- The workaround is MyObj obj = {}; which at least suggests some inconsistency in the compiler internals. For me this warning should be disabled in C++ when designated initializers are used and all other

[Bug ada/107440] GCC error: in gnat_to_gnu_entity, at ada/gcc-interface/decl.cc:610

2022-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107440 Eric Botcazou changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug ada/107391] decimal_literal with long exponent: Constraint_Error uintp.adb:2287

2022-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107391 Eric Botcazou changed: What|Removed |Added Last reconfirmed||2022-10-29 Ever confirmed|0

[Bug c++/107456] New: std::atomic::fetch_xxx generate LOCK CMPXCHG instead of simpler LOCK instructions

2022-10-29 Thread marko.makela at mariadb dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107456 Bug ID: 107456 Summary: std::atomic::fetch_xxx generate LOCK CMPXCHG instead of simpler LOCK instructions Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug middle-end/102566] [i386] GCC should emit LOCK BTS for simple bit-test-and-set operations with std::atomic

2022-10-29 Thread marko.makela at mariadb dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102566 Marko Mäkelä changed: What|Removed |Added CC||marko.makela at mariadb dot com ---

[Bug rtl-optimization/107455] New: Suboptimal codegen for some branch-on-zero cases

2022-10-29 Thread sinan.lin at linux dot alibaba.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107455 Bug ID: 107455 Summary: Suboptimal codegen for some branch-on-zero cases Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/107346] [13 Regression] gnat.dg/loop_optimization23_pkg.ad failure afer r13-3413-ge10ca9544632db

2022-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107346 Eric Botcazou changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/107454] New: ICE: Segmentation fault (in single_set)

2022-10-29 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107454 Bug ID: 107454 Summary: ICE: Segmentation fault (in single_set) Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: