This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi and older compilers


Sebastian Reitenbach wrote:

Any idea what to change to get rid of the remaining 8 compilation errors?
They all have the same problem.

The attribute warning you can get rid of with the below, on both 3.3.5 and 2.95:
Index: ffitestcxx.h
===================================================================
--- ffitestcxx.h (revision 142916)
+++ ffitestcxx.h (working copy)
@@ -9,7 +9,7 @@


/* Define __UNUSED__ that also other compilers than gcc can run the tests. */
#undef __UNUSED__
-#if defined(__GNUC__)
+#if defined(__GNUC__) && (__GNUC__ > 3)
#define __UNUSED__ __attribute__((__unused__))
#else
#define __UNUSED__



The "gcc: unrecognized option `-shared-libgcc'" you can not eliminate on 2.95. The option is not known there. On 3.3.5 it should be there. It was introduced somewhere in 3.x. 3.2.3 has it.


Nevertheless, calming down the compiler will not help you in terms of exception handling. The tests will fail in execution.

Andreas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]