head 1.2; access; symbols pkgsrc-2025Q3:1.1.0.4 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.2 pkgsrc-2025Q2-base:1.1; locks; strict; comment @-- @; 1.2 date 2025.10.18.05.31.22; author dkazankov; state dead; branches; next 1.1; commitid DQ6enTFTzAenM0fG; 1.1 date 2025.04.25.19.35.10; author dkazankov; state Exp; branches; next ; commitid UNL0eZmaL4DA6tSF; desc @@ 1.2 log @gcc14-gnat: migrate to new bootstrap, some patch and option changes * Update common patches from gcc14. * Move conditional NetBSD specific Ada patches to SUBST framework. * Default math now use inplace option. * GCC's inplace graphite changed to distribution downloading variant. * NetBSD builds migrated to the new bootstrap compiler. Other platforms uses old build with gcc10-aux package which still doesn't work. @ text @$NetBSD: patch-gcc_ada_libgnat_s-osprim____posix.adb,v 1.1 2025/04/25 19:35:10 dkazankov Exp $ Use C preprocessed symbols. --- gcc/ada/libgnat/s-osprim__posix.adb.orig 2024-05-21 10:47:38.000000000 +0300 +++ gcc/ada/libgnat/s-osprim__posix.adb @@@@ -49,7 +49,7 @@@@ pragma Convention (C, timespec); function nanosleep (rqtp, rmtp : not null access timespec) return Integer; - pragma Import (C, nanosleep, "nanosleep"); + pragma Import (C, nanosleep, "__gnat_nanosleep"); ----------- -- Clock -- @@@@ -79,7 +79,7 @@@@ function gettimeofday (Tv : access timeval; Tz : System.Address := System.Null_Address) return Integer; - pragma Import (C, gettimeofday, "gettimeofday"); + pragma Import (C, gettimeofday, "__gnat_gettimeofday"); begin -- The return codes for gettimeofday are as follows (from man pages): @ 1.1 log @lang/gcc14-gnat*: add new packages for GCC GNAT 14 @ text @d1 1 a1 1 $NetBSD: patch-gcc_ada_libgnat_s-osprim____posix.adb,v 1.1 2024/03/08 12:02:33 wiz Exp $ @