Fix ICE in pa_elf_select_rtx_section.
2020-01-30 John David Anglin <danglin@gcc.gnu.org> * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers without a DECL in .data.rel.ro.local.
This commit is contained in:
parent
efd26bbc81
commit
64464e5f36
@ -1,3 +1,8 @@
|
||||
2020-01-30 John David Anglin <danglin@gcc.gnu.org>
|
||||
|
||||
* config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
|
||||
without a DECL in .data.rel.ro.local.
|
||||
|
||||
2020-01-30 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/93494
|
||||
|
@ -9852,7 +9852,7 @@ pa_elf_select_rtx_section (machine_mode mode, rtx x,
|
||||
{
|
||||
tree decl = SYMBOL_REF_DECL (x);
|
||||
|
||||
if (DECL_P (decl) && DECL_COMDAT_GROUP (decl))
|
||||
if (!decl || (DECL_P (decl) && DECL_COMDAT_GROUP (decl)))
|
||||
return get_named_section (NULL, ".data.rel.ro.local", 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user