From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1720 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: build musl with clang Date: Fri, 24 Aug 2012 13:01:53 +0200 Message-ID: <20120824110153.GA23569@port70.net> References: <5035E16E.50004@gmail.com> <20120823122414.GM27715@brightrain.aerifal.cx> <50362C19.5080509@gmail.com> <20120823175545.GQ27715@brightrain.aerifal.cx> <5037181B.9050508@gmail.com> <20120824060611.GX27715@brightrain.aerifal.cx> <5037596C.1030409@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1345806130 30382 80.91.229.3 (24 Aug 2012 11:02:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2012 11:02:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1721-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 24 13:02:11 2012 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 1T4reQ-0002oq-Po for gllmg-musl@plane.gmane.org; Fri, 24 Aug 2012 13:02:06 +0200 Original-Received: (qmail 17428 invoked by uid 550); 24 Aug 2012 11:02:04 -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 17420 invoked from network); 24 Aug 2012 11:02:04 -0000 Content-Disposition: inline In-Reply-To: <5037596C.1030409@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1720 Archived-At: * agent [2012-08-24 16:37:32 +0600]: > i have built clang from trunk and tried the calloc test. when test > program is linked dynamically to libc.so it fails it. if it linked > statically -- it passes ok. > so the bug is still present try to make a minimal testcase eg. void *f() { char *p; p = malloc(100); if (p && p[0]) p[0] = 0; return p; } and compile with -O3 -ffreestanding -S if the check is eliminated then it's a bug