The recent IPA-SRA patch completely broke LTO on Solaris/x86 with the
native assembler:

FAIL: gcc.c-torture/compile/20000105-1.c   -O2 -flto -flto-partition=none  
(test for excess errors)
Excess errors:
Assembler: 20000105-1.c
        "/var/tmp//ccaW7VHa.s", line 35 : Syntax error
        Near line: "    .section        
.gnu.lto_.ipa-sra.e03463101918c5a8,#exclude"

This happens because tokens (including section names) can only consist
of letters, digits, '_' and '.'.

Fixed by using '_' instead of '-' as all other LTO section names do.
Tested on i386-pc-solaris2.11 and i686-pc-linux-gnu, installed on
mainline as pre-approved by Richard in the PR.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2019-09-22  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

        PR ipa/91835
        * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
        "ipa-sra".

# HG changeset patch
# Parent  8c01a327e7dfcb4f3b75e96bd58996729bcfd5c8
Use underscore in IPA-SRA LTO section name (PR ipa/91835)

diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c
--- a/gcc/lto-section-in.c
+++ b/gcc/lto-section-in.c
@@ -54,7 +54,7 @@ const char *lto_section_name[LTO_N_SECTI
   "mode_table",
   "hsa",
   "lto",
-  "ipa-sra"
+  "ipa_sra"
 };
 
 /* Hooks so that the ipa passes can call into the lto front end to get

Reply via email to