* [PATCH 1/1] Fix small build failure on ppc
@ 2013-02-22 5:22 gilles.talis
2013-02-22 14:47 ` Peter Bergner
0 siblings, 1 reply; 3+ messages in thread
From: gilles.talis @ 2013-02-22 5:22 UTC (permalink / raw)
To: libffi-discuss; +Cc: Gilles Talis
From: Gilles Talis <gilles.talis@gmail.com>
On PPC, if __NO_FPRS__ is defined, fparg_count and NUM_FPR_ARG_REGISTERS
are not defined, thus must not be used.
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
---
src/powerpc/ffi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/powerpc/ffi.c b/src/powerpc/ffi.c
index f3a96a1..9c69584 100644
--- a/src/powerpc/ffi.c
+++ b/src/powerpc/ffi.c
@@ -376,9 +376,10 @@ ffi_prep_args_SYSV (extended_cif *ecif, unsigned *const stack)
with the number found in ffi_prep_cif_machdep(). However, intarg_count
is incremeneted whenever we place an FP arg on the stack, so account for
that before our assert test. */
+#ifndef __NO_FPRS__
if (fparg_count > NUM_FPR_ARG_REGISTERS)
intarg_count -= fparg_count - NUM_FPR_ARG_REGISTERS;
-#ifndef __NO_FPRS__
+
FFI_ASSERT (fpr_base.u
<= stacktop.u - ASM_NEEDS_REGISTERS - NUM_GPR_ARG_REGISTERS);
#endif
--
1.7.10.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] Fix small build failure on ppc
2013-02-22 5:22 [PATCH 1/1] Fix small build failure on ppc gilles.talis
@ 2013-02-22 14:47 ` Peter Bergner
2013-02-22 18:58 ` Gilles Talis
0 siblings, 1 reply; 3+ messages in thread
From: Peter Bergner @ 2013-02-22 14:47 UTC (permalink / raw)
To: gilles.talis; +Cc: libffi-discuss
On Thu, 2013-02-21 at 21:21 -0800, gilles.talis@gmail.com wrote:
> From: Gilles Talis <gilles.talis@gmail.com>
>
> On PPC, if __NO_FPRS__ is defined, fparg_count and NUM_FPR_ARG_REGISTERS
> are not defined, thus must not be used.
>
> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Acked-by: Peter Bergner <bergner@vnet.ibm.com>
Sorry about that and thanks for catching it. I don't have
no-fp system to build on, so I didn't catch that while
submitting my original change.
Peter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] Fix small build failure on ppc
2013-02-22 14:47 ` Peter Bergner
@ 2013-02-22 18:58 ` Gilles Talis
0 siblings, 0 replies; 3+ messages in thread
From: Gilles Talis @ 2013-02-22 18:58 UTC (permalink / raw)
To: Peter Bergner; +Cc: libffi-discuss
Dear Peter,
2013/2/22 Peter Bergner <bergner@vnet.ibm.com>:
> On Thu, 2013-02-21 at 21:21 -0800, gilles.talis@gmail.com wrote:
>> From: Gilles Talis <gilles.talis@gmail.com>
>>
>> On PPC, if __NO_FPRS__ is defined, fparg_count and NUM_FPR_ARG_REGISTERS
>> are not defined, thus must not be used.
>>
>> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
>
> Acked-by: Peter Bergner <bergner@vnet.ibm.com>
>
> Sorry about that and thanks for catching it. I don't have
> no-fp system to build on, so I didn't catch that while
> submitting my original change.
>
> Peter
Sure. I am glad I could help.
Gilles.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-22 18:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22 5:22 [PATCH 1/1] Fix small build failure on ppc gilles.talis
2013-02-22 14:47 ` Peter Bergner
2013-02-22 18:58 ` Gilles Talis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).