http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60084

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I get the following warning:
./startup/ROMCopy.c:15:9: warning: array ‘__S_romp’ assumed to have one element
[enabled by default]

So the code is invalid and undefined.   Writing past the bounds of an array is
undefined.

If I add extern to the definition of RomInfo, I get the correct behavior.

Reply via email to