diff options
| author | tlaurenzo <tlaurenzo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-08 00:21:21 +0000 |
|---|---|---|
| committer | tlaurenzo <tlaurenzo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-08 00:21:21 +0000 |
| commit | b4af7e84d0fdaff45f9eaf8ff0dd9b09d862d797 (patch) | |
| tree | 30bba45e6c90ec08dcafa0e8a956685f6b8eddd0 | |
| parent | 58b72250c8d3043af1552cac790ff554cdd12560 (diff) | |
| download | ppe42-gcc-b4af7e84d0fdaff45f9eaf8ff0dd9b09d862d797.tar.gz ppe42-gcc-b4af7e84d0fdaff45f9eaf8ff0dd9b09d862d797.zip | |
Removed decompilation for non-ELF targets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106628 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/java/gjavah.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 33c01d7d146..bb614b5f872 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2005-11-07 Terry Laurenzo <tlaurenzo@gmail.com> + + * gjavah.c (HANDLE_CODE_ATTRIBUTE): Only define for ELF Object + formats. + * gjavah.c (decompile_method): Add ATTRIBUTE_UNUSED + 2005-10-12 Nathan Sidwell <nathan@codesourcery.com> Wil Mahan <wmahan@gmail.com> diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 7ca5fc73e5d..02fd7799bfe 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -145,7 +145,7 @@ static void print_method_info (FILE*, JCF*, int, int, JCF_u2); 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 decompile_method (FILE*, JCF*, int) ATTRIBUTE_UNUSED; static void add_class_decl (FILE*, JCF*, JCF_u2); static void print_name (FILE *, JCF *, int); @@ -250,8 +250,14 @@ static int is_first_data_member = 0; } \ } +/* 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() \ |

