This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: fix ifunc-sel.h with GCC 6
- From: Florian Weimer <fweimer at redhat dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>, libc-alpha at sourceware dot org
- Date: Thu, 21 Jul 2016 13:53:06 +0200
- Subject: Re: [PATCH] powerpc: fix ifunc-sel.h with GCC 6
- Authentication-results: sourceware.org; auth=none
- References: <1469093774-25485-1-git-send-email-aurelien@aurel32.net>
On 07/21/2016 11:36 AM, Aurelien Jarno wrote:
On 32-bit PowerPC GCC 6 always saves the PIC register on the stack in
the prologue and adjust the stack in the epilogue. It is therefore not
possible anymore to just exit the function in the inline asm code,
otherwise it corrupts the stack pointer. This causes the following tests
to fail when using GCC 6:
: "=r" (ret)
: "X" (&global), "X" (f1), "X" (f2), "X" (f3));
return ret;
The inline assembly still lacks clobbers for registers 11 and 12, and
the "X" constraint is incorrect (it should be "i", I think).
Florian