From: Paul de Vrieze <pauldv@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: Dying on some CFLAGS instead of filtering them.
Date: Sun, 16 Jul 2006 21:55:48 +0200 [thread overview]
Message-ID: <200607162156.03932.pauldv@gentoo.org> (raw)
In-Reply-To: <e91fb8$f1l$1@sea.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2341 bytes --]
On Tuesday 11 July 2006 04:32, Ryan Hill wrote:
> If yes, why ? And what is your better idea ?
>
> I prefer a filter-flags with a ewarn (or elog, haven't read that thread yet
> ;)) message.
>
> * The -ffast-math option is known to break this package and has been
> filtered from your CFLAGS. Link to Safe CFLAGS wiki page, blah blah blah.
>
> I like this better because it informs me of what I did wrong, what was done
> to correct it, and how I can correct it for myself in the future if I
> choose to. I don't like artificial barriers and things not working without
> immediate attention. Call me lazy but it's annoying when you know what
> you're doing yet you have to jump through hoops to get it done.
The die would use the same message. Next, it would actually stop immediately
instead of letting you continue further and break in the long run.
Using -ffast-math globally is just broken. In some packages it may work. In
others it doesn't.
My argument is that we must not filter -ffast-math or any other dangerous
cflags. The reason being that people will request more filters for all
packages that don't work with it. Many users will either ignore or miss the
warning messages. Filtering the flag basically tells them that even though
the message says it is dangerous, their use of the flag is still more or less
supported, while it is not.
> Okay, bad joke aside, there are always going to be users who tweak GCC
> flags. This has to be expected, as they're mysterious, and technical, and
> kinda cool. I like the tweaker crowd and I am a dummy, so no offense was
> intended to either groups. I meant that if you safety-proof a complex
> system, people never learn that they're doing anything wrong in the first
> place.
Exactly, filtering the flags is safety-proofing. So just die, or not filter at
all.
> Right, but how are people supposed to learn something is dangerous if all
> the sharp edges have been filed off? And how can you decide which flags
> are "bad" and "good" on a global level when for the most part compiler
> parameters are akin to black magic?
In this case the compiler documentation itself says it is dangerous. That
should be enough.
Paul
--
Paul de Vrieze
Gentoo Developer
Mail: pauldv@gentoo.org
Homepage: http://www.devrieze.net
[-- Attachment #2: Type: application/pgp-signature, Size: 200 bytes --]
next prev parent reply other threads:[~2006-07-16 20:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-09 21:24 [gentoo-dev] Dying on some CFLAGS instead of filtering them Denis Dupeyron
2006-07-09 21:32 ` Ciaran McCreesh
2006-07-15 11:54 ` Denis Dupeyron
2006-07-15 13:59 ` Ciaran McCreesh
2006-07-09 23:51 ` [gentoo-dev] " Ryan Hill
2006-07-10 12:51 ` Denis Dupeyron
2006-07-11 2:32 ` Ryan Hill
2006-07-15 12:39 ` Denis Dupeyron
2006-07-15 16:33 ` Ryan Hill
2006-07-15 17:38 ` Ryan Hill
2006-07-16 19:55 ` Paul de Vrieze [this message]
2006-07-16 20:20 ` Ryan Hill
2006-07-16 19:37 ` Paul de Vrieze
2006-07-10 8:34 ` [gentoo-dev] " Richard Fish
2006-07-10 10:16 ` Ned Ludd
2006-07-10 16:01 ` Richard Fish
2006-07-10 17:08 ` Zac Medico
2006-07-10 20:30 ` Richard Fish
2006-07-10 20:42 ` Simon Stelling
2006-07-10 21:01 ` Richard Fish
2006-07-10 21:22 ` Donnie Berkholz
2006-07-10 12:25 ` [gentoo-dev] " Duncan
2006-07-10 13:20 ` [gentoo-dev] " Patrick McLean
2006-07-16 20:08 ` Paul de Vrieze
2006-07-10 14:42 ` Ciaran McCreesh
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=200607162156.03932.pauldv@gentoo.org \
--to=pauldv@gentoo.org \
--cc=gentoo-dev@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