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-3739] [Ada] exp_pakd.adb: work around spurious Codepeer warnings Date: Tue, 21 Sep 2021 15:26:49 +0000 (GMT) [thread overview] Message-ID: <20210921152649.C20D03857C5D@sourceware.org> (raw) https://gcc.gnu.org/g:cf7aa7d8e8523ca246804ba7c8ef6ab4c7910cb8 commit r12-3739-gcf7aa7d8e8523ca246804ba7c8ef6ab4c7910cb8 Author: Ghjuvan Lacambre <lacambre@adacore.com> Date: Mon Jul 5 17:08:56 2021 +0200 [Ada] exp_pakd.adb: work around spurious Codepeer warnings gcc/ada/ * exp_pakd.adb (Expand_Packed_Not): Replace expression with statement. Diff: --- gcc/ada/exp_pakd.adb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ada/exp_pakd.adb b/gcc/ada/exp_pakd.adb index 9b118138561..779dbb3ad30 100644 --- a/gcc/ada/exp_pakd.adb +++ b/gcc/ada/exp_pakd.adb @@ -2002,7 +2002,11 @@ package body Exp_Pakd is -- actual subtype of the operand. Preserve old behavior in case size is -- not set. - Size := (if Known_RM_Size (PAT) then RM_Size (PAT) else Uint_0); + if Known_RM_Size (PAT) then + Size := RM_Size (PAT); + else + Size := Uint_0; + end if; Lit := Make_Integer_Literal (Loc, 2 ** Size - 1); Set_Print_In_Hex (Lit);
reply other threads:[~2021-09-21 15:26 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=20210921152649.C20D03857C5D@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).