[Bug target/116236] [LRA] [M68K] ICE insn does not satisfy its constraints

2024-08-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116236 --- Comment #10 from Georg-Johann Lay --- What do we do when strict=0 and legitimate_address_p passes a hard register that is not valid? Reject it? Or is that fine and ra will fix it? (There are cases where passes like insn combine are propag

[Bug target/85624] ICE when initializing array that is 128-byte aligned

2024-08-12 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85624 Georg-Johann Lay changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|

[Bug target/85624] ICE when initializing array that is 128-byte aligned

2024-08-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85624 Georg-Johann Lay changed: What|Removed |Added Target Milestone|15.0|14.3 --- Comment #7 from Georg-Johann

[Bug rtl-optimization/116390] [ext_dce][avr][15 regression]Another ICE for avrtiny and optimization

2024-08-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added Known to work||14.1.0 Summary|Another IC

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 Georg-Johann Lay changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug rtl-optimization/116390] [15 regression] [ext_dce] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #6 from Georg-Johann Lay --- (In reply to Detlef Vollmann from comment #5) > Thanks for your patch. > It solves the segfault ICE for -O2. > But unfortunately it doesn't solve the build for -O3 or -O4. > It still produces the same er

[Bug rtl-optimization/116325] [lra] error: unable to generate reloads for:

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116325 --- Comment #1 from Georg-Johann Lay --- Created attachment 58945 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58945&action=edit C++ test case from libstdc++v3 This is a test case from libstdc++v3. Compile with $ avr-g++ pr116389.cpp

[Bug rtl-optimization/116402] New: [LRA] Improve hook documentation for reload -> LRA transition

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116402 Bug ID: 116402 Summary: [LRA] Improve hook documentation for reload -> LRA transition Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/116402] [LRA] Improve hook documentation for reload -> LRA transition

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116402 Georg-Johann Lay changed: What|Removed |Added Ever confirmed|0 |1 Blocks|

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #3 from Georg-Johann Lay --- (In reply to Jeffrey A. Law from comment #2) > or a backend bug with avr. I don't see what the avr backend is doing wrong. I played around with avr_hard_regno_mode_ok etc. and denied SImode for R30, but

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #

[Bug rtl-optimization/116389] [avr][15 regression] ICE in extract_constrain_insn for avrtiny and -O2

2024-08-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #5 from Georg-Johann Lay --- (In reply to Jeffrey A. Law from comment #4) > "IRA doesn't understand the impact of paradoxical subreg" is a > reasonable assessment. RA should either assess the validity of a paradoxical subreg in the m

[Bug target/116407] New: [avr] error: relocation truncated to fit

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 Bug ID: 116407 Summary: [avr] error: relocation truncated to fit Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: targe

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 Georg-Johann Lay changed: What|Removed |Added Target||avr Keywords|

[Bug target/116407] [avr] error: relocation truncated to fit

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116407 Georg-Johann Lay changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 --- Comment #11 from Georg-Johann Lay --- This PR is about a segmentation fault, which has been fixed already by the commit above. The "insn does not satisfy its constraints" ICE you are seeing now is PR116389. Please f'up to PR116389.

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added Status|REOPENED|WAITING --- Comment #12 from Georg-J

[Bug target/115830] [avr] Make better use of SREG in conditional jumps

2024-08-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115830 --- Comment #1 from Georg-Johann Lay --- Created attachment 58953 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58953&action=edit proposed patch: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/659422.html AVR: target/115830 - Make

[Bug target/116390] [15 regression] [avr] Another ICE for avrtiny and optimization

2024-08-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116390 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug rtl-optimization/116389] [15 regression] [avr] ICE in extract_constrain_insn for avrtiny and -O2 with ext-dce

2024-08-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116389 --- Comment #7 from Georg-Johann Lay --- Created attachment 58955 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58955&action=edit Reduced C test case $ avr-gcc pr116389-red.c -S -Os -mmcu=avrtiny struct T { int val; }; void f_int (int)

[Bug rtl-optimization/116321] [lra][avr] internal compiler error: in avr_out_lpm_no_lpmx, at config/avr/avr.cc:4572

2024-08-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116321 --- Comment #4 from Georg-Johann Lay --- (In reply to Richard Biener from comment #2) > See the m68k bug - LRA/IRA _never_ use strict = 1 You mean PR116236? Its fix says: > This matters on targets like m68k that support index extension > and th

