Commit Graph

26408 Commits

Author SHA1 Message Date
Anthony Green
06440a12a2 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Add
        gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java

        * scripts/MakeDefaultMimeTypes.java: New file.
        * scripts/mime.types: New file.
	* scripts/classes.pl: Moved from top level.
        * classes.pl: Moved to scripts directory.

        * java/net/URLConnection.java: Implement guessContentTypeFromName.

        * gnu/gcj/io/MimeTypes.java: New file.
        * gnu/gcj/io/DefaultMimeTypes.java: New file.

From-SVN: r32086
2000-02-21 05:54:29 +00:00
Tom Tromey
38b3a2c089 * boehm.cc (_Jv_AllocBytes): Clear returned memory.
From-SVN: r32085
2000-02-21 05:14:06 +00:00
Mark Mitchell
99740276e4 varasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the constant.
* varasm.c (initializer_constant_valid_p): Call
	lang_expand_constant to	simplify the constant.

From-SVN: r32084
2000-02-21 04:25:11 +00:00
Mark Mitchell
8d7a5379cd cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
* cp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
	* class.c (build_secondary_vtable): Reorganize.  Don't create a
	new vtable under the new ABI.
	(layout_vtable_decl): Don't add num_extra_vtbl_entries when
	computing the size.
	(build_vtbl_initializer): Don't return a CONSTRUCTOR; just return
	the initializing elements.
	(initialize_vtable): New function.
	(dfs_finish_vtbls): Use it.
	(dfs_accumulate_vtbl_inits): New function.
	(finish_vtbls): Merge primary and secondary vtables under the new
	ABI.
	(finish_struct_1): Remove redundant call to layout_vtable_decl.
	* init.c (expand_virtual_init): Deal with BINFO_VTABLEs that
	aren't VAR_DECLs.

From-SVN: r32083
2000-02-21 04:19:12 +00:00
Mark Mitchell
b9f3920101 class.c (build_vtable): New function, split out from ...
* class.c (build_vtable): New function, split out from ...
	(get_vtable_decl): ... here, and ...
	(build_secondary_vtable): ... here.

	* pt.c (tsubst_decl): Fix formatting.

From-SVN: r32082
2000-02-20 23:24:58 +00:00
Bruce Korb
b6412bae50 regenerate
From-SVN: r32081
2000-02-20 23:15:50 +00:00
Bruce Korb
2260b683e4 va_list typedef needs to be disabled
From-SVN: r32080
2000-02-20 23:15:32 +00:00
Geoff Keating
f76ca83c3c print-rtl.c (print_rtx): Don't print addresses when flag_dump_unnumbered.
* print-rtl.c (print_rtx): Don't print addresses when
flag_dump_unnumbered.

