unaligned access using bash on glibc 2.5
Quoted 7 lines
Quoted 5 lines
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
Signature · 6 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6602) _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux