This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Invalid libffi testcase?
> Index: pyobjc-tc.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/libffi/testsuite/libffi.call/pyobjc-tc.c,v
> retrieving revision 1.2
> diff -u -r1.2 pyobjc-tc.c
> --- pyobjc-tc.c 19 Sep 2003 19:21:53 -0000 1.2
> +++ pyobjc-tc.c 24 Jan 2004 15:10:52 -0000
> @@ -93,7 +93,7 @@
> int o = 0;
> int l = 42;
> char* m = "myMethod";
> - int result;
> + ffi_arg result;
>
> values[0] = &o;
> values[1] = &m;
>
> I will commit asap, ok ?
Works for me.
And I have a last spurious failure on SPARC:
FAIL: libffi.call/struct3.c execution test
The following patch fixes it (I'm not really sure why):
Index: testsuite/libffi.call/struct3.c
===================================================================
RCS file: /cvs/gcc/gcc/libffi/testsuite/libffi.call/struct3.c,v
retrieving revision 1.1
diff -u -p -r1.1 struct3.c
--- testsuite/libffi.call/struct3.c 4 Sep 2003 14:47:48 -0000 1.1
+++ testsuite/libffi.call/struct3.c 24 Jan 2004 15:22:10 -0000
@@ -52,7 +52,7 @@ int main (void)
printf ("%d %d\n", ts3_result->si, -(compare_value*2));
- CHECK(ts3_result->si == -(ts3_arg.si*2));
+ CHECK(ts3_result->si == -(compare_value*2));
free (ts3_result);
exit(0);
Please commit it along with your patch if it is OK. Thanks.
--
Eric Botcazou