public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5029] [Ada] Refine type in expansion of array equality Date: Tue, 9 Nov 2021 09:46:35 +0000 (GMT) [thread overview] Message-ID: <20211109094635.E73683858422@sourceware.org> (raw) https://gcc.gnu.org/g:b5f17bffea261a5fdd7b9a7bd334f21d528d3cfa commit r12-5029-gb5f17bffea261a5fdd7b9a7bd334f21d528d3cfa Author: Piotr Trojanek <trojanek@adacore.com> Date: Wed Oct 27 17:32:52 2021 +0200 [Ada] Refine type in expansion of array equality gcc/ada/ * exp_ch4.adb (Handle_One_Dimension): Parameter N must be always positive, because it is translated into expression of 'First and 'Last. Diff: --- gcc/ada/exp_ch4.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb index 26996444735..3db43dd870a 100644 --- a/gcc/ada/exp_ch4.adb +++ b/gcc/ada/exp_ch4.adb @@ -1637,7 +1637,7 @@ package body Exp_Ch4 is -- for that argument in the corresponding function formal function Handle_One_Dimension - (N : Int; + (N : Pos; Index : Node_Id) return Node_Id; -- This procedure returns the following code -- @@ -1786,7 +1786,7 @@ package body Exp_Ch4 is --------------------------- function Handle_One_Dimension - (N : Int; + (N : Pos; Index : Node_Id) return Node_Id is Need_Separate_Indexes : constant Boolean :=
reply other threads:[~2021-11-09 9:46 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=20211109094635.E73683858422@sourceware.org \ --to=pmderodat@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).