delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/05/16/16:10:24

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=9r1aFi3LHBprLfGWeOyKBy8Uh//oIBDYtyHBAQM7dZg=;
b=sXfE6Eo0RoWUuQZQ9lFt4ivUb0qnPWuVEL1uBiwnBvFZZMXP3LESjP7F7Ke61ZJIck
mVsQ6/Hmeo8FygNsFQzTqqUQHPua+7l6DTs6mB/Y6rzFcBz4Z2woRB2bHOQva2cZo3Pk
QNhPkiJuV3y/1vqF2AMg1K+slf3qShgOH/k5AyQH4obn+WLYhnb2pVIY/M+3FNMcMmvL
pwG4lVWpuSnifgAi3VUHyhcRrVzgl8T6BWcHAJMDcCnBETlffvtIve/0EBZPIy8c9dHi
at1wakVD/u6PXFnKNGQusYqjK9MMPxNvC3u49vFhq4SQ2uc5e6Pe8gjfMc3kfJtXvBhy
DTpQ==
MIME-Version: 1.0
X-Received: by 10.107.12.93 with SMTP id w90mr8228875ioi.10.1431807016846;
Sat, 16 May 2015 13:10:16 -0700 (PDT)
In-Reply-To: <201505042003.t44K3odg011007@delorie.com>
References: <201505042003 DOT t44K3odg011007 AT delorie DOT com>
Date: Sat, 16 May 2015 23:10:16 +0300
Message-ID: <CAA2C=vANYpaR2L+OgTM-2ZX1Pt4NRNpM9Eim0is=UDhG24He9Q@mail.gmail.com>
Subject: Re: ANNOUNCE: DJGPP 2.05 beta 1
From: "Ozkan Sezer (sezeroz AT gmail DOT com)" <djgpp AT delorie DOT com>
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Compilation of the test programs revealed the following
(There were some other warnings, but much less important
or unimportant.)

* tests/libc/posix/fcntl/makef3gb.c
makef3gb.c: In function 'main':
makef3gb.c:44:47: warning: iteration 512000u invokes undefined
behavior [-Waggressive-loop-optimizations]
   for (i = 0; i <= BIGBUFSIZE; i++) bigbuf[i] = (char) i;
                                               ^
makef3gb.c:44:3: note: containing loop
   for (i = 0; i <= BIGBUFSIZE; i++) bigbuf[i] = (char) i;
   ^

Just fixed in makef3gb.c r1.2 by changing comparison from le to lt.


* include/math.h (sincos) :
In file included from strtold1.c:4:0:
../../../../include/math.h:261:8: warning: conflicting types for
built-in function 'sincos'
 void   sincos(double *_cos, double *_sin, double _x);
        ^
In file included from strtod1.c:4:0:
../../../../include/math.h:261:8: warning: conflicting types for
built-in function 'sincos'
 void   sincos(double *_cos, double *_sin, double _x);
        ^

My linux man page for sincos() has the prototype:
void sincos(double x, double *sin, double *cos);
The djgpp version has the parameters in reversed order.
The library compilation doesn't warn because the source
is in assembly not C. What to do with this?

--
O.S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019