* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
@ 2009-06-15 15:47 ` aph at gcc dot gnu dot org
2009-06-16 7:34 ` andreast at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-06-15 15:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from aph at gcc dot gnu dot org 2009-06-15 15:47 -------
Adding Andreas Tobler; perhaps he knows.
--
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andreast at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
2009-06-15 15:47 ` [Bug libffi/40444] " aph at gcc dot gnu dot org
@ 2009-06-16 7:34 ` andreast at gcc dot gnu dot org
2009-06-16 7:38 ` andreast at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andreast at gcc dot gnu dot org @ 2009-06-16 7:34 UTC (permalink / raw)
To: gcc-bugs
--
andreast at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |andreast at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-06-16 07:33:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
2009-06-15 15:47 ` [Bug libffi/40444] " aph at gcc dot gnu dot org
2009-06-16 7:34 ` andreast at gcc dot gnu dot org
@ 2009-06-16 7:38 ` andreast at gcc dot gnu dot org
2009-06-16 9:46 ` dominiq at lps dot ens dot fr
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andreast at gcc dot gnu dot org @ 2009-06-16 7:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from andreast at gcc dot gnu dot org 2009-06-16 07:38 -------
Index: testsuite/lib/libffi-dg.exp
===================================================================
--- testsuite/lib/libffi-dg.exp (revision 148518)
+++ testsuite/lib/libffi-dg.exp (working copy)
@@ -187,6 +187,13 @@
lappend options "additional_flags=-I${libffi_include}
-I${srcdir}/../include -I${libffi_include}/.."
lappend options "additional_flags=${libffi_link_flags}"
+ # Darwin needs a stack execution allowed flag.
+
+ if { [istarget "*-*-darwin9*"] || [istarget "*-*-darwin1*"]
+ || [istarget "*-*-darwin2*"] } {
+ lappend options "additional_flags=-Wl,-allow_stack_execute"
+ }
+
# If you're building the compiler with --prefix set to a place
# where it's not yet installed, then the linker won't be able to
# find the libgcc used by libffi.dylib. We could pass the
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
` (2 preceding siblings ...)
2009-06-16 7:38 ` andreast at gcc dot gnu dot org
@ 2009-06-16 9:46 ` dominiq at lps dot ens dot fr
2009-06-16 9:51 ` dominiq at lps dot ens dot fr
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-06-16 9:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dominiq at lps dot ens dot fr 2009-06-16 09:46 -------
With the patch in comment #2 I get:
=== libffi tests ===
Schedule of variations:
unix
unix/-m64
Running target unix
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/libffi/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/libffi/testsuite/libffi.call/call.exp ...
Running /opt/gcc/gcc-4.5-work/libffi/testsuite/libffi.special/special.exp ...
=== libffi Summary for unix ===
# of expected passes 1594
# of expected failures 10
# of unsupported tests 15
Running target unix/-m64
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /opt/gcc/gcc-4.5-work/libffi/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /opt/gcc/gcc-4.5-work/libffi/testsuite/libffi.call/call.exp ...
FAIL: libffi.call/cls_dbls_struct.c -O0 -W -Wall output pattern test, is 1.0
0.0
1.0 2.0
? should match 1.0 2.0
?.0 2.0
FAIL: libffi.call/cls_dbls_struct.c -O2 output pattern test, is 1.0 0.0
1.0 2.0
? should match 1.0 2.0
?.0 2.0
FAIL: libffi.call/cls_dbls_struct.c -O3 output pattern test, is 1.0 0.0
1.0 2.0
? should match 1.0 2.0
?.0 2.0
FAIL: libffi.call/cls_dbls_struct.c -Os output pattern test, is 1.0 0.0
1.0 2.0
? should match 1.0 2.0
?.0 2.0
FAIL: libffi.call/cls_dbls_struct.c -O2 -fomit-frame-pointer output pattern
test, is 1.0 0.0
1.0 2.0
? should match 1.0 2.0
?.0 2.0
Running /opt/gcc/gcc-4.5-work/libffi/testsuite/libffi.special/special.exp ...
=== libffi Summary for unix/-m64 ===
# of expected passes 1589
# of unexpected failures 5
# of expected failures 10
# of unsupported tests 15
=== libffi Summary ===
# of expected passes 3183
# of unexpected failures 5
# of expected failures 20
# of unsupported tests 30
Thanks for the patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
` (3 preceding siblings ...)
2009-06-16 9:46 ` dominiq at lps dot ens dot fr
@ 2009-06-16 9:51 ` dominiq at lps dot ens dot fr
2009-06-16 10:12 ` aph at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-06-16 9:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dominiq at lps dot ens dot fr 2009-06-16 09:50 -------
libffi/testsuite/libffi.call/cls_dbls_struct.c is "XFAILed" for
x86_64-*-linux-*. It should probably xfailed also for x86_64*darwin* and
i686-apple-darwin* with -m64.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
` (4 preceding siblings ...)
2009-06-16 9:51 ` dominiq at lps dot ens dot fr
@ 2009-06-16 10:12 ` aph at gcc dot gnu dot org
2009-06-16 17:28 ` andreast at gcc dot gnu dot org
2009-06-16 17:30 ` andreast at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-06-16 10:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from aph at gcc dot gnu dot org 2009-06-16 10:12 -------
Thanks for the patch, Andreas. Please push upstream(s).
--
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2009-06-16 07:33:36 |2009-06-16 10:12:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
` (5 preceding siblings ...)
2009-06-16 10:12 ` aph at gcc dot gnu dot org
@ 2009-06-16 17:28 ` andreast at gcc dot gnu dot org
2009-06-16 17:30 ` andreast at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: andreast at gcc dot gnu dot org @ 2009-06-16 17:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from andreast at gcc dot gnu dot org 2009-06-16 17:28 -------
Subject: Bug 40444
Author: andreast
Date: Tue Jun 16 17:28:29 2009
New Revision: 148542
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148542
Log:
2009-06-16 Andreas Tobler <a.tobler@schweiz.org>
PR libffi/40444
* testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
allow_stack_execute for Darwin.
Modified:
trunk/libffi/ChangeLog
trunk/libffi/testsuite/lib/libffi-dg.exp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libffi/40444] [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472.
2009-06-15 9:40 [Bug libffi/40444] New: [4.5 Regression] libffi badly broken with -m64 by some revision between 148383 and 148472 dominiq at lps dot ens dot fr
` (6 preceding siblings ...)
2009-06-16 17:28 ` andreast at gcc dot gnu dot org
@ 2009-06-16 17:30 ` andreast at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: andreast at gcc dot gnu dot org @ 2009-06-16 17:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from andreast at gcc dot gnu dot org 2009-06-16 17:30 -------
Fixed.
--
andreast at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40444
^ permalink raw reply [flat|nested] 9+ messages in thread