From-SVN: r32079
2000-02-20 21:26:53 +00:00
Kaveh R. Ghazi
fbd039b21b sparc.c (sparc_output_scratch_registers): Mark parameter with ATTRIBUTE_UNUSED.
* sparc.c (sparc_output_scratch_registers): Mark parameter with
	ATTRIBUTE_UNUSED.
	(sparc_va_arg, sparc_flat_output_function_prologue,
	sparc_flat_output_function_epilogue): Cast value to unsigned in
	comparison.
	(sparc_emit_float_lib_cmp): Remove unused variable `cmp'.

	* sparc.md: Add default case in switch.

From-SVN: r32078
2000-02-20 13:43:58 +00:00
Jeff Law
ce26960a54 Daily bump.
From-SVN: r32077
2000-02-20 01:45:07 -07:00
Richard Henderson
83b091c77a c-typeck.c (add_pending_init): Don't abort for multiple fields at the same offset.
* c-typeck.c (add_pending_init): Don't abort for multiple
        fields at the same offset.
        (pending_init_member): Test the correct member.

From-SVN: r32076
2000-02-20 00:30:30 -08:00
Richard Henderson
4a6cfa6347 New test.
From-SVN: r32075
2000-02-20 00:28:28 -08:00
Herman A.J. ten Brugge
a0ec56b70d except.c (start_dynamic_handler): Use TYPE_MODE (integer_type_node) instead of SImode.
* except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
        instead of SImode.
        (start_catch_handler) : Same.

From-SVN: r32074
2000-02-19 22:43:00 -08:00
Brad Lucier
db01dcfa8b * Makefile.in: Have flow.o depend on $(EXPR_H)
From-SVN: r32073
2000-02-19 22:41:47 -08:00
Anthony Green
7b227604e7 * jcf-depend.c (add_entry): Fix test for first list entry.
From-SVN: r32072
2000-02-20 04:16:42 +00:00
Richard Kenner
64e92991e7 Move language-specific entries
From-SVN: r32071
2000-02-19 22:53:02 -05:00
Richard Kenner
4559fd9eee c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
* c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
	* c-decl.c (duplicate_decls, finish_enum): Likewise.
	(finish_decl): Remove -Wlarger-than code from here.
	* flags.h (id_clash_len): Now int.
	(larger_than_size): Now HOST_WIDE_INT.
	* fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
	Clean up checking to see if in table.
	(make_bit_field_ref): Remove extra parm to bitsize_int.
	* ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
	* print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
	* stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
	and for computing size of decl.
	* stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
	Move -Wlarger-than code to here.
	(layout_record): Remove extra arg to bitsize_int.
	Set TYPE_BINFO_SIZE_UNIT.
	(layout_union): Remove extra arg to bitsize_int.
	Use proper type for size of QUAL_UNION.
	(layout_type): Remove extra arg to bitsize_int.
	* toplev.c (id_clash_len): Now int.
	(larger_than_size): Now HOST_WIDE_INT.
	(decode_W_option): Clean up id-clash and larger-than- cases.
	* tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
	(expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
	* tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
	(struct tree_decl): New field size_unit.
	(size_int_wide): No HIGH operand; NUMBER is now signed.
	(size_int_2): Deleted.
	(size_int, bitsize_int): Don't use it and rework args.
	* varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
	* ch/decl.c (layout_enum): Set DECL_SIZE_UNIT.
	* ch/satisfy.c (safe_satisfy_decl): Likewise.
	* cp/class.c (build_primary_vtable, layout_vtable_decl): Likewise.
	(avoid_overlap, build_base_field): Likewise.
	(build_base_field, build_base_fields, is_empty_class):
	Test DECL_SIZE with integer_zero.
	(layout_class_type): Set CLASSTYPE_SIZE_UNIT.
	* cp/cp-tree.h (struct lang_type): New field size_unit.
	(CLASSTYPE_SIZE_UNIT): New macro.
	* cp/decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
	(cp_finish_decl): Delete -Wlarger-than processing.
	* cp/optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
	* cp/pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
	* cp/tree.c (make_binfo): binfo vector is one entry longer.
	(walk_tree): Walk DECL_SIZE_UNIT.
	* f/com.c (ffecom_sym_transform): Use DECL_SIZE_UNIT.
	(ffecom_transform_common_, ffecom_transform_equiv_): Likewise.
	(duplicate_decls): Likewise.
	(ffecom_tree_canonize_ptr_): Delete extra arg to bitsize_int.
	(finish_decl): Delete -Wlarger-than processing.
	* java/class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT.
	* java/constants.c (build_constants_constructor): Likewise.

From-SVN: r32070
2000-02-19 22:49:14 -05:00
Mark Mitchell
7d52ae23dc class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in comment.
* class.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in
	comment.
	(build_vtable_entry): Don't assume all vtable entries are
	functions.
	(build_vtbl_initializer): Adjust accordingly.
	(get_vtable_decl): Fix formatting.

From-SVN: r32069
2000-02-20 02:46:56 +00:00
Richard Kenner
06ceef4e7b c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
* c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
	* c-decl.c (duplicate_decls, finish_enum): Likewise.
	(finish_decl): Remove -Wlarger-than code from here.
	* flags.h (id_clash_len): Now int.
	(larger_than_size): Now HOST_WIDE_INT.
	* fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
	Clean up checking to see if in table.
	(make_bit_field_ref): Remove extra parm to bitsize_int.
	* ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
	* print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
	* stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
	and for computing size of decl.
	* stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
	Move -Wlarger-than code to here.
	(layout_record): Remove extra arg to bitsize_int.
	Set TYPE_BINFO_SIZE_UNIT.
	(layout_union): Remove extra arg to bitsize_int.
	Use proper type for size of QUAL_UNION.
	(layout_type): Remove extra arg to bitsize_int.
	* toplev.c (id_clash_len): Now int.
	(larger_than_size): Now HOST_WIDE_INT.
	(decode_W_option): Clean up id-clash and larger-than- cases.
	* tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
	(expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
	* tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
	(struct tree_decl): New field size_unit.
	(size_int_wide): No HIGH operand; NUMBER is now signed.
	(size_int_2): Deleted.
	(size_int, bitsize_int): Don't use it and rework args.
	* varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
	* ch/decl.c (layout_enum): Set DECL_SIZE_UNIT.
	* ch/satisfy.c (safe_satisfy_decl): Likewise.
	* cp/class.c (build_primary_vtable, layout_vtable_decl): Likewise.
	(avoid_overlap, build_base_field): Likewise.
	(build_base_field, build_base_fields, is_empty_class):
	Test DECL_SIZE with integer_zero.
	(layout_class_type): Set CLASSTYPE_SIZE_UNIT.
	* cp/cp-tree.h (struct lang_type): New field size_unit.
	(CLASSTYPE_SIZE_UNIT): New macro.
	* cp/decl.c (init_decl_processing): Set DECL_SIZE_UNIT.
	(cp_finish_decl): Delete -Wlarger-than processing.
	* cp/optimize.c (remap_decl): Walk DECL_SIZE_UNIT.
	* cp/pt.c (tsubst_decl): Set DECL_SIZE_UNIT.
	* cp/tree.c (make_binfo): binfo vector is one entry longer.
	(walk_tree): Walk DECL_SIZE_UNIT.
	* f/com.c (ffecom_sym_transform): Use DECL_SIZE_UNIT.
	(ffecom_transform_common_, ffecom_transform_equiv_): Likewise.
	(duplicate_decls): Likewise.
	(ffecom_tree_canonize_ptr_): Delete extra arg to bitsize_int.
	(finish_decl): Delete -Wlarger-than processing.
	* java/class.c (build_class_ref, push_super_field): Set DECL_SIZE_UNIT.
	* java/constants.c (build_constants_constructor): Likewise.

From-SVN: r32068
2000-02-19 20:11:00 -05:00
Anthony Green
ccd4c273d9 jcf-depend.c (add_entry): Add entries to the end of the list.
* jcf-depend.c (add_entry): Add entries to the end of the list.

I

From-SVN: r32066
2000-02-19 23:02:33 +00:00
Jeff Law
5df6c7801b Daily bump.
From-SVN: r32065
2000-02-19 01:45:07 -07:00
Jeffrey A Law
c9604920b5 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
From-SVN: r32063
2000-02-18 20:02:58 -07:00
Bryce McKinlay
a0e34aaae4 ZipEntry.java (setCrc): Fix overflow.
2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>

        * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
        (setSize): ditto.

From-SVN: r32062
2000-02-19 02:54:14 +00:00
Geoff Keating
488d3985f2 invoke.texi (Warning Options): Add an explanation of why you might want the -Wfloat-equal flag.
* invoke.texi (Warning Options): Add an explanation of why
you might want the -Wfloat-equal flag.

From-SVN: r32061
2000-02-19 01:37:31 +00:00
Richard Kenner
c8d8ed65a5 bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
* bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
	* cppinit.c (new_pending_define): Add cast to avoid warning.
	* expmed.c (extract_bit_field): Likewise.
	* flow.c (enum reorder_skip_type): New type.
	(skip_insns_between_blcok): New it.
	Rework to avoid warning about possibly undefined variable.
	* function.c (assign_parms): Make thisparm_boundary unsigned.
	* genrecog.c (write_switch): Cast XWINT result to int.
	* lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
	* mips-tfile.c (init_file): Make two versions of FDR intializer:
	one for MIPS and one for Alpha.
	(get_tag, copy_object): Add casts to avoid warnings.
	* optabs.c (init_one_libfunc): Cast NAME to (char *).
	* reload.c (find_reloads): Make TYPE enum reload_type.
	* sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
	* unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
	* varasm.c (compare_constant_1): Add cast to avoid warning.
	* config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
	to (char *).
	(alpha_expand_unaligned_load, alpha_expand_unaligned_store):
 	Cast switch operand of size to int.
	(alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
	* config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
	in unhandled case.

From-SVN: r32060
2000-02-18 20:27:00 -05:00
Jason Merrill
1f51a99218 semantics.c (deferred_type_access_control): Walk the entire type_lookups list.
* semantics.c (deferred_type_access_control): Walk the entire
        type_lookups list.
        (save_type_access_control): Rename from
        initial_deferred_type_access_control.  Just remember the value.
        (decl_type_access_control): New fn.
        (begin_function_definition): Use deferred_type_access_control, after
        we've started the function.  Set type_lookups to error_mark_node.
        * parse.y (frob_specs, fn.def1): Adjust.
        (parse_decl0, parse_field, parse_field0, parse_bitfield): New fns.
        (parse_end_decl, parse_bitfield0, parse_method): New fns.
        (fn.def2, initdcl, initdcl0_innards, nomods_initdcl0): Use them.
        (after_type_component_declarator0): Likewise.
        (after_type_component_declarator): Likewise.
        (notype_component_declarator): Likewise.
        * cp-tree.h: Adjust.

        * decl.c (redeclaration_error_message): Allow redeclaration of
        namespace-scope decls.

From-SVN: r32059
2000-02-18 17:42:07 -05:00
Jason Merrill
6d1e16d74e new
From-SVN: r32058
2000-02-18 17:24:31 -05:00
Tom Tromey
8ade47715e jvm.h (_Jv_GetJavaVM): Declare.
* include/jvm.h (_Jv_GetJavaVM): Declare.
	* include/java-interp.h (_Jv_GetFirstMethod): New function.
	(_Jv_MethodBase::get_method): New method.
	(_Jv_JNIMethod::set_function): New method.
	* jni.cc (_Jv_JNI_UnregisterNatives): New function.
	(_Jv_JNI_RegisterNatives): New function.
	(_Jv_JNIFunctions): Updated for new functions.
	(_Jv_GetJavaVM): New function.
	(_Jv_JNI_GetJavaVM): Use it.  Now static.
	(_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
	is already a Java thread but does not have a JNIEnv yet.

	* java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
	function.

From-SVN: r32056
2000-02-18 21:22:06 +00:00
Tom Tromey
31e890f0f3 register.java: New file.
* libjava.jni/register.java: New file.
	* libjava.jni/register.c: New file.
	* libjava.jni/register.out: New file.

From-SVN: r32055
2000-02-18 21:15:32 +00:00
Chandra Chavva
c1b24d7318 *** empty log message ***
From-SVN: r32054
2000-02-18 15:56:47 -05:00
Nick Clifton
725790629f Prevent emission of "a.lign 0" directives
From-SVN: r32052
2000-02-18 18:22:10 +00:00
Pekka Nikander
a0f4cca642 re GNATS gcj/82 (code generation for jvm IRETURN fails on boolean/byte/short methods if INT_TYPE_SIZE < 32)
Wed Nov 03 02:16:00 PST 1999  Pekka Nikander  <pekka.nikander@hut.fi>

	* decl.c (INT_TYPE_SIZE): Define if necessary.
	(expand_java_return): Handle the case of a native integer smaller
 	than a JVM integer.

(Fix to the Java PR #82:
  http://sourceware.cygnus.com/ml/java-prs/1999-q4/msg00078.html)

From-SVN: r32051
2000-02-18 10:17:37 -08:00
Martin v. Löwis
8b97e23b76 gcc.texi (Bug Reporting): Refer to bugs.html.
* gcc.texi (Bug Reporting): Refer to bugs.html.
	(Bug Lists): Likewise.
	* system.h (GCCBUGURL): New preprocessor define.
	* rtl.c (fancy_abort): Use it.
	* gcc.c (main): Likewise.
	* typeck2.c (my_friendly_abort): Use GCCBUGURL.
	* g77spec.c (lang_specific_driver): Use GCCBUGURL.
	* gjavah.c (help): Use GCCBUGURL.
	* jv-scan.c (help): Likewise.
	* jcf-dump.c (help): Likewise.

From-SVN: r32049
2000-02-18 12:26:50 +00:00
Nathan Sidwell
7eeb243102 Fix typos in -fmessage-length doc
From-SVN: r32048
2000-02-18 10:59:43 +00:00
Richard Henderson
201384ac8c Missed changelog for life_analysis fix.
From-SVN: r32047
2000-02-18 02:41:31 -08:00
Jeff Law
e364987f8e Daily bump.
From-SVN: r32046
2000-02-18 01:45:07 -07:00
John Wehle
a49a6a6800 loop.c (canonicalize_condition): New function, broken out of get_condition.
* loop.c (canonicalize_condition): New function,
	broken out of get_condition.
	(get_condition): Use it.
	* expr.h (canonicalize_condition): Prototype it.

	* tree.h (tree_int_cst_msb): Declare.
	* tree.c (tree_int_cst_msb): New function.

From-SVN: r32045
2000-02-18 06:32:01 +00:00
Mark Mitchell
930b1f40d0 class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
* class.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
	* decl2.c (grokclassfn): Likewise.

From-SVN: r32044
2000-02-18 06:00:36 +00:00
Tom Tromey
8dd8ff2e98 Rotated ChangeLogs
From-SVN: r32043
2000-02-17 22:57:30 +00:00
Mark Mitchell
2269eec3b9 ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
2000-02-17  Mark Mitchell  <mark@codesourcery.com>

	* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.

From-SVN: r32042
2000-02-17 20:45:49 +00:00
Mark Mitchell
61d846051a stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt isn't set.
* stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
	isn't set.

From-SVN: r32041
2000-02-17 20:44:22 +00:00
Mark Mitchell
277576eefc invoke.texi (-fmessage-length=n): Document.
* invoke.texi (-fmessage-length=n): Document.

	* decl2.c (lang_decode_option): Don't set default message length
	here.
	* lex.c (lang_init_options): Set it here.

From-SVN: r32040
2000-02-17 20:38:26 +00:00
Mark Mitchell
44399cac47 g++.exp (g++_init): Add -fmessage-length=0 to ALWAYS_CXXFLAGS.
* lib/g++.exp (g++_init): Add -fmessage-length=0 to
	ALWAYS_CXXFLAGS.

From-SVN: r32039
2000-02-17 20:24:27 +00:00
Jason Merrill
b9a73e32f1 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
From-SVN: r32038
2000-02-17 15:24:11 -05:00
Mark Mitchell
9185a8d526 function.c (thread_prologue_and_epilogue_insns): Put a line note after the prologue.
* function.c (thread_prologue_and_epilogue_insns): Put a line note
	after the prologue.

From-SVN: r32037
2000-02-17 20:15:50 +00:00
Tom Tromey
de3cb4e4c1 re GNATS gcj/152 (Installation flaw)
* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
	Fixes PR gcj/152.

From-SVN: r32036
2000-02-17 18:34:14 +00:00
Nick Clifton
cb3d6d015b Replace #include <...> with #include "system.h"
From-SVN: r32035
2000-02-17 17:59:13 +00:00
Andy Vaught
b7a8086234 Andy Vaught <andy@maxwell.la.asu.edu>
* com.c (ffecom_member_phase2_): Re-enable COMMON debug code.
        (ffecom_finish_symbol_transform_): Likewise.
        (ffecom_transform_common_): Call ffestorag_set_hook.

From-SVN: r32034
2000-02-17 02:06:03 -08:00
Richard Henderson
ee8d66f795 configure.in (alpha-linux*, [...]): Add crtbeginS.o and crtendS.o.
* configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
        Add crtbeginS.o and crtendS.o.
        * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
        (ENDFILE_SPEC): Use crtendS.o.
        * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.

        * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
        (__do_global_dtors_aux): ... here.  Call __cxa_finalize if
        shared and present.
        (__dso_handle): New variable.
        * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
        bias to __CTOR_END__.

From-SVN: r32033
2000-02-17 01:47:43 -08:00
Jeff Law
3fbfa9f63b Daily bump.
From-SVN: r32032
2000-02-17 01:45:09 -07:00