From patchwork Mon Jun 12 11:29:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 774544 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 3wmVzg6BnWz9s3w for ; Mon, 12 Jun 2017 21:29:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="DAzEkpKc"; 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 :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=T2jAldqzWyrT7Zab +bPHpoAX8azmkglda0wbZ9NQGkIs48Q04AwjjxO9ThS76JvVMYUkWzwmQLkl1P/t WRUK7ZcH3dbYIAr0tiy1XWA9DJ3jVl3aDtIB28pJKcU9LxTnBDxmx06+QAtvDIzm MmuP61SBeIx/cuQTwtPRm7SkMMA= 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 :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=CbN+yUySmKzPyJJBEOmM5m pKpAM=; b=DAzEkpKclyALE9P8NU7pgOGY6sXmY/hIH+7X+j5zFQDUEjpnTrY+fW IFEiK7caSWVF5F7rxY3pghgw9AnC8AaraI/ECBMPByQTgruUfI7J+R21WcZwYMkt rL/fbcu8x/Z5tZZK1f0+6sK6Jkc4yefpwjMTtrB5dTbhLb4nL164Q= Received: (qmail 2630 invoked by alias); 12 Jun 2017 11:29:15 -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 2552 invoked by uid 89); 12 Jun 2017 11:29:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=delicate, H*MI:polaris X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Jun 2017 11:29:13 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id BA0658134F for ; Mon, 12 Jun 2017 13:29:14 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JHIoGc4Zo15a for ; Mon, 12 Jun 2017 13:29:14 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 96FB48133E for ; Mon, 12 Jun 2017 13:29:14 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Apply workaround for PR bootstrap/80897 Date: Mon, 12 Jun 2017 13:29:14 +0200 Message-ID: <2094906.5CVu2JoCOU@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-53-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 This is the build failure of the Ada runtime on SPARC64/Linux, caused by a miscompilation of the Ada front-end at -O2 or above. The symptom is exactly the same as that of PR middle-end/44993, which was a similar build failure, although the root cause is slightly different. It's delicate stuff in the middle-end so I'm applying a trivial workaround to the Ada front-end to unbreak the build and I'll create a testcase separately. Boostrapped/regtested on SPARC64/Linux, applied on the mainline. 2017-06-12 Eric Botcazou PR bootstrap/80897 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Use Positive index. Index: exp_ch3.adb =================================================================== --- exp_ch3.adb (revision 249091) +++ exp_ch3.adb (working copy) @@ -9216,7 +9216,7 @@ package body Exp_Ch3 is declare Stream_Op_TSS_Names : - constant array (Integer range <>) of TSS_Name_Type := + constant array (Positive range <>) of TSS_Name_Type := (TSS_Stream_Read, TSS_Stream_Write, TSS_Stream_Input,