[Bug rtl-optimization/116325] [lra] error: unable to generate reloads for:

2024-08-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116325 --- Comment #2 from Georg-Johann Lay --- Created attachment 58958 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58958&action=edit qsort.c. C test case LRA can't compile qsort.c from libc; same ICE.

[Bug rtl-optimization/116325] [lra] ICE: in curr_insn_transform, at lra-constraints.cc:4283

2024-08-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116325 --- Comment #3 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #2) > Created attachment 58958 [details] > qsort.c. C test case > > LRA can't compile qsort.c from libc; same ICE. Just compile qsort.c with -mlra (optimizatio

[Bug target/116236] [LRA] [M68K] ICE insn does not satisfy its constraints

2024-08-20 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116236 --- Comment #26 from Georg-Johann Lay --- (In reply to Richard Biener from comment #25) > I think there was a corresponding bug on the AVR side, not sure if that's > now also resolved. As far as I understand, the AVR issue is of a different kind

[Bug target/116433] [AVR] cannot place template class static member variables in EEPROM

2024-08-20 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116433 --- Comment #3 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #1) > The real fix is to have named address spaces support extended to C++. See > PR43745. That's a different issue. EEPROM handling is too complicated, we don't w

[Bug tree-optimization/49857] [patch] Put constant switch-tables into flash

2024-08-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857 Georg-Johann Lay changed: What|Removed |Added Status|RESOLVED|NEW Resolution|WONTFIX

[Bug target/115830] [avr] Make better use of SREG in conditional jumps

2024-08-29 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115830 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/115830] [avr] Make better use of SREG in conditional jumps

2024-08-29 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115830 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |15.0

[Bug rtl-optimization/116321] [lra][avr] internal compiler error: in avr_out_lpm_no_lpmx, at config/avr/avr.cc:4572

2024-08-29 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116321 --- Comment #7 from Georg-Johann Lay --- (In reply to GCC Commits from comment #6) > The PR is about an existing testcase that fails with LRA on m86k. > > gcc/ > PR middle-end/116321 > * lra-constraints.cc (g

[Bug rtl-optimization/116326] [lra] internal compiler error: in get_reload_reg, at lra-constraints.cc:755

2024-08-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116326 --- Comment #3 from Georg-Johann Lay --- (In reply to Richard Sandiford from comment #2) > This is caused by the final entry in ELIMINABLE_REGS: > > { FRAME_POINTER_REGNUM + 1, STACK_POINTER_REGNUM + 1 } > > I guess this was added to work ar

[Bug tree-optimization/116542] New: [avr] Missed post increment optimization

2024-08-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116542 Bug ID: 116542 Summary: [avr] Missed post increment optimization Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-op

[Bug rtl-optimization/116326] [lra] internal compiler error: in get_reload_reg, at lra-constraints.cc:755

2024-08-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116326 --- Comment #5 from Georg-Johann Lay --- (In reply to Richard Sandiford from comment #4) > (In reply to Georg-Johann Lay from comment #3) > > It was due to problems with multi-reg frame-pointer. (AFAIR, using a > > hard-frame-poiner besides fram

[Bug rtl-optimization/116326] [lra] internal compiler error: in get_reload_reg, at lra-constraints.cc:755

2024-08-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116326 --- Comment #7 from Georg-Johann Lay --- (In reply to Richard Sandiford from comment #6) > I don't think we should make any permanent changes to support this kind of > manipulation, since it's only needed during the transition. What about the fo

[Bug rtl-optimization/116326] [lra] internal compiler error: in get_reload_reg, at lra-constraints.cc:755

2024-08-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116326 --- Comment #9 from Georg-Johann Lay --- (In reply to Richard Sandiford from comment #8) > (In reply to Georg-Johann Lay from comment #7) > > What about the following line in reload1.h: > > > > // Used during roload -> LRA transition because EL

[Bug rtl-optimization/115523] [avr] Remove SFmode insns

2024-08-30 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115523 --- Comment #6 from Georg-Johann Lay --- As it appears, the test case gives resonable code now; but only for trunk. On v14, the code is still bloat.

[Bug rtl-optimization/116326] [lra] internal compiler error: in get_reload_reg, at lra-constraints.cc:755

2024-08-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116326 Georg-Johann Lay changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/116548] New: [avr] ivopts Introducing expensive loop condition

