gcc.git
24 years agonew
Jason Merrill [Wed, 23 Feb 2000 20:23:15 +0000 (15:23 -0500)]
new

From-SVN: r32122

24 years agocpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
Alexandre Oliva [Wed, 23 Feb 2000 19:21:07 +0000 (19:21 +0000)]
cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.

* cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
* cpplib.c (cpp_get_token): Produce them.
* cppexp.c (cpp_lex): Handle them.

From-SVN: r32121

24 years ago(arm_comp_type_attributes): Simply and comment tests on type attributes.
Nick Clifton [Wed, 23 Feb 2000 19:08:51 +0000 (19:08 +0000)]
(arm_comp_type_attributes): Simply and comment tests on type attributes.

From-SVN: r32120

24 years agooops - fixed typo in previous delta
Nick Clifton [Wed, 23 Feb 2000 18:30:27 +0000 (18:30 +0000)]
oops - fixed typo in previous delta

From-SVN: r32119

24 years agoFix arm_comp_type_attributes
Nick Clifton [Wed, 23 Feb 2000 18:29:25 +0000 (18:29 +0000)]
Fix arm_comp_type_attributes

From-SVN: r32118

24 years ago* execute/20000223-1.c: New test.
Nathan Sidwell [Wed, 23 Feb 2000 18:14:28 +0000 (18:14 +0000)]
* execute/20000223-1.c: New test.

From-SVN: r32117

24 years ago* g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL.
Nathan Sidwell [Wed, 23 Feb 2000 17:27:07 +0000 (17:27 +0000)]
* g++.old-deja/g++.pt/memtemp79.C: Fixed. Remove XFAIL.

From-SVN: r32116

24 years ago* decl.c (decls_match): Remove obsolete static member nadgering.
Nathan Sidwell [Wed, 23 Feb 2000 17:25:29 +0000 (17:25 +0000)]
* decl.c (decls_match): Remove obsolete static member nadgering.

From-SVN: r32115

24 years agofinal.c (shorten_branches): Make value passed to LABEL_ALIGN conform to documentation.
J"orn Rennecke [Wed, 23 Feb 2000 17:18:15 +0000 (17:18 +0000)]
final.c (shorten_branches): Make value passed to LABEL_ALIGN conform to documentation.

* final.c (shorten_branches): Make value passed to LABEL_ALIGN
conform to documentation.
* sh.h (LABEL_ALIGN): If aligning loops, call sh_label_align
to check for special cases.
* sh-protos.h (sh_label_align): Declare.
* sh.c (sh_label_align): Define.

From-SVN: r32114

24 years agomips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
Andrew Haley [Wed, 23 Feb 2000 14:37:05 +0000 (14:37 +0000)]
mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.

2000-02-22  Andrew Haley  <aph@cygnus.com>

* config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
(SIZE_TYPE): Is 32 bits when using -mgp32.
(PTRDIFF_TYPE): Ditto.

From-SVN: r32113

24 years ago* diagnostic.c (init_output_buffer): Handle case of null PREFIX.
Richard Kenner [Wed, 23 Feb 2000 12:17:57 +0000 (12:17 +0000)]
* diagnostic.c (init_output_buffer): Handle case of null PREFIX.

From-SVN: r32112

