From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33990 invoked by alias); 2 Mar 2015 19:01:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 33979 invoked by uid 89); 2 Mar 2015 19:00:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2015 19:00:56 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by service87.mimecast.com; Mon, 02 Mar 2015 19:00:53 +0000 Received: from [10.2.207.44] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 2 Mar 2015 19:00:51 +0000 Message-ID: <54F4B35C.2000300@arm.com> Date: Mon, 02 Mar 2015 19:01:00 -0000 From: Alex Velenko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Christophe Lyon , Jan Hubicka CC: Steve Ellcey , Jack Howarth , GCC Patches , =?UTF-8?B?TWFydGluIExpxaFrYQ==?= , Jakub Jelinek , James Greenhalgh Subject: Re: ipa-icf::merge TLC References: <20150227021047.GA20437@kam.mff.cuni.cz> <1425058393.27855.242.camel@ubuntu-sellcey> <20150227204951.GF48311@kam.mff.cuni.cz> In-Reply-To: X-MC-Unique: 115030219005302701 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00091.txt.bz2 On 01/03/15 16:47, Christophe Lyon wrote: > On 27 February 2015 at 21:49, Jan Hubicka wrote: >>> >>> ../sysdeps/gnu/siglist.c:72:1: internal compiler error: in address_matt= ers_p, at symtab.c:1908 >>> versioned_symbol (libc, __new_sys_sigabbrev, sys_sigabbrev, GLIBC_2_3= _3); >>> ^ >>> 0x66a080 symtab_node::address_matters_p() >>> /scratch/sellcey/repos/bootstrap/src/gcc/gcc/symtab.c:1908 >>> 0xe7cbe5 ipa_icf::sem_variable::merge(ipa_icf::sem_item*) >>> /scratch/sellcey/repos/bootstrap/src/gcc/gcc/ipa-icf.c:1443 >> >> Indeed, the ipa-icf should not try to analyze aliases - just prove ekvia= lence of >> definitions they are attached to. It already does that for functions (b= it by accident; >> it gives up when there is no gimple body), but it does not do that for v= ariables because >> it gets into ctor_for_folding. For that reason it sometimes decides to t= ry to make two >> variable aliases alias of each other that is not a good idea, because of= possible creation >> of loops. >> >> I am just discussing with Martin the fix. >> >> Honza > > For the record, I have noticed similar errors on ARM and AArch64 > targets, when building glibc. > > Christophe. > I confirm ARM and AArch64 failing to build with this patch: /work/build-aarch64-none-linux-gnu/install//bin/aarch64-none-linux-gnu-gcc= =20 ../sysdeps/posix/cuserid.c -c -std=3Dgnu99 -fgnu89-inline -O2 -Wall=20 -Winline -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math=20 -g -Wstrict-prototypes -fPIC -fexceptions -I../include=20 -I/work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common=20 -I/work/build-aarch64-none-linux-gnu/obj/glibc=20 -I../sysdeps/unix/sysv/linux/aarch64 -I../sysdeps/aarch64/nptl=20 -I../sysdeps/unix/sysv/linux/generic=20 -I../sysdeps/unix/sysv/linux/wordsize-64=20 -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux=20 -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu=20 -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix=20 -I../sysdeps/posix -I../sysdeps/aarch64/fpu -I../sysdeps/aarch64=20 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-128=20 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64=20 -I../sysdeps/ieee754/flt-32 -I../sysdeps/aarch64/soft-fp=20 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I.=20 -nostdinc -isystem=20 /work/build-aarch64-none-linux-gnu/install/bin/../lib/gcc/aarch64-none-linu= x-gnu/5.0.0/include=20 -isystem=20 /work/build-aarch64-none-linux-gnu/install/bin/../lib/gcc/aarch64-none-linu= x-gnu/5.0.0/include-fixed=20 -isystem=20 /work/build-aarch64-none-linux-gnu/install//aarch64-none-linux-gnu/libc/usr= /include=20 -D_LIBC_REENTRANT -include=20 /work/build-aarch64-none-linux-gnu/obj/glibc/libc-modules.h=20 -DMODULE_NAME=3Dlibc -include ../include/libc-symbols.h -DPIC -DSHARED=20 -D_IO_MTSAFE_IO -o=20 /work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/cuserid.os -MD=20 -MP -MF=20 /work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/cuserid.os.dt=20 -MT /work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/cuserid.os ../sysdeps/gnu/siglist.c:77:1: internal compiler error: in=20 address_matters_p, at symtab.c:1908 versioned_symbol (libc, __new_sys_sigabbrev, sys_sigabbrev, GLIBC_2_1); ^ *** errlist.c count 134 inflated to GLIBC_2.12 count 135 (old errno.h?) chmod a-w=20 /work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/errlist-compat.cT 0x6b9100 symtab_node::address_matters_p() /work/src/gcc/gcc/symtab.c:1908 0xedb4e5 ipa_icf::sem_variable::merge(ipa_icf::sem_item*) /work/src/gcc/gcc/ipa-icf.c:1723 0xee03f9 ipa_icf::sem_item_optimizer::merge_classes(unsigned int) /work/src/gcc/gcc/ipa-icf.c:2955 0xee6d31 ipa_icf::sem_item_optimizer::execute() /work/src/gcc/gcc/ipa-icf.c:2217 0xee8df1 ipa_icf_driver /work/src/gcc/gcc/ipa-icf.c:3034 0xee8df1 ipa_icf::pass_ipa_icf::execute(function*) /work/src/gcc/gcc/ipa-icf.c:3081 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. make[2]: ***=20 [/work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/siglist.o]=20 Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f=20 /work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/errlist-compat.cT= =20 /work/build-aarch64-none-linux-gnu/obj/glibc/stdio-common/errlist-compat.c Regards, Alex