aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gjavah.c
AgeCommit message (Collapse)AuthorFilesLines
2003-11-16* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.Tom Tromey1-1/+1
From-SVN: r73642
2003-06-28dbxout.c (flag_debug_only_used_symbols): Delete redundant declaration.Zack Weinberg1-1/+1
* 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-05-03re PR java/10491 (gcjh should make enclosing class a "friend" of inner classes)Tom Tromey1-0/+32
PR java/10491: * gjavah.c (HANDLE_INNERCLASSES_ATTRIBUTE): New macro. (handle_inner_classes): New function. From-SVN: r66416
2003-04-14* gjavah.c (print_c_decl): Indentation fix.Tom Tromey1-6/+6
From-SVN: r65562
2003-03-21javaop.h (jfloat, jdouble): Make them structures mirroring the bit fields of ↵Zack Weinberg1-36/+48
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-12gjavah.c (is_first_data_member): New global variable.Andrew Haley1-0/+16
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-02-01* gjavah.c (throwable_p): Allocate 1 more byte for string.Mark Wielaard1-1/+1
From-SVN: r62228
2003-01-12* All Files: Convert to ISO C style function definitions.Kaveh R. Ghazi1-85/+31
From-SVN: r61218
2003-01-10* class.c, gjavah.c, parse.y, verify.c: Don't use PTR.Kaveh R. Ghazi1-5/+5
From-SVN: r61137
2003-01-10Merge from pch-branch.Geoffrey Keating1-0/+1
From-SVN: r61136
2003-01-09* All Files: Remove PARAMS macro.Kaveh R. Ghazi1-40/+38
From-SVN: r61133
2003-01-09expr.c, [...]: Don't rely on the `DEFUN', `AND' or `__STDC__' macros.Kaveh R. Ghazi1-34/+19
* 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-01Make-lang.in, [...]: Replace "GNU CC" with "GCC" in the copyright header.Steven Bosscher1-4/+7
* 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
2002-12-28gjavah.c (print_name_for_stub_or_jni): Adjust call to print_cxx_classname.Mark Mitchell1-7/+9
* 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-16Merge basic-improvements-branch to trunkZack Weinberg1-0/+2
From-SVN: r60174
2002-11-18buffer.c: Remove unnecessary casts.Jens-Michael Hoffmann1-12/+12
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-06gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header.Tom Tromey1-1/+4
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header. From-SVN: r58867
2002-10-23re PR java/8296 (gcjh generates incorrect JNI header)Tom Tromey1-1/+1
* gjavah.c (decode_signature_piece): In JNI mode, print `jobjectArray' when array depth is nonzero. Fixes PR java/8296. From-SVN: r58474
2002-10-08system.h (GCCBUGURL): Delete.Zack Weinberg1-1/+1
* 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-09-21ChangeLog: Follow spelling conventions.Kazu Hirata1-1/+1
* 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-06-10gjavah.c (throwable_p): Accept argument as either a classname or signature ↵Bryce McKinlay1-10/+19
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-05-19configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort.Mark Mitchell1-2/+0
* configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort. * config.in: Regenerated. * configure: Regenerated. From-SVN: r53633
2002-05-08* gjavah.c (throwable_p): Use xstrdup, not strdup.Tom Tromey1-2/+2
From-SVN: r53279
2002-05-08re PR java/1200 (gcjh -jni doesn't respect class hierarchy)Tom Tromey1-11/+110
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-04-12Add --extdirs support.Anthony Green1-12/+19
From-SVN: r52227
2002-03-03Make --CLASSPATH by a synonym for --classpath and -classpath.Per Bothner1-5/+6
Implement --bootclasspath. From-SVN: r50247
2002-02-20gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' ↵Nic Ferrier1-33/+34
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-01-31gccbug.in: Follow GNU Coding Standards for --version.Joseph Myers1-2/+2
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-16More for PR java/5365:Tom Tromey1-3/+8
* 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-16re PR java/5365 (gcjh -stubs does not include correct files)Tom Tromey1-3/+11
Fix for PR java/5365: * gjavah.c (process_file): Turn class name into a file name. From-SVN: r48891
2001-12-27collect2.c (is_ctor_dtor): Const-ify.Kaveh R. Ghazi1-1/+1
* 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-09gjavah.c (decompile_method): Don't decompile to `return this' for static ↵Tom Tromey1-1/+4
methods. * gjavah.c (decompile_method): Don't decompile to `return this' for static methods. From-SVN: r47804
2001-12-09gjavah.c (cxx_keywords): Re-sorted.Tom Tromey1-2/+2
* gjavah.c (cxx_keywords): Re-sorted. * lex.c (cxx_keywords): Re-sorted. From-SVN: r47803
2001-12-09gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.Tom Tromey1-1/+1
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else. From-SVN: r47802
2001-12-09gjavah.c (print_namelet): Clear subnamelets.Tom Tromey1-1/+3
* gjavah.c (print_namelet): Clear subnamelets. (HANDLE_METHOD): Set `method_printed' earlier. From-SVN: r47801
2001-11-14gjavah.c (method_signature): New global.Tom Tromey1-16/+148
* 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-10-22* gjavah.c (jni_print_char): Fix thinko in last change.Kaveh R. Ghazi1-1/+1
From-SVN: r46399
2001-10-21c-format.c (maybe_read_dollar_number): Use safe-ctype macros and/or fold ↵Kaveh R. Ghazi1-5/+2
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-09-12gjavah.c (cxx_keywords): Const-ification.Kaveh R. Ghazi1-1/+1
* 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-08-16jcf-dump.c (main): Updated for change to jcf_path_seal.Tom Tromey1-2/+2
* 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-03-23gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c.Bryce McKinlay1-4/+77
* gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c. * lex.c (cxx_keywords): Likewise. From-SVN: r40773
2001-03-23[multiple changes]Bryce McKinlay1-1/+6
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz> * extend.texi: Document the "java_interface" attribute. java/: 2001-03-21 Bryce McKinlay <bryce@albatross.co.nz> * gjavah.c (process_file): Mark interface definitions with "__attribute__ ((java_interface))". cp/: 2001-03-22 Bryce McKinlay <bryce@albatross.co.nz> Add support for Java interface method calls. * cp-tree.h (struct lang_type): Add java_interface flag. (TYPE_JAVA_INTERFACE): New macro. * tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute by setting TYPE_JAVA_INTERFACE. * call.c (java_iface_lookup_fn): New static. (build_over_call): If calling a method declared in a TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the expression which resolves the function address. (build_java_interface_fn_ref): New function. From-SVN: r40769
2001-01-12g77spec.c (lang_specific_driver): Update copyright year to 2001.Joseph Myers1-1/+1
f: * g77spec.c (lang_specific_driver): Update copyright year to 2001. java: * gjavah.c (version), jcf-dump.c (version): Update copyright year to 2001. From-SVN: r38951
2000-11-26g77spec.c (lang_specific_driver): Update copyright year to 2000.Joseph Myers1-1/+1
f: * g77spec.c (lang_specific_driver): Update copyright year to 2000. java: * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): Update copyright year to 2000. From-SVN: r37765
2000-11-08gjavah.c (process_file): Only include gcj/cni.h when generating CNI stubs.Tom Tromey1-1/+2
* gjavah.c (process_file): Only include gcj/cni.h when generating CNI stubs. From-SVN: r37325
2000-11-04lang-options.h: Mention -Wout-of-date.Tom Tromey1-0/+4
* lang-options.h: Mention -Wout-of-date. * jcf-dump.c (flag_newer): New global. * gjavah.c (flag_newer): New global. * jcf-io.c (find_class): Only warn when flag_newer set. * lang.c (flag_newer): New global. (struct string_option): New declaration. (lang_W_options): New global. (process_option_with_no): New function. (lang_decode_option): Use it. From-SVN: r37244
2000-11-04class.c (cxx_keyword_p): Accept keywords with trailing `$'s.Tom Tromey1-6/+22
* class.c (cxx_keyword_p): Accept keywords with trailing `$'s. * gjavah.c (cxx_keyword_subst): Handle any number of trailing `$'. From-SVN: r37243
2000-10-21Warning fixes:Kaveh R. Ghazi1-0/+4
* gjavah.c (NEED_PEEK_ATTRIBUTE, NEED_SKIP_ATTRIBUTE): Define * jcf-reader.c (peek_attribute, skip_attribute): Only define when requested. * parse.h (yyerror): If JC1_LITE, mark with ATTRIBUTE_NORETURN. * verify.c (CHECK_PC_IN_RANGE): Cast result of stmt-expr to void. From-SVN: r36994
2000-10-18gjavah.c (add_class_decl): Removed unused variables `tname', `tlen' and ↵Alexandre Petit-Bianco1-4/+0
`name_index'. 2000-10-18 Alexandre Petit-Bianco <apbianco@cygnus.com> * gjavah.c (add_class_decl): Removed unused variables `tname', `tlen' and `name_index'. * java-tree.h (BUILD_FILENAME_IDENTIFIER_NODE): New macro. * jcf-parse.c (jcf_parse_source): Use it and set EXPR_WFL_FILENAME in `wfl_operator' with value. (yyparse): Use BUILD_FILENAME_IDENTIFIER_NODE. (jcf_figure_file_type): Fixed identation. * lex.c (java_get_line_col): Use EOF. Tuned `^' placement. * parse.y (analyze_clinit_body): New function. (static_initializer:): Reset `current_static_block'. (java_parser_context_restore_global): Set EXPR_WFL_FIILENAME_NODE in `wfl_operator' with new value. (lookup_cl): Use EXPR_WFL_FILENAME. (maybe_yank_clinit): Handle bogus <clinit> bodies, call analyze_clinit_body. (build_outer_field_access): Access to this$<n> built from current_class, not its outer context. (build_access_to_thisn): Fixed leading comment. Tidied things up. (resolve_qualified_expression_name): Handle `T.this' and `T.this.f()'. (patch_method_invocation): Use `is_static_flag' when already initialized. (patch_newarray): Removed assignment in ternary operator. (http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00629.html) From-SVN: r36946
2000-10-12re GNATS gcj/356 (gcjh bug: Can't #include <java/awt/Container.h>)Tom Tromey1-22/+6
Fix for PR gcj/356: * gjavah.c (add_class_decl): Don't special-case inner classes. (add_namelet): Likewise. From-SVN: r36854