Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2012 07:46:03 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Garrett Wollman <wollman@bimajority.org>
Cc:        =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>, arch@freebsd.org
Subject:   Re: bsd/citrus iconv
Message-ID:  <20120225073707.H2864@besplex.bde.org>
In-Reply-To: <20294.46718.356434.248475@hergotha.csail.mit.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
  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:

> <<On Thu, 23 Feb 2012 22:24:21 +0100, Dag-Erling Sm=C3=B8rgrav <des@des.n=
o> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120225073707.H2864>