2024-08-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116548 Bug ID: 116548 Summary: [avr] ivopts Introducing expensive loop condition Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug rtl-optimization/116550] New: [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-08-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 Bug ID: 116550 Summary: [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: nor

[Bug target/113932] [meta-bug] Targets which should be ported to LRA

2024-09-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113932 Bug 113932 depends on bug 116321, which changed state. Bug 116321 Summary: [lra][avr] internal compiler error: in avr_out_lpm_no_lpmx, at config/avr/avr.cc:4572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116321 What|Removed

[Bug target/113934] Switch avr to LRA

2024-09-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113934 Bug 113934 depends on bug 116321, which changed state. Bug 116321 Summary: [lra][avr] internal compiler error: in avr_out_lpm_no_lpmx, at config/avr/avr.cc:4572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116321 What|Removed

[Bug rtl-optimization/116321] [lra][avr] internal compiler error: in avr_out_lpm_no_lpmx, at config/avr/avr.cc:4572

2024-09-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116321 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug middle-end/56183] [meta-bug][avr] Problems with register allocation

2024-09-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 116321, which changed state. Bug 116321 Summary: [lra][avr] internal compiler error: in avr_out_lpm_no_lpmx, at config/avr/avr.cc:4572 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116321 What|Removed

[Bug rtl-optimization/116550] [lra][avr] internal compiler error: in final_scan_insn_1, at final.cc:2807

2024-09-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116550 --- Comment #1 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #0) > This ICE is relatively new; I don't see it with "gcc version 15.0.0 > 20240818". So that's just a matter of options. The PR also occurs with 20240818 for

[Bug rtl-optimization/116326] [lra] internal compiler error: in get_reload_reg, at lra-constraints.cc:755

2024-09-11 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116326 --- Comment #11 from Georg-Johann Lay --- Created attachment 59099 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59099&action=edit Proposed patch https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662641.html reload1.cc: rtl-optim

[Bug rtl-optimization/90706] [10/11/12/13 Regression] Useless code generated for stack / register operations on AVR

2023-03-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90706 Georg-Johann Lay changed: What|Removed |Added Known to fail||10.0, 11.0, 12.0, 9.0 Sta

[Bug middle-end/56183] [meta-bug][avr] Problems with register allocation

2023-03-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56183 Bug 56183 depends on bug 90706, which changed state. Bug 90706 Summary: [10/11/12/13 Regression] Useless code generated for stack / register operations on AVR https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90706 What|Removed

[Bug target/109280] Very significant increase in code size (gcc-avr)

2023-04-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109280 --- Comment #3 from Georg-Johann Lay --- Could you check against avr-gcc v12.3 just to make sure you didn't hit PR90706 (which affects all versiond from v9 to v12.2).

[Bug target/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2023-04-20 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 Georg-Johann Lay changed: What|Removed |Added Last reconfirmed||2023-04-20 Ever confirmed|0

[Bug rtl-optimization/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2023-04-20 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 Georg-Johann Lay changed: What|Removed |Added Component|target |rtl-optimization --- Comment #15 fro

[Bug rtl-optimization/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2023-04-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 Georg-Johann Lay changed: What|Removed |Added Known to fail||13.1.0 CC|

[Bug rtl-optimization/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2023-04-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 Georg-Johann Lay changed: What|Removed |Added Attachment #53561|0 |1 is obsolete|

[Bug target/54816] [avr] shift is better than widening mul

2023-04-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54816 --- Comment #6 from Georg-Johann Lay --- (In reply to Roger Sayle from comment #5) > This is now fixed on mainline [but was present in GCC 12.2], and a new test > case added to ensure this stays fixed. Hi Roger, I am having a problem with your

[Bug rtl-optimization/105753] [avr] ICE: in add_clobbers, at config/avr/avr-dimode.md:2705

2023-04-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105753 --- Comment #18 from Georg-Johann Lay --- (In reply to User99627 from comment #14) > (In reply to fiesh from comment #13) > > * While you failed to provide anything meaningful to the bug report (your > > code snippet is not self-contained valid

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2023-04-24 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #

[Bug target/105523] Wrong warning array subscript [0] is outside array bounds

2023-04-25 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 --- Comment #29 from Georg-Johann Lay --- (In reply to David Brown from comment #20) > This is not an AVR backend issue - it is much wider than that. It is > perhaps reasonable to test a patch just on the AVR, but this needs to be > fixed in th

[Bug target/109650] avr-gcc incorrect code with -Os

2023-04-28 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109650 Georg-Johann Lay changed: What|Removed |Added CC||gjl at gcc dot gnu.org --- Comment #

[Bug target/109650] avr-gcc incorrect code with -Os

2023-04-28 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109650 Georg-Johann Lay changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug other/109650] avr-gcc incorrect code with -Os

2023-04-28 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109650 Georg-Johann Lay changed: What|Removed |Added Component|target |other --- Comment #4 from Georg-Joha

[Bug middle-end/109650] avr-gcc incorrect code with -Os

2023-04-29 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109650 --- Comment #5 from Georg-Johann Lay --- Created attachment 54956 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54956&action=edit pr109650-2.c: A simpler C test case without assembly. Again, this testcase triggers with avr-gcc -Os: type

[Bug middle-end/109650] avr-gcc incorrect code with -Os

2023-05-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109650 Georg-Johann Lay changed: What|Removed |Added CC||saaadhu at gcc dot gnu.org --- Comme

[Bug target/109650] avr-gcc incorrect code with -Os

2023-05-03 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109650 Georg-Johann Lay changed: What|Removed |Added Component|middle-end |target --- Comment #7 from Georg-Joh

[Bug c++/109731] New: g++ eveluates delete's expressio more than once

2023-05-04 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109731 Bug ID: 109731 Summary: g++ eveluates delete's expressio more than once Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug target/114752] New: AVR: internal compiler error. Unknown mode: const_double:DF

2024-04-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114752 Bug ID: 114752 Summary: AVR: internal compiler error. Unknown mode: const_double:DF Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: minor Pr

[Bug target/114752] AVR: internal compiler error. Unknown mode: const_double:DF

2024-04-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114752 Georg-Johann Lay changed: What|Removed |Added Priority|P3 |P5 Keywords|

[Bug target/114752] AVR: internal compiler error. Unknown mode: const_double:DF

2024-04-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114752 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |13.3 Resolution|---

[Bug tree-optimization/114779] New: __builtin_constant_p does not work in inline functions

2024-04-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114779 Bug ID: 114779 Summary: __builtin_constant_p does not work in inline functions Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug tree-optimization/114779] __builtin_constant_p does not work in inline functions

2024-04-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114779 --- Comment #2 from Georg-Johann Lay --- Notice that when &SFR is used directly in __builtin_constant_p without an inline function, then the code works as expected: int main (void) { if (__builtin_constant_p (& SFR)) __asm (".warnin

[Bug tree-optimization/114779] __builtin_constant_p does not work in inline functions

2024-04-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114779 --- Comment #4 from Georg-Johann Lay --- As far as I understand, & SFR has no side effects. But when it is used as argument to an (inline) function, then it does have side effects?

[Bug tree-optimization/114779] __builtin_constant_p does not work in inline functions

2024-04-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114779 --- Comment #6 from Georg-Johann Lay --- Recognizing more __builtin_constant_p situations is a good thing, IMO. It would allow to transition from macros to inline functions in such situations, for example in inline asm that has extra opcodes fo

[Bug tree-optimization/114779] __builtin_constant_p does not work in inline functions

2024-04-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114779 --- Comment #9 from Georg-Johann Lay --- When this PR won't be fixed, then maybe at least the documentation could clarify how to port macros to inline functions.

[Bug tree-optimization/114779] __builtin_constant_p does not work in inline functions

2024-04-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114779 Georg-Johann Lay changed: What|Removed |Added Keywords||documentation --- Comment #10 from G

[Bug target/114794] New: [avr] Speed up udivmodqi4

2024-04-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114794 Bug ID: 114794 Summary: [avr] Speed up udivmodqi4 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: target

[Bug target/114794] [avr] Speed up udivmodqi4

2024-04-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114794 Georg-Johann Lay changed: What|Removed |Added Keywords||missed-optimization Priori

[Bug target/114794] [avr] Speed up udivmodqi4

2024-04-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114794 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug ipa/92606] [11/12/13 Regression][avr] invalid merge of symbols in progmem and data sections

2024-05-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92606 --- Comment #36 from Georg-Johann Lay --- Installed a work-around for v14.2+, v13.3+ and v12.4+ The work-around can be reverted once a proper fix like PR92932 is available.

[Bug middle-end/114975] New: [AVR] Using popcounthi2 for 8-bit values despit popcountqi2

2024-05-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114975 Bug ID: 114975 Summary: [AVR] Using popcounthi2 for 8-bit values despit popcountqi2 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal P

[Bug target/114835] AVR popcountqi2 is not fast&small as can be

2024-05-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114835 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/114835] AVR popcountqi2 is not fast&small as can be

2024-05-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114835 --- Comment #3 from Georg-Johann Lay --- (In reply to Wolfgang Hospital from comment #0) > When establishing the "popcount" of an uint8_t, I've seen GCC to widen the > value to "half int" and use __popcountqi2 twice. This is a different issue,

[Bug target/114981] New: [avr] Improve powi implementation

2024-05-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114981 Bug ID: 114981 Summary: [avr] Improve powi implementation Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/114981] [avr] Improve powi implementation

