[Ada] Unix Epochalypse (s-osprim.adb)

Pierre-Marie de Rodat derodat@adacore.com
Tue Jul 6 14:48:17 GMT 2021


System.OS_Primitives in libgnat for VxWorks imports Ssystem.OS_Interface
in libgnarl, creating a dependency on libgnarl by libgnat. This works as
long as the functions being referenced in OS_Primitives were pragma
imported functions from the kernel, but this is no longer the case with
a selectable time_t size.  Rather than port yet another package, we
switch to s-osprim__posix.adb which works out-of-the-box for vxworks7r2,
the only release currently supported on wavefront.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* Makefile.rtl (LIBGNAT_TARGET_PAIRS): Use s-osprim__posix.adb
	vice s-osprim__vxworks.adb for all vxworks7r2 targets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1574 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210706/3ad04adb/attachment-0001.bin>


More information about the Gcc-patches mailing list