[Ada] Revert "Global => null" on calendar routines that use timezones
Pierre-Marie de Rodat
derodat@adacore.com
Mon Jul 1 13:38:00 GMT 2019
Some routines from the Ada.Calendar package, i.e. Year, Month, Day,
Split and Time_Off, rely on OS-specific timezone databases that are kept
in files (e.g. /etc/localtime on Linux). In SPARK we want to model this
as a potential side-effect, so those routines can't have "Global =>
null".
Tested on x86_64-pc-linux-gnu, committed on trunk
2019-07-01 Piotr Trojanek <trojanek@adacore.com>
gcc/ada/
* libgnat/a-calend.ads: Revert "Global => null" contracts on
non-pure routines.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1910 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190701/183abfab/attachment.bin>
More information about the Gcc-patches
mailing list