This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] libffi java_raw_api.c
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Oct 2003 14:15:53 +0200
- Subject: [patch] libffi java_raw_api.c
Hello,
when compiled with --enable-debug, solaris9 doesn't like the one below.
Ok for mainline?
Andreas
2003-10-23 Andreas Tobler <a.tobler@schweiz.ch>
* src/java_raw_api.c (ffi_java_ptrarray_to_raw): Replace
FFI_ASSERT(FALSE) with FFI_ASSERT(0).
RCS file: /cvs/gcc/gcc/libffi/src/java_raw_api.c,v
retrieving revision 1.5
diff -u -r1.5 java_raw_api.c
--- src/java_raw_api.c 21 Oct 2003 19:01:54 -0000 1.5
+++ src/java_raw_api.c 23 Oct 2003 12:02:14 -0000
@@ -217,7 +217,7 @@
default:
#if FFI_SIZEOF_ARG == 8
- FFI_ASSERT(FALSE); /* Should have covered all cases */
+ FFI_ASSERT(0); /* Should have covered all cases */
#else
memcpy ((void*) raw->data, (void*)*args, (*tp)->size);
raw += ALIGN ((*tp)->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG;