[Bug target/115419] [avr] IEEE double round-to-nearest should go to even

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

[Bug target/115419] New: [avr] IEEE double round-to-nearest should go to even

2024-06-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115419 Bug ID: 115419 Summary: [avr] IEEE double round-to-nearest should go to even Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3

[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 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 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 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<=

[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 #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] 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 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 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:

[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 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

[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/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

[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/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

[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/114981] [avr] Improve powi implementation

2024-05-08 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/114981] New: [avr] Improve powi implementation

2024-05-08 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/114835] AVR popcountqi2 is not fast 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/114835] AVR popcountqi2 is not fast 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 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

[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 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

[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

[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 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

[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 --- 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

[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 #2 from Georg-Johann Lay --- Notice that when 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 (".warning

[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

[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 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] 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

[Bug target/114252] Introducing bswapsi reduces code performance

2024-03-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 --- Comment #14 from Georg-Johann Lay --- The code in the example is not a perfect bswap, it needs additional shuffling of bytes. The tree passes must know that bswap is not a perfect fit. There must be *some* criterion that depends on the

[Bug target/114252] Introducing bswapsi reduces code performance

2024-03-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 --- Comment #12 from Georg-Johann Lay --- (In reply to Richard Biener from comment #10) > I think the target controls the "libcall" ABI that's used for calls to > libgcc, You have a pointer how to do it or an example? IIRC I looked into it

[Bug target/114252] Introducing bswapsi reduces code performance

2024-03-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 --- Comment #9 from Georg-Johann Lay --- ...and I don't see why a register allocator would or should fix flaws from tree optimizers.

[Bug target/114252] Introducing bswapsi reduces code performance

2024-03-07 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 --- Comment #8 from Georg-Johann Lay --- (In reply to Richard Biener from comment #7) > Note I do understand what you are saying, just the middle-end in detecting > and using __builtin_bswap32 does what it does everywhere else - it checks >

[Bug target/114252] Introducing bswapsi reduces code performance

2024-03-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 --- Comment #5 from Georg-Johann Lay --- (In reply to Richard Biener from comment #4) > So bswap on a value is just register shuffling, right? The point is that there is no need for bswap in the first place, just have a look at the code that

[Bug target/114252] Introducing bswapsi reduces code performance

2024-03-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 --- Comment #3 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > but somehow we end up doing a libcall? It's not a libcall in the GCC sense, for the compiler it's just an ordinary insn. The backend then prints this as a

[Bug tree-optimization/114252] New: Introducing bswapsi reduces code performance

2024-03-06 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114252 Bug ID: 114252 Summary: Introducing bswapsi reduces code performance Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/81473] [avr] build fails due to INT8_MIN and friends.

2024-03-05 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81473 --- Comment #4 from Georg-Johann Lay --- This was fixed long ago.

[Bug rtl-optimization/114243] [avr] -fsplit-wide-types bloats code by more than 50%

2024-03-05 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114243 --- Comment #1 from Georg-Johann Lay --- May be related to PR110093. As Vladimir noted in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110093#c5 the problem is that data flow analysis cannot cope with the subregs generated from

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

2024-03-05 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90706 --- Comment #24 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #23) > As it appears, this bug is not fixed completely. For the -mmcu=avrtiny > architecture, there is still bloat for even the smallest test cases like:

[Bug rtl-optimization/114243] New: -fsplit-wide-types bloats code by more than 50%

2024-03-05 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114243 Bug ID: 114243 Summary: -fsplit-wide-types bloats code by more than 50% Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug rtl-optimization/114208] RTL DSE deletes a store that is not dead

2024-03-04 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114208 --- Comment #5 from Georg-Johann Lay --- (In reply to Richard Biener from comment #4) > Did it ever work? No. I allowed -mfuse-add=3 to reproduce this PR because there seems to be a problem with DSE, and for the case that someone is going to

[Bug other/114191] Flags "Warning" and "Target" don't mix well in target.opt files

2024-03-04 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114191 --- Comment #3 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > How did you specify 'Target'? Like: Wmisspelled-isr Target Warning C C++ Var(avr_warn_misspelled_isr) Init(1) Warn if the ISR is misspelled, ...

[Bug other/114191] Flags "Warning" and "Target" don't mix well in target.opt files

2024-03-04 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114191 --- Comment #2 from Georg-Johann Lay --- (In reply to Richard Biener from comment #1) > Wmisspelled-isr > Target C C++ Var(avr_warn_misspelled_isr) Init(1) > Warn if the ISR is misspelled, ... > > should eventually work? With that, the

[Bug rtl-optimization/114208] RTL DSE deletes a store that is not dead

2024-03-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114208 --- Comment #3 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #1) > I wonder if this is related to r14-6674-g4759383245ac97 . Seems unrelated: When I reverse-apply r14-6674 then the issue does not go away.

[Bug rtl-optimization/114208] RTL DSE deletes a store that is not dead

2024-03-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114208 --- Comment #2 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #1) > I wonder if this is related to r14-6674-g4759383245ac97 . Not unlikely. PR112525 tries to eliminate dead stores for arguments that are passed. It seems

[Bug rtl-optimization/114208] New: DSE deletes a store that is not dead

2024-03-02 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114208 Bug ID: 114208 Summary: DSE deletes a store that is not dead Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug other/114191] New: Flags "Warning" and "Target" don't mix well in target.opt files

2024-03-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114191 Bug ID: 114191 Summary: Flags "Warning" and "Target" don't mix well in target.opt files Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal

[Bug target/114100] [avr] Inefficient indirect addressing on Reduced Tiny

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

[Bug target/114132] [avr] Code sets up a frame pointer without need

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

[Bug target/114132] [avr] Code sets up a frame pointer without need

2024-02-27 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114132 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |14.0 Priority|P3

[Bug target/114132] New: [avr] Code sets up a frame pointer without need

2024-02-27 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114132 Bug ID: 114132 Summary: [avr] Code sets up a frame pointer without need Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug middle-end/114111] New: [avr] Expensive code instead of conditional branch.

2024-02-26 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114111 Bug ID: 114111 Summary: [avr] Expensive code instead of conditional branch. Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/114100] [avr] Inefficient indirect addressing on Reduced Tiny

2024-02-25 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114100 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |14.0 Priority|P3

[Bug target/114100] New: [avr] Inefficient indirect addressing on Reduced Tiny

2024-02-25 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114100 Bug ID: 114100 Summary: [avr] Inefficient indirect addressing on Reduced Tiny Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/97276] A whole if-block is ignored by avr-gcc 9.3.0

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

[Bug middle-end/113974] Attribute common ignored

2024-02-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113974 --- Comment #3 from Georg-Johann Lay --- Then the documentation should make that clear that with -fno-data-sections the object goes in COMM, but with -fdata-sections it does not and the attribute "common" is ignored. Better still, the compiler

[Bug other/113974] New: Attribute common ignored

2024-02-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113974 Bug ID: 113974 Summary: Attribute common ignored Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other

[Bug target/113934] Switch avr to LRA

2024-02-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113934 --- Comment #1 from Georg-Johann Lay --- What's the LRA way to do LEGITIMIZE_RELOAD_ADDRESS?

[Bug target/113927] [avr-tiny] Sets up a stack-frame even for trivial code

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

[Bug other/113927] New: [avr-tiny] Sets up a stack-frame even for trivial code

2024-02-15 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113927 Bug ID: 113927 Summary: [avr-tiny] Sets up a stack-frame even for trivial code Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

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

2024-02-12 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 Target Milestone|--- |13.3 --- Comment #37 from

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

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

[Bug target/113824] AVR: ATA5795 in wrong multilib set

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

[Bug target/113824] AVR: ATA5795 in wrong multilib set

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

[Bug target/113824] New: AVR: ATA5795 in wrong multilib set

2024-02-08 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113824 Bug ID: 113824 Summary: AVR: ATA5795 in wrong multilib set Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/112944] AVR: Support .rodata in Flash for Devices with FLMAP

2024-02-01 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112944 --- Comment #3 from Georg-Johann Lay --- See also the GCC v14 Release Notes: https://gcc.gnu.org/gcc-14/changes.html#avr

[Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209

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

[Bug target/113601] avr: Wrong SRAM start for ATmega3208 and ATmega3209

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

[Bug target/113601] New: avr: Wrong SRAM start for ATmega3208 and ATmega3209

2024-01-25 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113601 Bug ID: 113601 Summary: avr: Wrong SRAM start for ATmega3208 and ATmega3209 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug debug/113481] avr: internal compiler error in decompose, at rtl.h:2298

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113481 --- Comment #6 from Georg-Johann Lay --- This is as simple as it gets: void Afun5 (__uint24 num) { __asm volatile ("" :: "r" (num)); } void func (void) { Afun5 (0xcc); }

[Bug debug/113481] avr: internal compiler error in decompose, at rtl.h:2298

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113481 --- Comment #5 from Georg-Johann Lay --- Here is a somewhat reduced test: /* { dg-do run } */ /* { dg-options "-g -O2" } */ typedef __UINT8_TYPE__ uint8_t; typedef __uint24 uint24_t; #define BBB 23 #define INC 1 #define VAL 0xcc uint8_t

[Bug debug/113481] avr: internal compiler error in decompose, at rtl.h:2298

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113481 --- Comment #4 from Georg-Johann Lay --- What's strange is that it only occurs with -g.

[Bug debug/113481] [14 Regession] avr: internal compiler error in decompose, at rtl.h:2298

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113481 --- Comment #2 from Georg-Johann Lay --- It does not occur with avr-gcc-v13 -fchecking

[Bug debug/113480] [14 Regression] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480 --- Comment #3 from Georg-Johann Lay --- (In reply to Richard Biener from comment #2) > Does it fail with GCC 13 as well (if you add -fchecking)? Yes. And it goes away without -g.

[Bug debug/113481] [14 Regession] avr: internal compiler error in decompose, at rtl.h:2298

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113481 Georg-Johann Lay changed: What|Removed |Added Summary|avr: internal compiler |[14 Regession] avr:

[Bug debug/113481] New: avr: internal compiler error in decompose, at rtl.h:2298

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113481 Bug ID: 113481 Summary: avr: internal compiler error in decompose, at rtl.h:2298 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug debug/113480] [14 Regression] avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480 --- Comment #1 from Georg-Johann Lay --- The ICE actially goes away when I remove the __flash from the test case posted in comment #0.

[Bug debug/113480] New: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113480 Bug ID: 113480 Summary: avr: internal compiler error: in add_dwarf_attr, at dwarf2out.cc:4503 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/56442] postreload uses content of clobbered register

2024-01-18 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56442 --- Comment #4 from Georg-Johann Lay --- Maybe this is similar to PR101188.

[Bug target/113156] [11/12/13/14 Regression] AVR build broken due to ICE while compiling libgcc, started with r14-6201-gf0a90c7d7333fc

2024-01-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113156 --- Comment #17 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #11) > The patch is semi-correct Would you detail on this? What parts for a complete fix are (still) missing?

[Bug target/107201] [avr] -nodevicelib not working for devices -mmcu=avr...

2024-01-16 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107201 --- Comment #6 from Georg-Johann Lay --- As a work around, one can use an adjusted device-specs file with the avrlibc_devicelib removed. The spec looks like this: *avrlibc_devicelib: %{!nodevicelib:-lavr128da32}

[Bug target/107201] [avr] -nodevicelib not working for devices -mmcu=avr...

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

[Bug target/113156] [11/12/13/14 Regression] AVR build broken due to ICE while compiling libgcc, started with r14-6201-gf0a90c7d7333fc

2024-01-15 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113156 Georg-Johann Lay changed: What|Removed |Added Keywords||opt-attribute --- Comment #15 from

