From owner-freebsd-toolchain@FreeBSD.ORG Mon Feb 4 03:09:12 2013 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 76296514 for ; Mon, 4 Feb 2013 03:09:12 +0000 (UTC) (envelope-from giffunip@yahoo.com) Received: from nm19-vm0.bullet.mail.bf1.yahoo.com (nm19-vm0.bullet.mail.bf1.yahoo.com [98.139.213.162]) by mx1.freebsd.org (Postfix) with SMTP id F185A99A for ; Mon, 4 Feb 2013 03:09:11 +0000 (UTC) Received: from [98.139.212.150] by nm19.bullet.mail.bf1.yahoo.com with NNFMP; 04 Feb 2013 03:09:11 -0000 Received: from [98.139.212.219] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 04 Feb 2013 03:09:11 -0000 Received: from [127.0.0.1] by omp1028.mail.bf1.yahoo.com with NNFMP; 04 Feb 2013 03:09:11 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 109245.76782.bm@omp1028.mail.bf1.yahoo.com Received: (qmail 13357 invoked by uid 60001); 4 Feb 2013 03:09:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1359947351; bh=H+qEPgud5hWVT4va2oul3ZUb2B12PN5VcEJ62iXSPzw=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=H55qKnL5c8SPf1QoGt4s/FbUxoZxbrvPWAsFZzHbXS+FmsorPSbOsJT9Lx1IyW2LEJ5nTIbm+AfRQBpRyX5//UyjxzNXGlyA4RqDzejWPTKK+bGKkxHp2kIhuyIugdGSTHYuhlysEFvR0fVzjeQ8JzHgOlHSBpNp8XhKdvHhvVM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=PBlgq0k/SFoKbCXBYNuFNyb5uVtySvErG6e1xJNozGy0d0ZKJXcqEmJnTD69jUt3s7v7AVFQbXfZOdm3D2n6GE1M/abEEOf0DZWN9iiXFGKzNG154Jbln+XLE9MXTd3/82w6s0MYXyza3bB9nkcJP9wLbQeGvy907rRSsg323CQ=; X-YMail-OSG: xQE4AwEVM1megDpnoljjioory5NVUaqZS3BC3VBQ9.VKypN sQJa8i198lZvYxKXMBIBexk45lwDGSHzhpivGl03ZHiCXgA2ud5zZznVsFM. xm2ZJQKxewfXpDQ7ZoHLaBDCdb3bU976NufxAoZ0VADBuIlTCxY7v5EenFyi nMG3I4_dsTiVFTVsLGmrNzjzL2lME8AKqQ0hI2X_n_wg1rgiMFQgKlcPHkGf zLM49IOooX0BPbNphWBuLChHkQ4IiE_zzy01gQbELvsB2Q5gDMUfUsAsqh8v wG82w6NEdMn41JZXGWxFcCYlk4aylpMjevxwB710S8NafXbUseV8IY5HFeOj 5M4zrxp9OZdgV4_q6.FATgZXerPBlymh8CNcmbJoNykahYkCAbO8fhCG1Hnz w5gurVSMpX36o3FPQipqAm22w93qVUdr2Coq3ZNFs9n63sKea4BnrGLQuEtG hD7omAMabPGiUhJ6Pf9pj0RNUPk0QnaM4ifR0g4E1_ocvJhr0v3cQwDokF4l 9q4T6IXBO8CFzV.XhMBRMWFc1ImXXtFLafSntu14QxpiSRlhF7p_sS7ce8zE 3omHE1rJJToloaZXPGNmAInP9pkiM8gdd_HtmnkqJu875ULTzP1YD7fU2wju OcOJxBCFp7r6qSpAGBEw6zJvP Received: from [200.118.157.7] by web162105.mail.bf1.yahoo.com via HTTP; Sun, 03 Feb 2013 19:09:10 PST X-Rocket-MIMEInfo: 001.001, SGVsbG8gRGltaXRyeTsKCgotLS0tLSBNZXNzYWdnaW8gb3JpZ2luYWxlIC0tLS0tCj4gRGE6IERpbWl0cnkgQW5kcmljwqAKCj4gSSBoYWQgYSBiaXQgbW9yZSBpbi1kZXB0aCBsb29rIGF0IG91ciBjdXJyZW50IGxpYnN0ZGMrKyBjb25maWd1cmF0aW9uLgo.IAo.IEkgdG9vayB0aGUgb3JpZ2luYWwgZ2NjIDQuMi4xIHJlbGVhc2UgdGFyYmFsbCwgbW9kaWZpZWQgYSBmZXcgYXV0b2NvbmYKPiByZWxhdGVkIHNjcmlwdHMgdG8gY29wZSB3aXRoICJmcmVlYnNkMTAuMCIgYmVpbmcgdGhlIGN1cnJlbnQgdmVyc2kBMAEBAQE- X-RocketYMMF: giffunip X-Mailer: YahooMailWebService/0.8.131.499 References: <5106953E.2020907@FreeBSD.org> <510BBCAD.3070705@FreeBSD.org> <510BD53D.1070209@FreeBSD.org> <510EE5D2.4050409@FreeBSD.org> Message-ID: <1359947350.91372.YahooMailNeo@web162105.mail.bf1.yahoo.com> Date: Sun, 3 Feb 2013 19:09:10 -0800 (PST) From: Pedro Giffuni Subject: Re: base gcc and _GLIBCXX_USE_C99 To: Dimitry Andric , Andriy Gapon In-Reply-To: <510EE5D2.4050409@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "toolchain@FreeBSD.org" , "stephen@FreeBSD.org" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Pedro Giffuni List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 03:09:12 -0000 Hello Dimitry;=0A=0A=0A----- Messaggio originale -----=0A> Da: Dimitry Andr= ic=A0=0A=0A> I had a bit more in-depth look at our current libstdc++ config= uration.=0A> =0A> I took the original gcc 4.2.1 release tarball, modified a= few autoconf=0A> related scripts to cope with "freebsd10.0" being the curr= ent version,=0A> and did a full three-stage build, though only targeting C = and C++.=0A> =0A> The libstdc++ configure script in 4.2.1 does detect a few= new features=0A> that are not in our shipping config.h, but is does not de= tect any=0A> different settings regarding C99.=0A>=0A=0ANot sure if libstdc= ++ from gcc42 sets --enable-c99 by default.=0A=A0=A0=0A> The reason it does= not turn on _GLIBCXX_USE_C99, is that not all of the=0A> C99 requirements = are met, specifically checks fail:=0A> =0A> =A0 checking for IS= O C99 support in ... yes=0A> =A0 checking for ISO C99 support in ... no=0A> =A0 checking for ISO C99 support in ... yes=0A= > =A0 checking for ISO C99 support in ... yes=0A> =A0 checking fo= r ISO C99 support in ... yes=0A> =A0 checking for fully enabled IS= O C99 support... no=0A> =0A> The exact failure testcase goes like this:=0A>= =0A> =A0 configure:7435: checking for ISO C99 support in =0A> = =A0 configure:7492:=A0 /home/dim/obj/gcc-4.2.1/./gcc/xgcc -shared-libgcc = =0A> -B/home/dim/obj/gcc-4.2.1/./gcc -nostdinc++ =0A> -L/home/dim/obj/gcc-4= .2.1/i386-unknown-freebsd10.0/libstdc++-v3/src =0A> -L/home/dim/obj/gcc-4.2= .1/i386-unknown-freebsd10.0/libstdc++-v3/src/.libs =0A> -B/home/dim/ins/gcc= -4.2.1/i386-unknown-freebsd10.0/bin/ =0A> -B/home/dim/ins/gcc-4.2.1/i386-un= known-freebsd10.0/lib/ -isystem =0A> /home/dim/ins/gcc-4.2.1/i386-unknown-f= reebsd10.0/include -isystem =0A> /home/dim/ins/gcc-4.2.1/i386-unknown-freeb= sd10.0/sys-include -c -g -O2=A0 =0A> conftest.cc >&5=0A> =A0 conftest.cc: I= n function 'int main()':=0A> =A0 conftest.cc:41: error: 'clogf' was not dec= lared in this scope=0A> =A0 conftest.cc:47: error: 'cpowf' was not declared= in this scope=0A> =A0 conftest.cc:54: error: 'clog' was not declared in th= is scope=0A> =A0 conftest.cc:60: error: 'cpow' was not declared in this sco= pe=0A> =A0 conftest.cc:64: error: 'ccosl' was not declared in this scope=0A= > =A0 conftest.cc:65: error: 'ccoshl' was not declared in this scope=0A> = =A0 conftest.cc:66: error: 'cexpl' was not declared in this scope=0A> =A0 c= onftest.cc:67: error: 'clogl' was not declared in this scope=0A> =A0 confte= st.cc:68: error: 'csinl' was not declared in this scope=0A> =A0 conftest.cc= :69: error: 'csinhl' was not declared in this scope=0A> =A0 conftest.cc:71:= error: 'ctanl' was not declared in this scope=0A> =A0 conftest.cc:72: erro= r: 'ctanhl' was not declared in this scope=0A> =A0 conftest.cc:73: error: '= cpowl' was not declared in this scope=0A> =A0 configure:7498: $? =3D 1=0A>= =A0=0A=0AThose are surely in this list:=0Ahttps://wiki.freebsd.org/MissingM= athStuff=0A=0AI think we are using stubs for libc++.=0A=0A> So until we act= ually implement and declare those functions, we should=0A> probably not ena= ble _GLIBCXX_USE_C99_COMPLEX and _GLIBCXX_USE_C99.=0A> =0A> I have attached= a diff of the other changes that can be applied on our=0A> current libstdc= ++ config file, as detected by the configure script.=A0 I=0A> will probably= commit that soonish, if there are no objections.=0A>=A0=0A=0AThanks, that = looks useful. Of course if=A0GLIBCXX_USE_C99 didn't necessarily=0Aimply=A0_= GLIBCXX_USE_C99_COMPLEX it would be useful too.=0A=0A> As to the missing co= mplex functions, I am not sure.=A0 Maybe these can be=0A> imported from som= ewhere else, e.g. NetBSD?=A0 This is probably something=0A> to ask the lib/= msun specialists...=0A>=A0=0A=0A=0AThere is a freebsd-numerics list for peo= ple working on it.=0A=0AI am using the C++ complex stuff from boost and the= re were=0Arecent fixes done by Stephen Montgomery-Smith (CC'd)=0Aand it loo= ks like he has a FreeBSD implementation in the works.=0A=0AI will open a PR= as a reminder ;).=0A=0Acheers,=0A=0APedro.=0A