public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-2989] Fix thinko in latest change for GNAT encodings
Date: Wed, 18 Aug 2021 12:22:47 +0000 (GMT)	[thread overview]
Message-ID: <20210818122247.8F543385B837@sourceware.org> (raw)

https://gcc.gnu.org/g:88ef1a14bb4ba2bb9e6742bb5ed29d83b30723d0

commit r12-2989-g88ef1a14bb4ba2bb9e6742bb5ed29d83b30723d0
Author: Eric Botcazou <ebotcazou@gcc.gnu.org>
Date:   Wed Aug 18 14:22:07 2021 +0200

    Fix thinko in latest change for GNAT encodings
    
     gcc/ada/
            * gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Fix
            thinko in latest change.

Diff:
---
 gcc/ada/gcc-interface/decl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index 4b6479b2a04..5cedb740a2e 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -1998,10 +1998,10 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
 	     so we use an intermediate step for standard DWARF.  */
 	  if (debug_info_p)
 	    {
-	      if (gnat_encodings == DWARF_GNAT_ENCODINGS_ALL)
-		add_parallel_type (gnu_type, DECL_PARALLEL_TYPE (t));
-	      else
+	      if (gnat_encodings != DWARF_GNAT_ENCODINGS_ALL)
 		SET_TYPE_DEBUG_TYPE (gnu_type, gnu_field_type);
+	      else if (DECL_PARALLEL_TYPE (t))
+		add_parallel_type (gnu_type, DECL_PARALLEL_TYPE (t));
 	    }
 	}


                 reply	other threads:[~2021-08-18 12:22 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=20210818122247.8F543385B837@sourceware.org \
    --to=ebotcazou@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: 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).