]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Enable support for atomic primitives on SPARC/Linux
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 11 Oct 2022 22:38:04 +0000 (00:38 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 11 Oct 2022 22:40:05 +0000 (00:40 +0200)
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)

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

gcc/ada/libgnat/system-linux-sparc.ads

index cc502da3e5b3b3d04515c8affae70413bdd17eeb..6d4ee380b2d80f04065e0a43e8df36e0063e6fa2 100644 (file)
@@ -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;