Matt Austern
e72222acd1
Fix bootstrap.
...
* gjavah.c (free_method_name_list): Fix function definition so
it's a proper C prototype.
From-SVN: r87815
2004-09-21 18:27:29 +00:00
Tom Tromey
b8b639c915
re PR java/17575 (gcjh does not clear its function name cache between files)
...
PR java/17575:
* gjavah.c (free_method_name_list): New method.
(main): Call it.
From-SVN: r87812
2004-09-21 16:28:40 +00:00
Mike Stump
0e7d217a97
boehm.c (set_bit): Improve type safety wrt unsignedness.
...
* boehm.c (set_bit): Improve type safety wrt unsignedness.
* gjavah.c (throwable_p, decode_signature_piece,
print_full_cxx_name, print_include, add_namelet, add_class_decl,
process_file): Likewise.
* jcf-dump.c (main): Likewise.
* jcf-io.c (read_zip_member): Likewise.
* jcf-parse.c (HANDLE_CONSTANT_Utf8, get_constant,
give_name_to_class, get_class_constant): Likewise.
* jcf-write.c (find_constant_wide, push_long_const,
generate_classfile): Likewise.
* lex.c (java_new_lexer, java_read_char, cxx_keyword_p): Likewise.
* parse.y (read_import_dir): Likewise.
* typeck.c (parse_signature_type): Likewise.
* verify.c (verify_jvm_instructions): Likewise.
* zextract.c (find_zip_file_start, read_zip_archive): Likewise.
From-SVN: r85102
2004-07-24 00:03:28 +00:00
Bryce McKinlay
dd4e150058
re PR java/16474 (gcjh: Illegal C++ produced for some non-gcj bytecode)
...
2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
PR java/16474
gjavah.c (print_field_info): Emit constant only if field is static.
From-SVN: r84570
2004-07-12 19:06:03 +01:00
Mark G. Adams
a757585a22
tree.h: Remove include of version.h
...
* tree.h: Remove include of version.h
* c-cppbuiltin.c: Include version.h
* diagnostic.c: Include version.h
* dwarf2out.c: Include version.h
* toplev.c: Include version.h
* vmsdbgout.c: Include version.h
* Makefile.in: Remove dependency on version.h from TREE_H, and
add dependencies to required .o targets
* gjavah.c: Include version.h
From-SVN: r82601
2004-06-03 18:48:28 +00:00
Mark Wielaard
f1865cde4b
gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not extern.
...
* gjavah.c (print_stub_or_jni): Mark functions only JNIEXPORT, not
extern.
From-SVN: r82094
2004-05-21 11:08:02 +00:00
Ranjit Mathew
3fb577a589
re PR java/15133 (gcjh generates wrong method signatures)
...
Fixes PR java/15133
* gjavah.c (struct method_name): Add member is_native.
(overloaded_jni_method_exists_p): Match candidate method only if
it is native.
(print_method_info): Initialise is_native flag from the method's
access flags.
From-SVN: r81357
2004-04-30 18:14:07 +00:00
Kazu Hirata
c048d56d7e
class.c, [...]: Fix comment typos.
...
* class.c, gjavah.c, lang.c: Fix comment typos.
* gcj.texi: Fix typos.
From-SVN: r79744
2004-03-20 14:03:34 +00:00
Joseph Myers
0237b2dc30
gjavah.c: Include "intl.h".
...
* gjavah.c: Include "intl.h".
(error): New function.
(main): Call gcc_init_libintl.
(get_field_name, throwable_p, print_c_decl, print_full_cxx_name,
print_stub_or_jni, process_file, main): Use error rather than
fprintf.
(print_method_info, usage, help, version, main): Mark strings for
translation with _. Avoid splitting up sentences. Send
information messages to stdout.
* jcf-dump.c: Include "intl.h".
(main): Call gcc_init_libintl.
(process_class, usage, help, version, main, CHECK_PC_IN_RANGE):
Mark error, usage and version messages for translation with _.
Avoid splitting up sentences.
* jv-scan.c: Include "intl.h".
(fatal_error, warning): Change parameter s to msgid. Translate
messages.
(main): Call gcc_init_libintl.
(usage, help, version): Mark error, usage and version messages for
translation with _. Avoid splitting up sentences.
* jvgenmain.c: Include "intl.h".
(main): Call gcc_init_libintl.
(usage, main): Mark error messages for translation with _.
* Make-lang.in (GCJH_OBJS, JVSCAN_OBJS, JCFDUMP_OBJS,
JVGENMAIN_OBJS): Add intl.o.
(java/jcf-dump.o, java/gjavah.o, java/jv-scan.o,
java/jvgenmain.o): Update dependencies.
From-SVN: r77614
2004-02-10 19:12:34 +00:00
Kazu Hirata
3a976c72d6
class.c: Remove uses of "register" specifier in declarations of arguments and local...
...
* class.c: Remove uses of "register" specifier in
declarations of arguments and local variables.
* decl.c: Likewise.
* expr.c: Likewise.
* gjavah.c: Likewise.
* jcf-dump.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-write.c: Likewise.
* keyword.h: Likewise.
* parse.y: Likewise.
* typeck.c: Likewise.
* verify.c: Likewise.
From-SVN: r74882
2003-12-20 15:38:28 +00:00
Tom Tromey
45c00e222f
* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.
...
From-SVN: r73642
2003-11-16 04:46:48 +00:00
Zack Weinberg
a6d682a05f
dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.
...
* dbxout.c (flag_debug_only_used_symbols): Delete redundant
declaration.
f:
* com.c (input_file_stack_tick): Delete redundant declaration.
java:
* gjavah.c (flag_jni): Make non-static.
* parse-scan.y (ctxp): Make non-static.
From-SVN: r68624
2003-06-28 00:42:31 +00:00
Tom Tromey
73cb3b5a41
re PR java/10491 (gcjh should make enclosing class a "friend" of inner classes)
...
PR java/10491:
* gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro.
(handle_inner_classes): New function.
From-SVN: r66416
2003-05-03 02:29:26 +00:00
Tom Tromey
e6311b9e25
* gjavah.c (print_c_decl): Indentation fix.
...
From-SVN: r65562
2003-04-14 04:42:21 +00:00
Zack Weinberg
649eaf9bfd
javaop.h (jfloat, jdouble): Make them structures mirroring the bit fields of IEEE float and double respectively.
...
* javaop.h (jfloat, jdouble): Make them structures mirroring
the bit fields of IEEE float and double respectively.
(JFLOAT_FINITE, JFLOAT_QNAN_MASK, JFLOAT_EXP_BIAS,
JDOUBLE_FINITE, JDOUBLE_QNAN_MASK, JDOUBLE_EXP_BIAS): New.
(union Word, union DWord): Delete.
(WORD_TO_FLOAT, WORDS_TO_DOUBLE): Update to match.
* gjavah.c (java_float_finite, java_double_finite, F_NAN_MASK,
D_NAN_MASK): Delete.
(jni_print_float, jni_print_double): New. Generate
hexadecimal floating constants.
(print_field_info): Use jni_print_float/double.
* jcf-dump.c: Include math.h. Use ldexp/frexp to assemble
finite floating point numbers for output; special case
non-finite floats.
From-SVN: r64671
2003-03-21 17:10:02 +00:00
Andrew Haley
68566610af
gjavah.c (is_first_data_member): New global variable.
...
2003-03-04 Andrew Haley <aph@redhat.com>
* gjavah.c (is_first_data_member): New global variable.
(print_c_decl): If it's the first data member, align it as the
superclass.
(process_file): Set is_first_data_member.
From-SVN: r64247
2003-03-12 16:14:01 +00:00
Mark Wielaard
36da0e789c
* gjavah.c (throwable_p): Allocate 1 more byte for string.
...
From-SVN: r62228
2003-02-01 01:31:31 +00:00
Kaveh R. Ghazi
0a2f0c5497
* All Files: Convert to ISO C style function definitions.
...
From-SVN: r61218
2003-01-12 02:14:56 +00:00
Kaveh R. Ghazi
77d3109be2
* class.c, gjavah.c, parse.y, verify.c: Don't use PTR.
...
From-SVN: r61137
2003-01-10 03:04:41 +00:00
Geoffrey Keating
17211ab553
Merge from pch-branch.
...
From-SVN: r61136
2003-01-10 02:22:34 +00:00
Kaveh R. Ghazi
d2097937c5
* All Files: Remove PARAMS macro.
...
From-SVN: r61133
2003-01-09 23:16:56 +00:00
Kaveh R. Ghazi
6ff2fe3933
expr.c, [...]: Don't rely on the DEFUN',
AND' or `__STDC__' macros.
...
* expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c,
jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or
`__STDC__' macros.
From-SVN: r61131
2003-01-09 23:13:02 +00:00
Steven Bosscher
f309ff0a12
Make-lang.in, [...]: Replace "GNU CC" with "GCC" in the copyright header.
...
* Make-lang.in, boehm.c, buffer.c,
buffer.h, builtins.c, class.c,
config-lang.in, constants.c,
convert.h, decl.c, except.c,
expr.c, java-except.h,
java-tree.h, javaop.def,
jcf-parse.c, jcf-write.c,
jv-scan.c, jvgenmain.c,
jvspec.c, keyword.gperf,
keyword.h, lang-options.h,
lang-specs.h, lang.c, lex.c,
lex.h, mangle.c, mangle_name.c,
parse-scan.y, parse.h, parse.y,
typeck.c, verify.c, xref.c,
xref.h: Replace "GNU CC" with
"GCC" in the copyright header.
* check-init.c, gjavah.c, javaop.h,
jcf-depend.c, jcf-dump.c, jcf-io.c,
jcf-path.c, jcf-reader.c, jcf.h,
zextract.c, zipfile.h: These files are
"part of GCC". Also say "GCC" not "GNU CC".
From-SVN: r60747
2003-01-01 15:10:03 +00:00
Mark Mitchell
239b7deaef
gjavah.c (print_name_for_stub_or_jni): Adjust call to print_cxx_classname.
...
* gjavah.c (print_name_for_stub_or_jni): Adjust call to
print_cxx_classname.
(print_cxx_classname): Add add_scope parameter.
(print_class_decls): Do not emit a semicolon after the extern
"Java" block.
(process_file): Adjust calls to print_cxx_classname.
From-SVN: r60555
2002-12-28 06:29:24 +00:00
Zack Weinberg
4977bab6ed
Merge basic-improvements-branch to trunk
...
From-SVN: r60174
2002-12-16 18:23:00 +00:00
Jens-Michael Hoffmann
a92cb0c3d3
buffer.c: Remove unnecessary casts.
...
2002-11-14 Jens-Michael Hoffmann <jensmh@gmx.de>
* buffer.c: Remove unnecessary casts.
* check-init.c: Likewise.
* class.c: Likewise.
* constants.c: Likewise.
* decl.c: Likewise.
* except.c: Likewise.
* gjavah.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* jcf-path.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* verify.c: Likewise.
From-SVN: r59224
2002-11-18 15:46:34 +00:00
Tom Tromey
5bd717f157
gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header.
...
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in
a JNI header.
From-SVN: r58867
2002-11-06 22:10:30 +00:00
Tom Tromey
0d3911c904
re PR java/8296 (gcjh generates incorrect JNI header)
...
* gjavah.c (decode_signature_piece): In JNI mode, print
`jobjectArray' when array depth is nonzero.
Fixes PR java/8296.
From-SVN: r58474
2002-10-23 22:47:31 +00:00
Zack Weinberg
36624850a4
system.h (GCCBUGURL): Delete.
...
* system.h (GCCBUGURL): Delete.
* version.c (bug_report_url): New. Add commentary about
modifying both these strings in modified distributions.
* version.h: Declare bug_report_url.
* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.
From-SVN: r57932
2002-10-08 17:27:39 +00:00
Kazu Hirata
ee142fe7a8
ChangeLog: Follow spelling conventions.
...
* ChangeLog: Follow spelling conventions.
* class.c: Likewise.
* decl.c: Likewise.
* expr.c: Likewise.
* gjavah.c: Likewise.
* java-tree.h: Likewise.
* jcf-dump.c: Likewise.
* jcf-parse.c: Likewise.
* jvspec.c: Likewise.
* lang.c: Likewise.
* mangle.c: Likewise.
* parse.y: Likewise.
From-SVN: r57378
2002-09-21 02:19:44 +00:00
Bryce McKinlay
64e681975f
gjavah.c (throwable_p): Accept argument as either a classname or signature fragment.
...
* gjavah.c (throwable_p): Accept argument as either a classname or
signature fragment. Create null-terminated classname string for super
when calling itself recursively.
(decode_signature_piece): Skip first character from class name
signature when calling throwable_p.
From-SVN: r54427
2002-06-10 04:47:36 +01:00
Mark Mitchell
a15135c91a
configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort.
...
* configure.in (AC_CHECK_FUNCS): Add checks for scandir and
alphasort.
* config.in: Regenerated.
* configure: Regenerated.
From-SVN: r53633
2002-05-19 16:25:51 +00:00
Tom Tromey
5643bb97e4
* gjavah.c (throwable_p): Use xstrdup, not strdup.
...
From-SVN: r53279
2002-05-08 04:51:50 +00:00
Tom Tromey
6b9b5de22a
re PR java/1200 (gcjh -jni doesn't respect class hierarchy)
...
Fix for PR java/1200:
* gjavah.c (throwable_p): New function.
(decode_signature_piece): Use it. A `WeakReference' isn't the
same as a `jweak'.
Include hashtab.h.
(gcjh_streq): New function.
From-SVN: r53275
2002-05-08 01:41:41 +00:00
Anthony Green
9fef1fe3e4
Add --extdirs support.
...
From-SVN: r52227
2002-04-12 14:28:50 +00:00
Per Bothner
2a85660dc2
Make --CLASSPATH by a synonym for --classpath and -classpath.
...
Implement --bootclasspath.
From-SVN: r50247
2002-03-03 00:35:11 -08:00
Nic Ferrier
db444fbe8e
gcj.texi: Option --classpath' becomes
--CLASSPATH.'Option `--CLASSPATH' becomes...
...
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option
`--CLASSPATH' becomes `--classpath.'
* gjavah.c: Likewise.
* jcf-dump.c: Likewise.
* lang-options.h: Likewise.
* lang.c: Likewise.
* jcf-path.c: Updated comment.
(jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.'
(jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.'
* jcf.h (jcf_path_CLASSPATH_arg): Ditto.
(jcf_path_CLASSPATH_arg): Ditto.
(classpath_u): Updated leading comment.
From-SVN: r49918
2002-02-20 23:12:25 +00:00
Joseph Myers
8512bbd752
gccbug.in: Follow GNU Coding Standards for --version.
...
gcc:
* gccbug.in: Follow GNU Coding Standards for --version. Use GCC
version rather than GNATS version in --version output.
gcc/f:
* g77spec.c (lang_specific_driver): Follow GNU Coding Standards
for --version.
gcc/java:
* gjavah.c (version), jcf-dump.c (version), jv-scan.c (version):
Follow GNU Coding Standards for --version.
libjava:
* gnu/gcj/convert/Convert.java: Only include one copyright year in
--version output.
From-SVN: r49372
2002-01-31 19:36:28 +00:00
Tom Tromey
0df2959645
More for PR java/5365:
...
* gjavah.c (print_stub_or_jni): Cause exception to be thrown by
default.
(process_file): Generate include for
java.lang.UnsupportedOperationExceptions.
From-SVN: r48928
2002-01-16 21:18:36 +00:00
Tom Tromey
9c874875a1
re PR java/5365 (gcjh -stubs does not include correct files)
...
Fix for PR java/5365:
* gjavah.c (process_file): Turn class name into a file name.
From-SVN: r48891
2002-01-16 00:27:05 +00:00
Kaveh R. Ghazi
c083a819b2
collect2.c (is_ctor_dtor): Const-ify.
...
* collect2.c (is_ctor_dtor): Const-ify.
* m88k-protos.c (output_file_start): Likewise.
* m88k.c (m88k_lang_independent_options, output_options,
output_file_start): Likewise.
* fix-header.c (files_to_ignore, std_include_entry, include_entry,
std_include_table, main): Likewise.
* protoize.c (longopts): Likewise.
* regclass.c (int_reg_class_contents): Likewise.
* toplev.c (dump_file, f_options, W_options): Make static.
(lang_independent_options, f_options, W_options): Const-ify.
* tree-dump.c (dump_file_info): Likewise.
* unroll.c (_factor): Make static.
java:
* chartables.h: Const-ify.
* gjavah.c (options): Likewise.
* jcf-dump.c (options): Likewise.
* jv-scan.c (options): Likewise.
* lex.c (java_start_char_p, java_part_char_p): Likewise.
* parse.y (binop_lookup): Likewise.
From-SVN: r48322
2001-12-27 03:35:21 +00:00
Tom Tromey
5fcab23524
gjavah.c (decompile_method): Don't decompile to `return this' for static methods.
...
* gjavah.c (decompile_method): Don't decompile to `return this'
for static methods.
From-SVN: r47804
2001-12-09 05:14:19 +00:00
Tom Tromey
7b35f6c94f
gjavah.c (cxx_keywords): Re-sorted.
...
* gjavah.c (cxx_keywords): Re-sorted.
* lex.c (cxx_keywords): Re-sorted.
From-SVN: r47803
2001-12-09 05:06:45 +00:00
Tom Tromey
897c9e66de
gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
...
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
else.
From-SVN: r47802
2001-12-09 01:30:00 +00:00
Tom Tromey
4440ffc4a5
gjavah.c (print_namelet): Clear subnamelets.
...
* gjavah.c (print_namelet): Clear subnamelets.
(HANDLE_METHOD): Set `method_printed' earlier.
From-SVN: r47801
2001-12-09 01:26:30 +00:00
Tom Tromey
150f086dd5
gjavah.c (method_signature): New global.
...
* gjavah.c (method_signature): New global.
(HANDLE_METHOD): Set it.
(decompile_return_statement): New function.
(decompile_method): Use it.
(print_method_info): Removed `synth' argument.
From-SVN: r46999
2001-11-14 01:43:56 +00:00
Kaveh R. Ghazi
299b5f9ee9
* gjavah.c (jni_print_char): Fix thinko in last change.
...
From-SVN: r46399
2001-10-22 03:58:19 +00:00
Kaveh R. Ghazi
0df6c2c74e
c-format.c (maybe_read_dollar_number): Use safe-ctype macros and/or fold extra calls into fewer ones.
...
* c-format.c (maybe_read_dollar_number): Use safe-ctype macros
and/or fold extra calls into fewer ones.
* collect2.c (dump_file): Likewise.
* cppexp.c (parse_number): Likewise.
* cpplex.c (_cpp_lex_direct): Likewise.
* final.c (output_asm_insn, asm_fprintf): Likewise.
* fix-header.c (inf_scan_ident, main): Likewise.
* fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
Likewise.
* fold-const.c (real_hex_to_f): Likewise.
* gen-protos.c (parse_fn_proto): Likewise.
* genattrtab.c (check_attr_test, check_attr_value): Likewise.
* genrecog.c (change_state, write_action): Likewise.
* gensupport.c (shift_output_template): Likewise.
* local-alloc.c (requires_inout): Likewise.
* mips-tfile.c (IS_ASM_IDENT): Likewise.
* protoize.c (is_id_char, main): Likewise.
* real.c (asctoeg): Likewise.
* recog.c (asm_operand_ok): Likewise.
* reload.c (find_reloads): Likewise.
* scan.c (scan_identget_token): Likewise.
* sched-vis.c (print_value): Likewise.
* stringpool.c (ggc_alloc_string): Likewise.
* toplev.c (read_integral_parameter, decode_g_option): Likewise.
* tradcif.y (parse_number, yylex, parse_escape): Likewise.
* tradcpp.c (rescan): Likewise.
* tree.c (clean_symbol_name): Likewise.
* varasm.c (decode_reg_name): Likewise.
* alpha.h (ASM_OUTPUT_ASCII): Likewise.
* darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
* dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
* m88k.c (output_ascii): Likewise.
* m88k.h (OVERRIDE_OPTIONS): Likewise.
* mcore.h (REG_CLASS_FROM_LETTER): Likewise.
* ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
* sh.h (REG_CLASS_FROM_LETTER): Likewise.
cp:
* xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
extra calls into fewer ones.
f:
* bad.c (ffebad_finish): Use safe-ctype macros and/or fold extra
calls into fewer ones.
* implic.c (ffeimplic_lookup_): Likewise.
* intdoc.c (dumpimp): Likewise.
* intrin.c (ffeintrin_init_0): Likewise.
* lex.c (ffelex_backslash_, ffelex_cfebackslash_, ffelex_hash_):
Likewise.
* lex.h (ffelex_is_firstnamechar): Likewise.
* target.c (ffetarget_integerhex): Likewise.
java:
* gjavah.c (jni_print_char, decode_signature_piece): Use
safe-ctype macros and/or fold extra calls into fewer ones.
* lex.c (java_read_unicode, java_lex): Likewise.
* lex.h (JAVA_START_CHAR_P, JAVA_PART_CHAR_P, JAVA_ASCII_DIGIT,
JAVA_ASCII_HEXDIGIT, JAVA_ASCII_LETTER): Likewise.
* mangle_name.c (append_unicode_mangled_name,
unicode_mangling_length): Likewise.
From-SVN: r46397
2001-10-21 21:32:15 +00:00
Kaveh R. Ghazi
fd033052f9
gjavah.c (cxx_keywords): Const-ification.
...
* gjavah.c (cxx_keywords): Const-ification.
* keyword.gperf (java_keyword): Likewise.
* lang.c (java_tree_code_name): Likewise.
* lex.c (cxx_keywords): Likewise.
* parse.y (java_parser_context_suspend, merge_string_cste): Likewise.
From-SVN: r45564
2001-09-12 16:21:12 +00:00
Tom Tromey
4266d0b272
jcf-dump.c (main): Updated for change to jcf_path_seal.
...
* jcf-dump.c (main): Updated for change to jcf_path_seal.
* gjavah.c (main): Updated for change to jcf_path_seal.
* lang.c (version_flag): New global.
(java_decode_option): Recognize `-version'.
(java_init): Update for change to jcf_path_seal.
* jcf.h (jcf_path_seal): Added `print' argument.
* jcf-path.c (jcf_path_seal): Added `print' argument.
From-SVN: r44946
2001-08-16 21:52:14 +00:00