https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
--- Comment #21 from David Brown <david at westcontrol dot com> --- (In reply to Andrew Pinski from comment #1) > --param=min-pagesize= should be set to 0 for avr as zero is a valid address. Is there any convenient description of "min-pagesize" ? The user manual is unhelpful: "Minimum page size for warning purposes." Your comment here suggests it is connected to whether zero is a valid address or not, which does not sound at all related to the issue here. (But you are correct that for the AVR, and many embedded systems, accessing memory at address zero is valid.) Testing (on godbolt) shows that setting "--param=min-pagesize=0" does stop this warning triggering. But this is an issue that affects all systems for which the user might want to convert a fixed value to an address - i.e., all embedded systems, and perhaps device drivers or other low-level code on bigger systems. Is setting "min-pagesize" to 0 actually a fix, or is it a workaround, and will it have other effects on static warning checks and/or code generation? A workaround is, of course, helpful - especially since this can be added to peoples CFLAGS list.