From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5120 Path: news.gmane.org!not-for-mail From: "Anthony G. Basile" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Broken GCC versions: 4.8.2 and 4.9.0 Date: Mon, 12 May 2014 10:30:55 -0400 Message-ID: <5370DB1F.8040901@opensource.dyc.edu> References: <20140511010503.GA6502@brightrain.aerifal.cx> <20140511181020.0a8b66f1@free-electrons.com> <20140511161943.GR26358@brightrain.aerifal.cx> <20140511190320.GV26358@brightrain.aerifal.cx> <20140511212030.GY26358@brightrain.aerifal.cx> <20140512112833.596ca259@ncopa-desktop.alpinelinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399904975 28260 80.91.229.3 (12 May 2014 14:29:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2014 14:29:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5125-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 12 16:29:28 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WjrEO-0000UF-0a for gllmg-musl@plane.gmane.org; Mon, 12 May 2014 16:29:28 +0200 Original-Received: (qmail 28638 invoked by uid 550); 12 May 2014 14:29:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28629 invoked from network); 12 May 2014 14:29:26 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <20140512112833.596ca259@ncopa-desktop.alpinelinux.org> Xref: news.gmane.org gmane.linux.lib.musl.general:5120 Archived-At: On 05/12/14 05:28, Natanael Copa wrote: > On Sun, 11 May 2014 17:20:30 -0400 > Rich Felker wrote: > >> On Sun, May 11, 2014 at 04:08:37PM -0400, James Cloos wrote: >>>>>>>> "RF" == Rich Felker writes: >>> >>> RF> I've tested it on gcc.godbolt.org and others have tested with local >>> RF> gcc 4.8.2 and 4.9.0, probably distro-provided (I didn't ask). >>> >>> I just tried debian-sid's 4.9. That does show the bug. As does their >>> gcc-snapshot version (a 4.10 pre). >>> >>> Perhaps the distro(s) which have the bug with 4.8.2 backported the commit >>> where the bug first occurs? >> >> Sounds plausible. Maybe that will help find the offending commit. > > I have tried to reproduce the issue on Alpine Linux without success. We > have gcc-4.8.2 with lots of patches from gentoo and with a hardened > default (default enabled). All the gentoo+musl stages on the gentoo tree are built with 4.7.3 so I can't speak to this issue. > > I have tried run with GCC_SPECS=vanilla (should disable the hardened > part) and without the -Os without any difference. > > It would be interesting to know what patches was used on the affected > gcc-4.8.2 systems. What gcc gentoo patches are you using? Even vanilla gentoo has some. > >>> RF> I wonder if the broken GCC is using isl/cloog >>> >>> I use the graphite optimizer on my Gentoo box (which generated the >>> assembly I quoted). The graphite code is only used when one or more >>> of -floop-interchange -floop-strip-mine -floop-block are specified. >>> >>> Testing with those options doesn't change the results. >> >> OK, ruled that out then. > > We also have a patch[1] that will dlopen libcloog-isl.so.4 instead of > link to it directly for upgrade purposes. I have tried to build musl > with and without libcloog-isl.so.4 installed without it making any > difference. > > >> >> Rich -- Anthony G. Basile, Ph. D. Chair of Information Technology D'Youville College Buffalo, NY 14201 (716) 829-8197