public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Edelsohn <dje@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-3558] rs6000: fix xcoff section encoding
Date: Wed, 15 Sep 2021 21:15:05 +0000 (GMT)	[thread overview]
Message-ID: <20210915211505.203F23857827@sourceware.org> (raw)

https://gcc.gnu.org/g:f5ae6447bd8a551689021e8884726f1d0d077ec2

commit r12-3558-gf5ae6447bd8a551689021e8884726f1d0d077ec2
Author: David Edelsohn <dje.gcc@gmail.com>
Date:   Wed Sep 15 17:10:35 2021 -0400

    rs6000: fix xcoff section encoding
    
    The encoding needs to be applied if the decl is not an alias: both a NULL
    summary *OR* the decl alias flag is false.  This patch updates the
    earlier fix to continue with the encoding selection if the summary is
    NULL.
    
    gcc/ChangeLog:
            * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
            Proceed if no symbol summary or the symbol alias flag is false.

Diff:
---
 gcc/config/rs6000/rs6000.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index d0830a95027..ad81dfb316d 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -21728,8 +21728,8 @@ rs6000_xcoff_encode_section_info (tree decl, rtx rtl, int first)
   if (decl
       && DECL_P (decl)
       && VAR_OR_FUNCTION_DECL_P (decl)
-      && symtab_node::get (decl) != NULL
-      && symtab_node::get (decl)->alias == 0
+      && (symtab_node::get (decl) == NULL
+	  || symtab_node::get (decl)->alias == 0)
       && symname[strlen (symname) - 1] != ']')
     {
       const char *smclass = NULL;


                 reply	other threads:[~2021-09-15 21: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=20210915211505.203F23857827@sourceware.org \
    --to=dje@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).