[Ada] Delete bogus use of flag_zero_initialized_in_bss

Arnaud Charlet charlet@adacore.com
Tue Mar 16 09:34:00 GMT 2010


>> Yes, that's precisely why the flag needs to be cleared: uninitialized really
>> means uninitialized in Ada so the BSS section isn't guaranteed to be zero-ed
>> at startup for a pure Ada program.
>
> on most systems (such as linux) it is the O/S that takes care of ensuring the
> BSS section is filled with zeros, so I don't see how being an Ada program is
> relevant.

Not all systems behave this way, and not all systems are Linux systems, in
particular embedded systems. The patch is indeed not OK.

BTW for the future, you forgot to include a proper ChangeLog for your
patch.

Arno



More information about the Gcc-patches mailing list