From: "Vladimir G. Ivanovic" <vgivanovic@comcast.net>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] gcc 4.1 + CFLAGS
Date: Fri, 09 Jun 2006 13:45:46 -0700 [thread overview]
Message-ID: <1149885946.13126.58.camel@scarlatti.leonora.org> (raw)
In-Reply-To: <200606092050.14377.volker.armin.hemmann@tu-clausthal.de>
On Fri, 2006-06-09 at 20:50 +0200, Hemmann, Volker Armin wrote:
> > If -ffast-math is filtered or stripped out, there is no harm in leaving
> > it in CFLAGS, right?
>
> no, because a lot of other flags are filtered too!
What??? Whether only -ffast-math is filtered or all flags are filtered,
-ffast-math still filtered. I don't see where the harm lies.
> Some ebuilds filter ALL flags, only because some ricers had to use ffast-math
> and other 'controversial' flags.
>
> And some day, you will hit a package, that will built a damaged binary doing
> the wrong stuff, that does not filter out, because nobody knew about it. And
> then you are f*.
>
> >
> > But, on my system, only 14 packages filter out -ffast-math: gnubg
> > postgresql pgcluster libpq zoom mpfr gmp octave openoffice gsl goffice
> > rrdtool xv gimp. None strip it out. So, the huge majority of the
> > packages on my system are compiled with -ffast-math, unless I've made a
> > mistake in grepping for "fast-math" in ebuilds that contain
> > "filter-flags".
>
> and look for 'strip-flags'
There are only small number of ebuilds that strip out all flags.
Certainly less than 30.
>
>
> > http://gcc.gnu.org/ml/gcc/2004-03/msg01511.html
> > For me, it's very simple: If -ffast-math leads to answers that are
> > less accurate (in the verification-against-observation-sense) or unphysical
> > (against theoretical limit analysis), then I'll inspect my Fortran code and
> > repair the formulation (either a single expression or the layout of loop
> > code) that is responsible for the mayhem.
> >
> > Under no circumstances I will give up using -ffast-math.
> >
> >
> > http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/320
> >35.pdf -ffast-math is recommended by AMD.
>
> FOR SPECIAL APPS. AND THIS DOCUMENT IS MEANT FOR PROGRAMMERS! PEOPLE WHO KNOW
> THEIR CODE!
I didn't see anywhere that the AMD document is for special applications
only. Where does it say that?
What it does say is that applications the rely on exact implementation
of IEEE rules or specifications for floating-point behavior shouldn't
use -ffast-math.
>
> >
> > These opinions seem to contradict your advice. Could you be more
> > specific about why -ffast-math should not be used?
>
> no, they don't contradict me. You did not understand them.
>
> Nowhere does AMD tells endusers to build their complete system with that flag.
Chapter 1 Introduction, Section 1.1 Audience says:
This document is intended for ISVs and end-users of the AMD
Athlon 64 processor-based platforms...
It's clear that you think using -ffast-math is dangerous. I don't, so I
plan on continuing to use it. So far, the evidence from my system is in
my favor. (I did run across two more instances, just today, where, in
addition, to busybox, ebuilds fail with -ffast-math: cdparanoia and
pcmciautils.)
What would make me change my mind is some evidence, or some authority
who could convincingly explain why the experiences of those who do use
-ffast-math is anomalous. SHOUTING OR MERELY ASSERTING THAT IT'S A
PROBLEM is not really convincing.
How about continuing this discussion offline?
--- Vladimir
--
Vladimir G. Ivanovic <vgivanovic@comcast.net>
--
gentoo-amd64@gentoo.org mailing list
next prev parent reply other threads:[~2006-06-09 20:51 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 3:59 [gentoo-amd64] gcc 4.1 + CFLAGS Fernando Boaglio
2006-06-09 4:46 ` brian
2006-06-09 5:47 ` Michael Weyershäuser
2006-06-09 11:19 ` Vladimir G. Ivanovic
2006-06-09 11:59 ` Michael Weyershäuser
2006-06-09 12:13 ` Vladimir G. Ivanovic
2006-06-09 12:45 ` Mike Arthur
2006-06-09 13:38 ` Hemmann, Volker Armin
2006-06-09 12:13 ` Ian McCulloch
2006-06-14 14:13 ` Paul de Vrieze
2006-06-09 13:36 ` Hemmann, Volker Armin
2006-06-09 17:11 ` Vladimir G. Ivanovic
2006-06-09 17:56 ` Bob Sanders
2006-06-09 20:22 ` Vladimir G. Ivanovic
2006-06-09 21:14 ` Barry.SCHWARTZ
2006-06-09 21:42 ` Vladimir G. Ivanovic
2006-06-09 22:28 ` Hemmann, Volker Armin
2006-06-14 14:30 ` Paul de Vrieze
2006-06-09 23:02 ` Barry.SCHWARTZ
2006-06-09 18:50 ` Hemmann, Volker Armin
2006-06-09 20:45 ` Vladimir G. Ivanovic [this message]
2006-06-09 22:32 ` Hemmann, Volker Armin
2006-06-14 14:43 ` Paul de Vrieze
2006-06-09 4:57 ` Michael Weyershäuser
2006-06-09 7:11 ` Adam James
2006-06-09 9:13 ` Simon Strandman
2006-06-09 9:53 ` Samir Mishra
2006-06-09 11:33 ` Kirby Walborn
2006-06-09 11:40 ` Simon Stelling
2006-06-09 12:01 ` Vladimir G. Ivanovic
2006-06-09 12:15 ` Simon Stelling
2006-06-09 13:21 ` Samir Mishra
2006-06-09 17:32 ` [gentoo-amd64] " Duncan
2006-06-09 18:57 ` Duncan
2006-06-10 21:09 ` Samir Mishra
2006-06-11 14:33 ` [gentoo-amd64] " Duncan
2006-06-11 16:11 ` Vladimir G. Ivanovic
2006-06-11 17:38 ` [gentoo-amd64] " Duncan
2006-06-11 18:09 ` Barry.SCHWARTZ
2006-06-10 21:14 ` [gentoo-amd64] " Samir Mishra
2006-06-09 13:40 ` [gentoo-amd64] " Hemmann, Volker Armin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1149885946.13126.58.camel@scarlatti.leonora.org \
--to=vgivanovic@comcast.net \
--cc=gentoo-amd64@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox