diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2021-09-15 17:10:35 -0400 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 2021-09-15 17:18:00 -0400 |
commit | f5ae6447bd8a551689021e8884726f1d0d077ec2 (patch) | |
tree | d780a3243d7de8ef920ba675aa05f36d30f90259 /gcc | |
parent | 30e025393209e1936c394e716006cdaaa6d50161 (diff) | |
download | gcc-f5ae6447bd8a551689021e8884726f1d0d077ec2.zip gcc-f5ae6447bd8a551689021e8884726f1d0d077ec2.tar.gz gcc-f5ae6447bd8a551689021e8884726f1d0d077ec2.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d0830a9..ad81dfb 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; |