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

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Mon Sep 23 10:09:00 GMT 2019


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  <ro@CeBiTec.Uni-Bielefeld.DE>

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-ipa-sra-underscore.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190923/9f23d602/attachment.bin>


More information about the Gcc-patches mailing list