From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 17 18:44:12 2011 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 760A0106566C for ; Mon, 17 Jan 2011 18:44:12 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA978FC0C for ; Mon, 17 Jan 2011 18:44:12 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.4/8.14.4) with ESMTP id p0HIiB9D054581 for ; Mon, 17 Jan 2011 10:44:11 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.4/8.14.4/Submit) id p0HIiB6m054580 for freebsd-toolchain@freebsd.org; Mon, 17 Jan 2011 10:44:11 -0800 (PST) (envelope-from sgk) Date: Mon, 17 Jan 2011 10:44:11 -0800 From: Steve Kargl To: freebsd-toolchain@freebsd.org Message-ID: <20110117184411.GA54556@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: How to build an executable with profiling? X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 18:44:12 -0000 How does one build an executable for profiling with clang? clang -o testf -O2 -march=native -pipe -static -pg -I/usr/local/include -I../mp testf.c -L/usr/local/lib -L../mp -lsgk -lmpfr -lgmp -L/usr/home/kargl/work/lib -lm_clang_p clang: warning: the clang compiler does not support '-pg' I suppose it will be pointless to ask, but shouldn't clang support one of the most basic gcc compiler options if clang is to replace gcc as the base system compiler? -- Steve