use explicit __cp_cancel label in cancellable syscall asm for all archs
commit36e8b6a28be5d4ffad966386b1e1c0d0dc6ca11a
authorRich Felker <dalias@aerifal.cx>
Mon, 2 Nov 2015 21:16:00 +0000 (2 16:16 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 2 Nov 2015 21:16:00 +0000 (2 16:16 -0500)
treef77a1af51bc1fba6dba820d46126be942fb526b7
parentcb1bf2f321b45a06447133b3db00621b7300c456
use explicit __cp_cancel label in cancellable syscall asm for all archs

previously, only archs that needed to do stack cleanup defined a
__cp_cancel label for acting on cancellation in their syscall asm, and
a default definition was provided by a weak alias to __cancel, the C
function. this resulted in wrong codegen for arm on gcc versions
affected by pr 68178 and possibly similar issues (like pr 66609) on
other archs, and also created an inconsistency where the __cp_begin
and __cp_end labels were treated as const data but __cp_cancel was
treated as a function. this in turn caused incorrect code generation
on archs where function pointers point to function descriptors rather
than code (for now, only sh/fdpic).
src/thread/aarch64/syscall_cp.s
src/thread/microblaze/syscall_cp.s
src/thread/or1k/syscall_cp.s
src/thread/powerpc/syscall_cp.s
src/thread/pthread_cancel.c
src/thread/sh/syscall_cp.s
src/thread/x32/syscall_cp.s
src/thread/x86_64/syscall_cp.s