This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] Do not enable atomic primitives on Power/Darwin 32-bit
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 05 Dec 2016 12:15:32 +0100
- Subject: [Ada] Do not enable atomic primitives on Power/Darwin 32-bit
- Authentication-results: sourceware.org; auth=none
Iain Sandoe privately reported that the overhaul of the system files had
broken the Ada compiler on Power/Darwin 32-bit. Applied on the mainline.
2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
* system-darwin-ppc.ads (Support_Atomic_Primitives): Set to True only
if the word size is 64.
--
Eric Botcazou
Index: system-darwin-ppc.ads
===================================================================
--- system-darwin-ppc.ads (revision 243172)
+++ system-darwin-ppc.ads (working copy)
@@ -161,7 +161,7 @@ private
Stack_Check_Probes : constant Boolean := False;
Stack_Check_Limits : constant Boolean := False;
Support_Aggregates : constant Boolean := True;
- Support_Atomic_Primitives : constant Boolean := True;
+ Support_Atomic_Primitives : constant Boolean := Word_Size = 64;
Support_Composite_Assign : constant Boolean := True;
Support_Composite_Compare : constant Boolean := True;
Support_Long_Shifts : constant Boolean := True;