This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ pointer tracking question
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: jason at redhat dot com
- Cc: gcc at gcc dot gnu dot org, law at redhat dot com
- Date: Mon, 20 May 2002 10:38:27 -0700 (PDT)
- Subject: Re: g++ pointer tracking question
> Does this fix the problem?
Yes, my code correctly compiles with this change. On IA64 HP-UX, in
ILP32 mode, it does not do an optimization that I want because the
pointer that the offset is being added to is not marked as a pointer but
that may be a bug in my own IA64 specific code or it could be a bug in
the more generic POINTERS_EXTEND_UNSIGNED code, I am not sure. When I
generate LP64 code everything seems marked correctly as to whether it is
a pointer or not. At any rate, while I miss an opportunity for a
platform specific optimization, I do not generate any bad code, so I
like the change and think it is better then my local change which was to
just turn off the optimization entirely when compiling C++. This will
only turn off the optimization in certain cases where it is known that
it cannot do it safely.
Steve Ellcey
sje@cup.hp.com