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]

Re: pa.md bugfix


>   > > + ;; We use the PIC register to ensure it's restored after a
>   > > + ;; call in PIC mode.  This can be non-optimal for non-PIC
>   > > + ;; code but the real world cost should be unmeasurable.
>   > >   (define_insn "return_internal"
>   > 
>   > Suggest two insns: pic_return_internal and return_internal.  We only
>   > need the extra use in pic_return_internal.
> Already considered it.  It's not worth the time/effort.
> 
> FWIW, there *is* a minor bug in the patch.  It breaks PA64 because of the
> mode on the use of the PIC register.  I'll fix that in a minute.

Are you still interested in this patch:
<http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01482.html>?  The
EPILOGUE_USES part is no longer necessary although I have found that
it doesn't hurt to to define the uses in both places.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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