This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] |
On Wed 05 Mar 2014 00:11:01 Carlos O'Donell wrote: > This is one of a several NPTL patches to build glibc on hppa. > > The pthread_attr_[sg]etstack functions are defined by POSIX as > taking a stackaddr that is the lowest addressable byte of the > storage used for the stack. However, the internal iattr variable > of the same name in NPTL is actually the final stack address > as usable in the stack pointer for the machine. Therefore the > NPTL implementation must add and subtract stacksize for > _STACK_GROWS_DOWN architectures. HPPA is a _STACK_GROWS_UP > architecture and doesn't need to add or subtract anything, > the stack address *is* the lowest addressable byte of the > storage. > > Tested on hppa-linux-gnu, with no regressions. > > Can't impact any other targets because of the conditionals. > > If nobody objects I'll check this in at the end of the week. sorry Carlos, i got impatient and fixed the #if/#ifdef and pushed it ;) > I can't see there being any objections to this patch except > that it introduces more code to maintain for an old architecture > (perhaps we'll get another _S_G_U target in the future?). if the metag arch ever gets merged, it's _S_G_U iiuc -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |