https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121277
Bug ID: 121277 Summary: [avr] Wrong code for (const __flashx char*) NULL Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Upcasting the NULL pointer to const __flashx* will load 0x800000 since avr.cc uses the same logic like for __memx. Since __flashx doesn't cover generic space, this behaviour is wrong (confusing at least).