1. 03 Feb, 2000 2 commits
    • gjavah.c (D_NAN_MASK): Alternate definition required when… · 9b4a08f9
      gjavah.c (D_NAN_MASK): Alternate definition required when HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
      
      2000-01-31  Scott Bambrough  <scottb@netwinder.org>
      
      	* gcc/java/gjavah.c (D_NAN_MASK): Alternate definition required when
      	HOST_FLOAT_WORDS_BIG_ENDIAN is defined to be 1.
      	(java_float_finite): Convert to use union Word from javaop.h.
      	(java_double_finite): Convert to use union DWord from javaop.h.
      
      From-SVN: r31768
      Scott Bambrough committed
    • gjavah.c (options): Added `jni' entry. · de380723
      	* gjavah.c (options): Added `jni' entry.
      	(help): Document -jni.
      	(flag_jni): New global.
      	(process_file): Handle JNI output.  Don't print text from
      	-prepend, -add, etc, when generating stubs.  Only remove `.class'
      	suffix if it actually exists.
      	(main): Create a `.c' file when run with `--jni --stubs'.  Create
      	correct output file name with `--jni'.
      	(print_include): Mangle header name differently in JNI case.
      	(HANDLE_METHOD): In JNI mode, call print_method_info to generate
      	method list.
      	(print_method_info): Handle JNI case.  Put signature info into
      	method name.  Handle case when STREAM is NULL.
      	(print_name_for_stub_or_jni): New function.
      	(print_stub_or_jni): Renamed from `print_stub'.  Handle JNI.
      	(print_cxx_classname): Handle JNI.
      	(print_full_cxx_name): Likewise.
      	(decode_signature_piece): Likewise.
      	(overloaded_jni_method_exists_p): New function.
      	(struct method_name): Added `signature' and `sig_length' fields.
      	(HANDLE_END_FIELD): Do nothing in JNI mode.
      
      From-SVN: r31767
      Tom Tromey committed
  2. 02 Feb, 2000 1 commit
    • jv-scan.c: Include version.c, <getopt.h>. · c89c53eb
      	* jv-scan.c: Include version.c, <getopt.h>.
      	(LONG_OPT, OPT_HELP, OPT_VERSION): New macros.
      	(options): New array.
      	(usage): New function.
      	(version): New function.
      	(main): Use getopt_long to parse command line.
      	* jcf-dump.c: Include version.c, <getopt.h>.
      	(LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_VERSION,
      	OPT_JAVAP): New macros.
      	(options): New array.
      	(usage): Return `void'.  Changed message.
      	(help): New function.
      	(version): New function.
      	(main): Use getopt_long_only to parse command line.
      	* gjavah.c: Include <getopt.h>.
      	(LONG_OPT, OPT_classpath, OPT_CLASSPATH, OPT_HELP, OPT_TEMP,
      	OPT_VERSION, OPT_PREPEND, OPT_FRIEND, OPT_ADD, OPT_APPEND, OPT_M,
      	OPT_MM, OPT_MG, OPT_MD, OPT_MMD): New macros.
      	(options): New array.
      	(java_no_argument): Removed.
      	(help): Updated with missing options.
      	(main): Use getopt_long_only to parse command line.
      	(usage): Changed message.
      
      From-SVN: r31765
      Tom Tromey committed
  3. 31 Jan, 2000 1 commit
  4. 29 Jan, 2000 1 commit
    • [multiple changes] · f8989a66
      2000-01-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
      	* parse.y (formal_parameter:): Set `$$' to NULL_TREE for better
      	error handling/recovery.
      	* java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment.
      
      Wed Jan 12 20:20:11 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
      	* jcf-write.c (generate_bytecode_insns): binop: Change the type of
      	the shift value to int. Fixed typo in comment.
      
      From-SVN: r31695
      Alexandre Petit-Bianco committed
  5. 27 Jan, 2000 1 commit
  6. 25 Jan, 2000 1 commit
    • parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string concatenation. · 2884c41e
      	* parse.h (OBSOLETE_MODIFIER_WARNING): Don't use ANSI string
      	concatenation.
      	(OBSOLETE_MODIFIER_WARNING2): New macro allowing two args.
      
      	* parse.y (register_fields): Don't pass a format specifier to
      	OBSOLETE_MODIFIER_WARNING.
      	(check_abstract_method_header): Use OBSOLETE_MODIFIER_WARNING2
      	instead of OBSOLETE_MODIFIER_WARNING, and don't pass a format
      	specifier.
      	(check_modifiers): Change function into a macro.
      	(check_class_interface_creation): Pass a literal format string.
      
      From-SVN: r31614
      Kaveh R. Ghazi committed
  7. 21 Jan, 2000 2 commits
    • Fix typo in ChangeLog · 0a068841
      From-SVN: r31551
      Kaveh Ghazi committed
    • buffer.h: PROTO -> PARAMS. · df32d2ce
              * buffer.h: PROTO -> PARAMS.
              * check-init.c: Likewise.
              * class.c: Likewise.
              * constants.c: Likewise.
              * convert.h: Likewise.
              * decl.c: Likewise.
              * except.c: Likewise.
              * expr.c: Likewise.
              * gjavah.c: Likewise.
              * java-except.h: Likewise.
              * java-tree.h: Likewise.
              * jcf-depend.c: Likewise.
              * jcf-dump.c: Likewise.
              * jcf-parse.c: Likewise.
              * jcf-path.c: Likewise.
              * jcf-reader.c: Likewise.
              * jcf-write.c: Likewise.
              * jcf.h: Likewise.
              * jv-scan.c: Likewise.
              * jvgenmain.c: Likewise.
              * jvspec.c: Likewise.
              * lang.c: Likewise.
              * lex.c: Likewise.
              * lex.h: Likewise.
              * parse-scan.y: Likewise.
              * parse.h: Likewise.
              * parse.y: Likewise.
              * typeck.c: Likewise.
              * verify.c: Likewise.
              * xref.c: Likewise.
              * xref.h: Likewise.
              * zextract.c: Likewise.
              * zipfile.h: Likewise.
      
      From-SVN: r31550
      Kaveh R. Ghazi committed
  8. 17 Jan, 2000 2 commits
  9. 16 Jan, 2000 1 commit
  10. 12 Jan, 2000 1 commit
  11. 10 Jan, 2000 1 commit
  12. 09 Jan, 2000 1 commit
  13. 08 Jan, 2000 1 commit
    • expr.c (java_lang_expand_expr): Switch to permanent obstack before calling… · 6f9c8716
      expr.c (java_lang_expand_expr): Switch to permanent obstack before calling expand_eh_region_start and...
      
      Wed Dec  8 15:33:26 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * expr.c (java_lang_expand_expr): Switch to permanent obstack
              before calling expand_eh_region_start and expand_start_all_catch.
              * except.c (expand_start_java_handler): Switch to permanent
              obstack before calling expand_eh_region_start.
              (expand_end_java_handler): Switch to permanent obstack before
              calling expand_start_all_catch.
      
      From-SVN: r31284
      Alexandre Petit-Bianco committed
  14. 07 Jan, 2000 2 commits
  15. 06 Jan, 2000 1 commit
    • Makefile.in (LIBDEPS): Added gcc's errors.o · ee07f4f4
      Fri Dec 24 00:25:29 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
      	* Makefile.in (LIBDEPS): Added gcc's errors.o
      	(../jcf-dump$(exeext):): Link with gcc's errors.o
      	(../gcjh$(exeext):): Likewise.
      	* expr.c (expand_java_NEW): Layout the entire target type instead of
       	laying out its methods only.
      	(lookup_field): Layout the class after having loaded it.
      	* java-tree.h (java_debug_context): Declared.
      	* jcf-io.c (toplev.h): Included.
      	(find_class): Removed assignment to jcf's outofsynch
       	field. Force source file to be read if newer than its matching
       	class file. Tweaked debug messages.
      	* jcf-parse.c (jcf_out_of_synch): Deleted.
      	(read_class): Call to jcf_out_of_synch removed.
      	* jcf.h (typedef struct JCF): Field `outofsynch' deleted.
      	(jcf_out_of_synch): Prototype deleted.
      	* parse.h (struct parser_ctxt): `minus_seen', `java_error_flag',
       	`deprecated' and `class_err': integer turned into bit fields.
      	New bit fields `saved_data_ctx' and `saved_data'. Fixed comments.
      	* parse.y (package_list): New global.
      	(package_declaration:): Record newly parsed package name.
      	(extra_ctxp_pushed_p): Static global deleted.
      	(java_parser_context_save_global): Create buffer context for the
       	purpose of saving globals, if necessary.
      	(java_parser_context_restore_global): Pop context pushed for the
       	purpose of saving globals, if necessary.
      	(java_debug_context_do): New prototype and function.
      	(java_debug_context): Likewise.
      	(do_resolve_class): Use already parsed package names to qualify
       	and lookup class candidate.
      	(java_pre_expand_clinit): Removed unnecessary local variable.
      
      From-SVN: r31261
      Alexandre Petit-Bianco committed
  16. 31 Dec, 1999 3 commits
    • class.c (assume_compiled, [...]): Add static prototype. · c63b98cd
      	* class.c (assume_compiled, assume_compiled_node): Add static
      	prototype.
      	(add_assume_compiled): Use xmalloc/xstrdup, not malloc/strdup.
      
      	* jcf-dump.c (ARRAY_NEW_NUM): Cast long to int in switch.
      
      	* jvgenmain.c (usage): Add static prototype with ATTRIBUTE_NORETURN.
      
      	* parse.h (OBSOLETE_MODIFIER_WARNING): Rename parameter `modifier'
      	to `__modifier' to avoid stringifying it.
      
      	* parse.y (verify_constructor_circularity): Don't call a variadic
      	function with a non-literal format string.
      	(java_check_abstract_methods): Move unreachable code inside
      	`continue' statement.
      	(lookup_method_invoke): Call xstrdup, not strdup.
      
      	* expr.c (expand_java_field_op): Avoid the use of ANSI string
      	concatenation.
      
      	* jcf-parse.c (yyparse): Likewise.
      
      	* jv-scan.c (main): Likewise.
      
      From-SVN: r31148
      Kaveh R. Ghazi committed
    • expr.c (expand_invoke): Layout the loaded class before attempting to use it. · 6bafd8b6
      Thu Dec 16 00:09:45 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
      	* expr.c (expand_invoke): Layout the loaded class before
       	attempting to use it.
      	(expand_java_field_op): Allow final field assignments to take
       	place in $finit$.
      	* typeck.c (convert): Return error_mark_node if expr is null.
      
      From-SVN: r31147
      Alexandre Petit-Bianco committed
    • parse.h (ABSTRACT_CHECK, [...]): Avoid the use of ANSI string concatenation. · 781b0558
      	* parse.h (ABSTRACT_CHECK, JCONSTRUCTOR_CHECK,
      	ERROR_CANT_CONVERT_TO_BOOLEAN, ERROR_CANT_CONVERT_TO_NUMERIC,
      	ERROR_CAST_NEEDED_TO_INTEGRAL): Avoid the use of ANSI string
      	concatenation.
      
      	* parse.y (synchronized, variable_redefinition_error,
      	check_class_interface_creation, create_interface, create_class,
      	method_header, finish_method_declaration,
      	check_modifiers_consistency, method_declarator,
      	complete_class_report_errors, check_abstract_method_definitions,
      	java_check_regular_methods, check_throws_clauses,
      	java_check_abstract_methods, read_import_dir,
      	check_pkg_class_access, declare_local_variables, fix_constructors,
      	cut_identifier_in_qualified, resolve_expression_name,
      	resolve_qualified_expression_name, patch_method_invocation,
      	java_complete_lhs, patch_assignment, try_builtin_assignconv,
      	patch_binop, patch_array_ref, patch_newarray, build_labeled_block,
      	patch_exit_expr, patch_exit_expr, patch_switch_statement,
      	patch_try_statement, patch_synchronized_statement,
      	patch_throw_statement, check_thrown_exceptions,
      	patch_conditional_expr): Likewise.
      
      From-SVN: r31146
      Kaveh R. Ghazi committed
  17. 30 Dec, 1999 1 commit
    • class.c (class_depth): Return -1 if the class doesn't load properly. · e920ebc9
      1999-12-14  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * class.c (class_depth): Return -1 if the class doesn't load
              properly.
              * expr.c (can_widen_reference_to): Check for errors during depth
              computation and return 0 accordingly.
              * jcf-parse.c (parse_source_file): Call java_fix_constructors to
              create default constructors and add an other error check.
              * parse.h (java_fix_constructors): Prototyped.
              * parse.y (java_pre_expand_clinit): Likewise.
              (build_super_invocation): Re-prototyped to feature one argument.
              (java_check_circular_reference): Directly use `current'.
              (java_fix_constructors): New function.
              (java_check_regular_methods): Don't create default constructors
              here, but abort if none were found.
              (java_complete_expand_methods): Pre-process <clinit> calling
              java_pre_expand_clinit.
              (java_pre_expand_clinit): New function.
              (fix_constructors): build_super_invocation invoked with the
              current method declaration as an argument.
              (build_super_invocation): Use the context of the processed method
              decl argument instead of current_class.
              * typeck.c (lookup_java_method): Take WFLs in method names into
              account.
      
      From-SVN: r31144
      Alexandre Petit-Bianco committed
  18. 17 Dec, 1999 1 commit
  19. 14 Dec, 1999 1 commit
  20. 13 Dec, 1999 1 commit
  21. 12 Dec, 1999 2 commits
  22. 10 Dec, 1999 1 commit
  23. 09 Dec, 1999 1 commit
  24. 06 Dec, 1999 4 commits
  25. 01 Dec, 1999 3 commits
  26. 29 Nov, 1999 2 commits
  27. 25 Nov, 1999 1 commit