public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@adacore.com>
To: gcc-patches@gcc.gnu.org
Subject: Apply workaround for PR bootstrap/80897
Date: Mon, 12 Jun 2017 11:29:00 -0000	[thread overview]
Message-ID: <2094906.5CVu2JoCOU@polaris> (raw)

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

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  <ebotcazou@adacore.com>

	PR bootstrap/80897
	* exp_ch3.adb (Make_Predefined_Primitive_Specs): Use Positive index.

-- 
Eric Botcazou

[-- Attachment #2: pr80897.diff --]
[-- Type: text/x-patch, Size: 478 bytes --]

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,

                 reply	other threads:[~2017-06-12 11:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2094906.5CVu2JoCOU@polaris \
    --to=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).