From: Nathan Sidwell <nathan@codesourcery.com>
To: gcc@gcc.gnu.org
Subject: Type based aliasing
Date: Wed, 02 Oct 2002 14:47:00 -0000 [thread overview]
Message-ID: <3D9B6418.800@codesourcery.com> (raw)
Hi,
Do C's type based aliasing rules mean the following?
void foo (int *ip, float *fp)
{
if (ip == fp)
this_is_unreachable ()
}
I vaguely remember some discussion about this, but can't remember the
conclusion. Presumably IP & FP could point to members of the same union.
(f77 has code like the above, where the condition may or may not be false.)
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
next reply other threads:[~2002-10-02 21:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-02 14:47 Nathan Sidwell [this message]
2002-10-02 15:39 ` Michael Matz
2002-10-02 16:17 ` Michael Matz
2002-10-05 12:00 ` Toon Moene
2002-10-05 12:45 ` Nathan Sidwell
2002-10-05 12:51 Robert Dewar
2002-10-05 13:33 ` Toon Moene
2002-10-05 14:21 Robert Dewar
2002-10-05 15:00 ` Toon Moene
2002-10-05 16:39 Robert Dewar
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=3D9B6418.800@codesourcery.com \
--to=nathan@codesourcery.com \
--cc=gcc@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).