public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi
@ 2006-09-20 16:49 howarth at nitro dot med dot uc dot edu
2006-09-20 17:21 ` [Bug libffi/29152] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 11+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-20 16:49 UTC (permalink / raw)
To: gcc-bugs
Currently, due to the absence of a 64-bit port for Darwin PPC, the libffi
suffers massive failures on that architecture at -m64...
=== libffi Summary for unix/-m32 ===
# of expected passes 1068
# of expected failures 8
# of unsupported tests 8
=== libffi Summary for unix/-m64 ===
# of expected passes 472
# of unexpected failures 384
# of expected failures 8
# of unsupported tests 8
=== libffi Summary ===
# of expected passes 1540
# of unexpected failures 384
# of expected failures 16
# of unsupported tests 16
--
Summary: 64-bit darwin ppc port needed for libffi
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libffi
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: powerpc-apple-darwin8
GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
@ 2006-09-20 17:21 ` pinskia at gcc dot gnu dot org
2006-09-22 16:51 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-20 17:21 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
2006-09-20 17:21 ` [Bug libffi/29152] " pinskia at gcc dot gnu dot org
@ 2006-09-22 16:51 ` pinskia at gcc dot gnu dot org
2006-09-22 18:19 ` andreast at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-22 16:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-22 16:51 -------
*** Bug 29181 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
2006-09-20 17:21 ` [Bug libffi/29152] " pinskia at gcc dot gnu dot org
2006-09-22 16:51 ` pinskia at gcc dot gnu dot org
@ 2006-09-22 18:19 ` andreast at gcc dot gnu dot org
2006-12-09 20:24 ` andreast at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2006-09-22 18:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from andreast at gcc dot gnu dot org 2006-09-22 18:19 -------
For the 64-bit Darwin PPC port of libffi you have to follow the 64-bit calling
conventions:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/index.html
Also, take a look at src/powerpc/ffi.c on how it is done for linux ppc 32 vs.
64-bit.
It does not help to make the 32-bit port compilable with -m64.
You need to write the 64-bit part!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
` (2 preceding siblings ...)
2006-09-22 18:19 ` andreast at gcc dot gnu dot org
@ 2006-12-09 20:24 ` andreast at gcc dot gnu dot org
2007-12-18 17:14 ` howarth at nitro dot med dot uc dot edu
` (2 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2006-12-09 20:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from andreast at gcc dot gnu dot org 2006-12-09 20:23 -------
*** Bug 30134 has been marked as a duplicate of this bug. ***
--
andreast at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lucier at math dot purdue
| |dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
` (3 preceding siblings ...)
2006-12-09 20:24 ` andreast at gcc dot gnu dot org
@ 2007-12-18 17:14 ` howarth at nitro dot med dot uc dot edu
2007-12-18 19:07 ` andreast at gcc dot gnu dot org
2008-01-30 22:15 ` dominiq at lps dot ens dot fr
6 siblings, 0 replies; 11+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-12-18 17:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from howarth at nitro dot med dot uc dot edu 2007-12-18 17:14 -------
Andreas,
Can't we duplicate the existing code in darwin.S, darwin_closure.S,
ffi_darwin.c and sysv.S and wrapper it with a test for __powerpc64__ as a
starting point. I think if we at least get discussion going about what needs
changed we might slowly progress this PR. Looking at...
http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/Articles/32bitPowerPC.html#//apple_ref/doc/uid/TP40002438
http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/Articles/64bitPowerPC.html#//apple_ref/doc/uid/TP40002471
I see that in the Size and natural alignment of the scalar data types table the
main differences between 32-bit and 64-bit are...
32-bit 64-bit
Bool 4 1
unsigned long 4 8
signed long 4 8
pointer 4 8
Parameter area to general-purpose register mapping
32-bit 64-bit
GPR3 SP+24 SP+48
GPR4 SP+28 SP+56
GPR5 SP+32 SP+64
GPR6 SP+36 SP+72
GRP7 SP+40 SP+80
GPR8 SP+44 SP+88
GPR9 SP+48 SP+96
GPR10 SP+52 SP+104
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
` (4 preceding siblings ...)
2007-12-18 17:14 ` howarth at nitro dot med dot uc dot edu
@ 2007-12-18 19:07 ` andreast at gcc dot gnu dot org
2008-01-30 22:15 ` dominiq at lps dot ens dot fr
6 siblings, 0 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2007-12-18 19:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from andreast at gcc dot gnu dot org 2007-12-18 19:07 -------
Jack,
you can try, but I think it is a bit wasted time. Well, depends on how long the
process takes to get the patches from apple.
[wolfram:gcc/head/objdir] andreast% file /usr/lib/libffi.dylib
/usr/lib/libffi.dylib: Mach-O universal binary with 4 architectures
/usr/lib/libffi.dylib (for architecture ppc7400): Mach-O dynamically
linked shared library ppc
/usr/lib/libffi.dylib (for architecture ppc64): Mach-O 64-bit dynamically
linked shared library ppc64
/usr/lib/libffi.dylib (for architecture i386): Mach-O dynamically linked
shared library i386
/usr/lib/libffi.dylib (for architecture x86_64): Mach-O 64-bit
dynamically linked shared library x86_64
I will not spend any time on this issue except help out merging and testing.
But as I do not have an own ppc64 I will only have limited interest atm.
Maybe you understand...
--
andreast at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-18 19:07:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
` (5 preceding siblings ...)
2007-12-18 19:07 ` andreast at gcc dot gnu dot org
@ 2008-01-30 22:15 ` dominiq at lps dot ens dot fr
6 siblings, 0 replies; 11+ messages in thread
From: dominiq at lps dot ens dot fr @ 2008-01-30 22:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dominiq at lps dot ens dot fr 2008-01-30 21:54 -------
libffi is even more broken on powerpc-apple-darwin9 than on
powerpc-apple-darwin8:
=== libffi Summary for unix/-m64 ===
# of expected passes 412
# of unexpected failures 412
# of unsupported tests 8
=== libffi Summary ===
# of expected passes 1520
# of unexpected failures 416
# of unsupported tests 16
Is fixing it only an "enhancement"?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
[not found] <bug-29152-4@http.gcc.gnu.org/bugzilla/>
2010-12-12 11:59 ` dominiq at lps dot ens.fr
2010-12-18 8:57 ` iains at gcc dot gnu.org
@ 2011-01-10 16:09 ` howarth at nitro dot med.uc.edu
2 siblings, 0 replies; 11+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-01-10 16:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
Jack Howarth <howarth at nitro dot med.uc.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-01-10 16:05:17 UTC ---
The libffi testsuite shows no regressions with -m64 at r168608 on
powerpc-apple-darwin9. Closing as fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
[not found] <bug-29152-4@http.gcc.gnu.org/bugzilla/>
2010-12-12 11:59 ` dominiq at lps dot ens.fr
@ 2010-12-18 8:57 ` iains at gcc dot gnu.org
2011-01-10 16:09 ` howarth at nitro dot med.uc.edu
2 siblings, 0 replies; 11+ messages in thread
From: iains at gcc dot gnu.org @ 2010-12-18 8:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> 2010-12-18 08:56:49 UTC ---
Author: iains
Date: Sat Dec 18 08:56:46 2010
New Revision: 168016
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168016
Log:
libffi:
PR libffi/29152
PR libffi/42378
* src/powerpc/darwin_closure.S: Provide Darwin64 implementation,
update comments.
* src/powerpc/ffitarget.h (POWERPC_DARWIN64): New,
(FFI_TRAMPOLINE_SIZE): Update for Darwin64.
* src/powerpc/darwin.S: Provide Darwin64 implementation,
update comments.
* src/powerpc/ffi_darwin.c: Likewise.
Modified:
trunk/libffi/ChangeLog
trunk/libffi/src/powerpc/darwin.S
trunk/libffi/src/powerpc/darwin_closure.S
trunk/libffi/src/powerpc/ffi_darwin.c
trunk/libffi/src/powerpc/ffitarget.h
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libffi/29152] 64-bit darwin ppc port needed for libffi
[not found] <bug-29152-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-12 11:59 ` dominiq at lps dot ens.fr
2010-12-18 8:57 ` iains at gcc dot gnu.org
2011-01-10 16:09 ` howarth at nitro dot med.uc.edu
2 siblings, 0 replies; 11+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-12-12 11:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29152
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-12-12 11:58:49 UTC ---
Fixed by the patch in http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00804.html.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-01-10 16:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20 16:49 [Bug libffi/29152] New: 64-bit darwin ppc port needed for libffi howarth at nitro dot med dot uc dot edu
2006-09-20 17:21 ` [Bug libffi/29152] " pinskia at gcc dot gnu dot org
2006-09-22 16:51 ` pinskia at gcc dot gnu dot org
2006-09-22 18:19 ` andreast at gcc dot gnu dot org
2006-12-09 20:24 ` andreast at gcc dot gnu dot org
2007-12-18 17:14 ` howarth at nitro dot med dot uc dot edu
2007-12-18 19:07 ` andreast at gcc dot gnu dot org
2008-01-30 22:15 ` dominiq at lps dot ens dot fr
[not found] <bug-29152-4@http.gcc.gnu.org/bugzilla/>
2010-12-12 11:59 ` dominiq at lps dot ens.fr
2010-12-18 8:57 ` iains at gcc dot gnu.org
2011-01-10 16:09 ` howarth at nitro dot med.uc.edu
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).