This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: PR target/19890 - gcc.dg/20020219-1.c fails on IA64 HP-UX


> > I tested it on IA64 HP-UX and Linux.
> >
> > OK for checkin?
> 
> Sure.  Could you see if 20020219-1.c works when compiled with this
> option?
> 
> zw

I knew there was something I forgot to do.  Unfortunately, the change
does not fix 20020219-1.c.  While the change prevents combining pointer
extension and pointer addition into a single addp4 it does not control
the ordering of those two operations.  So even with this patch, inside
function foo in the test case, we extend the pointer then add the
offset.  To get it to work we need to add the offset first and then
extend the pointer.  I am not sure if that is something that we can
easily control or not.  I will see if I can figure out what part of the
optimizer is doing the reordering.

Steve Ellcey
sje@cup.hp.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]