From owner-svn-src-all@FreeBSD.ORG Sun Aug 1 12:35:01 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93A8C106564A; Sun, 1 Aug 2010 12:35:01 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8273E8FC0A; Sun, 1 Aug 2010 12:35:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o71CZ1UO002684; Sun, 1 Aug 2010 12:35:01 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o71CZ1tm002682; Sun, 1 Aug 2010 12:35:01 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201008011235.o71CZ1tm002682@svn.freebsd.org> From: Rui Paulo Date: Sun, 1 Aug 2010 12:35:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210731 - head/lib/libc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2010 12:35:01 -0000 Author: rpaulo Date: Sun Aug 1 12:35:01 2010 New Revision: 210731 URL: http://svn.freebsd.org/changeset/base/210731 Log: Disable all warnings when building gdtoa. This allows building libc with clang. The general idea is that the vendor will not accept our compilation patches and so disabling the warnings is the best way to go as it makes future imports bearable. Submitted by: Dimitry Andric Discussed with: das Modified: head/lib/libc/Makefile Modified: head/lib/libc/Makefile ============================================================================== --- head/lib/libc/Makefile Sun Aug 1 12:10:32 2010 (r210730) +++ head/lib/libc/Makefile Sun Aug 1 12:35:01 2010 (r210731) @@ -128,7 +128,7 @@ libkern.${MACHINE_ARCH}:: ${KMSRCS} .include # Disable warnings in contributed sources. -CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/} +CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/} # XXX For now, we don't allow libc to be compiled with # -fstack-protector-all because it breaks rtld. We may want to make a librtld # in the future to circumvent this.