X-Recipient: archive-cygwin@delorie.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:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=GCyhnVrWDt3/SdQjH8bUP7238MuTx91DbxV502p4661
	5yBG0Zs1YBR6uGNXAWSyktlulFr1DauLQAby6ejstEBfClMAFp97DC4+rOjPkmN1
	LOhmmdkthY3tigGcckOvGlw1VUYjYgHdp7Yh9Xjk50okE2SsaXvdo9zTT5/4/Niw
	=
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:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=2xFztTM55lt35mRX2t6j7HfJxgE=; b=KYz1uTJjwl28YdyKO
	lG6IMZVLg6IQIfuPxQKpvM/lShrQWfROOVnbDhLusZQpM78sD9epyVg1mBqf8jHP
	0AJI2mLJFm2CfeNPDOoNUslaf6ENcKkF3yNw7oGxDw4eAmd5Vtp1Y+Xd/HpesCtC
	vxyVV7zPOTlTfsJAapTn9HyEXI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=BAYES_05,KAM_MX4,SPF_PASS autolearn=no version=3.3.2 spammy=UD:ne.jp, D*ne.jp, H*F:D*ne.jp
X-HELO: conssluserg-02.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com u3EA0J61007230
X-Nifty-SrcIP: [175.179.203.217]
Date: Thu, 14 Apr 2016 19:00:25 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: multiple definition of `atan2l' on the current Cygwin
Message-Id: <20160414190025.fec117c21bb05fd0ac28592e@nifty.ne.jp>
In-Reply-To: <20160414075205.GD1264@calimero.vinschen.de>
References: <888012.8502.qm@web101106.mail.kks.yahoo.co.jp>	<20160412133924.GO9870@calimero.vinschen.de>	<58477.93886.qm@web101112.mail.kks.yahoo.co.jp>	<neltp4$c89$1@ger.gmane.org>	<20160414075205.GD1264@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Hi Corinna,

On Thu, 14 Apr 2016 09:52:05 +0200
Corinna Vinschen wrote:
> If it's that simple, why does my STC (or a simple variation thereof) not
> complain?

It is because optimizer removes the function call.

Try:

$ cat > m.cc <<EOF
#include <cstdio>
#include <cmath>

int main()
{
  long double x, y;
  scanf("%Lf %Lf", &x, &y);
  printf("%Lf\n", atan2l(x,y));
  return 0;
}
EOF
$ g++ m.cc -lm

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
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

