platform/upstream/gcc.git
24 years agocp-tree.h (make_rtl_for_local_static): New function.
Mark Mitchell [Sat, 9 Oct 1999 21:06:03 +0000 (21:06 +0000)]
cp-tree.h (make_rtl_for_local_static): New function.

* cp-tree.h (make_rtl_for_local_static): New function.
* decl.c (make_rtl_for_nonlocal_decl): Move code to create RTL for
local statics ...
(make_rtl_for_local_static): Here.
* semantics.c (expand_stmt): Use make_rtl_for_local_static.

From-SVN: r29879

24 years agoalpha.md (extendsidi2): Turn into a splitter.
Richard Henderson [Sat, 9 Oct 1999 20:18:48 +0000 (13:18 -0700)]
alpha.md (extendsidi2): Turn into a splitter.

        * alpha.md (extendsidi2): Turn into a splitter.  Allow f/f.
        If TARGET_FIX, allow r/f.  Remove cvtlq unspec pattern.
        (peepholes): Re-enable.

From-SVN: r29878

24 years agoMakefile.in (flow.o): Depend on TREE_H.
Richard Henderson [Sat, 9 Oct 1999 19:47:18 +0000 (12:47 -0700)]
Makefile.in (flow.o): Depend on TREE_H.

* Makefile.in (flow.o): Depend on TREE_H.
* basic-block.h (REG_SET_EQUAL_P): New.
(XOR_REG_SET): New.
(n_edges): Declare.
(free_regset_vector): Remove declaration.
(flow_delete_insn_chain): Declare.
(enum update_life_extent): New.
(update_life_info, count_or_remove_death_notes): Declare.
* combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
Verify register live at bb->global_live_at_start before adding USE.
* flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
(CLEAN_ALLOCA): New.
(n_edges): New.
(PROP_*): New flags.
(find_basic_blocks_1): Use alloc_EXPR_LIST.
(clear_edges): Zero n_edges.
(make_edge): Increment n_edges.
(split_edge): Don't allocate bb->local_set.  Increment n_edges.
(flow_delete_insn_chain): Export.
(delete_block): Decrement n_edges.
(merge_blocks_nomove): Likewise.
(life_analysis): Give life_analysis_1 PROP flags.
(verify_wide_reg_1, verify_wide_reg): New.
(verify_local_live_at_start): New.
(update_life_info): Rewrite to call into propogate_block.
(mark_reg): New.
(mark_regs_live_at_end): After reload, if epilogue as rtl,
always mark stack pointer.  Conditionally mark PIC register.
After reload, mark call-saved registers, return regsiters.
(life_analysis_1): Accept PROP flags not remove_dead_code.
Call mark_regs_live_at_end before zeroing regs_ever_live.
Use calculate_global_regs_live.  Copy global_live_at_end before
calling final propagate_block.  Zero reg_next_use on exit.
(calculate_global_regs_live): New.
(allocate_bb_life_data): Don't allocate bb->local_set.
(init_regset_vector, free_regset_vector): Remove.
(propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
Test flags before every operation.  Warn if prologue/epilogue insn
would have been deleted.
(mark_set_regs, mark_set_1): Accept and use FLAGS.
Use alloc_EXPR_LIST.
(mark_used_regs): Accept and use FLAGS, not FINAL.
Remove special handling for RETURN.
(try_pre_increment): Use alloc_EXPR_LIST.
(dump_flow_info): Dump n_edges.
(unlink_insn_chain, split_hard_reg_notes): Remove.
(maybe_add_dead_note, maybe_add_dead_note_use): Remove.
(find_insn_with_note, new_insn_dead_notes): Remove.
(update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
(maybe_remove_dead_notes, prepend_reg_notes): Remove.
(replace_insns): Remove.
(count_or_remove_death_notes): New.
(verify_flow_info): Abort on error after all checks.
(remove_edge): Decrement n_edges.
(remove_fake_edges): Tweek format.
* haifa-sched.c (schedule_insns): Use split_all_insns.
* output.h (update_life_info): Remove declaration.
* recog.c (split_all_insns): From the corpse of split_block_insns,
do the whole function block by block.  Use update_life_info.
(recog_last_allowed_insn): New.
(recog_next_insn): Mind it.
(peephole2_optimize): Set it.  Walk backwards through blocks.
Use update_life_info.
* rtl.h (update_flow_info, replace_insns): Remove declarations.
(split_all_insns): Declare.
* toplev.c (rest_of_compilation): Thread prologue before flow2.
Use split_all_insns.

* i386.md (or -1 peep2s): Disable.

From-SVN: r29877

24 years agoTest commit.
Richard Henderson [Sat, 9 Oct 1999 19:07:33 +0000 (12:07 -0700)]
Test commit.

From-SVN: r29876

24 years ago* mips.c (mips_va_arg) [EABI]: Return addr_rtx.
Richard Henderson [Sat, 9 Oct 1999 19:03:29 +0000 (12:03 -0700)]
* mips.c (mips_va_arg) [EABI]: Return addr_rtx.

From-SVN: r29875

24 years agomips.md (movstrsi+[123]): Combine these into a single pattern.
Richard Henderson [Fri, 8 Oct 1999 21:54:12 +0000 (14:54 -0700)]
mips.md (movstrsi+[123]): Combine these into a single pattern.

* config/mips/mips.md (movstrsi+[123]) : Combine these into
a single pattern.  Scrap the 'd' versions as unnecessary.

* config/mips/mips.md (tablejump_internal3,tablejump_mips161,
tablejump_mips162,tablejump_internal4): The operands to a
label_ref must be VOIDmode.

From-SVN: r29874

24 years ago* configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
Kaveh R. Ghazi [Fri, 8 Oct 1999 20:16:42 +0000 (20:16 +0000)]
* configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.

From-SVN: r29873

24 years agolists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the cache every function if...
Richard Henderson [Fri, 8 Oct 1999 18:59:27 +0000 (11:59 -0700)]
lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the cache every function if ggc_p.

        * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
        cache every function if ggc_p.

From-SVN: r29872

24 years agoNew testcase
Bernd Schmidt [Fri, 8 Oct 1999 18:00:01 +0000 (18:00 +0000)]
New testcase

From-SVN: r29871

24 years agoAdd functions copy_insn/copy_insn_1; use them in jump.c
Bernd Schmidt [Fri, 8 Oct 1999 17:39:10 +0000 (17:39 +0000)]
Add functions copy_insn/copy_insn_1; use them in jump.c

From-SVN: r29870

24 years agoMakefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
Kaveh R. Ghazi [Fri, 8 Oct 1999 17:10:19 +0000 (17:10 +0000)]
Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.

        * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.

        * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
        arguments to `current_file_function_operand'.

        * genrecog.c: Include hard-reg-set.h and resource.h in the
        generated output file.

        * real.c: Include tm_p.h.

cp:
        * method.c: Include tm_p.h.

From-SVN: r29869

24 years agoFix bad constraints in prologue_allocate_stack in i386.md
Bernd Schmidt [Fri, 8 Oct 1999 17:03:57 +0000 (17:03 +0000)]
Fix bad constraints in prologue_allocate_stack in i386.md

From-SVN: r29868

24 years agoDaily bump.
Jeff Law [Fri, 8 Oct 1999 07:46:23 +0000 (01:46 -0600)]
Daily bump.

From-SVN: r29867

24 years agors6000.md (fix_truncdfsi2_internal+1): Emit a clobber before the fctiwz insn.
Richard Henderson [Fri, 8 Oct 1999 06:07:50 +0000 (23:07 -0700)]
rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber before the fctiwz insn.

        * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
        before the fctiwz insn.

From-SVN: r29866

24 years agocp-tree.h (cp_make_lake_type): Renamed from make_lang_type.
Franz Sirl [Fri, 8 Oct 1999 05:50:44 +0000 (05:50 +0000)]
cp-tree.h (cp_make_lake_type): Renamed from make_lang_type.

        * cp-tree.h (cp_make_lake_type): Renamed from make_lang_type.
        * lex.c (cp_make_lake_type): Likewise.
        * tree.c (init_tree): Init make_lang_type_fn.

From-SVN: r29865

24 years agotree.c (make_lang_type_fn): New funtion pointer.
Franz Sirl [Fri, 8 Oct 1999 05:48:29 +0000 (05:48 +0000)]
tree.c (make_lang_type_fn): New funtion pointer.

        * tree.c (make_lang_type_fn): New funtion pointer.
        (make_lang_type): Call it.
        * tree.h (make_lang_type): Declare.
        (make_lang_type_fn): Likewise.
        * rs6000.c (rs6000_build_va_list): Use make_lang_type.

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

24 years agopt.c (tsubst_expr): Set DECL_TEMPLATE_INSTANTIATED for a catch paramter.
Mark Mitchell [Fri, 8 Oct 1999 05:42:36 +0000 (05:42 +0000)]
pt.c (tsubst_expr): Set DECL_TEMPLATE_INSTANTIATED for a catch paramter.

* pt.c (tsubst_expr): Set DECL_TEMPLATE_INSTANTIATED for a catch
paramter.

* semantics.c (expand_stmt): Don't pretend to have asmspecs for
local statics if we don't really have them.

* ir.texi: Improve documentation for STMT_EXPR.  Describe
CLEANUP_POINT_EXPR.

From-SVN: r29863

24 years agoFix test case
Mark Mitchell [Fri, 8 Oct 1999 05:35:02 +0000 (05:35 +0000)]
Fix test case

From-SVN: r29862

24 years agoMoved ChangeLog entry for a recent change to gcc/config/rs6000 to
Diego Novillo [Fri, 8 Oct 1999 03:31:43 +0000 (23:31 -0400)]
Moved ChangeLog entry for a recent change to gcc/config/rs6000 to
its proper place in gcc/ChangeLog.

From-SVN: r29861

24 years agoexpr.c (expand_expr, [...]): Set TREE_USED sooner.
Jason Merrill [Fri, 8 Oct 1999 00:10:09 +0000 (20:10 -0400)]
expr.c (expand_expr, [...]): Set TREE_USED sooner.

* expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.

* c-decl.c (finish_struct): Use simpler method of
removing elements of a singly-linked list.

From-SVN: r29860

24 years agoclass.c (build_vtable_entry_ref): Use finish_asm_stmt.
Jason Merrill [Fri, 8 Oct 1999 00:08:23 +0000 (20:08 -0400)]
class.c (build_vtable_entry_ref): Use finish_asm_stmt.

* class.c (build_vtable_entry_ref): Use finish_asm_stmt.

* class.c (finish_struct_1): Use simpler method of
removing elements of a singly-linked list which doesn't
lose for classes without data members.

From-SVN: r29859

24 years agoComment out peepholes that generate buggy code
Michael Meissner [Thu, 7 Oct 1999 19:25:54 +0000 (19:25 +0000)]
Comment out peepholes that generate buggy code

From-SVN: r29858

24 years agogenrecog.c (add_to_sequence): Disable mode check for wildcard matches.
Richard Henderson [Thu, 7 Oct 1999 19:02:36 +0000 (12:02 -0700)]
genrecog.c (add_to_sequence): Disable mode check for wildcard matches.

        * genrecog.c (add_to_sequence): Disable mode check for
        wildcard matches.

From-SVN: r29857

24 years agoInitialize empty_string in ggc-simple.
Bernd Schmidt [Thu, 7 Oct 1999 18:28:15 +0000 (18:28 +0000)]
Initialize empty_string in ggc-simple.

From-SVN: r29856

24 years agofriend.c (make_friend_class): Robustify.
Mark Mitchell [Thu, 7 Oct 1999 16:41:48 +0000 (16:41 +0000)]
friend.c (make_friend_class): Robustify.

* friend.c (make_friend_class): Robustify.

* semantics.c (finish_object_call_expr): Reject calls to template
types.

From-SVN: r29855

24 years agoDuring class file generation...
Anthony Green [Thu, 7 Oct 1999 13:26:01 +0000 (13:26 +0000)]
During class file generation...

During class file generation, generate_classfile occasionally writes
out a bunch of data and then skips backwards to fill in blanks.  When
configured with --enable-checking, this patching up will often trip
the checking code.  This change introduces UNSAFE_PUTx macros which
never use CHECK_PUT.  These should only be used in cases we know
CHECK_PUT will fail.

From-SVN: r29854

24 years agoconfigure.in: Detect mmap.
Richard Henderson [Thu, 7 Oct 1999 08:15:19 +0000 (01:15 -0700)]
configure.in: Detect mmap.

        * configure.in: Detect mmap.  Add --with-gc=foo to select
        garbage collector; default to page if mmap available.
        * Makefile.in (GGC): Substitute.

From-SVN: r29853

24 years agoDaily bump.
Jeff Law [Thu, 7 Oct 1999 07:45:09 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29852

24 years ago* c-decl.c (ggc_p): Enable.
Richard Henderson [Thu, 7 Oct 1999 06:57:07 +0000 (23:57 -0700)]
* c-decl.c (ggc_p): Enable.

From-SVN: r29851

24 years agors6000.c (secondary_reload_class): For TARGET_ELF make sure that HIGH instructions...
Diego Novillo [Thu, 7 Oct 1999 06:38:15 +0000 (06:38 +0000)]
rs6000.c (secondary_reload_class): For TARGET_ELF make sure that HIGH instructions are copied into BASE_REGS.

        * config/rs6000/rs6000.c (secondary_reload_class): For
TARGET_ELF make sure that HIGH instructions are copied
into BASE_REGS.

From-SVN: r29850

24 years ago* dump.c (dequeue_and_dump): Dump all three operands to a COND_EXPR.
Mark Mitchell [Thu, 7 Oct 1999 03:34:58 +0000 (03:34 +0000)]
* dump.c (dequeue_and_dump): Dump all three operands to a COND_EXPR.

From-SVN: r29849

24 years agoconfigure.in (GCJ): Define as "target-gcj", not "target/gcj" when building Canadian...
Tom Tromey [Wed, 6 Oct 1999 23:13:37 +0000 (23:13 +0000)]
configure.in (GCJ): Define as "target-gcj", not "target/gcj" when building Canadian cross.

* configure.in (GCJ): Define as "target-gcj", not "target/gcj"
when building Canadian cross.
(NATIVE): Don't define when cross-compiling.

From-SVN: r29848

24 years ago* flow.c (verify_flow_info): Make it extern & unconditionally define.
Kaveh R. Ghazi [Wed, 6 Oct 1999 21:23:52 +0000 (21:23 +0000)]
* flow.c (verify_flow_info): Make it extern & unconditionally define.

From-SVN: r29847

24 years agosp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc string for little-endian-data.
Brendan Kehoe [Wed, 6 Oct 1999 20:20:15 +0000 (20:20 +0000)]
sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc string for little-endian-data.

* sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
string for little-endian-data.

From-SVN: r29846

24 years agoFix sanity check
Michael Meissner [Wed, 6 Oct 1999 20:14:28 +0000 (20:14 +0000)]
Fix sanity check

From-SVN: r29845

24 years agogenrecog.c (add_to_sequence): Verify operand to label_ref is VOIDmode.
Richard Henderson [Wed, 6 Oct 1999 19:24:28 +0000 (12:24 -0700)]
genrecog.c (add_to_sequence): Verify operand to label_ref is VOIDmode.

        * genrecog.c (add_to_sequence): Verify operand to label_ref is
        VOIDmode.

From-SVN: r29844

24 years agocp-tree.h (CLASSTYPE_VFIELD): Remove.
Mark Mitchell [Wed, 6 Oct 1999 19:01:44 +0000 (19:01 +0000)]
cp-tree.h (CLASSTYPE_VFIELD): Remove.

* cp-tree.h (CLASSTYPE_VFIELD): Remove.
* call.c (build_vfield_ref): Use TYPE_VFIELD, not
CLASSTYPE_VFIELD.
* class.c (get_vfield_offset): Likewise.
(finish_base_struct): Likewise.
(modify_one_vtable): Likewise.
(fixup_vtable_deltas): Likewise.
(finish_struct_1): Likewise.
* init.c (expand_virtual_init): Likewise.
* search.c (lookup_field_1): Likewise.
(expand_upcast_fixups): Likewise.
* typeck.c (build_component_ref): Likewise.
(build_binary_op_nodefault): Likewise.

* dump.c (dqueue_and_dump): Dump TYPE_VFIELD.
* ir.texi: Document TYPE_VFIELD.

From-SVN: r29843

24 years agodecl.c (grokdeclarator): Only warn about non-zero arrays if !in_system_header (linux...
Brendan Kehoe [Wed, 6 Oct 1999 17:48:17 +0000 (17:48 +0000)]
decl.c (grokdeclarator): Only warn about non-zero arrays if !in_system_header (linux socketbits.h can...

* decl.c (grokdeclarator): Only warn about non-zero arrays if
!in_system_header (linux socketbits.h can give this for
__cmsg_data, which is using a GNU extension).

From-SVN: r29842

24 years agogenconfig.c (main): Disable HAVE_conditional_arithmetic.
Richard Henderson [Wed, 6 Oct 1999 17:22:54 +0000 (10:22 -0700)]
genconfig.c (main): Disable HAVE_conditional_arithmetic.

        * genconfig.c (main): Disable HAVE_conditional_arithmetic.
        * jump.c (jump_optimize_1): Document why.

From-SVN: r29841

24 years agocollect2.c (scan_prog_file, [...]): Prototype function pointers and casts for `int_ha...
Kaveh R. Ghazi [Wed, 6 Oct 1999 14:48:41 +0000 (14:48 +0000)]
collect2.c (scan_prog_file, [...]): Prototype function pointers and casts for `int_handler' and `quit_handler'.

       * collect2.c (scan_prog_file, scan_libraries): Prototype function
       pointers and casts for `int_handler' and `quit_handler'.

       * flow.c (verify_flow_info, split_hard_reg_notes,
       find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
       remove_edge, remove_fake_successors): Add static prototypes.
       (verify_flow_info): Wrap with macro ENABLE_CHECKING.
       (mark_set_1): Initialize variable `regno'.
       (unlink_insn_chain): Likewise for variable `curr'.
       (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.

       * loop.c (strength_reduce): Initialize variable
       `unrolled_insn_copies'.
       (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
       prototypes.  Change these functions to take const PTR parameters
       to avoid prototype conflict when used as the comparson argument
       for qsort.
       (check_dbra_loop): Initialize variable `comparison_val'.

       * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
       (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
       (find_valid_class): Initialize variable `best_class'.
       (find_reloads): Call memcpy, not bcopy.

       * reload1.c (gen_mode_int, dump_needs): Add prototypes.
       (hard_reg_use_compare): Don't needlessly cast away const.
       (reload_reg_class_lower): Likewise.
       (choose_reload_regs): Initialize variable `regno'.

From-SVN: r29840

24 years agoDaily bump.
Jeff Law [Wed, 6 Oct 1999 07:45:19 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29839

24 years agodecl2.c (start_static_storage_duration_function): Push the function declaration so...
Mark Mitchell [Wed, 6 Oct 1999 06:18:18 +0000 (06:18 +0000)]
decl2.c (start_static_storage_duration_function): Push the function declaration so it ends up in namespace scope.

* decl2.c (start_static_storage_duration_function): Push the
function declaration so it ends up in namespace scope.

From-SVN: r29838

24 years agodump.c (DUMP_CHILDREN): Remove.
Mark Mitchell [Wed, 6 Oct 1999 05:35:38 +0000 (05:35 +0000)]
dump.c (DUMP_CHILDREN): Remove.

* dump.c (DUMP_CHILDREN): Remove.
(DUMP_BINFO): Adjust.
(struct dump_node_info): Remove dump_children_p.
(queue_and_dump_type): Remove dump_children_p parameter.
(queue): Don't set dump_children_p.
(dump_child): Pass DUMP_NONE, instead of DUMP_CHILDREN, to
queue_and_dump_index.
(dequeue_and_dump): Unconditionally print children.  Adjust calls
to functions mentioned above.
(dump_node):  Pass DUMP_NONE, instead of DUMP_CHILDREN to queue.

From-SVN: r29837

24 years agoRedo changelog entry.
Michael Meissner [Wed, 6 Oct 1999 03:25:39 +0000 (03:25 +0000)]
Redo changelog entry.

From-SVN: r29836

24 years agoir.texi: Document BIND_EXPR, LOOP_EXPR, and EXIT_EXPR.
Mark Mitchell [Tue, 5 Oct 1999 23:59:27 +0000 (23:59 +0000)]
ir.texi: Document BIND_EXPR, LOOP_EXPR, and EXIT_EXPR.

* ir.texi: Document BIND_EXPR, LOOP_EXPR, and EXIT_EXPR.
* dump.c (dequeue_and_dump): Dump them.

From-SVN: r29835

24 years ago* ir.texi: Document LOOP_EXPR and EXIT_EXPR.
Mark Mitchell [Tue, 5 Oct 1999 23:40:00 +0000 (23:40 +0000)]
* ir.texi: Document LOOP_EXPR and EXIT_EXPR.

From-SVN: r29834

24 years ago* ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
Paul Burchard [Tue, 5 Oct 1999 23:29:32 +0000 (23:29 +0000)]
* ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.

From-SVN: r29833

24 years agoMake libgcc1-test.c compile without warnings
Michael Meissner [Tue, 5 Oct 1999 23:07:09 +0000 (23:07 +0000)]
Make libgcc1-test.c compile without warnings

From-SVN: r29832

24 years agoDo not include stddef.h if building trampoline support and inhibit_libc is defined
Michael Meissner [Tue, 5 Oct 1999 19:59:03 +0000 (19:59 +0000)]
Do not include stddef.h if building trampoline support and inhibit_libc is defined

From-SVN: r29831

24 years agoMark args as unused.
Michael Meissner [Tue, 5 Oct 1999 19:48:55 +0000 (19:48 +0000)]
Mark args as unused.

From-SVN: r29830

24 years agoDeclare malloc, free, and atexit if inhibit_libc is defined.
Michael Meissner [Tue, 5 Oct 1999 19:41:35 +0000 (19:41 +0000)]
Declare malloc, free, and atexit if inhibit_libc is defined.

From-SVN: r29829

24 years agoflow.c (make_edge): Accept an optional 2D bitmap in which to cache edge existence.
Richard Henderson [Tue, 5 Oct 1999 19:01:01 +0000 (12:01 -0700)]
flow.c (make_edge): Accept an optional 2D bitmap in which to cache edge existence.

        * flow.c (make_edge): Accept an optional 2D bitmap in which
        to cache edge existence.  Update all callers.
        (make_label_edge, make_eh_edge): Pass through the edge cache.
        (make_edges): Provide the cache.

From-SVN: r29828

24 years agombchar.c (literal_codeset, [...]): Constify a char*.
Kaveh R. Ghazi [Tue, 5 Oct 1999 16:21:34 +0000 (16:21 +0000)]
mbchar.c (literal_codeset, [...]): Constify a char*.

* mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
a char*.
(local_mbtowc): Change the type of variable `i' from int to size_t.

* mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
(local_mbtowc, local_mblen, literal_codeset): Constify a char*.

From-SVN: r29827

24 years agomethod.c (synthesize_method): Call setup_vtbl_ptr for destructors.
Mark Mitchell [Tue, 5 Oct 1999 16:19:04 +0000 (16:19 +0000)]
method.c (synthesize_method): Call setup_vtbl_ptr for destructors.

* method.c (synthesize_method): Call setup_vtbl_ptr for destructors.

* decl.c (start_function): Set current_in_charge_parm for
constructors, too, where appropriate.
* search.c (fixup_all_virtual_upcast_offsets): New function.
(expand_indirect_vtbls_init): Use it.

From-SVN: r29826

24 years agoInclude tm_p.h in ggc files
Michael Meissner [Tue, 5 Oct 1999 15:42:18 +0000 (15:42 +0000)]
Include tm_p.h in ggc files

From-SVN: r29825

24 years agomips.c (mips_move_2words): Split doubles if ISA >= 3, !TARGET_64BIT, and destination...
Diego Novillo [Tue, 5 Oct 1999 12:18:56 +0000 (12:18 +0000)]
mips.c (mips_move_2words): Split doubles if ISA >= 3, !TARGET_64BIT, and destination is not an FP register.

* config/mips/mips.c (mips_move_2words): Split doubles if ISA >= 3,
!TARGET_64BIT, and destination is not an FP register.

Co-Authored-By: Jonathan Larmour <jlarmour@cygnus.co.uk>
From-SVN: r29824

24 years agoDaily bump.
Jeff Law [Tue, 5 Oct 1999 07:45:10 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29823

24 years agoRewrite to use independant test structures.
Richard Henderson [Tue, 5 Oct 1999 05:18:54 +0000 (22:18 -0700)]
Rewrite to use independant test structures.

From-SVN: r29822

24 years agoresource.c (find_free_register): Mark class_str argument const.
Zack Weinberg [Tue, 5 Oct 1999 05:00:55 +0000 (05:00 +0000)]
resource.c (find_free_register): Mark class_str argument const.

1999-10-04 21:58 -0700  Zack Weinberg  <zack@bitmover.com>

* resource.c (find_free_register): Mark class_str argument const.
* resource.h: Update prototype to match.

* i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
* i386.md: Give all anonymous insns names.

From-SVN: r29821

24 years agoJeffrey A Law (law@cygnus.com)
Jeffrey A Law [Tue, 5 Oct 1999 04:12:33 +0000 (04:12 +0000)]
Jeffrey A Law  (law@cygnus.com)

        * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
        blocks.

From-SVN: r29820

24 years agotoplev.c (dbr_sched_time): Unconditional.
Richard Henderson [Tue, 5 Oct 1999 04:04:48 +0000 (21:04 -0700)]
toplev.c (dbr_sched_time): Unconditional.

        * toplev.c (dbr_sched_time): Unconditional.
        (peephole2_time): New.
        (compile_file): Add pass numbers to all of the dump file suffixes.
        Dump peephole2_time.  Don't dump times for non-applicable passes.
        (rest_of_compilation): Add pass numbers to dump file suffixes.
        Conditionalize calls to the scheduler.
        * invoke.texi: Update.

From-SVN: r29819

24 years agoflow.c (make_edges): Fix insn iteration.
Anthony Green [Tue, 5 Oct 1999 03:44:26 +0000 (03:44 +0000)]
flow.c (make_edges): Fix insn iteration.

* flow.c (make_edges): Fix insn iteration.
(find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
(find_basic_blocks_1): Fix spelling mistake.

From-SVN: r29818

24 years agotree.c (build1): Set TREE_SIDE_EFFECTS for expressions that always have side-effects.
Richard Henderson [Mon, 4 Oct 1999 23:57:47 +0000 (16:57 -0700)]
tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that always have side-effects.

        * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
        always have side-effects.  Use memset not bzero.
        (make_node): Likewise.

From-SVN: r29817

24 years agostmt.c (expand_anon_union_decl): When any of the elements of the union is addressable...
Mark Mitchell [Mon, 4 Oct 1999 23:18:09 +0000 (23:18 +0000)]
stmt.c (expand_anon_union_decl): When any of the elements of the union is addressable, so is the entire union.

* stmt.c (expand_anon_union_decl): When any of the elements of the
union is addressable, so is the entire union.

From-SVN: r29816

24 years agoUpdate.
Ulrich Drepper [Mon, 4 Oct 1999 22:13:38 +0000 (22:13 +0000)]
Update.

From-SVN: r29815

24 years agoTest for not using results of va_arg calls.
Ulrich Drepper [Mon, 4 Oct 1999 22:12:37 +0000 (22:12 +0000)]
Test for not using results of va_arg calls.

From-SVN: r29814

24 years agoconfigure: Rebuilt.
Tom Tromey [Mon, 4 Oct 1999 22:08:42 +0000 (22:08 +0000)]
configure: Rebuilt.

* configure: Rebuilt.
* configure.in: Call AC_EXEEXT after LIB_AC_PROG_CC, but don't
actually let AC_EXEEXT run.

From-SVN: r29813

24 years agonatPlainSocketImpl.cc: Don't include headers if java.net is disabled.
Tom Tromey [Mon, 4 Oct 1999 21:37:30 +0000 (21:37 +0000)]
natPlainSocketImpl.cc: Don't include headers if java.net is disabled.

* java/net/natPlainSocketImpl.cc: Don't include headers if
java.net is disabled.

From-SVN: r29812

24 years agore GNATS gcj/59 (Problem with jv-scan --print-main)
Tom Tromey [Mon, 4 Oct 1999 20:32:08 +0000 (20:32 +0000)]
re GNATS gcj/59 (Problem with jv-scan --print-main)

* lex.h (BUILD_OPERATOR2): Return ASSIGN_ANY_TK in `lite' case as
well.  Fixes Java PR gcj/59.
* parse-scan.y (yyerror): Report errors.

From-SVN: r29811

24 years agoAlways use -fvtable-thunks.
Mark Mitchell [Mon, 4 Oct 1999 20:13:42 +0000 (20:13 +0000)]
Always use -fvtable-thunks.

From-SVN: r29810

24 years agoMakefile.in: Rebuilt.
Tom Tromey [Mon, 4 Oct 1999 19:09:09 +0000 (19:09 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (ZINCS): Removed.  This is defined in configure.in
when needed, and must be left empty when not needed.

From-SVN: r29809

24 years agobitmap.h (enum bitmap_bits): Add BITMAP_XOR.
Richard Henderson [Mon, 4 Oct 1999 18:52:39 +0000 (11:52 -0700)]
bitmap.h (enum bitmap_bits): Add BITMAP_XOR.

        * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
        * bitmap.c (bitmap_operation): Return true iff TO changed.
        (bitmap_equal_p): New.
        (bitmap_bit_p): Tidy arithmetic.
        (debug_bitmap_file): Likewise.

From-SVN: r29808

24 years ago* sbitmap.c (sbitmap_ones): Don't set too many bits.
Richard Henderson [Mon, 4 Oct 1999 18:39:19 +0000 (11:39 -0700)]
* sbitmap.c (sbitmap_ones): Don't set too many bits.

From-SVN: r29807

24 years agotoplev.c (rest_of_compilation): Turn on cse_not_expected before cse2 instead of after.
Richard Henderson [Mon, 4 Oct 1999 18:30:10 +0000 (11:30 -0700)]
toplev.c (rest_of_compilation): Turn on cse_not_expected before cse2 instead of after.

        * toplev.c (rest_of_compilation): Turn on cse_not_expected
        before cse2 instead of after.

From-SVN: r29806

24 years agodecl2.c (grok_alignof): Don't decay lvalues.
Nathan Sidwell [Mon, 4 Oct 1999 15:13:26 +0000 (15:13 +0000)]
decl2.c (grok_alignof): Don't decay lvalues.

* decl2.c (grok_alignof): Don't decay lvalues.

* init.c (build_new): Remove unused variable.

From-SVN: r29805

24 years agomips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large register offsets.
Stan Cox [Mon, 4 Oct 1999 13:59:24 +0000 (13:59 +0000)]
mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large register offsets.

* mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
register offsets.

From-SVN: r29804

24 years ago* mn10200.c (asm_file_start): Fix typo.
Jeffrey A Law [Mon, 4 Oct 1999 11:20:11 +0000 (11:20 +0000)]
* mn10200.c (asm_file_start): Fix typo.

From-SVN: r29803

24 years agocppinit.c (is_idchar initializer): Loosen tests to accept gcc 2.>6 and >2.
Alexandre Oliva [Mon, 4 Oct 1999 11:11:16 +0000 (11:11 +0000)]
cppinit.c (is_idchar initializer): Loosen tests to accept gcc 2.>6 and >2.

* cppinit.c (is_idchar initializer): Loosen tests to accept
gcc 2.>6 and >2.

From-SVN: r29802

24 years agocp-tree.h (struct language_function): Remove static_labelno.
Mark Mitchell [Mon, 4 Oct 1999 09:33:31 +0000 (09:33 +0000)]
cp-tree.h (struct language_function): Remove static_labelno.

* cp-tree.h (struct language_function): Remove static_labelno.
(static_labelno): Remove macro.
* method.c (build_overload_nested_name): Make static_labelno
static here.

* pt.c (instantiate_decl): Use DECL_SAVED_TREE, not DECL_INITIAL,
to decide whether or not a function is defined.

From-SVN: r29801

24 years agomips.md: Define conditional move patterns for floating point operands and DI mode...
Mark Mitchell [Mon, 4 Oct 1999 09:26:57 +0000 (09:26 +0000)]
mips.md: Define conditional move patterns for floating point operands and DI mode conditions.

* mips.md: Define conditional move patterns for floating point
operands and DI mode conditions.

From-SVN: r29800

24 years agocall.c (build_over_call): Don't set TREE_SIDE_EFFECTS for situations where make_node...
Mark Mitchell [Mon, 4 Oct 1999 09:15:17 +0000 (09:15 +0000)]
call.c (build_over_call): Don't set TREE_SIDE_EFFECTS for situations where make_node will do it automatically.

1999-10-04  Mark Mitchell  <mark@codesourcery.com>

* call.c (build_over_call): Don't set TREE_SIDE_EFFECTS for
situations where make_node will do it automatically.
* decl.c (grok_reference_init): Likewise.
(expand_static_init): Likewise.
(do_static_initialization): Likewise.
* init.c (perform_member_init): Likewise.
(expand_aggr_init_1): Likewise.
(build_new_1): Likewise.
* method.c (do_build_copy_constructor): Likewise.
(do_build_assign_ref): Likewise.
* search.c (expand_upcast_fixups): Likewise.
* semantics.c (finish_stmt_expr): Likewise.
* typeck.c (build_unary_op): Likewise.
(check_return_expr): Likewise.

From-SVN: r29799

24 years agotree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that are always have side...
Mark Mitchell [Mon, 4 Oct 1999 09:07:53 +0000 (09:07 +0000)]
tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that are always have side-effects.

* tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
are always have side-effects.

From-SVN: r29798

24 years ago* init.c (build_vec_delete_1): Fold COND_EXPRs.
Jason Merrill [Mon, 4 Oct 1999 08:30:28 +0000 (08:30 +0000)]
* init.c (build_vec_delete_1): Fold COND_EXPRs.

From-SVN: r29796

24 years agoDaily bump.
Jeff Law [Mon, 4 Oct 1999 07:45:16 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29795

24 years agocppinit.c (is_idchar initializer): Tighten tests for when to put the table into initi...
Jeffrey A Law [Mon, 4 Oct 1999 06:19:02 +0000 (06:19 +0000)]
cppinit.c (is_idchar initializer): Tighten tests for when to put the table into initialized memory.

        * cppinit.c (is_idchar initializer): Tighten tests for when
        to put the table into initialized memory.

From-SVN: r29794

24 years agoggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx, not an array of rtunion.
Jeffrey A Law [Mon, 4 Oct 1999 06:14:10 +0000 (06:14 +0000)]
ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx, not an array of rtunion.

        * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
        not an array of rtunion.
        * gcc-page.c (ggc_alloc_rtvec): Similarly.
        * gcc-simple (ggc_free_rtvec): Similarly.

From-SVN: r29793

24 years agogenattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead of rtunions.
Jeffrey A Law [Mon, 4 Oct 1999 06:08:16 +0000 (06:08 +0000)]
genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead of rtunions.

        * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
        of rtunions.

From-SVN: r29792

24 years agoFix changelog entry
Anthony Green [Mon, 4 Oct 1999 03:44:07 +0000 (03:44 +0000)]
Fix changelog entry

From-SVN: r29791

24 years agoA little clean up.
Anthony Green [Mon, 4 Oct 1999 03:30:54 +0000 (03:30 +0000)]
A little clean up.

From-SVN: r29790

24 years ago* configure.in (fr30): Fix typo.
Jeffrey A Law [Sun, 3 Oct 1999 20:21:45 +0000 (20:21 +0000)]
* configure.in (fr30): Fix typo.

From-SVN: r29789

24 years ago* mbchar.h: Add missing #endif.
Jeffrey A Law [Sun, 3 Oct 1999 20:16:30 +0000 (20:16 +0000)]
* mbchar.h: Add missing #endif.

From-SVN: r29788

24 years agot-fr30 (LIB2FUNCS_EXTRA): Remove definition.
Jeffrey A Law [Sun, 3 Oct 1999 20:14:14 +0000 (20:14 +0000)]
t-fr30 (LIB2FUNCS_EXTRA): Remove definition.

        * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
        (FPBIT, DPBIT): Define.

From-SVN: r29787

24 years agocp-tree.def (VEC_INIT_EXPR): Remove.
Mark Mitchell [Sun, 3 Oct 1999 18:57:37 +0000 (18:57 +0000)]
cp-tree.def (VEC_INIT_EXPR): Remove.

* cp-tree.def (VEC_INIT_EXPR): Remove.
* cp-tree.h (struct stmt_tree): New type.
(struct saved_scope): Remove firstobj.  Add x_saved_tree,
x_stmt_tree.
(class_cache_firstobj): Remove.
(struct language_function): Remove stmts_are_full_exprs_p,
x_last_tree, and x_last_expr_type.  Add x_stmt_tree.
(current_stmt_tree): New macro.
(last_tree): Adjust.
(last_expr_type): Likewise.
(doing_semantic_analysis_p): Simplify.
(stmts_are_full_exprs_p): Adjust.
(begin_tree): Remove prototype.
(end_tree): Likewise.
(begin_stmt_tree): Change prototype.
(finish_stmt_tree): Likewise.
(building_stmt_tree): Simplify.
* decl.c (mark_stmt_tree): New function.
(mark_saved_scope): Use it.
(start_function): Rearrange slightly to call begin_stmt_tree
earlier.
(save_function_data): Tweak.
(finish_function): Adjust call to finish_stmt_tree.
(mark_lang_function): Use mark_stmt_tree.
* expr.c (cplus_expand_expr): Don't handle VEC_INIT_EXPR.
* init.c (build_new_1): Remove creation of VEC_INIT_EXPR.
(build_vec_init): Remove creation of stand-in intializer.
* pt.c (begin_tree): Remove.
(end_tree): Likewise.
* semantics.c (SET_LAST_STMT): New macro.  Use it throughout.
(begin_compound_stmt): Handle a compound-statement outside of a
function.
(begin_stmt_expr): Handle a statement-expression outsidef of a
function.
(finish_stmt_expr): Likewise.
(begin_class_definition): Don't call begin_tree.
(finish_inline_definitions): Don't call end_tree.
(begin_stmt_tree): Take a pointer to tree, not a function as input.
(finish_stmt_tree): Likewise.
* tree.c (search_tree): Don't handle VEC_INIT_EXPR.
(mapcar): Likewise.

* parse.y (simple_stmt): Don't call finish_stmt unnecessarily.
* parse.c: Regenerated.

* dump.c (dqueue_and_dump): Dump bitfieldness.

From-SVN: r29786

24 years agoUpdate copyright date
Kaveh Ghazi [Sun, 3 Oct 1999 17:01:59 +0000 (17:01 +0000)]
Update copyright date

From-SVN: r29785

24 years agoprint-tree.c (print_node, indent_to): Remove redundant prototypes.
Kaveh R. Ghazi [Sun, 3 Oct 1999 16:47:52 +0000 (16:47 +0000)]
print-tree.c (print_node, indent_to): Remove redundant prototypes.

* print-tree.c (print_node, indent_to): Remove redundant prototypes.

* profile.c (instrument_arcs, output_gcov_string,
tablejump_entry_p): Add static prototypes.
(output_gcov_string): Constify a char*.

* regmove.c (replacement_quality, fixup_match_2): Add static
prototypes.

* resource.h (reg_dead_p): Add extern prototype.

* rtl.c (trim_filename): Add static prototype.

* scan-decls.c (skip_to_closing_brace): Likewise.

* stmt.c (expand_decl_cleanup_no_eh): Hide definition.
(expand_end_case): Initialize variable `range'.
(emit_case_nodes): Remove unused prototype `rtx_fn'.

* varasm.c (asm_emit_uninitialised): Add static prototype.
(asm_emit_uninitialised, assemble_variable): Mark parameter with
ATTRIBUTE_UNUSED.

From-SVN: r29784

24 years agocpplib.c (if_directive_nameo): Add static prototype.
Kaveh R. Ghazi [Sun, 3 Oct 1999 16:28:33 +0000 (16:28 +0000)]
cpplib.c (if_directive_nameo): Add static prototype.

* cpplib.c (if_directive_nameo): Add static prototype.

* cse.c (cse_insn): Remove unused variable `p'.

* except.c (create_rethrow_ref, push_entry,
receive_exception_label, new_eh_region_entry, find_func_region,
clear_function_eh_region, process_nestinfo): Add static prototypes.
(get_reg_for_handler): Hide definition.
(process_nestinfo): Initialize variable `extra_handlers'.

* expr.h (expand_builtin_longjmp): Add extern prototype.

* final.c (final_addr_vec_align, align_fuzz): Add static prototypes.

* function.c (prepare_function_start): Likewise.
(pop_function_context_from): Mark parameter `context' with
ATTRIBUTE_UNUSED.
(push_temp_slots_for_block, flush_addressof): Hide definition.

* gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
solve_program_flow_graph, calculate_branch_probs,
function_summary, main, fancy_abort): Add prototypes.

* gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
(add_hash): Constify a char*.

* ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.

* integrate.c (expand_inline_function_eh_labelmap): Likewise.

* lists.c (free_list, zap_lists): Likewise.

From-SVN: r29783

24 years agoalias.c (nonlocal_reference_p): Add static prototype.
Kaveh R. Ghazi [Sun, 3 Oct 1999 16:08:31 +0000 (16:08 +0000)]
alias.c (nonlocal_reference_p): Add static prototype.

        * alias.c (nonlocal_reference_p): Add static prototype.

        * bitmap.c (bitmap_element_allocate): Prototype args in function
        pointer cast.

        * builtins.c (stabilize_va_list): Add static prototype.
        (expand_builtin_va_arg): Constify a char*.

        * c-lex.c (getch, put_back, extend_token_buffer_to,
        read_line_number, token_getch, token_put_back): Add static
        prototypes.

        * c-parse.gperf (hash, is_reserved_word): Likewise.

        * cccp.c (is_dir_separator): Likewise.

From-SVN: r29782

24 years agotree.c (lvalue_p_1): Use DECL_C_BIT_FIELD to check for bitfields, rather than DECL_BI...
Mark Mitchell [Sun, 3 Oct 1999 16:04:30 +0000 (16:04 +0000)]
tree.c (lvalue_p_1): Use DECL_C_BIT_FIELD to check for bitfields, rather than DECL_BIT_FIELD.

* tree.c (lvalue_p_1): Use DECL_C_BIT_FIELD to check for
bitfields, rather than DECL_BIT_FIELD.
* ir.texi: Document how to tell whether or not a field is a
bitfield.

* lex.c (make_lang_type): Fix typo in comment.

From-SVN: r29781

24 years agoDaily bump.
Jeff Law [Sun, 3 Oct 1999 07:45:08 +0000 (01:45 -0600)]
Daily bump.

From-SVN: r29780

24 years agoxmalloc.c (xmalloc): Fix spelling error.
Mark Mitchell [Sun, 3 Oct 1999 01:55:59 +0000 (01:55 +0000)]
xmalloc.c (xmalloc): Fix spelling error.

* xmalloc.c (xmalloc): Fix spelling error.
(xcalloc, xrealloc): Likewise.

From-SVN: r29779