[Bug middle-end/118554] Allow to specify the size of an inline asm

2025-01-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118554 --- Comment #2 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #1) > That already is handled by the inline keyword. > so `__asm inline("" : "+r" (var));` But that's /only/ for inlining, where a "minimal" size is assumed -- what

[Bug rtl-optimization/56479] [lra][avr] Register allocator can't allocate two 4-byte variables into 8 registers for inline asm

2025-01-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56479 Georg-Johann Lay changed: What|Removed |Added Summary|Register allocator can't|[lra][avr] Register

[Bug ipa/117546] [14 regression] Different (and incorrect) behavior when compiling C code with -O2

2025-01-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117546 --- Comment #16 from Georg-Johann Lay --- Ok. Thanks for the pointer (though int32plus should be enough).

[Bug rtl-optimization/118591] [lra][avr] Wrong code with -mlra in pr43879-3.c

2025-01-22 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118591 --- Comment #3 from Georg-Johann Lay --- Created attachment 60238 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60238&action=edit C99 test case that fails on ordinary AVRs (not avrtiny) This test case fails on ordinary AVRs like -mmcu=at

[Bug rtl-optimization/118591] [lra][avr] Wrong code with -mlra in pr43879-3.c

2025-01-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118591 --- Comment #2 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #1) > Created attachment 60230 [details] > reduced C99 test case In that test case: __attribute__((noipa)) void func2 (long a, long b) { static unsigned char

[Bug rtl-optimization/118591] New: [lra][avr] Wrong code with -mlra in pr43879-3.c

2025-01-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118591 Bug ID: 118591 Summary: [lra][avr] Wrong code with -mlra in pr43879-3.c Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug middle-end/118012] [avr][13/14/15 Regression] Expensive code (bit extract + extend + neg + and) instead of bit test

2025-01-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118012 --- Comment #17 from Georg-Johann Lay --- (In reply to GCC Commits from comment #16) > AVR: PR118012 - Try to work around sick code from match.pd. The patch above just tries to work around PR118012 / PR118360. It is by no means a proper fix

[Bug middle-end/118360] [avr] Expensive shift instead of bit test

2025-01-23 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118360 --- Comment #5 from Georg-Johann Lay --- (In reply to GCC Commits from comment #4) > AVR: PR118012 - Try to work around sick code from match.pd. The patch above just tries to work around PR118012 / PR118360. It is by no means a proper fix,

[Bug rtl-optimization/118591] [lra][avr] Wrong code with -mlra in pr43879-3.c

2025-01-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118591 --- Comment #1 from Georg-Johann Lay --- Created attachment 60230 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60230&action=edit reduced C99 test case Here is a reduced test case that fails with -mlra -mmcu=attiny40 for any optimization

[Bug ipa/117546] [14 regression] Different (and incorrect) behavior when compiling C code with -O2

2025-01-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117546 --- Comment #14 from Georg-Johann Lay --- (In reply to GCC Commits from comment #12) > * gcc.dg/torture/pr117546.c: New test. That test fails on AVR. Does it assume that int is a 32-bit type or what? Unfortunately the test is just

[Bug tree-optimization/115825] [12/13/14 Regression] Loop unrolling increases code size with -Os

2025-01-13 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115825 --- Comment #19 from Georg-Johann Lay --- (In reply to Segher Boessenkool from comment #18) > A single insn (always 4 bytes) is too much?!? Maybe a small test case might help to show the issue.

[Bug middle-end/118360] [avr] Expensive shift instead of bit test

2025-01-09 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118360 --- Comment #3 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #2) > Zeroone*b could be expanded also as zeroone?b:0. Though that's only half of the story and would x = zeroone ? b : 0; c ^= x; instead of if (zeroone & 1)

[Bug target/118329] avr defines __int24 but doesn't define __GLIBCXX_TYPE_INT_N_0

2025-01-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118329 Georg-Johann Lay changed: What|Removed |Added Target Milestone|15.0|14.3 --- Comment #14 from Georg-Joha

[Bug target/118329] avr defines __int24 but doesn't define __GLIBCXX_TYPE_INT_N_0

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

[Bug rtl-optimization/118591] [lra][avr] Wrong code with -mlra in pr43879-3.c

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

[Bug target/118806] [avr] Optimize running main (-mo-call-main)

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

[Bug other/118878] [ice][avr] internal compiler error: in avr_out_plus_1, at config/avr/avr.cc:8801

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

[Bug other/118878] New: [ice][avr] internal compiler error: in avr_out_plus_1, at config/avr/avr.cc:8801

2025-02-14 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118878 Bug ID: 118878 Summary: [ice][avr] internal compiler error: in avr_out_plus_1, at config/avr/avr.cc:8801 Product: gcc Version: 15.0 Status: UNCONFIRMED Severit

[Bug other/118878] [ice][avr] internal compiler error: in avr_out_plus_1, at config/avr/avr.cc:8801

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

[Bug target/118880] bug 81268, which was supposedly fixed with gcc v8 is still present

