From: Alexandre Oliva <aoliva@redhat.com>
To: Joe Buck <Joe.Buck@synopsys.com>
Cc: bkorb@pacbell.net (Bruce Korb), dewar@gnat.com (Robert Dewar),
zack@codesourcery.com, gcc@gcc.gnu.org
Subject: Re: module level flags
Date: Tue, 01 Oct 2002 14:25:00 -0000 [thread overview]
Message-ID: <orwup1yivv.fsf@free.redhat.lsd.ic.unicamp.br> (raw)
In-Reply-To: <200210011827.LAA11402@atrus.synopsys.com>
On Oct 1, 2002, Joe Buck <Joe.Buck@synopsys.com> wrote:
> In practice, the case for unions will be supported by all compilers that
> are acceptable to users: code to use unions to get at the bit-level
> representation of floating-point numbers is required, and it is
> well-understood to be implementation-dependent. Without the ability to
> write unions one way and read them another way, it's not possible to
> write IEEE isnan() or isinf() routines in C; assembly would be needed.
Unless you use volatile.
>> A hard error would probably be inappropriate, since the compiler can't
>> tell in general whether the code in question would actually be
>> executed, a condition necessary for the undefined behavior to actually
>> be invoked.
> At least in the case where the bad code is always reached if the
> function is called, a hard error might be reasonable.
Nope. Consider a function that would only be called with arguments
that were known not to run into any aliasing problems. When the
compiler can't tell, it is required to translate the code.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
next prev parent reply other threads:[~2002-10-01 21:02 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <orn0py67ug.fsf@free.redhat.lsd.ic.unicamp.br>
2002-10-01 11:33 ` Joe Buck
2002-10-01 12:16 ` Geoff Keating
2002-10-05 21:03 ` Kai Henningsen
2002-10-06 6:36 ` Gabriel Dos Reis
2002-10-06 8:25 ` Nathan Sidwell
2002-10-06 8:29 ` Gabriel Dos Reis
2002-10-01 12:29 ` Bruce Korb
2002-10-01 14:14 ` Alexandre Oliva
2002-10-01 14:25 ` Alexandre Oliva [this message]
2002-10-03 16:46 ` Joe Buck
2002-10-03 17:34 ` Zack Weinberg
2002-10-03 18:07 ` Richard Henderson
2002-10-02 0:53 Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
2002-10-01 13:58 Robert Dewar
2002-10-01 14:54 ` Joe Buck
2002-10-01 15:40 ` Michael Matz
2002-10-05 11:36 ` Toon Moene
2002-09-29 14:03 Robert Dewar
2002-09-29 13:42 Robert Dewar
2002-09-29 14:52 ` Russ Allbery
2002-09-29 13:38 Robert Dewar
2002-09-29 13:36 Robert Dewar
2002-09-29 13:38 ` Bruce Korb
2002-09-29 14:05 ` Russ Allbery
2002-09-29 10:45 Robert Dewar
2002-09-29 10:31 Robert Dewar
2002-09-29 6:40 Robert Dewar
2002-09-29 10:05 ` Bruce Korb
2002-09-29 10:17 ` Gabriel Dos Reis
2002-09-29 10:45 ` Bruce Korb
2002-09-29 11:36 ` Gabriel Dos Reis
2002-09-29 13:06 ` Daniel Jacobowitz
2002-09-29 13:08 ` Bruce Korb
2002-09-29 13:21 ` Daniel Jacobowitz
2002-09-29 10:49 ` Russ Allbery
2002-09-30 21:33 ` Alexandre Oliva
2002-09-30 21:42 ` Bruce Korb
2002-09-28 16:41 Bruce Korb
2002-09-28 16:52 ` Tim Prince
2002-09-28 16:53 ` Bruce Korb
2002-09-28 18:06 ` Zack Weinberg
2002-09-28 18:20 ` Bruce Korb
2002-09-28 20:56 ` Zack Weinberg
2002-09-28 22:08 ` Bruce Korb
2002-09-29 15:46 ` Geoff Keating
2002-09-29 3:20 ` Robert Dewar
2002-09-29 11:55 ` Zack Weinberg
2002-09-29 13:10 ` Bruce Korb
2002-09-29 13:59 ` Zack Weinberg
2002-09-29 17:21 ` Tom Tromey
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=orwup1yivv.fsf@free.redhat.lsd.ic.unicamp.br \
--to=aoliva@redhat.com \
--cc=Joe.Buck@synopsys.com \
--cc=bkorb@pacbell.net \
--cc=dewar@gnat.com \
--cc=gcc@gcc.gnu.org \
--cc=zack@codesourcery.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).