From patchwork Sun Mar 29 18:37:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 455919 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0A11C1400A0 for ; Mon, 30 Mar 2015 05:37:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=D68OBox5; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; q=dns; s=default; b=O8WFoFjehwUZT9kXPqb3pf0 KVG3wRVVC9INXTgue9sLDW5yDVuTzsSnNN9GOkNrjA8JnvNpJZmMqK3Tt908O8cw DrAyxrV7fU+0qrHre9ngyWAuFdncFoLBz2J4P3qXSDt/IHpUUDvWuXHkyagV/iaf a+QvLWU6+II7wYNY96QA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; s=default; bh=eCSxZTpdEyNxqVqPgoO1sUouCFA=; b= D68OBox51XHTINBFUBPN1+LGHI4+N5sXhbLJ6maiuSAiHGxuiGPCEfsiKuM36J85 4Qk0qlujnMvVtk9OL6TE+lVcUE6t7uOLq8VjzYHKFpbStWhziSgNajtep2WGw/uN 3abyv0XlGOIlsxThOIDhzTTHmI+pvuPX0nJgGixha+g= Received: (qmail 51246 invoked by alias); 29 Mar 2015 18:37:46 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 51233 invoked by uid 89); 29 Mar 2015 18:37:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 Mar 2015 18:37:44 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YcI5c-000325-0m from Iain_Sandoe@mentor.com ; Sun, 29 Mar 2015 11:37:40 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-03.mgc.mentorg.com (137.202.0.108) with Microsoft SMTP Server id 14.3.224.2; Sun, 29 Mar 2015 19:37:38 +0100 From: Iain Sandoe Subject: [PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk. Date: Sun, 29 Mar 2015 19:37:35 +0100 Message-ID: CC: Gcc Patch List , Tristan Gingold , Dominique Dhumieres To: Arnaud Charlet MIME-Version: 1.0 (Apple Message framework v1283) Hi Arnaud, Currently Ada bootstrap is broken for bootstrap compiler == gcc-trunk, and platform == powerpc-darwin9 (although it is possible to bootstrap with gcc-4.9). The reason is that generations of sinfo.h appears now to _require_ support for atomics (I assume that's intended). In fact, w.r.t atomics there's no need to treat powerpc-darwin any differently from other ppc platform. The patch below enables them which restores bootstrap and fixes 15 acts and 8 gnat regressions (which essentially, leaves GCC trunk on parity with gcc-4.9 for Ada on the powerpc-darwin9 platform). This is a bootstrap fail, albeit for an unmentioned target - however, it is entirely local to the platform, so OK for trunk? Iain Tested on powerpc-darwin9, x86_86-darwin12 and x86_64-darwin12 X powerpc-darwin9 (and by Dominique too, thanks!). gcc/ada: * gcc-interface/Makefile.in (darwin, powerpc): Enable atomics. diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 60c1b5b..ecc443e 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -2321,7 +2321,9 @@ ifeq ($(strip $(filter-out darwin%,$(target_os))),) s-intman.adb