From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2489 Path: news.gmane.org!not-for-mail From: ojab Newsgroups: gmane.linux.lib.musl.general Subject: Re: spandsp build, lrint/sqrt/pow issue Date: Sun, 16 Dec 2012 14:29:00 +0400 Message-ID: <50CDA26C.4010908@ojab.ru> References: <50CAF645.9000804@ojab.ru> <20121214124026.GO23126@port70.net> <50CB22CD.1070208@ojab.ru> <20121214133342.GQ23126@port70.net> <50CB35FE.2050705@ojab.ru> <50CB8250.7090804@ojab.ru> <20121215004706.GR23126@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020305040005010908010305" X-Trace: ger.gmane.org 1355653756 30843 80.91.229.3 (16 Dec 2012 10:29:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2012 10:29:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2490-gllmg-musl=m.gmane.org@lists.openwall.com Sun Dec 16 11:29:31 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TkBTM-0001cx-2R for gllmg-musl@plane.gmane.org; Sun, 16 Dec 2012 11:29:28 +0100 Original-Received: (qmail 31866 invoked by uid 550); 16 Dec 2012 10:29:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 31858 invoked from network); 16 Dec 2012 10:29:13 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:x-gm-message-state; bh=1YQHKNlIn5N8LUmOEkmfLcbyopUBDuzRCplfCejoTFQ=; b=VWFEqhXmqR0V/MBow+cJkI/vQ3DdghUkvWdHuqVrB6Sdvhen8Vs+unk65O5+RtX478 d6bz14xLkySGtnx7pdQJqPtpq69Q+kpa9tdCSRG0YDQOskV7rWej8m5kMAForGpTF24F hfLmmDEGqeBdeKfYk307AiRThvVnSLHQVILr+/W+X0LbV4KndMbYoOcQRn5d3KkVldPP Fa0dypr4Vr9zX5s5oQ/e9YDM5FuJvT6ILdySk35TFpqsLHLaQUFMNchvw+cUqDqpA6so huurmfBXdC9lGHKclJ8rHbwtE4b/aCI1m3LKnJGd8MzeKnz2/q6dxoSizwiunviFGGYV eOLA== User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Thunderbird/20.0a1 In-Reply-To: <20121215004706.GR23126@port70.net> X-Gm-Message-State: ALoCoQmHfzO6oekZJ36gGdRbyMY0ViZgbVm3xUN1Flf7g5wdqi1DLu+oIQgy2UOryxg9KCN3bEkR Xref: news.gmane.org gmane.linux.lib.musl.general:2489 Archived-At: This is a multi-part message in MIME format. --------------020305040005010908010305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 15.12.2012 04:47, Szabolcs Nagy wrote: > * ojab [2012-12-14 23:47:28 +0400]: >> >On 14.12.2012 18:21, ojab wrote: >> >?and it is still broken with gcc (GCC) 4.8.0 20121209 (experimental) >> > >> >awgn.c:109:5: error: void value not ignored as it ought to be > interesting > >> >Filledhttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=55695 > thanks > Just FYI: I've bisected gcc, first bad commit is http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=a75b1c712f1eaddc69919461ead67f4ac21663fe Looks like a bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31871 can be related. Please note that clang also fails the testcase and the errors/warnings are aligned with gcc's (in the attached files). //wbr ojab --------------020305040005010908010305 Content-Type: text/plain; charset=UTF-8; name="clang.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="clang.log" /tmp/retcast.c:38:7: warning: cast to 'void *' from smaller integer type = 'int' [-Wint-to-pointer-cast] x =3D xpow(2,2); ^ /tmp/retcast.c:33:26: note: expanded from macro 'xpow' #define xpow(x,y) __tg_real_complex_pow((x), (y)) ^ /tmp/retcast.c:24:38: note: expanded from macro '__tg_real_complex_pow' #define __tg_real_complex_pow(x, y) (__RETCAST_2(x, y)( \ ^ /tmp/retcast.c:17:3: note: expanded from macro '__RETCAST_2' (void *)!((!__IS_FP(x) || !__IS_FP(y)) && __FLT((x)+(y)+1= =2E0f))))0 : \ ^ /tmp/retcast.c:38:7: warning: cast to 'void *' from smaller integer type = 'int' [-Wint-to-pointer-cast] x =3D xpow(2,2); ^ /tmp/retcast.c:33:26: note: expanded from macro 'xpow' #define xpow(x,y) __tg_real_complex_pow((x), (y)) ^ /tmp/retcast.c:24:38: note: expanded from macro '__tg_real_complex_pow' #define __tg_real_complex_pow(x, y) (__RETCAST_2(x, y)( \ ^ /tmp/retcast.c:21:3: note: expanded from macro '__RETCAST_2' (void *)((!__IS_FP(x) || !__IS_FP(y)) && (__FLT((x)+(y)+1= =2E0f) || __FLTCX((x)+(y))))))0 ))) ^ /tmp/retcast.c:38:5: error: assigning to 'double' from incompatible type = 'typeof (*(0 ? (typeof (0 ? (double *)0 : (void *)!((!!!((1 ? 1 : ((2))) = / 2) || !!!((1 ? 1 : ((2))) / 2)) && ((!!((1 ? 1 : (((2)) + ((2)) + 1.F))= / 2) && 2 * sizeof (((2)) + ((2)) + 1.F) =3D=3D sizeof ((((2)) + ((2)) += 1.F) + (__extension__ 1.Fi))) && sizeof (((2)) + ((2)) + 1.F) =3D=3D siz= eof(float)))))0 : 0 ? (typeof (0 ? (_Complex double *)0 : (void *)!((!!!(= (1 ? 1 : ((2))) / 2) || !!!((1 ? 1 : ((2))) / 2)) && ((!!((1 ? 1 : (((2))= + ((2)))) / 2) && sizeof (((2)) + ((2))) =3D=3D sizeof ((((2)) + ((2))) = + (__extension__ 1.Fi))) && sizeof (((2)) + ((2))) =3D=3D sizeof(_Complex= float)))))0 : (typeof (0 ? (typeof (((2)) + ((2))) *)0 : (void *)((!!!((= 1 ? 1 : ((2))) / 2) || !!!((1 ? 1 : ((2))) / 2)) && (((!!((1 ? 1 : (((2))= + ((2)) + 1.F)) / 2) && 2 * sizeof (((2)) + ((2)) + 1.F) =3D=3D sizeof (= (((2)) + ((2)) + 1.F) + (__extension__ 1.Fi))) && sizeof (((2)) + ((2)) += 1.F) =3D=3D sizeof(float)) || ((!!((1 ? 1 : (((2)) + ((2)))) / 2) && siz= eof (((2)) + ((2))) =3D=3D sizeof ((((2)) + ((2))) + (__extension__ 1.Fi)= )) && sizeof (((2)) + ((2))) =3D=3D sizeof(_Complex float))))))0))' (aka = 'void') x =3D xpow(2,2); ^ ~~~~~~~~~ 2 warnings and 1 error generated. --------------020305040005010908010305 Content-Type: text/plain; charset=UTF-8; name="gcc.log" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="gcc.log" /tmp/retcast.c: In function ‘main’: /tmp/retcast.c:17:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)!((!__IS_FP(x) || !__IS_FP(y)) && __FLT((x)+(y)+1.0f))))0 : \ ^ /tmp/retcast.c:24:38: note: in expansion of macro ‘__RETCAST_2’ #define __tg_real_complex_pow(x, y) (__RETCAST_2(x, y)( \ ^ /tmp/retcast.c:33:26: note: in expansion of macro ‘__tg_real_complex_pow’ #define xpow(x,y) __tg_real_complex_pow((x), (y)) ^ /tmp/retcast.c:38:7: note: in expansion of macro ‘xpow’ x = xpow(2,2); ^ /tmp/retcast.c:21:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (void *)((!__IS_FP(x) || !__IS_FP(y)) && (__FLT((x)+(y)+1.0f) || __FLTCX((x)+(y))))))0 ))) ^ /tmp/retcast.c:24:38: note: in expansion of macro ‘__RETCAST_2’ #define __tg_real_complex_pow(x, y) (__RETCAST_2(x, y)( \ ^ /tmp/retcast.c:33:26: note: in expansion of macro ‘__tg_real_complex_pow’ #define xpow(x,y) __tg_real_complex_pow((x), (y)) ^ /tmp/retcast.c:38:7: note: in expansion of macro ‘xpow’ x = xpow(2,2); ^ /tmp/retcast.c:38:5: error: void value not ignored as it ought to be x = xpow(2,2); ^ --------------020305040005010908010305--