platform/upstream/gcc.git
25 years agonatSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature...
Alexandre Oliva [Sat, 21 Aug 1999 11:56:24 +0000 (11:56 +0000)]
natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r.

* java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
function that detects the signature of getpwuid_r.
(init_properties): Use it.
* java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
(toString): Use it.

From-SVN: r28790

25 years agoDaily bump.
Jeff Law [Sat, 21 Aug 1999 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28788

25 years agoThe 'xxx may be clobbered by longjmp/vfork' warnings are part of
Geoffrey Keating [Sat, 21 Aug 1999 05:31:45 +0000 (05:31 +0000)]
The 'xxx may be clobbered by longjmp/vfork' warnings are part of
by -Wuninitialized.

From-SVN: r28787

25 years agoFix cse.c/resource.c register lifetime inconsistency.
Jim Wilson [Sat, 21 Aug 1999 00:54:22 +0000 (00:54 +0000)]
Fix cse.c/resource.c register lifetime inconsistency.

* resource.c (mark_target_live_regs): Use
PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.

From-SVN: r28786

25 years agortl.c (rtx_class, [...]): Constify.
Kaveh R. Ghazi [Fri, 20 Aug 1999 23:11:19 +0000 (23:11 +0000)]
rtl.c (rtx_class, [...]): Constify.

* rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.

* rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.

* genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.

From-SVN: r28785

25 years agortl.h (rtx_format): Constify a char*.
Kaveh R. Ghazi [Fri, 20 Aug 1999 23:05:25 +0000 (23:05 +0000)]
rtl.h (rtx_format): Constify a char*.

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

* rtl.c (rtx_format): Likewise.
(copy_rtx, copy_most_rtx, read_rtx): Likewise.
(init_rtl): Use accessor macro, not `rtx_format'.

* alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
char*.

* caller-save.c (mark_referenced_regs): Likewise.

* combine.c (subst, make_compound_operation, known_cond,
gen_rtx_combine, update_table_tick, get_last_value_validate,
use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.

* cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
refers_to_p, canon_reg, fold_rtx, cse_process_notes,
count_reg_usage): Likewise.

* emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
Likewise.

* final.c (leaf_renumber_regs_insn): Likewise.

* flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
dump_edge_info, count_reg_references): Likewise.

* function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
Likewise.

* gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
add_label_notes): Likewise.

* genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
clear_struct_flag, count_sub_rtxs, count_alternatives,
compares_alternatives_p, contained_in_p, walk_attr_value,
write_expr_attr_cache): Likewise.

* genconfig.c (walk_insn_part): Likewise.

* genemit.c (max_operand_1, gen_exp): Likewise.

* genextract.c (walk_rtx): Likewise.

* genflags.c (num_operands): Likewise.

* genoutput.c (scan_operands): Likewise.

* genpeep.c (match_rtx): Likewise.

* genrecog.c (add_to_sequence): Likewise.

* haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
Likewise.

* integrate.c (save_constants, copy_for_inline,
copy_rtx_and_substitute, subst_constants, restore_constants):
Likewise.

* jump.c  (mark_jump_label, invert_exp, redirect_exp,
rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.

* local-alloc.c (contains_replace_regs, memref_referenced_p):
Likewise.

* loop.c (record_excess_regs, rtx_equal_for_loop_p,
add_label_notes, replace_call_address, count_nonfixed_reads,
invariant_p, find_single_use_in_loop, find_mem_givs,
find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
Likewise.

* print-rtl.c (reg_names, print_rtx): Likewise.

* recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.

* reg-stack.c (stack_regs_mentioned_p, record_label_references,
record_reg_life_pat, swap_rtx_condition, goto_block_pat,
print_blocks): Likewise.

* regclass.c (fix_register, record_address_regs,
reg_scan_mark_refs): Likewise.

* regmove.c (stable_but_for_p): Likewise.

* reload.c (loc_mentioned_in_p, operands_match_p,
find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
copy_replacements, refers_to_regno_for_reload_p,
refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
reload_when_needed_name, reg_class_names, debug_reload_to_stream):
Likewise.

* reload1.c (eliminate_regs, scan_paradoxical_subregs,
delete_address_reloads_1, count_occurrences,
reload_cse_mem_conflict_p, reload_combine_note_use,
add_auto_inc_notes): Likewise.

* resource.c (mark_referenced_resources, mark_set_resources):
Likewise.

* rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
reg_mentioned_p, regs_set_between_p, modified_between_p,
modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.

* sched.c (sched_analyze_2, attach_deaths): Likewise.

* stupid.c (stupid_mark_refs): Likewise.

* unroll.c (remap_split_bivs): Likewise.

* varasm.c (mark_constants): Likewise.

* a29k/a29k.c (uses_local_reg_p): Likewise.

* alpha/alpha.c (summarize_insn): Likewise.

* arm/arm.c (symbol_mentioned_p, label_mentioned_p,
eliminate_lr2ip): Likewise.

* arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.

* i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
reg_mentioned_in_mem): Likewise.

* ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
symbolic_reference_mentioned_p): Likewise.

* romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.

* sh/sh.c (regs_used, mark_use): Likewise.

* vax/vax.c (vax_rtx_cost): Likewise.

From-SVN: r28784

25 years agomachmode.h (mode_name): Constify a char*.
Kaveh R. Ghazi [Fri, 20 Aug 1999 22:44:50 +0000 (22:44 +0000)]
machmode.h (mode_name): Constify a char*.

* machmode.h (mode_name): Constify a char*.

* rtl.c (mode_name): Likewise.

* genopinit.c (gen_insn): Use accessor macro, not `mode_name'.

* optabs.c (init_libfuncs): Constify a char*.

* print-tree.c (mode_name): Remove redundant declaration.
(print_node): Use accessor macro, not `mode_name'.

* reload1.c (dump_needs): Constify a char*.  Use accessor macro,
not `mode_name'.
(new_spill_reg): Constify a char*.

* tree.c (mode_name): Remove redundant declaration.

From-SVN: r28783

25 years agortl.c (rtx_name): Constify a char*.
Kaveh R. Ghazi [Fri, 20 Aug 1999 22:32:54 +0000 (22:32 +0000)]
rtl.c (rtx_name): Constify a char*.

* rtl.c (rtx_name): Constify a char*.

* rtl.h (rtx_name, fix_sched_param): Likewise.

* gmicro/gmicro.c (rtx_name): Remove redundant declaration.
(mypr): Use accessor macro, not `rtx_name'.

* genemit.c (print_code): Constify a char*.

* genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.

* genpeep.c (print_code): Constify a char*.

* genrecog.c (print_code): Likewise.

* graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
end_bb): Add static prototype.
(draw_edge): Constify a char*.
(end_bb): Remove unused parameter.

* haifa-sched.c (fix_sched_param, safe_concat, print_exp
print_block_visualization): Constify a char*.

From-SVN: r28782

25 years agosemantics.c (finish_stmt_expr): Fix typo in comment.
Mark Mitchell [Fri, 20 Aug 1999 22:07:22 +0000 (22:07 +0000)]
semantics.c (finish_stmt_expr): Fix typo in comment.

* semantics.c (finish_stmt_expr): Fix typo in comment.
* tree.c (search_tree): Handle EXIT_EXPR, LOOP_EXPR.
(mapcar): Likewise.
* init.c (build_vec_delete_1): Make the children of a permanent
BIND_EXPR permanent.
* pt.c (register_specialization): Don't register a specialization
more than once.

From-SVN: r28781

25 years ago* c-common.c (c_get_alias_set): Update comment.
Mark Mitchell [Fri, 20 Aug 1999 21:57:38 +0000 (21:57 +0000)]
* c-common.c (c_get_alias_set): Update comment.

From-SVN: r28780

25 years agomethod.c (process_overload_item): Call build_mangled_C9x_name () for all integer...
Andrew Haley [Fri, 20 Aug 1999 15:30:47 +0000 (15:30 +0000)]
method.c (process_overload_item): Call build_mangled_C9x_name () for all integer parameter types larger than long...

1999-08-18  Andrew Haley  <aph@cygnus.com>

        * method.c (process_overload_item): Call build_mangled_C9x_name ()
        for all integer parameter types larger than long long.

From-SVN: r28779

25 years agolinux.h (LIB_SPEC): Added.
Andreas Jaeger [Fri, 20 Aug 1999 13:12:25 +0000 (13:12 +0000)]
linux.h (LIB_SPEC): Added.

1999-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

* linux.h (LIB_SPEC): Added.

From-SVN: r28778

25 years agointerpret.cc (continue1): Implement explicit dispatch table.
Kresten Krab Thorup [Fri, 20 Aug 1999 11:40:35 +0000 (13:40 +0200)]
interpret.cc (continue1): Implement explicit dispatch table.

        * interpret.cc (continue1): Implement explicit dispatch table.
insn_target: Explicit interpreter switch table.
SAVE_PC: New macro, moves pc saving code into instructions that
require so.
NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
PC_REGISTER_ASM: New macro.
INLINE_SWITCH: New macro.  Constrols dispatching strategy.
opcode: Remove local variable.
{i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
(POKEI): Use _Jv_word.
(iinc): Use _Jv_word.
(dupx): Change reference argument (sp) to pointer.
(jvdump): Remove

* interpret.cc: Remove instruction timing instrumentation.

* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
comment.  Don't use _Jv_ClassNameSamePackage.

* gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
URLPathEntry, CacheEntry}: Removed.

* Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
package.
(.java.lo): Rule removed.

* Makefile.in: Rebuilt.

From-SVN: r28777

25 years agoc4x.h (STARTFILE_SPEC): Don't define.
Michael Hayes [Fri, 20 Aug 1999 10:34:20 +0000 (10:34 +0000)]
c4x.h (STARTFILE_SPEC): Don't define.

Fri Aug 20 22:32:17 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

* config/c4x/c4x.h (STARTFILE_SPEC): Don't define.

From-SVN: r28776

25 years agoDaily bump.
Jeff Law [Fri, 20 Aug 1999 07:45:15 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28775

25 years agopt.c (redeclare_class_template): Merge default template arguments in both directions.
Mark Mitchell [Fri, 20 Aug 1999 06:11:48 +0000 (06:11 +0000)]
pt.c (redeclare_class_template): Merge default template arguments in both directions.

* pt.c (redeclare_class_template): Merge default template
arguments in both directions.

* typeck.c (common_type): Undo 1999-08-18 change.  Remove
compiler_error message.

From-SVN: r28774

25 years agotree.c (expr_check): Fix typo in last change.
Zack Weinberg [Fri, 20 Aug 1999 01:54:42 +0000 (01:54 +0000)]
tree.c (expr_check): Fix typo in last change.

1999-08-19 18:43 -0700  Zack Weinberg  <zack@bitmover.com>

* tree.c (expr_check): Fix typo in last change.

From-SVN: r28773

25 years agonatThread.cc (class locker): New class.
Tom Tromey [Thu, 19 Aug 1999 22:58:27 +0000 (22:58 +0000)]
natThread.cc (class locker): New class.

* java/lang/natThread.cc (class locker): New class.
(join): Use a locker around _Jv_CondWait.
(sleep): Likewise.

From-SVN: r28770

25 years agortl.def (NOTE): Change format to "iuu0n".
Zack Weinberg [Thu, 19 Aug 1999 22:33:38 +0000 (22:33 +0000)]
rtl.def (NOTE): Change format to "iuu0n".

1999-08-19 14:44 -0700  Zack Weinberg  <zack@bitmover.com>

* rtl.def (NOTE): Change format to "iuu0n".
(ADDR_DIFF_VEC): Change format to "eEee0".
(ADDRESSOF): Change format to "eit".

* rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
(RTVEC_ELT): Change to match.
(XVECEXP): Use XVEC and RTVEC_ELT.
(INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
(PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
TRAP_CONDITION, TRAP_CODE): Use XEXP.
(INTVAL): Use XWINT.
(ADDRESSOF_DECL): Use XTREE.
(SET_ADDRESSOF_DECL): Delete.
(NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill.  These have been
ifdefed out since 2.6 at least.
(gen_rtvec_vv): Delete prototype.

* rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
not rtunion.
(copy_most_rtx): Handle 't' format letter.
* emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
(gen_rtvec_vv): Delete function.  All callers changed to use
gen_rtvec_v instead.
* print-rtl.c (print_rtx): Move special casing of NOTEs to
the '0' format letter.

* function.c (gen_mem_addressof): Don't use
SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
instead.
* integrate.c (copy_rtx_and_substitute): Likewise.
Copy 't' slots with XTREE.
(subst_constants): Treat 't' slots like '[swi]' slots.
* cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
* jump.c (rtx_equal_for_thread_p): Likewise.
* rtlanal.c (rtx_equal_p): Likewise.
* stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
only four arguments.
* gengenrtl.c (type_from_format): Provide correct types for
'b' and 't' slots.

* tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
If a recent gcc is in use (always in stage2 and beyond), use
statement expressions, so we don't make a function call unless
the check fails.  Evaluate arguments exactly once.
(CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
Delete.
(CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
they evaluate their arguments exactly once, irrespective of
the compiler in use.

* tree.c [ENABLE_CHECKING]: Define whichever set of functions
is used by the currently-enabled check macros.  This is:
(tree_check_failed, tree_class_check_failed): For gcc.
(tree_check, tree_class_check, cst_or_constructor_check,
expr_check): For other compilers.

* gencheck.c: Do not define any *_CHECK1 macros.

From-SVN: r28769

25 years agoc-common.c (c_get_alias_set): Fix support for poitners and references.
Mike Stump [Thu, 19 Aug 1999 21:39:04 +0000 (21:39 +0000)]
c-common.c (c_get_alias_set): Fix support for poitners and references.

* c-common.c (c_get_alias_set): Fix support for poitners and
references.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r28768

25 years agocp-tree.h: Declare flag_use_repository.
Jason Merrill [Thu, 19 Aug 1999 21:19:37 +0000 (21:19 +0000)]
cp-tree.h: Declare flag_use_repository.

* cp-tree.h: Declare flag_use_repository.
* pt.c (do_decl_instantiation): Don't complain about duplicate
instantiation with -frepo.
(do_type_instantiation): Likewise.

* pt.c (push_template_decl_real): Complain about everything
that isn't a valid template.

* decl2.c (import_export_decl): If -fnew-abi, class linkage doesn't
affect inlines.

From-SVN: r28767

25 years agonew
Jason Merrill [Thu, 19 Aug 1999 21:18:22 +0000 (17:18 -0400)]
new

From-SVN: r28766

25 years agore GNATS gcj/17 (Internal error: segfault on import-classname clash)
Alexandre Petit-Bianco [Thu, 19 Aug 1999 20:37:04 +0000 (20:37 +0000)]
re GNATS gcj/17 (Internal error: segfault on import-classname clash)

Thu Aug 19 10:26:18 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (method_header): Return a null pointer if the current
        class node is null.
        (finish_method_declaration): Return if the current function decl
        is null.
        (source_start_java_method): Likewise.
        (java_method_add_stmt): Likewise.

This fixes the net PR #17.

From-SVN: r28765

25 years agonew
Jason Merrill [Thu, 19 Aug 1999 18:45:07 +0000 (14:45 -0400)]
new

From-SVN: r28764

25 years agotweak
Jason Merrill [Thu, 19 Aug 1999 18:44:59 +0000 (14:44 -0400)]
tweak

From-SVN: r28763

25 years agoalias.c: Include tree.h.
John Wehle [Thu, 19 Aug 1999 15:53:10 +0000 (15:53 +0000)]
alias.c: Include tree.h.

* alias.c: Include tree.h.
(nonlocal_reference_p, mark_constant_function): New functions.
* flow.c (life_analysis): Call mark_constant_function.
* rtl.h (mark_constant_function): Declare it.

From-SVN: r28762

25 years agoFix test for unrecognisable switches.
Nick Clifton [Thu, 19 Aug 1999 14:03:05 +0000 (14:03 +0000)]
Fix test for unrecognisable switches.

From-SVN: r28761

25 years agocp-tree.def (PSEUDO_DTOR_EXPR): New tree code.
Mark Mitchell [Thu, 19 Aug 1999 08:06:17 +0000 (08:06 +0000)]
cp-tree.def (PSEUDO_DTOR_EXPR): New tree code.

* cp-tree.def (PSEUDO_DTOR_EXPR): New tree code.
* decl2.c (build_expr_from_tree): Handle it.
* error.c (dump_expr): Likewise.
* pt.c (for_each_template_parm): Likewise.
(tsubst_copy): Likewise.
* tree.c (search_tree): Likewise.
* semantics.c (finish_pseudo_destructor_call): Create it.

From-SVN: r28760

25 years agoDaily bump.
Jeff Law [Thu, 19 Aug 1999 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28759

25 years ago[multiple changes]
Alexandre Petit-Bianco [Thu, 19 Aug 1999 00:53:20 +0000 (00:53 +0000)]
[multiple changes]

Wed Aug 18 13:17:15 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* class.c (emit_register_class): Removed unnecessary call to
  start_sequence.
* parse.y (labeled_block_contains_loop_p): Removed unused local
  variable.

Tue Aug 17 22:51:44 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (java_refold): Added prototype.

Tue Aug 17 21:48:41 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * parse.y (BINOP_COMPOUND_CANDIDATES): New macro.
        (java_stabilize_reference): Removed unnecessary `else'.
        (java_complete_lhs): Set flag to remember boolean. Call
        java_refold. Added comments.
        (java_decl_equiv): New function.
        (binop_compound_p): Likewise.
        (java_refold): Likewise.
        (patch_unaryop): Striped static field access assigned to decl and
        op. Changed promotion scheme for ++/-- operators.
        (search_loop): New function.
        (labeled_block_contains_loop_p): Likewise.
        (patch_loop_statement): Call labeled_block_contains_loop_p. Added
        comment.
        (patch_bc_statement): Call search_loop. Fixed comment.

Mostly bug fixes in some forms of compound expressions and
break/continue target lookup.

From-SVN: r28758

25 years agoloop.c (recombine_givs): Set ix field after sorting.
J"orn Rennecke [Wed, 18 Aug 1999 22:35:14 +0000 (22:35 +0000)]
loop.c (recombine_givs): Set ix field after sorting.

* loop.c (recombine_givs): Set ix field after sorting.
(recombine_givs): Remove bogus index / giv lockstep looping.

From-SVN: r28757

25 years agosearch.c (setup_class_bindings): Robustify.
Mark Mitchell [Wed, 18 Aug 1999 22:11:10 +0000 (22:11 +0000)]
search.c (setup_class_bindings): Robustify.

* search.c (setup_class_bindings): Robustify.
* typeck.c (common_type): Use same_type_p, not pointer equality,
to compare types.

From-SVN: r28756

25 years agocp-tree.h (build_lang_field_decl): Remove.
Mark Mitchell [Wed, 18 Aug 1999 20:44:14 +0000 (20:44 +0000)]
cp-tree.h (build_lang_field_decl): Remove.

        * cp-tree.h (build_lang_field_decl): Remove.
* class.c (build_vtable): Replace calls to build_lang_field_decl
with build_lang_decl.
(prepare_fresh_vtable): Likewise.
(finish_struct_1): Likewise.
(init_class_processing): Likewise.
* decl.c (push_using_decl): Likewise.
(init_decl_processsing): Likewise.
(grokvardecl): Likewise.
(build_ptrmemfunc_type): Likewise.
(grokdeclarator): Likewise.
(build_enumerator): Likewise.
* decl2.c (grok_x_components): Likewise.
(do_class_using_decl): Likewise.
* except.c (call_eh_info): Likewise.
* init.c (init_init_processing): Likewise.
* rtti.c (expand_class_decl): Likewise.
* tree.c (build_base_fields): Likewise.
(build_vbase_pointer_fields): Likewise.
* lex.c (build_lang_decl): Build declarations on the permanent
obstack if we're building statmeent trees.
(retrofit_lang_decl): Handle both the full lang_decl and also the
smaller lang_decl_flags here.
(build_lang_field_decl): Remove.
* pt.c (push_template_decl_real): Issue errors for variable
declarations that are not static members.

From-SVN: r28755

25 years agotree.c (search_tree): Handle TRUTH_{AND,OR,XOR}_EXPR too.
Richard Henderson [Wed, 18 Aug 1999 20:05:08 +0000 (13:05 -0700)]
tree.c (search_tree): Handle TRUTH_{AND,OR,XOR}_EXPR too.

        * tree.c (search_tree): Handle TRUTH_{AND,OR,XOR}_EXPR too.
        (mapcar): Likewise.

From-SVN: r28754

25 years agoThreadGroup.java: Fixed now-erroneous comment.
Tom Tromey [Wed, 18 Aug 1999 19:51:23 +0000 (19:51 +0000)]
ThreadGroup.java: Fixed now-erroneous comment.

* java/lang/ThreadGroup.java: Fixed now-erroneous comment.
* java/lang/natThread.cc (finish_): Call ThreadGroup.remove.

From-SVN: r28753

25 years agoCombined compare & jump infrastructure
Bernd Schmidt [Wed, 18 Aug 1999 17:51:27 +0000 (17:51 +0000)]
Combined compare & jump infrastructure

From-SVN: r28752

25 years agoIndentation fixes
Bernd Schmidt [Wed, 18 Aug 1999 17:16:40 +0000 (17:16 +0000)]
Indentation fixes

From-SVN: r28751

25 years agoMake insn-recog.c include function.h
Bernd Schmidt [Wed, 18 Aug 1999 16:46:53 +0000 (16:46 +0000)]
Make insn-recog.c include function.h

From-SVN: r28750

25 years ago* include/javaprims.h ("Java"): Regenerated namespace decls.
Tom Tromey [Wed, 18 Aug 1999 16:34:28 +0000 (16:34 +0000)]
* include/javaprims.h ("Java"): Regenerated namespace decls.

From-SVN: r28749

25 years agonatClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from _Jv_InternClassStrings.
Kresten Krab Thorup [Wed, 18 Aug 1999 14:16:42 +0000 (14:16 +0000)]
natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from _Jv_InternClassStrings.

* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
from _Jv_InternClassStrings.

* prims.cc (_Jv_RunMain): New function.
(JvRunMain): Remove gij-support.

* gij.cc (main): Use _Jv_RunMain.

* java/util/zip/ZipFile.java: Call readDirectory in constructor.

* interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
argument in temp variable.
(continue1): For all op_x2y insns, use temp variable for
intermediate value.  Also remove some comments.

* java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
(forName): Don't call _Jv_InitClass.

* java/lang/Class.java (getResource,getResourceAsStream): Implement.

* java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.

* java/util/jar/JarInputStream.java: New file.

* java/util/jar/JarEntry.java: New file.

* java/util/jar/JarFile.java: New file.

* java/net/URLClassLoader.java: New file.

* java/net/JarURLConnection.java: New file.

* gnu/gcj/protocol/jar/Handler.java: New file.

* gnu/gcj/protocol/jar/Connection.java: New file.

* java/security/SecureClassLoader.java: New file.

* java/lang/ClassLoader.java (parent): New variable.
(ClassLoader (ClassLoader)): new constructor.
(findClass): New method.
(loadClass): Add default 1.2 implementation.
(getSystemResourceAsBytes, getResourceAsBytes): Removed.
(readfully): Removed.

* gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
(findSystemClass): New method.
(VMClassLoader): Constructor rewritten.
(init): New method.
All other methods removed.

* java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
to gnu::gcj::runtime::VMClassLoader.
(_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
class entries.
(VMClassLoader::findSystemClass): renamed from findBootClass.

* Makefile.am: Add new files.
(FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.

* Makefile.in: Rebuilt.

From-SVN: r28748

25 years agocse.c (cse_insn): Call never_reached_warning when a jump is changed to be unconditional.
Geoff Keating [Wed, 18 Aug 1999 10:43:26 +0000 (10:43 +0000)]
cse.c (cse_insn): Call never_reached_warning when a jump is changed to be unconditional.

* cse.c (cse_insn): Call never_reached_warning when a jump is
changed to be unconditional.
* flags.h: Declare warn_notreached.
* flow.c (delete_block): Call never_reached_warning when
a block is deleted.
* jump.c (delete_barrier_successors): Call never_reached_warning
when we delete everything after a BARRIER.
(never_reached_warning): New function.
* rtl.h: Declare never_reached_warning.
* toplev.c (warn_notreached): New variable.
(lang_independent_options): Set warn_notreached
when -Wunreachable-code.
(compile_file): We need line numbers for -Wunreachable-code.

Also modify documentation to suit.

From-SVN: r28747

25 years agoDaily bump.
Jeff Law [Wed, 18 Aug 1999 07:45:10 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28745

25 years agoJan Hubicka <hubicka@freesoft.cz>
Jan Hubicka [Wed, 18 Aug 1999 05:06:43 +0000 (07:06 +0200)]
Jan Hubicka  <hubicka@freesoft.cz>

        * haifa-sched.c (insn_unit): Fix typo on out of range test.
        * sched.c (insn_unit): Likewise.

From-SVN: r28744

25 years ago* combine.c (distribute_notes): Handle REG_EH_RETHROW.
Andreas Schwab [Wed, 18 Aug 1999 04:57:50 +0000 (04:57 +0000)]
* combine.c (distribute_notes): Handle REG_EH_RETHROW.

From-SVN: r28743

25 years agonatThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano.
Tom Tromey [Wed, 18 Aug 1999 03:48:37 +0000 (03:48 +0000)]
natThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano.

* java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
nano.
* include/quick-threads.h (_Jv_CondWait): Don't round to 0
inappropriately.

From-SVN: r28742

25 years agocp-tree.h (back_end_hook): New variable.
Mark Mitchell [Tue, 17 Aug 1999 23:07:54 +0000 (23:07 +0000)]
cp-tree.h (back_end_hook): New variable.

* cp-tree.h (back_end_hook): New variable.
* decl2.c (back_end_hook): Define it.
(finish_file): If it's non-NULL, call it.

From-SVN: r28741

25 years agogc_priv.h: Merged IRIX thread changes from include/private/gc_priv.h.
Rainer Orth [Tue, 17 Aug 1999 22:46:02 +0000 (22:46 +0000)]
gc_priv.h: Merged IRIX thread changes from include/private/gc_priv.h.

Tue Aug 10 00:08:29 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

* gc_priv.h: Merged IRIX thread changes from
include/private/gc_priv.h.

From-SVN: r28740

25 years agodecl.c (add_decl_to_level): New function.
Mark Mitchell [Tue, 17 Aug 1999 22:35:19 +0000 (22:35 +0000)]
decl.c (add_decl_to_level): New function.

* decl.c (add_decl_to_level): New function.
(push_local_binding): Use it.
(find_binding): Fix typo in comment.
(pushdecl): Use add_decl_to_level.  Put templates on the
corresponding namespace-scope binding levels.
* dump.c (dequeue_and_dump): Print the specializations of a
template.
* pt.c (push_template_decl_real): Don't push a template multiple
times.

From-SVN: r28738

25 years agoFrom Bryce McKinlay:
Tom Tromey [Tue, 17 Aug 1999 22:05:56 +0000 (22:05 +0000)]
From Bryce McKinlay:

* libjava.lang/Array_2.java: New file.
* libjava.lang/Array_2.out: New file.

From-SVN: r28737

25 years agoflow.c (create_edge_list): Use xmalloc, not malloc.
Andrew MacLeod [Tue, 17 Aug 1999 21:44:26 +0000 (21:44 +0000)]
flow.c (create_edge_list): Use xmalloc, not malloc.

Tue Aug 17 17:39:43 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* flow.c (create_edge_list): Use xmalloc, not malloc.

From-SVN: r28736

25 years agoDo not trash single-line C-style comments
Loren J. Rittle [Tue, 17 Aug 1999 18:32:32 +0000 (18:32 +0000)]
Do not trash single-line C-style comments

From-SVN: r28735

25 years agoDaily bump.
Jeff Law [Tue, 17 Aug 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28734

25 years agocp-tree.h (CALL_DECLARATOR_PARMS): New macro.
Mark Mitchell [Tue, 17 Aug 1999 07:20:23 +0000 (07:20 +0000)]
cp-tree.h (CALL_DECLARATOR_PARMS): New macro.

* cp-tree.h (CALL_DECLARATOR_PARMS): New macro.
(CALL_DECLARATOR_QUALS): Likewise.
(CALL_DECARATOR_EXCEPTION_SPEC): Likewise.
* decl.c (grokdeclarator): Adjust to use them.
* decl2.c (grokfield): Likewise.
(reparse_absdcl_as_casts): Likewise.
* lex.c (make_call_declarator): Likewise.
(set_quals_and_spec): Likewise.
* pt.c (tsubst): Likewise.
* tree.c (mapcar): Remove special hack to handle third operand of
a CALL_EXPR.

From-SVN: r28733

25 years agobasic-block.h (struct edge_list): Stucture to maintain a vector of edges.
Andrew MacLeod [Mon, 16 Aug 1999 22:14:51 +0000 (22:14 +0000)]
basic-block.h (struct edge_list): Stucture to maintain a vector of edges.

* basic-block.h (struct edge_list): Stucture to maintain a vector
of edges.
(EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
(create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
New function prototypes.
* flow.c (create_edge_list): Function to create an edge list.
(free_edge_list): Discards memory used by an edge list.
(print_edge_list): Debug output showing an edge list.
(verify_edge_list): Internal consistency check for an edge list.

From-SVN: r28732

25 years agocp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.
Mark Mitchell [Mon, 16 Aug 1999 22:08:42 +0000 (22:08 +0000)]
cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.

* cp-tree.h (CAN_HAVE_FULL_LANG_DECL_P): New macro.
* class.c (build_vtable): Use build_lang_field_decl to build the
VAR_DECLs for vtables.
(prepare_fresh_vtable): Likewise.
* decl.c (duplicate_decls): Only copy DECL_SAVED_TREE if
CAN_HAVE_FULL_LANG_DECL_P.
(push_using_decl): Use build_lang_decl to build USING_DECLs.
(grokdeclarator): Use build_lang_decl to build TYPE_DECLs.
* lex.c (retrofit_lang_decl): Check CAN_HAVE_FULL_LANG_DECL_P.
(build_lang_field_decl): Likewise.
(copy_lang_decl): Use CAN_HAVE_FULLLANG_DECL_P to decide how much
to copy.

From-SVN: r28731

25 years agomake me the mips maintainer, fix my name
Gavin Romig-Koch [Mon, 16 Aug 1999 21:43:19 +0000 (21:43 +0000)]
make me the mips maintainer, fix my name

From-SVN: r28730

25 years agocp-tree.def (STMT_EXPR): New tree node.
Mark Mitchell [Mon, 16 Aug 1999 19:01:36 +0000 (19:01 +0000)]
cp-tree.def (STMT_EXPR): New tree node.

* cp-tree.def (STMT_EXPR): New tree node.
* cp-tree.h (STMT_EXPR_STMT): New macro.
(store_return_init): Change prototype.
(finish_named_return_value): New function.
(expand_stmt): Likewise.
(expand_body): Likewise.
(begin_stmt_tree): Likewise.
(finish_stmt_tree): Likewise.
(expanding_p): New variable.
(last_expr_type): Likewise.
(building_stmt_tree): New macro.
* decl.c (start_function): Use building_stmt_tree, not
processing_template_decl, where appropriate.
(store_parm_decls): Likewise.
(store_return_init): Move most of the body to semantics.c.
(finish_function): Use building_stmt_tree.
(finish_stmt): Clear last_expr_type here.
(cp_function): Add expanding_p, last_tree, last_expr_type.
(push_cp_function_context): Save them.
(pop_cp_function_context): Restore them.
* decl2.c (setup_vtbl_ptr): Move to semantics.c.
* error.c (dump_expr): Handle STMT_EXPR.
* except.c (expand_start_catch_block): Use building_stmt_tree.
Use add_decl_stmt.
* expr.c (cplus_expand_expr): Handle STMT_EXPR.
(do_case): Move add_tree call to semantics.c.
* parse.y (return_init): Use finish_named_return_value.
(for.init.statement): Use finish_expr_stmt.
* parse.c: Regenerated.
* pt.c (do_pushlevel): Move to semantics.c.
(do_poplevel): Likewise.
(tsubst_copy): Handle STMT_EXPR instead of BIND_EXPR.
(tsubst_expr): Don't expand all the way to RTL here.  Handle
RETURN_INIT and CTOR_INITIALIZER.
(instantiate_decl): Call expand_body after tsubst'ing into
DECL_SAVED_TREE.
* semantics.c (expand_stmts): New function.
(expanding_p): New variable.
(last_expr_type): Likewise.
(finish_expr_stmt): Use building_stmt_tree.
(begin_if_stmt): Likewise.
(finish_if_stmt_cond): Likewise.
(finish_then_clause): Likewise.
(begin_else_clause): Likewise.
(finish_else_clause): Likewise.
(begin_while_stmt): Likewise.
(finish_while_stmt_cond): Likewise.
(finish_while_stmt): Likewise.
(finish_do_body): Likewise.
(finish_do_stmt): Likewise.
(finish_return_stmt): Likewise.
(begin_for_stmt): Likewise.
(fnish_for_init_stmt): Likewise.
(finish_for_cond): Likewise.
(finish_for_expr): Likewise.
(finish_for_stmt): Likewise.
(finish_break_stmt): Likewise.
(finish_continue_stmt): Likewise.
(finish_switch_cond): Likewise.
(finish_switch_stmt): Likewise.
(finish_case_label): Call add_tree here if necessary.
(finish_goto_statement): Use building_stmt_tree.
(begin_try_block): Likewise.
(begin_function_try_block): Likewise.
(finish_try_block): Likewise.
(finish_function_try_block): Likewise.
(finish_handler_sequence): Likewise.
(finish_function_handler_sequence): Likewise.
(begin_handler): Likewise.
(finish_handler_parms): Likewise.
(finish_handler): Likewise.
(begin_compound_stmt): Likewise.
(finish_compound_stmt): Likewise.
(finish_asm_stmt): Likewise.
(finish_label_stmt): Likewise.
(finish_named_return_value): New function.
(setup_vtbl_ptr): Moved here from decl2.c.
(do_pushlevel): Moved here from pt.c.
(do_poplevel): Likewise.
(begin_stmt_expr): Use building_stmt_tree.
(finish_stmt_expr): Likewise.  Build a STMT_EXPR, not a BIND_EXPR,
when building_stmt_tree.
(begin_stmt_tree): New function.
(finish_stmt_tree): Likewise.
(expand_stmt): Likewise.
(expand_body): Likewise.
* tree.c (build_cplus_method_type): Make sure the argument types
end up on the same obstack as the METHOD_TYPE.
(search_tree): Handle COMPOUND_EXPR, MODIFY_EXPR,
THROW_EXPR, STMT_EXPR.
(mapcar): Break out common cases.  Handle COMPOUND_EXPR,
MODIFY_EXPR, THROW_EXPR, STMT_EXPR, RTL_EXPR.  Abort, rather than
sorry, if an unsupported node is encountered.
* typeck.c (require_complete_type_in_void): Handle BIND_EXPR.
(c_expand_return): Don't call add_tree here.

From-SVN: r28729

25 years agotree.c (type_hash_add): Use permalloc to allocate nodes in the hashtable.
Mark Mitchell [Mon, 16 Aug 1999 18:53:23 +0000 (18:53 +0000)]
tree.c (type_hash_add): Use permalloc to allocate nodes in the hashtable.

* tree.c (type_hash_add): Use permalloc to allocate nodes in the
hashtable.

From-SVN: r28728

25 years agoconfigure: Rebuilt.
Tom Tromey [Mon, 16 Aug 1999 17:01:52 +0000 (17:01 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in: Set DIVIDESPEC to empty string if compiler does
not support -fuse-divide-subroutine.

From-SVN: r28727

25 years agogcc_update: New file.
Gerald Pfeifer [Mon, 16 Aug 1999 16:49:21 +0000 (18:49 +0200)]
gcc_update: New file.

* gcc_update: New file.
* egcs_update: Renamed to gcc_update.

From-SVN: r28726

25 years ago* mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
J"orn Rennecke [Mon, 16 Aug 1999 16:05:47 +0000 (17:05 +0100)]
* mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.

From-SVN: r28725

25 years ago* config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
Gerald Pfeifer [Mon, 16 Aug 1999 15:56:44 +0000 (17:56 +0200)]
* config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.

From-SVN: r28724

25 years agoAllow machine dependent reorganisation pass to place information into the RTL
Nick Clifton [Mon, 16 Aug 1999 10:06:19 +0000 (10:06 +0000)]
Allow machine dependent reorganisation pass to place information into the RTL
dump file if it so wishes.

From-SVN: r28723

25 years agoDaily bump.
Jeff Law [Mon, 16 Aug 1999 07:45:12 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28719

25 years agoFix typo in last change
Mark Mitchell [Mon, 16 Aug 1999 00:59:19 +0000 (00:59 +0000)]
Fix typo in last change

From-SVN: r28718

25 years agoFix misuses of MAX_MACHINE_MODE that can result in an infinite loop.
Jim Wilson [Sun, 15 Aug 1999 20:08:12 +0000 (20:08 +0000)]
Fix misuses of MAX_MACHINE_MODE that can result in an infinite loop.

* explow.c (hard_function_value): Use VOIDmode instead of
MAX_MACHINE_MODE.
* stmt.c (expand_return): Likewise.
* stor-layout.c (get_best_mode): Likewise.

From-SVN: r28717

25 years agoFix bug preventing use of match_par_dup in a call insn pattern.
Jim Wilson [Sun, 15 Aug 1999 19:45:38 +0000 (19:45 +0000)]
Fix bug preventing use of match_par_dup in a call insn pattern.

* genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
emit call instead of emit_insn call.

From-SVN: r28716

25 years agopt.c (check_default_tmpl_args): Don't check in local scopes.
Mark Mitchell [Sun, 15 Aug 1999 16:59:17 +0000 (16:59 +0000)]
pt.c (check_default_tmpl_args): Don't check in local scopes.

* pt.c (check_default_tmpl_args): Don't check in local scopes.
(tsubst_decl): Make sure the declaration is on a saveable
obstack.  Clear DECL_DEAD_FOR_LOCAL when making a copy of a local
variable.
(tsubst_expr): Adjust now that DECL_STMTs really contain DECLs.

From-SVN: r28715

25 years agoexpr.c (java_lang_expand_expr): Mark static array data as referenced.
Anthony Green [Sun, 15 Aug 1999 08:31:56 +0000 (08:31 +0000)]
expr.c (java_lang_expand_expr): Mark static array data as referenced.

        * expr.c (java_lang_expand_expr): Mark static array data as
        referenced.

From-SVN: r28714

25 years agoDaily bump.
Jeff Law [Sun, 15 Aug 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28713

25 years agoMumit Khan <khan@xraylith.wisc.edu>
Mumit Khan [Sat, 14 Aug 1999 22:04:44 +0000 (22:04 +0000)]
Mumit Khan  <khan@xraylith.wisc.edu>

        * configure.in: Handle --disable/enable-win32-registry.
        * install.texi: Document --disable/enable-win32-registry.
        * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
        (WIN32_REGISTRY_KEY): New macro.
        * prefix.c: Use to enable/disable win32-specific code.
        (lookup_key): Use versioned key.
        * configure: Regenerate.
        * config.in: Likewise.

From-SVN: r28712

25 years agoresolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
Per Bothner [Sat, 14 Aug 1999 19:49:06 +0000 (12:49 -0700)]
resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.

1999-08-14  Per Bothner  <per@bothner.com>

* resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
* java/lang/natClass.cc (initializeClass): Likewise.
* java/lang/ClassLoader.java (resolveClass0): New static method.
(resolveClass): Call resolveClass0.
(findSystemClass): No longer static.

From-SVN: r28711

25 years agoSpeed up Koenig lookup.
Jason Merrill [Sat, 14 Aug 1999 11:08:53 +0000 (11:08 +0000)]
Speed up Koenig lookup.

* decl.c (unqualified_namespace_lookup): Nonstatic.  Add spacep parm
to return namespaces we've looked at.
* decl2.c (lookup_using_namespace): Likewise.
(add_function): Don't call ovl_member.
(lookup_arg_dependent): Initialize k.namespaces to the list of
namespaces seen in unqualified lookup.
* call.c (equal_functions): Move here from tree.c.
(joust): Use it to handle duplicate candidates.
* tree.c (ovl_member): Use ==.

From-SVN: r28710

25 years agocp-tree.def (DECL_STMT): Make it smaller.
Mark Mitchell [Sat, 14 Aug 1999 09:23:49 +0000 (09:23 +0000)]
cp-tree.def (DECL_STMT): Make it smaller.

* cp-tree.def (DECL_STMT): Make it smaller.
* cp-tree.h (lang_decl_flags): Move saved_tree to ...
(lang_decl): ... here.  Add next.
(DECL_SAVED_TREE): Adjust accordingly.
(DECL_IMPLICIT_TYPEDEF_P): New macro.
(SET_DECL_IMPLICIT_TYPEDEF_P): Likewise.
(DECL_STMT_DECL): Likewise.
(create_implicit_typedef): New function.
(maybe_push_decl): Likewise.
(tsubst_default_argument): New function.
(at_function_scope_p): Likewise.
(add_decl_stmt): Likewise.
(push_permanent_obstack): Likewise.
* call.c (convert_default_arg): Use tsubst_default_argument.
* class.c (add_method): Use push_permanent_obstack.
(build_self_reference): Create a TEMPLATE_DECL for the
self-reference, if necessary.
* decl.c (pseudo_global_level_p): Only look at the current binding
level.
(push_binding): Use push_permanent_obstack.
(create_implicit_typedef): New function.
(pushtag): Use it.
(duplicate_decls): Use push_permanent_obstack.
(maybe_push_decl): New function.
(start_decl): Use it.  Remove dead code.  Use add_decl_stmt.
(start_decl_1): Remove dead code.
(cp_finish_decl): Remove DECL_STMT handling here.  Don't use
pseudo_global_level_p.
(grokvardecl): Create DECL_LANG_SPECIFIC for a VAR_DECL in a
template.
(grokdeclarator): Likewise, for TYPE_DECLs.  Don't use
pseudo_global_level_p.
* decl2.c (grokfield): Call push_template_decl for a TYPE_DECL in
a template.
(get_sentry): Use push_permanent_obstack.
* dump.c (dequeue_and_dump): Enable DECL_STMT.
* except.c (call_eh_info): Use push_permanent_obstack.
(build_eh_type_ref): Likewise.
(do_pop_exception): Likewise.
(expand_eh_spec): Likewise.
(alloc_eh_object): Likewise.
(expand_throw): Likewise.
* init.c (build_java_class_ref): Likewise.
* lex.c (get_time_identifier): Likewise.
(free_lang_decl_chain): Correct type.
(retrofit_lang_decl): Adjust accordingly.
(build_lang_field_decl): Likewise.
* lex.h (free_lang_decl_chain): Likewise.
* parse.y (lang_extdef): Don't use pseudo_global_level_p.
* parse.c: Regenerated.
* pt.c (tsubst_default_arguments): New function.
(retrieve_local_specialization): Likewise.
(register_local_specialization): Likewise.
(push_template_decl_real): Use DECL_IMPLICIT_TYPEDEF_P.  Just use
pseudo_global_level_p to determine whether or not a template is
primary.
(lookup_template_class): Likewise.  Use create_implicit_typedef.
(instantiate_class_template): Call tsubst_default_arguments for
member functions, if appropriate.
(tsubst_default_argument): New function.
(tsubst_decl): Use it.  Change TYPE_DECL handling to match VAR_DECLs.
* search.c (at_function_scope_p): New function.
* semantics.c (finish_asm_stmt): Use push_permanent_obstack.
(finish_label_stmt): Likewise.
(add_decl_stmt): New function.
(begin_class_definition): Likewise.
(finish_typeof): Likewise.
* tree.c (copy_template_template_parm): Likewise.
(copy_to_permanent): Likewise.
(push_permanent_obstack): Define.
(mark_addressable): Use it.
* typeck.c (mark_addressable): Likewise.

From-SVN: r28709

25 years agoDaily bump.
Jeff Law [Sat, 14 Aug 1999 07:45:10 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28708

25 years agocpplib.c (read_line_number): New fn, split out of...
Jason Merrill [Sat, 14 Aug 1999 00:42:07 +0000 (00:42 +0000)]
cpplib.c (read_line_number): New fn, split out of...

* cpplib.c (read_line_number): New fn, split out of...
(do_line): Here.

From-SVN: r28707

25 years agoFix incorrect commit on previous change.
Mark Mitchell [Fri, 13 Aug 1999 20:49:57 +0000 (20:49 +0000)]
Fix incorrect commit on previous change.

From-SVN: r28706

25 years agoFor gcc:
Gavin Romig-Koch [Fri, 13 Aug 1999 18:22:59 +0000 (18:22 +0000)]
For gcc:

tree.c (lang_unsave_expr_now) : New.
(unsave_expr_now): Call lang_unsave_expr_now.
tree.h (lang_unsave_expr_now) : New.

For gcc/cp:
cp-tree.h (init_cplus_unsave): New.
(cplus_unsave_expr_now): New.
lex.c (init_parse): Call init_cplus_unsave.
tree.c (init_cplus_unsave): New.
(cplus_unsave_expr_now): New.

From-SVN: r28705

25 years agoBack out accidental change
Jeff Law [Fri, 13 Aug 1999 17:17:37 +0000 (11:17 -0600)]
Back out accidental change

From-SVN: r28704

25 years ago* toplev.c (flag_new_exceptions): On by default.
Jason Merrill [Fri, 13 Aug 1999 08:23:35 +0000 (08:23 +0000)]
* toplev.c (flag_new_exceptions): On by default.

From-SVN: r28703

25 years agopt.c (tsubst): Back out 1999-08-06 patch.
Mark Mitchell [Fri, 13 Aug 1999 08:17:14 +0000 (08:17 +0000)]
pt.c (tsubst): Back out 1999-08-06 patch.

* pt.c (tsubst): Back out 1999-08-06 patch.  Use fold and
decl_constant_value to simplify array bounds.

From-SVN: r28702

25 years agoremove obsolete destructors and goto node
Jason Merrill [Fri, 13 Aug 1999 07:48:44 +0000 (03:48 -0400)]
remove obsolete destructors and goto node

From-SVN: r28701

25 years ago* Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
Michael Meissner [Fri, 13 Aug 1999 07:47:18 +0000 (07:47 +0000)]
* Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.

From-SVN: r28700

25 years agoDaily bump.
Jeff Law [Fri, 13 Aug 1999 07:45:07 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28698

25 years agodwarfout.c (fundamental_type_code): Return FT_boolean for INTEGER_TYPE with precision...
Alexandre Oliva [Fri, 13 Aug 1999 07:40:04 +0000 (07:40 +0000)]
dwarfout.c (fundamental_type_code): Return FT_boolean for INTEGER_TYPE with precision==1, it's __java_boolean.

        * dwarfout.c (fundamental_type_code): Return FT_boolean for
        INTEGER_TYPE with precision==1, it's __java_boolean.

From-SVN: r28696

25 years agoRenamed
Martin v. Löwis [Fri, 13 Aug 1999 07:36:36 +0000 (07:36 +0000)]
Renamed

From-SVN: r28695

25 years agoNew test case
Martin v. Löwis [Fri, 13 Aug 1999 07:25:31 +0000 (07:25 +0000)]
New test case

From-SVN: r28693

25 years agoglobal.c (prune_preferences): Move some invariants out of the inner loop.
J"orn Rennecke [Thu, 12 Aug 1999 22:53:28 +0000 (22:53 +0000)]
global.c (prune_preferences): Move some invariants out of the inner loop.

* global.c (prune_preferences): Move some invariants out of the
inner loop.

From-SVN: r28691

25 years ago* configure.in (alpha*-dec-osf*): Add osf5.
Jesse Perry [Thu, 12 Aug 1999 22:31:16 +0000 (22:31 +0000)]
* configure.in (alpha*-dec-osf*): Add osf5.

From-SVN: r28690

25 years agojavaprims.h (TRUE, FALSE): Redefine as themselves.
Alexandre Oliva [Thu, 12 Aug 1999 17:31:34 +0000 (17:31 +0000)]
javaprims.h (TRUE, FALSE): Redefine as themselves.

1999-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>

* include/javaprims.h (TRUE, FALSE): Redefine as themselves.

From-SVN: r28689

25 years agoOops - omitted from previouys delta
Philip Blundell [Thu, 12 Aug 1999 10:01:07 +0000 (10:01 +0000)]
Oops - omitted from previouys delta

From-SVN: r28688

25 years agoApply Phillip Blundell's patch to distinguish between new and old binutils.
Philip Blundell [Thu, 12 Aug 1999 09:41:02 +0000 (09:41 +0000)]
Apply Phillip Blundell's patch to distinguish between new and old binutils.

From-SVN: r28687

25 years agortl.texi: Fix typo.
Andreas Schwab [Thu, 12 Aug 1999 08:24:56 +0000 (08:24 +0000)]
rtl.texi: Fix typo.

Thu Aug 12 10:14:47 1999  Andreas Schwab  <schwab@suse.de>

* rtl.texi: Fix typo.

From-SVN: r28686

25 years agoDaily bump.
Jeff Law [Thu, 12 Aug 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r28685

25 years agolang-options.h: Add -fms-extensions.
Jason Merrill [Thu, 12 Aug 1999 06:52:30 +0000 (06:52 +0000)]
lang-options.h: Add -fms-extensions.

* lang-options.h: Add -fms-extensions.
* cp-tree.h: Declare flag_ms_extensions.
* decl2.c: Define it.
* class.c (instantiate_type): Don't complain about taking the address
of a bound member function if -fms-extensions.
* typeck.c (build_unary_op): Likewise.
* decl.c (grokdeclarator): Or about implicit int.
* init.c (resolve_offset_ref): Or about implicit '&'.

From-SVN: r28684

25 years ago* invoke.texi (C++ Dialect Options): Add -fms-extensions.
Jason Merrill [Thu, 12 Aug 1999 06:51:22 +0000 (06:51 +0000)]
* invoke.texi (C++ Dialect Options): Add -fms-extensions.

From-SVN: r28683

25 years agocp-tree.h (minimal_parse_mode): Remove.
Mark Mitchell [Thu, 12 Aug 1999 01:45:44 +0000 (01:45 +0000)]
cp-tree.h (minimal_parse_mode): Remove.

* cp-tree.h (minimal_parse_mode): Remove.
(finish_label_stmt): New function.
* decl.c (saved_scope): Remove minimal parse mode.
(maybe_push_to_top_level): Don't save it.
(pop_from_top_level): Don't restore it.
(define_label): Split out template-handling code to semantics.c.
(start_decl): Don't use minimal_parse_mode.
(cp_finish_decl): Likewise.
(start_function): Don't increment it.
(store_return_init): Don't use it.
(finish_function): Don't decrement it.
* parse.y (label_colon): Use finish_label_stmt throughout.
* parse.c: Regenerated.
* pt.c (minimal_parse_mode): Don't define it.
(tsubst_expr): Use finish_label_stmt.
* semantics.c (finish_label_stmt): New function.

From-SVN: r28682

25 years agoMake-lang.in (CXX_SRCS): Remove sig.c.
Mark Mitchell [Thu, 12 Aug 1999 01:40:29 +0000 (01:40 +0000)]
Make-lang.in (CXX_SRCS): Remove sig.c.

* Make-lang.in (CXX_SRCS): Remove sig.c.
* Makefile.in (CXX_OBJS): Remove sig.o.
(sig.o): Remove.
* cp-tree.h (CPTI_OPAQUE_TYPE): Remove.
(CPTI_SIGNATURE_TYPE): Likewise.
(CPTI_SIGTABLE_ENTRY_TYPE): Likewise.
(opaque_type_node): Likewise.
(signature_type_node): Likewise.
(sigtable_entry_type): Likewise.
(flag_handle_signatures): Likewise.
(lang_type): Remove is_signature, is_signature_pointer,
is_signature_reference, has_opaque_typedecls,
sigtables_has_been_generated.  Adjust dummy.  Remove signature,
signature_pointer_to, signature_reference_to.
(IS_SIGNATURE): Remove.
(SET_SIGNATURE): Remove.
(CLEAR_SIGNATURE): Remove.
(IS_SIGNATURE_POINTER): Remove.
(IS_SIGNATURE_REFERENCE): Remove.
(SIGNATURE_HAS_OPAQUE_TYPEDECLS): Remove.
(SIGTABLE_HAS_BEEN_GENERATED): Remove.
(CLASSTYPE_SIGNATURE): Remove.
(SIGNATURE_TYPE): Remove.
(SIGNATURE_METHOD_VEC): Remove.
(SIGNATURE_POINTER_TO): Remove.
(SIGNATURE_REFERENCE_TO): Remove.
(lang_decl_flags): Remove is_default_implementation.  Rename
memfunc_pointer_to to saved_tree.
(IS_DEFAULT_IMPLEMENTATION): Remove.
(DECL_MEMFUNC_POINTER_TO): Remove.
(DECL_MEMFUNC_POINTING_TO): Remove.
(DECL_SAVED_TREE): Adjust definition.
(tag_types): Remove signature_type_node.
(SIGNATURE_FIELD_NAME): Remove.
(SIGNATURE_FIELD_NAME_FORMAT): Likewise.
(SIGNATURE_OPTR_NAME): Likewise.
(SIGNATURE_SPTR_NAME): Likewise.
(SIGNATURE_POINTER_NAME): Likewise.
(SIGNATURE_POINTER_NAME_FORMAT): Likewise.
(SIGNATURE_REFERENCE_NAME): Likewise.
(SIGNATURE_REFERNECE_NAME_FORMAT): Likewise.
(SIGTABLE_PTR_TYPE): Likewise.
(SIGTABLE_NAME_FORMAT): Likewise.
(SIGTABLE_NAME_FORMAT_LONG): Likewise.
(SIGTABLE_TAG_NAME): Likewise.
(SIGTABLE_VB_OFF_NAME): Likewise.
(SIGTABLE_VT_OFF_NAME): Likewise.
(finish_base_specifiers): Change prototype.
(build_signature_pointer_type): Remove.
(build_signature_reference_type): Remove.
(build_signature_pointer_constructor): Remove.
(build_signature_method_call): Remove.
(build_optr_ref): Likewise.
(append_signature_fields): Likewise.
(signature_error): Likewise.
* call.c (build_this): Remove signature support.
(build_over_call): Likewise.
(build_new_method_call): Likewise.
* class.c (add_implicitly_declared_members): Likewise.
(finish_struct_1): Likewise.
(finish_struct): Likewise.
* cvt.c (cp_convert_to_pointer): Likewise.
(convert_to_pointer_force): Likewise.
(ocp_convert): Likewise.
* decl.c (sigtable_decl_p): Remove.
(init_decl_processing): Remove support for signatures.
(cp_finish_decl): Likewise.
(grokdeclarator): Likewise.
(grokparms): Likewise.
(xref_tag): Likewise.
(start_function): Likewise.
(start_method): Likewise.
* decl2.c (finish_sigtable_vardecl): Remove.
(flag_handle_signatures): Remove.
(lang_f_options): Remove handle-signatures.
(grokfield): Remove support for signatures.
(grokbitfield): Likewise.
(finish_file): Likewise.
(reparse_absdcl_as_casts): Likewise.
* error.c (dump_type_real): Likewise.
(dump_function_decl): Likewise.
* friend.c (make_friend_class): Likewise.
* gxx.gperf: Remove __signature__, signature, __sigof__, sigof.
* hash.h: Regenerated.
* init.c (build_new_1): Remove support for signatures.
* lang-options.h: Remove -fhandle-signatures,
-fno-handle-signatures.
* lex.c (init_parse): Remove support for signatures.
(yyprint): Likewise.
* lex.h (rid): Remove RID_SIGNATURE.
* method.c (build_decl_overload_real): Remove support for
signatures.
(hack_identifier): Likewise.
* parse.y (base_class): Likewise.
(base_class.1): Likewise.
(access_specifier): Likewise.
* search.c (lookup_member): Likewise.
* semantics.c (finish_qualified_object_call_expr): Likewise.
(finish_template_type_parm): Likewise.
(begin_class_definition): Likewise.
(finish_base_specifier): Likewise.
* sig.c: Remove.
* tree.c (build_cplus_method_type): Remove support for signatures.
* typeck.c (require_complete_type): Likewise.
(c_sizeof): Likewise.
(c_alignof): Likewise.
(build_object_ref): Likewise.
(build_component_ref): Likewise.
(build_indirect_ref): Likewise.
(build_c_cast): Likewise.
(build_modify_expr): Likewise.
(convert_for_initialization): Likewise.
* typeck2.c (signature_error): Remove.
(store_init_value): Remove support for signatures.
(digest_init): Likewise.
(build_x_arrow): Likewise.
(build_functional_cast): Likewise.
* xref.c (GNU_xref_decl): Likewise.

From-SVN: r28681

25 years agoBitSet.java (set, [...]): specify "1" constant as long.
Bryce McKinlay [Wed, 11 Aug 1999 21:30:31 +0000 (21:30 +0000)]
BitSet.java (set, [...]): specify "1" constant as long.

        * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
        as long.

From-SVN: r28680

25 years agodump.c (queue): Be careful when computing bitmasks.
Mark Mitchell [Wed, 11 Aug 1999 20:40:11 +0000 (20:40 +0000)]
dump.c (queue): Be careful when computing bitmasks.

* dump.c (queue): Be careful when computing bitmasks.
(dequeue_and_dump): Describe binfos as binfos, not as
vectors.

From-SVN: r28679