From: Diego Novillo <dnovillo@redhat.com>
To: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: [RFC] ignoring type alias conflicts between structures and scalars
Date: Thu, 25 Nov 2004 21:17:00 -0000 [thread overview]
Message-ID: <1101416545.12517.31.camel@localhost.localdomain> (raw)
In-Reply-To: <10411252103.AA08279@vlsi1.ultra.nyu.edu>
On Thu, 2004-11-25 at 16:03 -0500, Richard Kenner wrote:
> But if we just have a structure reference and a global variable, we
> won't ever have this problem. The aliasing code doesn't look at
> those. It only ever looks at pointers vs addressable variables. It
> doesn't care about other variables.
>
> You lost me. Isn't a global variable an addressable variable?
>
Yes, but if there are no pointers involved, it will never be considered
for aliasing:
int X;
foo()
{
struct int_float_s x = bar();
X = 10;
x.i = 3;
return X;
}
Diego.
next prev parent reply other threads:[~2004-11-25 21:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-25 21:02 Richard Kenner
2004-11-25 21:17 ` Diego Novillo [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-11-25 18:03 Richard Kenner
2004-11-25 17:48 Richard Kenner
2004-11-25 16:28 Richard Kenner
2004-11-25 16:53 ` Diego Novillo
2004-11-25 17:39 ` Daniel Berlin
2004-11-25 16:11 Richard Kenner
2004-11-25 16:02 Richard Kenner
2004-11-25 16:12 ` Diego Novillo
2004-11-25 16:28 ` Andrew Pinski
2004-11-25 15:38 Diego Novillo
2004-11-25 16:18 ` Daniel Berlin
2004-11-25 17:48 ` Nathan Sidwell
2004-11-25 18:03 ` Joseph S. Myers
2004-11-25 20:55 ` Jeffrey A Law
2004-11-25 20:58 ` Diego Novillo
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=1101416545.12517.31.camel@localhost.localdomain \
--to=dnovillo@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=kenner@vlsi1.ultra.nyu.edu \
/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).