[Ada] Enable support for atomic primitives on SPARC/Linux

Message ID 2257020.ElGaqSPkdT@fomalhaut
State New, archived
Headers
Series [Ada] Enable support for atomic primitives on SPARC/Linux |

Commit Message

Eric Botcazou Oct. 11, 2022, 10:42 p.m. UTC
  The SPARC/Linux port is very similar to the SPARC/Solaris port nowadays so it 
makes sense to copy the setting of the support for atomic primitives.

This fixes the single regression in the gnat.dg testsuite:
FAIL: gnat.dg/prot7.adb (test for excess errors)

Tested on SPARC64/Linux, applied on the mainline.


2022-10-11  Eric Botcazou  <ebotcazou@adacore.com>

	* libgnat/system-linux-sparc.ads (Support_Atomic_Primitives): New
	constant set to True.
  

Patch

diff --git a/gcc/ada/libgnat/system-linux-sparc.ads b/gcc/ada/libgnat/system-linux-sparc.ads
index cc502da3e5b..6d4ee380b2d 100644
--- a/gcc/ada/libgnat/system-linux-sparc.ads
+++ b/gcc/ada/libgnat/system-linux-sparc.ads
@@ -133,6 +133,7 @@  private
    Stack_Check_Probes        : constant Boolean := True;
    Stack_Check_Limits        : constant Boolean := False;
    Support_Aggregates        : constant Boolean := True;
+   Support_Atomic_Primitives : constant Boolean := True;
    Support_Composite_Assign  : constant Boolean := True;
    Support_Composite_Compare : constant Boolean := True;
    Support_Long_Shifts       : constant Boolean := True;