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

ahmad at a3f dot at gcc-bugzilla@gcc.gnu.org
Wed Dec 7 06:32:50 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523

Ahmad Fatoum <ahmad at a3f dot at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmad at a3f dot at

--- Comment #14 from Ahmad Fatoum <ahmad at a3f dot at> ---
Does param=min-pagesize=0 solely influence warnings or could it now or in the
future affect code generation/optimization?

I ask because barebox (https://barebox.org) also has this problem as on i.MX8,
where it calls into ROM code, which starts at address 0. After that's done, it
maps the NULL page there and normal accesses are unexpected. So if it's just
about the warning, I'd prefer hiding pointer value via a compiler barrier where
appliable instead of disabling the warning altogether.


More information about the Gcc-bugs mailing list