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-4013] [Ada] Fix deleting CodePeer files for non-ordinary units Date: Fri, 1 Oct 2021 06:15:12 +0000 (GMT) [thread overview] Message-ID: <20211001061512.061093857C5E@sourceware.org> (raw) https://gcc.gnu.org/g:fa465c1b609c0d9c5ad426cea803204c74dc277a commit r12-4013-gfa465c1b609c0d9c5ad426cea803204c74dc277a Author: Piotr Trojanek <trojanek@adacore.com> Date: Wed Aug 11 17:57:55 2021 +0200 [Ada] Fix deleting CodePeer files for non-ordinary units gcc/ada/ * comperr.adb (Delete_SCIL_Files): Handle generic subprogram declarations and renaming just like generic package declarations and renamings, respectively; handle N_Subprogram_Renaming_Declaration. Diff: --- gcc/ada/comperr.adb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/ada/comperr.adb b/gcc/ada/comperr.adb index 064fae062b8..e009c58cf88 100644 --- a/gcc/ada/comperr.adb +++ b/gcc/ada/comperr.adb @@ -478,6 +478,7 @@ package body Comperr is when N_Package_Declaration | N_Subprogram_Body | N_Subprogram_Declaration + | N_Subprogram_Renaming_Declaration => Unit_Name := Defining_Unit_Name (Specification (Main)); @@ -489,10 +490,10 @@ package body Comperr is => Unit_Name := Defining_Unit_Name (Main); - -- No SCIL file generated for generic package declarations + -- No SCIL file generated for generic unit declarations - when N_Generic_Package_Declaration - | N_Generic_Package_Renaming_Declaration + when N_Generic_Declaration + | N_Generic_Renaming_Declaration => return;
reply other threads:[~2021-10-01 6:15 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=20211001061512.061093857C5E@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).