2024-05-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114981 --- Comment #1 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #0) > ... due to PR11093 ... PR110093

[Bug target/114975] [AVR] Using popcounthi2 for 8-bit values despite popcountqi2

2024-05-08 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114975 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/114975] [AVR] Using popcounthi2 for 8-bit values despite popcountqi2

2024-05-09 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114975 Georg-Johann Lay changed: What|Removed |Added Target Milestone|15.0|14.2 --- Comment #6 from Georg-Johan

[Bug target/114981] [avr] Improve powi implementation

2024-05-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114981 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug target/115084] Missed optimization in division for AVR target, not using __*divmodpsi4

2024-05-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115084 --- Comment #3 from Georg-Johann Lay --- I don't see what the avr backend can do about it; it's rather a middle-end thing. And the middle-end would have to know that there is a 24-bit integral mode in the backend and that its division is prefer

[Bug rtl-optimization/90706] [10/11/12/13 Regression] Useless code generated for stack / register operations on AVR

2024-05-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90706 Georg-Johann Lay changed: What|Removed |Added Target Milestone|10.5|12.3

[Bug target/115065] AVR clz is not always fast as can be

2024-05-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115065 --- Comment #1 from Georg-Johann Lay --- IIUC, this is just about the timing of a branch, which in the general != 0 is currently taken (takes 2 ticks), but it's better to only take it in the non-common (= 0) case? So that the common case falls t