24 years agoDaily bump.
Jeff Law [Wed, 23 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32111

24 years agoMakefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
Zack Weinberg [Wed, 23 Feb 2000 08:43:44 +0000 (08:43 +0000)]
Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.

* libobjc/Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
* gcc/config/i386/i386.h: If IN_TARGET_LIBS is defined, make
BIGGEST_FIELD_ALIGNMENT a constant.

From-SVN: r32110

24 years agoAdd support for sh-pe and arm-wince-pe targets.
Nick Clifton [Wed, 23 Feb 2000 01:25:56 +0000 (01:25 +0000)]
Add support for sh-pe and arm-wince-pe targets.

From-SVN: r32109

24 years agoAdd data member test
Mark Mitchell [Tue, 22 Feb 2000 22:47:56 +0000 (22:47 +0000)]
Add data member test

From-SVN: r32108

24 years ago* g++.old-deja/g++.abi/ptrmem.C: New test.
Mark Mitchell [Tue, 22 Feb 2000 22:17:33 +0000 (22:17 +0000)]
* g++.old-deja/g++.abi/ptrmem.C: New test.

From-SVN: r32107

24 years agofix comment
Jason Merrill [Tue, 22 Feb 2000 22:12:59 +0000 (17:12 -0500)]
fix comment

From-SVN: r32106

24 years agodwarf2out.c (output_line_info): Put the marker for the end of the line number info...
Jason Merrill [Tue, 22 Feb 2000 22:04:35 +0000 (22:04 +0000)]
dwarf2out.c (output_line_info): Put the marker for the end of the line number info at the actual end.

        * dwarf2out.c (output_line_info): Put the marker for the end of
        the line number info at the actual end.
        (gen_struct_or_union_type_die): Use decl_function_context
        to check for local classes.
        * dwarfout.c (output_type): Likewise.

From-SVN: r32105

24 years agoparse.y (init_decl_processing): `_Jv_IsInstanceOf' returned value type set to `boolea...
Alexandre Petit-Bianco [Tue, 22 Feb 2000 09:12:48 +0000 (09:12 +0000)]
parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned value type set to `boolean_type_node'.

2000-02-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (init_decl_processing): `_Jv_IsInstanceOf' returned
value type set to `boolean_type_node'.

From-SVN: r32104

24 years agoFix thinko in last change.
Jeff Law [Tue, 22 Feb 2000 09:05:22 +0000 (02:05 -0700)]
Fix thinko in last change.

From-SVN: r32103

24 years agoDaily bump.
Jeff Law [Tue, 22 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32102

24 years agopa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference for arguments with...
Jeffrey A Law [Tue, 22 Feb 2000 08:40:16 +0000 (08:40 +0000)]
pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference for arguments with a mode, but no type.

        * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
        for arguments with a mode, but no type.
        (FUNCTION_ARG_CALLEE_COPIES): Similarly.
        * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
        * pa/long_double.h: New file.
        * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
        both have 128bit wide long doubles.
        * configure: Rebuilt.

From-SVN: r32101

24 years agoRefer to the standard as an ISO document, not an ANSI one.
Martin v. Löwis [Tue, 22 Feb 2000 07:25:31 +0000 (07:25 +0000)]
Refer to the standard as an ISO document, not an ANSI one.

* decl.c (grokdeclarator): Change ANSI to ISO.
* lex.c (consume_string, readescape, do_identifier): Likewise.
(parse_float, real_yylex): Likewise.
* parse.y (paren_expr_or_null, paren_cond_or_null): Likewise.
(unary_expr, new_initializer, cast_expr, primary, primary_no_id,
new_type_id, maybe_label_decls, simple_stmt,
for.init.statement): Likewise.
* pt.c (do_decl_instantiation, do_type_instantiation): Likewise.
* semantics.c (finish_named_return_value): Likewise.
* parse.c: Regenerate.

From-SVN: r32100

24 years agocp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
Mark Mitchell [Tue, 22 Feb 2000 02:30:54 +0000 (02:30 +0000)]
cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.

* cp-tree.h (CPTI_VTABLE_INDEX_TYPE): New macro.
(CPTI_CLASS_STAR_TYPE): Remove.
(vtable_index_type): Likewise.
(class_star_type_node): Remove.
(TYPE_PTRMEMFUNC_FN_TYPE): Adjust for the new ABI.
(build_binary_op_nodefault): Remove.
* call.c (build_new_op): Use build_binary_op instead of
build_binary_op_nodefault.
* decl.c (init_decl_processing): Remove class_star_type_node
initialization.  Make delta_type_node ptrdiff_type_node under the
new ABI.  Initialize vtable_index_type.
(build_ptrmemfunc_type): Build different structures for the new
ABI.
(build_enumerator): Use build_binary_op instead of
build_binary_op_nodefault.
* method.c (build_overload_value): Mangle pointers-to-members
appropriately under the new ABI.
* typeck.c (build_array_ref): Use build_binary_op instead of
build_binary_op_nodefault.
(get_member_function_from_ptrfunc): Adjust for the new ABI.
(build_binary_op_nodefault): Rename to ...
(build_binary_op): ... this.  Remove old version.  Adjust for
pointer-to-member comparisons under the new ABI.
(build_ptrmemfunc1): Remove dead code.  Adjust for the new ABI.
(build_ptrmemfunc): Adjust for the new ABI.
(expand_ptrmemfunc_cst): Likewise.
(delta2_from_ptrmemfunc): Assert that we're not using the new ABI.
(pfn_from_ptrmemfunc): Adjust for the new ABI.

From-SVN: r32099

24 years agore GNATS gcj/147 (Problem parsing comments)
Alexandre Petit-Bianco [Tue, 22 Feb 2000 00:13:54 +0000 (00:13 +0000)]
re GNATS gcj/147 (Problem parsing comments)

2000-02-15  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* lex.c (java_parse_doc_section): Alway unget the last unicode
when returning 0.
(java_lex): Call java_parse_end_comment with fetched unicode.

This is a fix to the Java PR #47
(http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00042.html)

From-SVN: r32097

24 years agoRemove conflict marker
Martin v. Löwis [Tue, 22 Feb 2000 00:04:20 +0000 (00:04 +0000)]
Remove conflict marker

From-SVN: r32096

24 years ago[multiple changes]
Alexandre Petit-Bianco [Mon, 21 Feb 2000 23:53:36 +0000 (23:53 +0000)]
[multiple changes]

Thu Feb 17 14:30:37 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-write.c (generate_bytecode_insns): Don't generate empty
  `finally' clauses.

Thu Feb 17 13:20:58 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-parse.c (load_class): Call `fatal' if no file containing
the target class are found.

From-SVN: r32095

24 years agodefaults.h (ASM_OUTPUT_ASCII): Constify a char*.
Kaveh R. Ghazi [Mon, 21 Feb 2000 23:27:01 +0000 (23:27 +0000)]
defaults.h (ASM_OUTPUT_ASCII): Constify a char*.

* defaults.h (ASM_OUTPUT_ASCII): Constify a char*.

* flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
(life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.

* haifa-sched.c (rank_for_schedule): Don't cast away const-ness.

* integrate.c (compare_blocks, find_block): Likewise.

* rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.

* rtl.h (set_file_and_line_for_stmt): Constify a char*.

* stmt.c (stmt_status, set_file_and_line_for_stmt,
expand_asm_operands): Likewise.

From-SVN: r32094

24 years agopredict.c (estimate_probability): Added the pointer heuristic to the collection of...
Jason Eckhardt [Mon, 21 Feb 2000 23:04:43 +0000 (23:04 +0000)]
predict.c (estimate_probability): Added the pointer heuristic to the collection of static branch predictors.

        * predict.c (estimate_probability): Added the pointer heuristic to
        the collection of static branch predictors.

From-SVN: r32093

24 years agomips.h (ASM_SPEC): Add -mfix700.
Catherine Moore [Mon, 21 Feb 2000 20:48:23 +0000 (15:48 -0500)]
mips.h (ASM_SPEC): Add -mfix700.

        * config/mips/mips.h (ASM_SPEC): Add -mfix700.
        * invoke.texi (-mfix7000): Document.

From-SVN: r32092

24 years agodiagnostic.c (init_output_buffer): Make it possible to output at least 32 characters...
Gabriel Dos Reis [Mon, 21 Feb 2000 20:17:41 +0000 (20:17 +0000)]
diagnostic.c (init_output_buffer): Make it possible to output at least 32 characters if we're given a too long prefix.

2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>

        * diagnostic.c (init_output_buffer): Make it possible to output at
        least 32 characters if we're given a too long prefix.

From-SVN: r32091

24 years agocall.c (build_object_call): Compress consecutive calls to cp_error.
Gabriel Dos Reis [Mon, 21 Feb 2000 19:51:44 +0000 (19:51 +0000)]
call.c (build_object_call): Compress consecutive calls to cp_error.

2000-02-21  Gabriel Dos Reis  <gdr@codesourcery.com>

        * call.c (build_object_call): Compress consecutive calls to
        cp_error.
        (build_conditional_expr): Say 'ISO C++' not 'ANSI C++'.
        (build_op_delete_call): Adjust message formatting.

        * class.c (check_bases): Compress consecutive calls to
        cp_pedwarn.
        (finish_struct_anon): Say 'ISO C++'.

        * decl.c (start_decl): Same here.
        (grok_reference_init): Likewise.
        (grokfndecl): Correct message formatting.
        (grokfndecl): Improve diagnostic.
        (check_static_variable_definition): Likewise. Say 'ISO C++'
        (compute_array_index_type): Say 'ISO C++'
        (create_array_type_for_decl): Compress consecutive calls to
        cp_error.
        (grokdeclarator): Say 'ISO C++'
        (grok_op_properties): Likewise.

        * decl2.c (delete_sanity): Clairify diagnostic.
        (check_member_template): Same here.
        (grok_function_init): Use consistent terminology.

        * expr.c (do_case): Say 'ISO C++'

        * friend.c (do_friend): Compress consecutive calls to warning.

From-SVN: r32090

24 years agojcf-dump.c (main): Test for correct condition after output file creation.
Joerg Brunsmann [Mon, 21 Feb 2000 16:36:55 +0000 (16:36 +0000)]
jcf-dump.c (main): Test for correct condition after output file creation.

Mon Jan 18 14:30:09 2000  Joerg Brunsmann  <joerg.brunsmann@fernuni-hagen.de>

* jcf-dump.c (main): Test for correct condition after
output file creation.

From-SVN: r32089

24 years agoDaily bump.
Jeff Law [Mon, 21 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32088

24 years agoForgot to commit ChangeLog
Anthony Green [Mon, 21 Feb 2000 08:21:52 +0000 (08:21 +0000)]
Forgot to commit ChangeLog

From-SVN: r32087

24 years agoMakefile.in: Rebuilt.
Anthony Green [Mon, 21 Feb 2000 05:54:29 +0000 (05:54 +0000)]
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

24 years ago* boehm.cc (_Jv_AllocBytes): Clear returned memory.
Tom Tromey [Mon, 21 Feb 2000 05:14:06 +0000 (05:14 +0000)]
* boehm.cc (_Jv_AllocBytes): Clear returned memory.

From-SVN: r32085

24 years agovarasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the...
Mark Mitchell [Mon, 21 Feb 2000 04:25:11 +0000 (04:25 +0000)]
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

24 years agocp-tree.h (merge_primary_and_secondary_vtables_p): New macro.
Mark Mitchell [Mon, 21 Feb 2000 04:19:12 +0000 (04:19 +0000)]
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

24 years agoclass.c (build_vtable): New function, split out from ...
Mark Mitchell [Sun, 20 Feb 2000 23:24:58 +0000 (23:24 +0000)]
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

24 years agoregenerate
Bruce Korb [Sun, 20 Feb 2000 23:15:50 +0000 (23:15 +0000)]
regenerate

From-SVN: r32081

24 years agova_list typedef needs to be disabled
Bruce Korb [Sun, 20 Feb 2000 23:15:32 +0000 (23:15 +0000)]
va_list typedef needs to be disabled

From-SVN: r32080

24 years agoprint-rtl.c (print_rtx): Don't print addresses when flag_dump_unnumbered.
Geoff Keating [Sun, 20 Feb 2000 21:26:53 +0000 (21:26 +0000)]
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

24 years agosparc.c (sparc_output_scratch_registers): Mark parameter with ATTRIBUTE_UNUSED.
Kaveh R. Ghazi [Sun, 20 Feb 2000 13:43:58 +0000 (13:43 +0000)]
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

24 years agoDaily bump.
Jeff Law [Sun, 20 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32077

24 years agoc-typeck.c (add_pending_init): Don't abort for multiple fields at the same offset.
Richard Henderson [Sun, 20 Feb 2000 08:30:30 +0000 (00:30 -0800)]
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

24 years agoNew test.
Richard Henderson [Sun, 20 Feb 2000 08:28:28 +0000 (00:28 -0800)]
New test.

From-SVN: r32075

24 years agoexcept.c (start_dynamic_handler): Use TYPE_MODE (integer_type_node) instead of SImode.
Herman A.J. ten Brugge [Sun, 20 Feb 2000 06:43:00 +0000 (07:43 +0100)]
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

24 years ago* Makefile.in: Have flow.o depend on $(EXPR_H)
Brad Lucier [Sun, 20 Feb 2000 06:41:47 +0000 (06:41 +0000)]
* Makefile.in: Have flow.o depend on $(EXPR_H)

From-SVN: r32073

24 years ago* jcf-depend.c (add_entry): Fix test for first list entry.
Anthony Green [Sun, 20 Feb 2000 04:16:42 +0000 (04:16 +0000)]
* jcf-depend.c (add_entry): Fix test for first list entry.

From-SVN: r32072

24 years agoMove language-specific entries
Richard Kenner [Sun, 20 Feb 2000 03:53:02 +0000 (22:53 -0500)]
Move language-specific entries

From-SVN: r32071

24 years agoc-common.c (decl_attributes): Set DECL_SIZE_UNIT.
Richard Kenner [Sun, 20 Feb 2000 03:49:14 +0000 (22:49 -0500)]
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

24 years agoclass.c (dfs_build_vcall_offset_vtbl_entries): Fix typo in comment.
Mark Mitchell [Sun, 20 Feb 2000 02:46:56 +0000 (02:46 +0000)]
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

24 years agoc-common.c (decl_attributes): Set DECL_SIZE_UNIT.
Richard Kenner [Sun, 20 Feb 2000 01:11:00 +0000 (01:11 +0000)]
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

24 years agojcf-depend.c (add_entry): Add entries to the end of the list.
Anthony Green [Sat, 19 Feb 2000 23:02:33 +0000 (23:02 +0000)]
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

24 years agoDaily bump.
Jeff Law [Sat, 19 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32065

24 years ago* pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
Jeffrey A Law [Sat, 19 Feb 2000 03:02:58 +0000 (03:02 +0000)]
* pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.

From-SVN: r32063

24 years agoZipEntry.java (setCrc): Fix overflow.
Bryce McKinlay [Sat, 19 Feb 2000 02:54:14 +0000 (02:54 +0000)]
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

24 years agoinvoke.texi (Warning Options): Add an explanation of why you might want the -Wfloat...
Geoff Keating [Sat, 19 Feb 2000 01:37:31 +0000 (01:37 +0000)]
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

24 years agobitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
Richard Kenner [Sat, 19 Feb 2000 01:27:00 +0000 (01:27 +0000)]
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

24 years agosemantics.c (deferred_type_access_control): Walk the entire type_lookups list.
Jason Merrill [Fri, 18 Feb 2000 22:42:07 +0000 (22:42 +0000)]
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

24 years agonew
Jason Merrill [Fri, 18 Feb 2000 22:24:31 +0000 (17:24 -0500)]
new

From-SVN: r32058

24 years agojvm.h (_Jv_GetJavaVM): Declare.
Tom Tromey [Fri, 18 Feb 2000 21:22:06 +0000 (21:22 +0000)]
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

24 years agoregister.java: New file.
Tom Tromey [Fri, 18 Feb 2000 21:15:32 +0000 (21:15 +0000)]
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

24 years ago*** empty log message ***
Chandra Chavva [Fri, 18 Feb 2000 20:56:47 +0000 (15:56 -0500)]
*** empty log message ***

From-SVN: r32054

24 years agoPrevent emission of "a.lign 0" directives
Nick Clifton [Fri, 18 Feb 2000 18:22:10 +0000 (18:22 +0000)]
Prevent emission of "a.lign 0" directives

From-SVN: r32052

24 years agore GNATS gcj/82 (code generation for jvm IRETURN fails on boolean/byte/short methods...
Pekka Nikander [Fri, 18 Feb 2000 18:17:37 +0000 (20:17 +0200)]
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

24 years agogcc.texi (Bug Reporting): Refer to bugs.html.
Martin v. Löwis [Fri, 18 Feb 2000 12:26:50 +0000 (12:26 +0000)]
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

24 years agoFix typos in -fmessage-length doc
Nathan Sidwell [Fri, 18 Feb 2000 10:59:43 +0000 (10:59 +0000)]
Fix typos in -fmessage-length doc

From-SVN: r32048

24 years agoMissed changelog for life_analysis fix.
Richard Henderson [Fri, 18 Feb 2000 10:41:31 +0000 (02:41 -0800)]
Missed changelog for life_analysis fix.

From-SVN: r32047

24 years agoDaily bump.
Jeff Law [Fri, 18 Feb 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32046

24 years agoloop.c (canonicalize_condition): New function, broken out of get_condition.
John Wehle [Fri, 18 Feb 2000 06:32:01 +0000 (06:32 +0000)]
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

24 years agoclass.c (add_method): Don't set DECL_VIRTUAL_CONTEXT.
Mark Mitchell [Fri, 18 Feb 2000 06:00:36 +0000 (06:00 +0000)]
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

24 years agoRotated ChangeLogs
Tom Tromey [Thu, 17 Feb 2000 22:57:30 +0000 (22:57 +0000)]
Rotated ChangeLogs

From-SVN: r32043

24 years agoir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.
Mark Mitchell [Thu, 17 Feb 2000 20:45:49 +0000 (20:45 +0000)]
ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.

2000-02-17  Mark Mitchell  <mark@codesourcery.com>

* ir.texi: Document DECL_TEMPLATE_INSTANTIATIONS.

From-SVN: r32042

24 years agostmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt isn't set.
Mark Mitchell [Thu, 17 Feb 2000 20:44:22 +0000 (20:44 +0000)]
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

24 years agoinvoke.texi (-fmessage-length=n): Document.
Mark Mitchell [Thu, 17 Feb 2000 20:38:26 +0000 (20:38 +0000)]
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

24 years agog++.exp (g++_init): Add -fmessage-length=0 to ALWAYS_CXXFLAGS.
Mark Mitchell [Thu, 17 Feb 2000 20:24:27 +0000 (20:24 +0000)]
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

24 years ago* bitmap.c (bitmap_operation): Don't leak bitmap elements.
Jason Merrill [Thu, 17 Feb 2000 20:24:11 +0000 (20:24 +0000)]
* bitmap.c (bitmap_operation): Don't leak bitmap elements.

From-SVN: r32038

24 years agofunction.c (thread_prologue_and_epilogue_insns): Put a line note after the prologue.
Mark Mitchell [Thu, 17 Feb 2000 20:15:50 +0000 (20:15 +0000)]
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

24 years agore GNATS gcj/152 (Installation flaw)
Tom Tromey [Thu, 17 Feb 2000 18:34:14 +0000 (18:34 +0000)]
re GNATS gcj/152 (Installation flaw)

* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
Fixes PR gcj/152.

From-SVN: r32036

24 years agoReplace #include <...> with #include "system.h"
Nick Clifton [Thu, 17 Feb 2000 17:59:13 +0000 (17:59 +0000)]
Replace #include <...> with #include "system.h"

From-SVN: r32035

24 years agoAndy Vaught <andy@maxwell.la.asu.edu>
Andy Vaught [Thu, 17 Feb 2000 10:06:03 +0000 (10:06 +0000)]
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

24 years agoconfigure.in (alpha-linux*, [...]): Add crtbeginS.o and crtendS.o.
Richard Henderson [Thu, 17 Feb 2000 09:47:43 +0000 (01:47 -0800)]
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

24 years agoDaily bump.
Jeff Law [Thu, 17 Feb 2000 08:45:09 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r32032

24 years ago* Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
Richard Henderson [Thu, 17 Feb 2000 06:12:35 +0000 (22:12 -0800)]
* Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).

From-SVN: r32031

24 years agolang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
Richard Henderson [Thu, 17 Feb 2000 06:07:20 +0000 (22:07 -0800)]
lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.

        * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
        default spec.

From-SVN: r32030

24 years ago* longlong.h (__clz_tab): Declare as static to match definition.
Hans-Peter Nilsson [Thu, 17 Feb 2000 04:40:47 +0000 (04:40 +0000)]
* longlong.h (__clz_tab): Declare as static to match definition.

From-SVN: r32029

24 years agoxm-djgpp.h (LIBSTDCXX): Delete.
Mark Elbrecht [Thu, 17 Feb 2000 04:39:11 +0000 (04:39 +0000)]
xm-djgpp.h (LIBSTDCXX): Delete.

        * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
        (XREF_FILE_NAME): Define.

        * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
        (EH_FRAME_SECTION_ASM_OP): Define.
        (IDENT_ASM_OP): Define.
        (TEXT_SECTION_ASM_OP): Define.
        (CPP_SPEC): Define.
        (CTORS_SECTION_ASM_OP): Define.
        (CTOR_SECTION_FUNCTION): Use it.
        (DTORS_SECTION_ASM_OP): Define.
        (DTOR_SECTION_FUNCTION): Use it.

From-SVN: r32028

24 years agoreg-stack.c (emit_swap_insn): Do not put a new insn before a NOTE_BASIC_BLOCK.
Zack Weinberg [Thu, 17 Feb 2000 04:34:02 +0000 (04:34 +0000)]
reg-stack.c (emit_swap_insn): Do not put a new insn before a NOTE_BASIC_BLOCK.

* reg-stack.c (emit_swap_insn): Do not put a new insn before a
NOTE_BASIC_BLOCK.

From-SVN: r32027

24 years agoconfigure.in: Add support for avr target.
Denis Chertykov [Thu, 17 Feb 2000 04:29:27 +0000 (04:29 +0000)]
configure.in: Add support for avr target.

        * configure.in: Add support for avr target.
        * configure: Rebuilt.

From-SVN: r32026

24 years agoMakefile.in (PARSE_C, [...]): Move dependencies on lex.c, lex.h, and PARSE_H to...
Zack Weinberg [Thu, 17 Feb 2000 04:19:34 +0000 (04:19 +0000)]
Makefile.in (PARSE_C, [...]): Move dependencies on lex.c, lex.h, and PARSE_H to...

* Makefile.in (PARSE_C, PARSE_SCAN_C): Move dependencies on
lex.c, lex.h, and PARSE_H to...
(parse.o, parse-scan.o): ...here, respectively.

* lex.c: Split out code that may trigger SIGFPE from yylex()
to its own function.
* lex.h (JAVA_FLOAT_RANGE_ERROR): Don't set value.

From-SVN: r32025

24 years agoflow.c (dump_regset, [...]): New functions.
Zack Weinberg [Thu, 17 Feb 2000 04:16:40 +0000 (04:16 +0000)]
flow.c (dump_regset, [...]): New functions.

* flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
debug_bb_n): New functions.
(dump_flow_info, print_rtl_with_bb): Use dump_regset.
* basic-block.h: Prototype new functions.

From-SVN: r32024

24 years agoAdd Denis as maintainer for avr port.
Jeff Law [Thu, 17 Feb 2000 04:09:32 +0000 (21:09 -0700)]
Add Denis as maintainer for avr port.

From-SVN: r32023

24 years agoinvoke.texi: Add AVR invocation docs.
Denis Chertykov [Thu, 17 Feb 2000 04:09:21 +0000 (04:09 +0000)]
invoke.texi: Add AVR invocation docs.

        * invoke.texi: Add AVR invocation docs.
        * install.texi: Add information about AVR.
        * md.texi: Add AVR constraint letters description.
        * extend.texi: Add description for AVR specific attributes.

From-SVN: r32022

24 years ago* jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
Tom Tromey [Thu, 17 Feb 2000 00:54:34 +0000 (00:54 +0000)]
* jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.

From-SVN: r32021

24 years agocalls.c: New file.
Tom Tromey [Thu, 17 Feb 2000 00:49:27 +0000 (00:49 +0000)]
calls.c: New file.

* libjava.jni/calls.c: New file.
* libjava.jni/calls.out: New file.
* libjava.jni/calls.java: New file.

From-SVN: r32020

24 years ago* fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
Jason Merrill [Thu, 17 Feb 2000 00:32:50 +0000 (00:32 +0000)]
* fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".

From-SVN: r32019

24 years agoMake DECL_CONTEXT mean the class in which a member function was declared, even for...
Mark Mitchell [Wed, 16 Feb 2000 23:54:23 +0000 (23:54 +0000)]
Make DECL_CONTEXT mean the class in which a member function was declared, even for a virtual function.

Make DECL_CONTEXT mean the class in which a member function was
declared, even for a virtual function.
* cp-tree.h (DECL_CLASS_CONTEXT): Adjust.
(DECL_FRIEND_CONTEXT): New macro.
(DECL_REAL_CONTEXT): Remove.
(SET_DECL_FRIEND_CONTEXT): Likewise.
(DECL_VIRTUAL_CONTEXT): Adjust.
(DECL_CLASS_SCOPE_P): Use TYPE_P.
(add_friends): Remove.
(hack_decl_function_context): Likewise.
* call.c (build_new_function_call): Replace DECL_REAL_CONTEXT with
CP_DECL_CONTEXT.
(build_over_call): Fix indentation.  Use DECL_CONTEXT
instead of DECL_CLASS_CONTEXT.
* class.c (dfs_build_vcall_offset_vtbl_entries): Likewise.
(add_method): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
(strictly_overrides): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
(build_vtbl_or_vbase_field): Don't set DECL_CLASS_CONTEXT.
(build_base_field): Likewise.
(finish_struct_1): Likewise.
(build_self_reference): Likewise.
* decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
DECL_REAL_CONTEXT.
(pushtag): Use decl_function_context, not
hack_decl_function_context.
(decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
(duplicate_decls): Use DECL_VIRTUAL_CONTEXT.
(pushdecl): Remove bogus code.
(start_decl): Use DECL_CONTEXT rather than DECL_CLASS_CONTEXT.
(cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
(grokfndecl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
Use decl_function_context, nothack_decl_function_context.
(grokvardecl): Don't set DECL_CLASS_CONTEXT.
(grokdeclarator): Likewise.  Use decl_function_context, not
hack_decl_function_context.
(copy_args_p): Document.  Don't use DECL_CLASS_CONTEXT.
(start_function): Use DECL_FRIEND_CONTEXT, not
DECL_CLASS_CONTEXT.  Use decl_function_context, not
hack_decl_function_context.
(finish_function): Use decl_function_context, not
hack_decl_function_context.
(maybe_retrofit_in_chrg): Use DECL_CONTEXT, not
DECL_CLASS_CONTEXT.
(grokclassfn): Set DECL_VIRTUAL_CONTEXT, not DECL_CONTEXT.
(finish_static_data_member_decl): Don't set DECL_CLASS_CONTEXT.
(grokfield): Likewise.
(finish_builtin_type): Likewise.
(finish_vtable_vardec): Use decl_function_context, not
hack_decl_function_context.
(import_export_decl): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
(start_static_initialization_or_destruction): Likewise.
(finish_static_initialization_or_destruction): Likewise.
(mark_used): Adjust logic for deciding when to synthesize methods.
* dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
DECL_REAL_CONTEXT.
* error.c (dump_function_decl): Use DECL_CONTEXT, not
DECL_CLASS_CONTEXT.
* friend.c (is_friend): Likewise.
(add_friends): Remove.
(do_friend): Use SET_DECL_FRIEND_CONTEXT.
* lex.c (begin_definition_of_inclass_inline): Use
decl_function_context, not hack_decl_function_context.
(process_next_inline): Likewise.
(do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
* method.c (set_mangled_name_for_decl): Use DECL_CONTEXT, not
DECL_CLASSS_CONTEXT.
(hack_identifier): Likewise.
(synthesize_method):  Use decl_function_context, not
hack_decl_function_context.
* pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
DECL_REAL_CONTEXT.
(is_member_template): Use decl_function_context, not
hack_decl_function_context.  Use DECL_CONTEXT, not
DECL_CLASS_CONTEXT.
(build_template_decl): Set DECL_VIRTUAL_CONTEXT, not
DECL_CLASS_CONTEXT.
(check_default_tmpl_args): Use CP_DECL_CONTEXT, not
DECL_REAL_CONTEXT.
(push_template_decl_real): Likewise.
(instantiate_class_template): Don't call add_friends.
(tsubst_default_argument): Use DECL_CONTEXT, not
DECL_REAL_CONTEXT.
(tsubst_decl): Set DECL_VIRTUAL_CONTEXT, not DECL_CLASS_CONTEXT.
Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
(set_meangled_name_for_template_decl): Use DECL_CONTEXT, not
DECL_CLASS_CONTEXT.
* repo.c (repo_inline_used): Likewise.
* search.c (current_scope): Adjust for new _CONTEXT macros.
(context_for_name_lookup): Use CP_DECL_CONTEXT, not
DECL_REAL_CONTEXT.
(friend_accessible_p): Use DECL_CONTEXT, not DECL_CLASS_CONTEXT.
(lookup_fnfields_here):Likewise.
(check_final_overrider): Likewise.
(init_vbase_pointers): Likewise.
(virtual_context): Likewise.
* semantics.c (finish_member_declaration): Just set DECL_CONTEXT.
(expand_body): Use decl_function_context, not
hack_decl_function_context.
* tree.c (hack_decl_function_context): Remove.
* typeck.c (build_x_function_call): Use DECL_CONTEXT, not
DECL_CLASS_CONTEXT.
* typeck2.c (error_not_base_type): Likewise.

From-SVN: r32018

24 years agojni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
Tom Tromey [Wed, 16 Feb 2000 22:42:41 +0000 (22:42 +0000)]
jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.

* jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
(_Jv_JNI_NewObject): Likewise.
(_Jv_JNI_NewObjectA): Likewise.
(_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
as "return" type to _Jv_CallAnyMethodA.
(_Jv_JNI_CallAnyMethodA): Likewise.
(_Jv_JNI_CallAnyVoidMethodV): Likewise.

From-SVN: r32017