Ada, libgnarl: Fix Ada bootstrap for Darwin.

Message ID 20250916070028.26931-1-iain@sandoe.co.uk
State Committed
Commit f94a461641b9415c29fb58779ec5f82759626d77
Headers
Series Ada, libgnarl: Fix Ada bootstrap for Darwin. |

Commit Message

Iain Sandoe Sept. 16, 2025, 7 a.m. UTC
  Tested on x86_64-darwin, OK for trunk?
thanks, Iain

--- 8< ---

Recent changes to Ada have produced a new diagnostic:
s-osinte.adb:34:18: warning: unit "Interfaces.C.Extensions"...
which causes a bootstrap fail on Darwin when Ada is enabled.

Fixed thus.

gcc/ada/ChangeLog:

	* libgnarl/s-osinte__darwin.adb: Ensure that
	Interfaces.C is referenced.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
 gcc/ada/libgnarl/s-osinte__darwin.adb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Comments

Eric Botcazou Sept. 16, 2025, 7:13 a.m. UTC | #1
> Tested on x86_64-darwin, OK for trunk?

Sure, thanks for fixing it, but...

> 
> --- 8< ---
> 
> Recent changes to Ada have produced a new diagnostic:
> s-osinte.adb:34:18: warning: unit "Interfaces.C.Extensions"...
> which causes a bootstrap fail on Darwin when Ada is enabled.
> 
> Fixed thus.
> 
> gcc/ada/ChangeLog:
> 
> 	* libgnarl/s-osinte__darwin.adb: Ensure that
> 	Interfaces.C is referenced.

Please add PR ada/114065 above the line and "and remove clause for 
Interfaces.C.Extensions" at the end.
  

Patch

diff --git a/gcc/ada/libgnarl/s-osinte__darwin.adb b/gcc/ada/libgnarl/s-osinte__darwin.adb
index eeafbdbef8f..955db064b77 100644
--- a/gcc/ada/libgnarl/s-osinte__darwin.adb
+++ b/gcc/ada/libgnarl/s-osinte__darwin.adb
@@ -31,10 +31,9 @@ 
 
 --  This is a Darwin Threads version of this package
 
-with Interfaces.C.Extensions;
+with Interfaces.C; use Interfaces.C;
 
 package body System.OS_Interface is
-   use Interfaces.C;
 
    ------------------------
    -- To_Target_Priority --