[Bug target/115065] AVR clz is not always fast as can be

2024-05-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115065 Georg-Johann Lay changed: What|Removed |Added Priority|P3 |P5 Severity|normal

[Bug middle-end/115307] New: [avr] Don't expand isinf() like a built-in

2024-05-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 Bug ID: 115307 Summary: [avr] Don't expand isinf() like a built-in Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middl

[Bug middle-end/115307] [avr] Don't expand isinf() like a built-in

2024-05-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 Georg-Johann Lay changed: What|Removed |Added Priority|P3 |P4

[Bug c/115311] New: -fno-builtin-xxx allowing anything for xxx

2024-05-31 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115311 Bug ID: 115311 Summary: -fno-builtin-xxx allowing anything for xxx Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #4 from Georg-Johann Lay --- The isinf part is fixied in v14.2+, but there is also isnan etc. which don't currently habe an optabs entry, so defining a failing expander won't work.

[Bug c/115311] -fno-builtin-xxx allowing anything for xxx

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115311 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 --- Comment #5 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > The issue is that we probably fold isinff early. On x86 I see already in > .original: > > return !(ABS_EXPR u<= 3.4028234663852885981170418348451692544e

[Bug target/115317] New: [avr] isinf should return -1 for -Inf

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 Bug ID: 115317 Summary: [avr] isinf should return -1 for -Inf Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/115317] [avr] isinf should return -1 for -Inf

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115317 Georg-Johann Lay changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/115307] [avr] Don't expand isinf() like a built-in

2024-06-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115307 Georg-Johann Lay changed: What|Removed |Added Priority|P4 |P3

[Bug c++/50755] [avr] ICE: tree check: expected class 'constant', have 'unary' (convert_expr)

2023-11-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50755 --- Comment #5 from Georg-Johann Lay --- (In reply to Roger Sayle from comment #4) > This appears to be fixed on mainline. At least the test case passes on newer versions. For a definite answer you'd have to bisect / find the patch that solved

[Bug target/53372] [avr] Section attribute ignored with address space

2023-11-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372 Georg-Johann Lay changed: What|Removed |Added Keywords||addr-space Target Milestone|---

[Bug target/86776] Avr port needs updating for CVE-2017-5753

2023-11-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86776 Georg-Johann Lay changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

<    1   2   3   4   5   6   >