delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/03/17:03:27

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:reply-to:subject:date:in-reply-to
:message-id:mime-version:references:content-type
:content-transfer-encoding; q=dns; s=default; b=S3zeayPscvlUufd3
6YZFEFbUlaPh8UX5e4sCU223lytDZiBFphJOl9vFf325+8hxyfFnseOWiq41Sirc
kLGEMS9xeJRZkOPHkGhk2QUgtQmKDYP7Jy8HBKppPNTOaXUx9PWVHysR71W3/jR2
B1yno/+C3sb6+vRCXhA8I++woRA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:reply-to:subject:date:in-reply-to
:message-id:mime-version:references:content-type
:content-transfer-encoding; s=default; bh=Fe+LAAwYHU24dp27TLHUAx
uegwU=; b=AfsLuFlRhg1Cpx/YkxEnYdTZbWevNDkz1Lc7Q7MUjQDmZErT9mmuEc
7d/oJcuVB3hhCHkit4TidwRFOYfVzsjRoPvt0PVgtuZDCDl9TtrjGXCifavd9y80
I+MyR/R0jYg4PgR6nVfru83zOWh7cy4keD6koAlDXLSvKeTzmXBe8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*R:D*rambler.ru, Problem, UD:problems.html, unsubscribe-simple
X-HELO: mxout3.rambler.ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rambler.ru; s=mail; t=1564866149; bh=bNq5gl0lyDWtJmWbe45ThiTWW5OoqbdjZCdES6m8nYg=; h=From:To:Reply-To:Subject:Date:In-Reply-To:References; b=JYcjVjPNlPcbY3tcR0AAGW1W+ykJGb/S3H2ms9/ZGMV9Q5SsN21OXaFqbCrLgqspA 0tYERhXiqgfJNizINx0zP3FYe+n+Yi7KuISUKgKHE1Ehaqm0KMLmamrigOB3iuFNv8 eLIvTErRZq52FXvYTRRHnhmlFBYXBY7YEYzdTWSk=
From: "Denis Vnoukov" <imagine AT rambler DOT ru>
To: "cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Denis Vnoukov" <imagine AT rambler DOT ru>
Subject: Re: Combo GCC issues with bugs
Date: Sun, 4 Aug 2019 00:02:29 +0300
In-Reply-To: <1564865987.561926.25803.36864@mail.rambler.ru>
Message-Id: <1564866149.593979.28302.44944@mail.rambler.ru>
MIME-Version: 1.0
References: <1564865987 DOT 561926 DOT 25803 DOT 36864 AT mail DOT rambler DOT ru>
X-Rambler-User: imagine AT rambler DOT ru/5.228.238.131
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x73L38Lb012683

Yes, gcvt is legacy. But there is no one Linux distribution which has no gcvt in
the world.
Moreover gcvt present into MSVC, Intel C, mingw, etc..
It is true to have gcvt with right declaration.
FD_ZERO(&read_fd); <== with -Wold-style-cast produced real bogus and suspicious
warning which looks like bug
GetTickCount64(); <== recommended part of WINAPI and must be avail via windows.h
_BitScanReverse64 and _BitScanForward64 must be with "unsigned long *":
unsigned char _BitScanForward64(
unsigned long * Index,
unsigned __int64 Mask
);
due to ms specification as well...
--
Cheers,
\Denis


  The Linux man page for gcvt says, "Marked as LEGACY in POSIX.1-2001.
  POSIX.1-2008 removes the specification of gcvt(), recommending the use of
  sprintf(3) instead (though snprintf(3) may be preferable)."

  Cygwin's stdlib.h is consistent with this. It guards the declaration of gcvt
  with

  #if __XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200112

  If you really need to use gcvt, I think you probably have to #define
  _XOPEN_SOURCE to be 500. (I haven't tested this.)

  > 2. gcvt function in all standards has declaration like:char *gcvt(double
  number,
  > int ndigit, char *buf);but we have a warning about "int-conversion" and get
  core
  > dump on line:printf("buffer: %s", str);

  This is a consequence of the fact that gcvt hasn't been declared.

  I haven't looked at the rest of the warnings/errors in your message, but I
  suspect you can figure out the causes yourself by looking at the relevant
  headers and/or by looking at the result of preprocessing. You might also find
  the following helpful:

  https://cygwin.com/faq.html#faq.programming.64bitporting

  Ken

  --
  Problem reports: http://cygwin.com/problems.html
  FAQ: http://cygwin.com/faq/
  Documentation: http://cygwin.com/docs.html
  Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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