diff mbox series

Use underscore in IPA-SRA LTO section name (PR ipa/91835)

Message ID yddd0frmiik.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series Use underscore in IPA-SRA LTO section name (PR ipa/91835) | expand

Commit Message

Rainer Orth Sept. 23, 2019, 10:09 a.m. UTC
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
diff mbox series

Patch

# 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