From owner-freebsd-arch@FreeBSD.ORG Fri Feb 24 20:47:20 2012 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 847AF1065675 for ; Fri, 24 Feb 2012 20:47:20 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail11.syd.optusnet.com.au (mail11.syd.optusnet.com.au [211.29.132.192]) by mx1.freebsd.org (Postfix) with ESMTP id 193798FC12 for ; Fri, 24 Feb 2012 20:47:19 +0000 (UTC) Received: from c211-30-171-136.carlnfd1.nsw.optusnet.com.au (c211-30-171-136.carlnfd1.nsw.optusnet.com.au [211.30.171.136]) by mail11.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q1OKk3wR024729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 25 Feb 2012 07:46:05 +1100 Date: Sat, 25 Feb 2012 07:46:03 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Garrett Wollman In-Reply-To: <20294.46718.356434.248475@hergotha.csail.mit.edu> Message-ID: <20120225073707.H2864@besplex.bde.org> References: <4F3C28DD.1020003@FreeBSD.org> <4F3C2D2D.5000402@FreeBSD.org> <4F3E78BA.4060203@FreeBSD.org> <864nupcuvl.fsf@ds4.des.no> <4F3E7B5A.20103@FreeBSD.org> <86zkchbff6.fsf@ds4.des.no> <4F3EADB5.7060008@FreeBSD.org> <20120223170918.GA79013@zim.MIT.EDU> <201202231822.q1NIMQOd020804@hergotha.csail.mit.edu> <201202231926.q1NJQPFa021654@hergotha.csail.mit.edu> <86d3958cqi.fsf@ds4.des.no> <20294.46718.356434.248475@hergotha.csail.mit.edu> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1569451402-1330116363=:2864" Cc: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= , arch@freebsd.org Subject: Re: bsd/citrus iconv X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 20:47:20 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1569451402-1330116363=:2864 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 23 Feb 2012, Garrett Wollman wrote: > < said: > >> That's entirely academic unless you want to modify gcc and clang to >> automatically pull in libiconv. > > It doesn't matter what gcc and clang do. POSIX ONLY specifies the > behavior of the "c99" utility. It does not specify the behavior of > any other compiler. FreeBSD's c99 doesn't actually work, since it doesn't know about libm. It also doesn't seem to provide a way to pass flags through to gcc, so it just breaks on -v and won't tell me which libraries it knows about :-). Any Standard C compiler for a hosted implementation needs to know about libm, so gcc -std=3Dc99 [-pedantic -fno-freestanding] is similarly broken (or just not a C compiler despite -std=3Dc99). Similarly for c89 and -std=3Dc89. I've never used a C compiler :-). c89 is closer to being one since C was simpler. Bruce --0-1569451402-1330116363=:2864--