www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4AF3520B.60803@gmail.com> |
Date: | Thu, 05 Nov 2009 22:30:35 +0000 |
From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: status of gcc4 -ffast-math |
References: | <hcvglt$uj2$1 AT ger DOT gmane DOT org> |
In-Reply-To: | <hcvglt$uj2$1@ger.gmane.org> |
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 |
Hans Horn wrote: > Folks, > > what is the current status of -ffast-math for gcc4 under cygwin. > > I tried to use it for some numerical C code and get the following link > errors: > > eval.o:eval.c:(.text+0x79c): undefined reference to `_f_pow' > eval.o:eval.c:(.text+0x7d8): undefined reference to `_f_log' > eval.o:eval.c:(.text+0x7f0): undefined reference to `_f_exp' WJFFM: > $ cat math.c > > #include <math.h> > > int main (int argc, const char **argv) > { > > float f = atof (argv[1]); > double d = log (f); > return exp (f); > } > > > admin AT ubik /tmp/math > $ gcc-4 math.c -o math > > admin AT ubik /tmp/math > $ gcc-4 math.c -o math -ffast-math > > admin AT ubik /tmp/math > $ gcc-4 math.c -o math -ffast-math -O2 > > admin AT ubik /tmp/math > $ gcc-4 math.c -o math -ffast-math -O3 > > admin AT ubik /tmp/math > $ Perhaps a few more details about what you're doing, a simple reproducible testcase, what kind of command-lines you're using, etc. etc... might help. cheers, DaveK -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |