public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gcc Digest 21 Mar 2004 05:08:56 -0000 Issue 3435
       [not found] <1079845736.15963.ezmlm@gcc.gnu.org>
@ 2004-03-22  2:08 ` R. D. Flowers
  2004-03-22  2:39 ` jFP religious wars R. D. Flowers
  1 sibling, 0 replies; 9+ messages in thread
From: R. D. Flowers @ 2004-03-22  2:08 UTC (permalink / raw)
  To: gcc

After months of reading this list, I timidly venture my first post.

Dear esteemed,
would not some flag like -fp-pedantic (or however to fit in the namespace) be a good idea (for both decent sets of folks: the fast-and-a-little-dirty and the clean-and-a-little-slow people)?

--
R. D. Flowers, Chattanooga
http://chatta.us/resume.txt


^ permalink raw reply	[flat|nested] 9+ messages in thread

* jFP religious wars
       [not found] <1079845736.15963.ezmlm@gcc.gnu.org>
  2004-03-22  2:08 ` gcc Digest 21 Mar 2004 05:08:56 -0000 Issue 3435 R. D. Flowers
@ 2004-03-22  2:39 ` R. D. Flowers
  2004-03-22  3:35   ` Zack Weinberg
  1 sibling, 1 reply; 9+ messages in thread
From: R. D. Flowers @ 2004-03-22  2:39 UTC (permalink / raw)
  To: gcc

After months of reading this list, I timidly venture my first post.

Dear esteemed,
would not some flag like -fp-pedantic (or however to fit in the namespace) be a good idea (for both decent sets of folks: the fast-and-a-little-dirty and the clean-and-a-little-slow people)?

--
R. D. Flowers, Chattanooga
http://chatta.us/resume.txt




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22  2:39 ` jFP religious wars R. D. Flowers
@ 2004-03-22  3:35   ` Zack Weinberg
  2004-03-22  4:00     ` R. D. Flowers
  2004-03-22  8:03     ` Robert Dewar
  0 siblings, 2 replies; 9+ messages in thread
From: Zack Weinberg @ 2004-03-22  3:35 UTC (permalink / raw)
  To: R. D. Flowers; +Cc: gcc

"R. D. Flowers" <rd@chatta.us> writes:

> would not some flag like -fp-pedantic (or however to fit in the
> namespace) be a good idea (for both decent sets of folks: the
> fast-and-a-little-dirty and the clean-and-a-little-slow people)?

Maybe.  What would it do?

zw

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22  3:35   ` Zack Weinberg
@ 2004-03-22  4:00     ` R. D. Flowers
  2004-03-22  8:06       ` Robert Dewar
  2004-03-22  8:03     ` Robert Dewar
  1 sibling, 1 reply; 9+ messages in thread
From: R. D. Flowers @ 2004-03-22  4:00 UTC (permalink / raw)
  To: Zack Weinberg; +Cc: gcc

Really sort of an inverse of -fast-math -- an insistence on total floating point correctness at the expense of any optimization that would water the correctness down any. Without it, roundings etc. thought to be minor would be allowed to happen in the middle end. I guess.

Zack Weinberg wrote:

> "R. D. Flowers" <rd@chatta.us> writes:
> 
> 
>>would not some flag like -fp-pedantic (or however to fit in the
>>namespace) be a good idea (for both decent sets of folks: the
>>fast-and-a-little-dirty and the clean-and-a-little-slow people)?
> 
> 
> Maybe.  What would it do?
> 
> zw
> 
> 
> .
> 


-- 
--
R. D. Flowers, O. H.
Xinna R. Coloohiy
The Bear At Home
Now a single dad.

I   M i s s   A m e r i c a

http://chalice.us/mylinks
http://chalice.us/pho
http://chalice.us/poe
http://chatta.us/resume.txt
Mailing lists at http://chatta.us

-- "He who cannot protect himself or his nearest and dearest or
their honor by non-violently facing death may and ought to do so
by violently dealing with the oppressor. He who can do neither of
the two is a burden."
-- Mohandes Ghandi

Refer !
Stop Tritium !

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22  3:35   ` Zack Weinberg
  2004-03-22  4:00     ` R. D. Flowers
@ 2004-03-22  8:03     ` Robert Dewar
  2004-03-22 11:37       ` Gabriel Dos Reis
  1 sibling, 1 reply; 9+ messages in thread
From: Robert Dewar @ 2004-03-22  8:03 UTC (permalink / raw)
  To: Zack Weinberg; +Cc: R. D. Flowers, gcc

Zack Weinberg wrote:
> "R. D. Flowers" <rd@chatta.us> writes:
> 
> 
>>would not some flag like -fp-pedantic (or however to fit in the
>>namespace) be a good idea (for both decent sets of folks: the
>>fast-and-a-little-dirty and the clean-and-a-little-slow people)?
> 
> 
> Maybe.  What would it do?

I don't think this would work. There is nothing "pedantic" in
the carefully formulated rules that make it easier/possible
to write accurate floating-point code. It is far better to
have the existing flags for -ffast-math etc, which clearly
warn that the resulting semantics may be unreliable.

The use of -pedantic to cover little used language features
or rules is one thing, the use of a flag like this to give
incorrect semantics.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22  4:00     ` R. D. Flowers
@ 2004-03-22  8:06       ` Robert Dewar
  0 siblings, 0 replies; 9+ messages in thread
From: Robert Dewar @ 2004-03-22  8:06 UTC (permalink / raw)
  To: base; +Cc: Zack Weinberg, gcc

R. D. Flowers wrote:

> Really sort of an inverse of -fast-math -- an insistence on total 
> floating point correctness at the expense of any optimization that would 
> water the correctness down any. Without it, roundings etc. thought to be 
> minor would be allowed to happen in the middle end. I guess.

Rounding is not some pedantic issue, proper rounding means that
you can reason much more clearly about floating-point semantics.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22  8:03     ` Robert Dewar
@ 2004-03-22 11:37       ` Gabriel Dos Reis
  2004-03-22 12:45         ` R. D. Flowers
  0 siblings, 1 reply; 9+ messages in thread
From: Gabriel Dos Reis @ 2004-03-22 11:37 UTC (permalink / raw)
  To: Robert Dewar; +Cc: Zack Weinberg, R. D. Flowers, gcc

Robert Dewar <dewar@gnat.com> writes:

| Zack Weinberg wrote:
| > "R. D. Flowers" <rd@chatta.us> writes:
| >
| >>would not some flag like -fp-pedantic (or however to fit in the
| >>namespace) be a good idea (for both decent sets of folks: the
| >>fast-and-a-little-dirty and the clean-and-a-little-slow people)?
| > Maybe.  What would it do?
| 
| I don't think this would work. There is nothing "pedantic" in
| the carefully formulated rules that make it easier/possible
| to write accurate floating-point code. It is far better to
| have the existing flags for -ffast-math etc, which clearly
| warn that the resulting semantics may be unreliable.

Fully agreed.

| The use of -pedantic to cover little used language features
| or rules is one thing, the use of a flag like this to give
| incorrect semantics.

In fact, the flag "-pedantic" is misnamed -- at least, for what it does
currently in C++ (I think the same is true for C).  It is there only
for historical accident.  Multiplying that naming by a factor greater
than 1 would be misguided.

-- Gaby

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22 11:37       ` Gabriel Dos Reis
@ 2004-03-22 12:45         ` R. D. Flowers
  2004-03-22 13:25           ` Robert Dewar
  0 siblings, 1 reply; 9+ messages in thread
From: R. D. Flowers @ 2004-03-22 12:45 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: Robert Dewar, Zack Weinberg, gcc

Gabriel Dos Reis wrote:

> Robert Dewar <dewar@gnat.com> writes:
> 
> | Zack Weinberg wrote:
> | > "R. D. Flowers" <rd@chatta.us> writes:
> | >
> | >>would not some flag like -fp-pedantic (or however to fit in the
> | >>namespace) be a good idea (for both decent sets of folks: the
> | >>fast-and-a-little-dirty and the clean-and-a-little-slow people)?
> | > Maybe.  What would it do?
> | 
> | I don't think this would work. There is nothing "pedantic" in
> | the carefully formulated rules that make it easier/possible
> | to write accurate floating-point code. It is far better to
> | have the existing flags for -ffast-math etc, which clearly
> | warn that the resulting semantics may be unreliable.
> 
> Fully agreed.
> 
> | The use of -pedantic to cover little used language features
> | or rules is one thing, the use of a flag like this to give
> | incorrect semantics.


Welllll, as far as what to do, you folks probably do in fact know best.

But, if some code is broken by -pedantic, isn't it also incorrect in SOME picky litte sense? 

That people in some of their actual situations might not care about? Similar (in some actual situations) to not caring about that final shred of accuracy?


> 
> In fact, the flag "-pedantic" is misnamed -- at least, for what it does
> currently in C++ (I think the same is true for C).  It is there only
> for historical accident.  Multiplying that naming by a factor greater
> than 1 would be misguided.
> 
> -- Gaby
> 
> 
> 


-- 

R. D. Flowers, O. H.
Xinna R. Coloohiy
The Bear At Home
Now a single dad.

I   M i s s   A m e r i c a

http://chalice.us/mylinks
http://chalice.us/pho
http://chalice.us/poe
http://chatta.us/resume.txt
Mailing lists at http://chatta.us

-- "He who cannot protect himself or his nearest and dearest or
their honor by non-violently facing death may and ought to do so
by violently dealing with the oppressor. He who can do neither of
the two is a burden."
-- Mohandes Ghandi

Refer !
Stop Tritium !

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: jFP religious wars
  2004-03-22 12:45         ` R. D. Flowers
@ 2004-03-22 13:25           ` Robert Dewar
  0 siblings, 0 replies; 9+ messages in thread
From: Robert Dewar @ 2004-03-22 13:25 UTC (permalink / raw)
  To: base; +Cc: Gabriel Dos Reis, Zack Weinberg, gcc

R. D. Flowers wrote:

> But, if some code is broken by -pedantic, isn't it also incorrect in 
> SOME picky litte sense?
> That people in some of their actual situations might not care about? 
> Similar (in some actual situations) to not caring about that final shred 
> of accuracy?

Not at all similar, please review what -pedantic does (don't just
reason from the name :-)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-22  4:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1079845736.15963.ezmlm@gcc.gnu.org>
2004-03-22  2:08 ` gcc Digest 21 Mar 2004 05:08:56 -0000 Issue 3435 R. D. Flowers
2004-03-22  2:39 ` jFP religious wars R. D. Flowers
2004-03-22  3:35   ` Zack Weinberg
2004-03-22  4:00     ` R. D. Flowers
2004-03-22  8:06       ` Robert Dewar
2004-03-22  8:03     ` Robert Dewar
2004-03-22 11:37       ` Gabriel Dos Reis
2004-03-22 12:45         ` R. D. Flowers
2004-03-22 13:25           ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).