[Bug other/113399] New: -ffold-mem-offsets should not be a target option

2024-01-15 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113399 Bug ID: 113399 Summary: -ffold-mem-offsets should not be a target option Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component:

[Bug target/112944] AVR: Support .rodata in Flash for Devices with FLMAP

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

[Bug c/113387] New: __attribute__ does not mix with [[gnu:]]

2024-01-14 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113387 Bug ID: 113387 Summary: __attribute__ does not mix with [[gnu:]] Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug target/113156] [11/12/13/14 Regression] AVR build broken due to ICE while compiling libgcc, started with r14-6201-gf0a90c7d7333fc

2024-01-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113156 --- Comment #10 from Georg-Johann Lay --- -mdouble and -mlong-double are more complicated than other options because they depend on each other in way that (to my knowledge) cannot be described by option properties. For example, in -mdouble=64

[Bug target/113156] [11/12/13/14 Regression] AVR build broken due to ICE while compiling libgcc, started with r14-6201-gf0a90c7d7333fc

2024-01-10 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113156 --- Comment #8 from Georg-Johann Lay --- Is there as comprehensible explanation when option property "Save" is needed? The internals just state > Build the cl_target_option structure to hold a copy of the option, > add the functions

[Bug target/112952] avr: attribute address not working with -fdata-sections -fno-common

2024-01-08 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112952 --- Comment #6 from Georg-Johann Lay --- Also fixed on the v12 branch for v12.4+

[Bug target/112952] avr: attribute address not working with -fdata-sections -fno-common

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

[Bug tree-optimization/102725] -fno-builtin leads to call of strlen since r12-4283-g6f966f06146be768

2023-12-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102725 --- Comment #12 from Georg-Johann Lay --- (In reply to Andrew Pinski from comment #1) > You need -fno-tree-loop-distribution -fno-tree-loop-distribute-patterns to > turn it off. There is another older bug about this for memcpy. This is also a

[Bug tree-optimization/113049] Compiles to strlen even with -fno-builtin-strlen -fno-optimize-strlen

2023-12-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113049 --- Comment #7 from Georg-Johann Lay --- (In reply to Andreas Schwab from comment #6) > That's what -fno-tree-loop-distribute-patterns is for. So you know the GCC sources and can draw that conclusion. The documentation of

[Bug tree-optimization/113049] Compiles to strlen even with -fno-builtin-strlen -fno-optimize-strlen

2023-12-17 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113049 --- Comment #5 from Georg-Johann Lay --- (In reply to Andreas Schwab from comment #4) > -fno-builtin-strlen has a different purpose. So then -fno-builtin should also not work? GCC documentation of -fno-builtin is the same like for

  1   2   3   >