Commit 74a9301d by Vladimir Mezentsev Committed by Richard Biener

re PR target/68256 (Defining TARGET_USE_CONSTANT_BLOCKS_P causes go bootstrap failure on aarch64.)

2018-03-15  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

        PR target/68256
        * varasm.c (hash_section): Return an unchangeble hash value
        * config/aarch64/aarch64.c (aarch64_use_blocks_for_constant_p):
        Return !aarch64_can_use_per_function_literal_pools_p ().

From-SVN: r258553
parent fa7dde7e
2018-03-15 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR target/68256
* varasm.c (hash_section): Return an unchangeble hash value
* config/aarch64/aarch64.c (aarch64_use_blocks_for_constant_p):
Return !aarch64_can_use_per_function_literal_pools_p ().
2018-03-15 Jakub Jelinek <jakub@redhat.com> 2018-03-15 Jakub Jelinek <jakub@redhat.com>
PR target/84860 PR target/84860
......
...@@ -7733,11 +7733,9 @@ aarch64_can_use_per_function_literal_pools_p (void) ...@@ -7733,11 +7733,9 @@ aarch64_can_use_per_function_literal_pools_p (void)
static bool static bool
aarch64_use_blocks_for_constant_p (machine_mode, const_rtx) aarch64_use_blocks_for_constant_p (machine_mode, const_rtx)
{ {
/* Fixme:: In an ideal world this would work similar /* We can't use blocks for constants when we're using a per-function
to the logic in aarch64_select_rtx_section but this constant pool. */
breaks bootstrap in gcc go. For now we workaround return !aarch64_can_use_per_function_literal_pools_p ();
this by returning false here. */
return false;
} }
/* Select appropriate section for constants depending /* Select appropriate section for constants depending
......
...@@ -225,7 +225,7 @@ hash_section (section *sect) ...@@ -225,7 +225,7 @@ hash_section (section *sect)
{ {
if (sect->common.flags & SECTION_NAMED) if (sect->common.flags & SECTION_NAMED)
return htab_hash_string (sect->named.name); return htab_hash_string (sect->named.name);
return sect->common.flags; return sect->common.flags & ~SECTION_DECLARED;
} }
/* Helper routines for maintaining object_block_htab. */ /* Helper routines for maintaining object_block_htab. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment