]> git.ipfire.org Git - thirdparty/gcc.git/commit
aix: only create named section for VAR_DECL or FUNCTION_DECL
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 10 Jul 2020 21:06:21 +0000 (17:06 -0400)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:17:20 +0000 (13:17 -0300)
commit3dea9c2995855ca107a5a2ce06dccbba25464768
tree1f675016da4f41cb089c3a00c594e079cdcffc98
parentc8d19fbadbaf677d335635aeece1613daeeba882
aix: only create named section for VAR_DECL or FUNCTION_DECL

get_constant_section() can be passed constant-like non-DECLs, such as
CONSTRUCTOR or STRING_CST, which make DECL_SECTION_NAME unhappy
(asserted in symtab_node::get).  This patch ensures that xcoff select
section only invokes resolve_unique_section() for DECLs.

gcc/ChangeLog

2020-07-10  David Edelsohn  <dje.gcc@gmail.com>

* config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
create named section for VAR_DECL or FUNCTION_DECL.
gcc/config/rs6000/rs6000.c