[parisc-linux] unaligned access using bash on glibc 2.5
John David Anglin
dave at hiauly1.hia.nrc.ca
Wed May 2 11:17:01 MDT 2007
> > This is a bug in __attribute__ ((tls_model ("initial-exec"))). It
> > doesn't express that it uses r19. As a result, GCC is free to optimize
> > the save and restore of r19 across the call to free away.
> >
> > The same is true of the asm.
>
> What would be the correct way to express that?
As far as the tls_model attribute goes, I can see that the TLS patterns
in pa.md (e.g., tgd_load) don't express their dependence on r19 and r27.
I think the simplest fix is to use expanders and separate patterns for
pic and non-pic. This will allow different rtl for the two cases.
Asms that use the pic register need to express that dependence in their
list of input operands.
Dave
--
J. David Anglin dave.anglin at nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the parisc-linux
mailing list