2025-02-15 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118880 Georg-Johann Lay changed: What|Removed |Added Last reconfirmed||2025-02-15 Status|UNCONF

[Bug middle-end/118889] New: attribute "common" ignored with -fdata-sections

2025-02-15 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118889 Bug ID: 118889 Summary: attribute "common" ignored with -fdata-sections Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/118880] bug 81268, which was supposedly fixed with gcc v8 is still present

2025-02-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118880 Georg-Johann Lay changed: What|Removed |Added Keywords|documentation, needs-source |missed-optimization Resoluti

[Bug target/115817] [AVR] Suboptimal code for zeroing SRAM byte from ISR

2025-02-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115817 Georg-Johann Lay changed: What|Removed |Added CC||ul...@t-online.de --- Comment #7 fro

[Bug target/115817] [AVR] Suboptimal code for zeroing SRAM byte from ISR

2025-02-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115817 --- Comment #8 from Georg-Johann Lay --- See https://sourceware.org/bugzilla/show_bug.cgi?id=32704

[Bug target/118880] bug 81268, which was supposedly fixed with gcc v8 is still present

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

[Bug middle-end/118889] attribute "common" ignored with -fdata-sections

2025-02-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118889 --- Comment #2 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > I think variables with 'static' linkage cannot be 'common'? Shouldn't they go into .lcomm, i.e. lcomm_section? What I am trying to achieve is to implement

[Bug target/115817] [AVR] Suboptimal code for zeroing SRAM byte from ISR

2025-02-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115817 --- Comment #9 from Georg-Johann Lay --- What can be used as a kind of work-around (and may be even better than the code with improved Binutils as proposed above), is to hide the value of 0 from the compiler: volatile uint8_t var; __attribute(

[Bug rtl-optimization/101188] [12/13 Regression] [postreload] Uses content of a clobbered register

2025-02-21 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101188 --- Comment #21 from Georg-Johann Lay --- Back then, the patch has been reopened so it won't be forgotten for backporting. https://gcc.gnu.org/pipermail/gcc/2024-February/243300.html As is seems, no backport will happen?

[Bug middle-end/118889] attribute "common" ignored with -fdata-sections

2025-02-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118889 --- Comment #4 from Georg-Johann Lay --- (In reply to rguent...@suse.de from comment #3) > On Mon, 17 Feb 2025, gjl at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118889 > > --- Comment #2 from Georg-Johann Lay --- >

[Bug middle-end/118889] attribute "common" ignored with -fdata-sections

2025-02-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118889 --- Comment #5 from Georg-Johann Lay --- ...the respective part of varasm.cc reads: get_variable_section (tree decl, bool prefer_noswitch_p) { ... if (ADDR_SPACE_GENERIC_P (as) && !DECL_THREAD_LOCAL_P (decl) && !DECL_NOINIT_P (

[Bug target/119077] gcc option -mint8 leads to undefined reference to `__builtin_avr_delay_cycles'

2025-03-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119077 Georg-Johann Lay changed: What|Removed |Added Last reconfirmed||2025-03-02 Keywords|

[Bug tree-optimization/119086] New: __builtin_constant_p is missing opportunities

2025-03-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119086 Bug ID: 119086 Summary: __builtin_constant_p is missing opportunities Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tr

[Bug tree-optimization/119086] __builtin_constant_p is missing opportunities

2025-03-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119086 --- Comment #3 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #2) > See pr 26724 and others. > > *** This bug has been marked as a duplicate of bug 26724 *** Thanks for the pointer. Would you explain how that can be used for

[Bug target/115817] [AVR] Suboptimal code for zeroing SRAM byte from ISR

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

[Bug target/119077] gcc option -mint8 leads to undefined reference to `__builtin_avr_delay_cycles'

2025-03-08 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119077 --- Comment #6 from Georg-Johann Lay --- Still 2 issues: * Your are configuring the compiler in a way not supported by GCC (see my note above). * Pre-processed files are still missing. You can get the i files with -save-temps -g3. With -g3, t

[Bug target/119077] gcc option -mint8 leads to undefined reference to `__builtin_avr_delay_cycles'

2025-03-08 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119077 --- Comment #7 from Georg-Johann Lay --- ...I can reproduce it with the following test case and v13: #include extern void __builtin_avr_delay_cycles (uint32_t); #include int main(void) { _delay_ms(100); } So the likely cause is that A

[Bug target/119225] avr-mmcu.texi:15: warning: @anchor should not appear on @item line

2025-03-12 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119225 --- Comment #1 from Georg-Johann Lay --- This is a texinfo bug that has been fixed. Please leave the anchors where they are, they are correct and external links rely on them. See also https://lists.gnu.org/archive/html/help-texinfo/2024-03/msg

[Bug target/119225] avr-mmcu.texi:15: warning: @anchor should not appear on @item line

2025-03-12 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119225 --- Comment #2 from Georg-Johann Lay --- This is the texinfo commit that fixed the issue: https://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=f536711c6286a974798affb366d1ba0cc72fa16e

<    1   2   3   4   5   6