Index: gjavah.c =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/java/gjavah.c,v retrieving revision 1.135 diff -c -3 -r1.135 gjavah.c *** gjavah.c 25 Jun 2005 00:33:00 -0000 1.135 --- gjavah.c 20 Sep 2005 22:09:34 -0000 *************** *** 145,151 **** static void print_c_decl (FILE*, JCF*, int, int, int, const char *, int); static void print_stub_or_jni (FILE*, JCF*, int, int, int, const char *, int); static void print_full_cxx_name (FILE*, JCF*, int, int, int, const char *, int); ! static void decompile_method (FILE*, JCF*, int); static void add_class_decl (FILE*, JCF*, JCF_u2); static void print_name (FILE *, JCF *, int); --- 145,151 ---- static void print_c_decl (FILE*, JCF*, int, int, int, const char *, int); static void print_stub_or_jni (FILE*, JCF*, int, int, int, const char *, int); static void print_full_cxx_name (FILE*, JCF*, int, int, int, const char *, int); ! static void decompile_method (FILE*, JCF*, int) ATTRIBUTE_UNUSED; static void add_class_decl (FILE*, JCF*, JCF_u2); static void print_name (FILE *, JCF *, int); *************** *** 250,257 **** --- 250,263 ---- } \ } + /* Only include byte-code decompilation optimizations for ELF targets + since the generated headers are only known to work with ELF weak + symbol semnatics. Specifically, these optimizations are known to + not work on PE-COFF and possibly others. */ + #ifdef OBJECT_FORMAT_ELF #define HANDLE_CODE_ATTRIBUTE(MAX_STACK, MAX_LOCALS, CODE_LENGTH) \ if (out && method_declared) decompile_method (out, jcf, CODE_LENGTH); + #endif static int decompiled = 0; #define HANDLE_END_METHOD() \