public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/104354] [12 regression] internal error with Partition_Elaboration_Policy (Sequential)
Date: Tue, 09 Jan 2024 12:27:11 +0000	[thread overview]
Message-ID: <bug-104354-4-OyvCbWPu7S@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104354-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104354

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:5b17c2c6cbc34056ae878beed2351bf77a8f57a0

commit r12-10087-g5b17c2c6cbc34056ae878beed2351bf77a8f57a0
Author: Steve Baird <baird@adacore.com>
Date:   Wed Nov 16 09:28:22 2022 -0800

    Fix nternal compiler error for Sequential Partition_Elaboration_Policy

    In some cases, compilation of a function with a limited class-wide result
    type could fail with an ICE if a Sequential Partition_Elaboration_Policy is
    specified. To prevent this, we really want that specifying a Sequential
    Partition_Elaboration_Policy to have the side effect of imposing a
    No_Task_Hierarchy restriction. But doing that in a straightforward
    way leads to problems with incorrectly accepting violations of H.6(6).
    So a new restriction, No_Task_Hierarchy_Implicit, is introduced.

    gcc/ada/
            PR ada/104354
            * libgnat/s-rident.ads: Define a new restriction,
            No_Task_Hierarchy_Implicit. This is like the No_Task_Hierarchy
            restriction, but with the difference that setting this restriction
            does not mean the H.6(6) post-compilation check is satisified.
            * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): If it is
            known that the function result cannot have tasks, then pass in a
            null literal for the activation chain actual parameter. This
            avoids generating a reference to an entity that
            Build_Activation_Chain_Entity may have chosen not to generate a
            declaration for.
            * gnatbind.adb (List_Applicable_Restrictions): Do not list the
            No_Task_Hierarchy_Implicit restriction.
            * restrict.adb: Special treatment for the
            No_Task_Hierarchy_Implicit restriction in functions
            Get_Restriction_Id and Restriction_Active. The former is needed to
            disallow the (unlikely) case that a user tries to explicitly
            reference the No_Task_Hierarchy_Implicit restriction.
            * sem_prag.adb (Analyze_Pragma): If a Sequential
            Partition_Elaboration_Policy is specified (and the
            No_Task_Hierarchy restriction is not already enabled), then enable
            the No_Task_Hierarchy_Implicit restriction.

  parent reply	other threads:[~2024-01-09 12:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-02 20:43 [Bug ada/104354] New: ICE " simon at pushface dot org
2022-02-02 20:47 ` [Bug ada/104354] " simon at pushface dot org
2024-01-09 10:57 ` ebotcazou at gcc dot gnu.org
2024-01-09 11:51 ` simon at pushface dot org
2024-01-09 12:13 ` [Bug ada/104354] [12 regression] internal error " ebotcazou at gcc dot gnu.org
2024-01-09 12:27 ` cvs-commit at gcc dot gnu.org [this message]
2024-01-09 12:27 ` ebotcazou at gcc dot gnu.org

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=bug-104354-4-OyvCbWPu7S@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).