Commit Graph

24422 Commits

Author SHA1 Message Date
Michael Meissner
df231a0970 Declare malloc, free, and atexit if inhibit_libc is defined.
From-SVN: r29829
1999-10-05 19:41:35 +00:00
Richard Henderson
dbf08f94a7 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
1999-10-05 12:01:01 -07:00
Kaveh R. Ghazi
5da1ecf26e 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
1999-10-05 16:21:34 +00:00
Mark Mitchell
018fc244dc 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
1999-10-05 16:19:04 +00:00
Michael Meissner
1b42a6a905 Include tm_p.h in ggc files
From-SVN: r29825
1999-10-05 15:42:18 +00:00
Diego Novillo
b81fdb5a14 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
1999-10-05 12:18:56 +00:00
Jeff Law
a99d6b8c08 Daily bump.
From-SVN: r29823
1999-10-05 01:45:10 -06:00
Richard Henderson
09051660d2 Rewrite to use independant test structures.
From-SVN: r29822
1999-10-04 22:18:54 -07:00
Zack Weinberg
6343a50edf 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
1999-10-05 05:00:55 +00:00
Jeffrey A Law
ff54d46bc9 Jeffrey A Law (law@cygnus.com)
* flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
        blocks.

From-SVN: r29820
1999-10-04 21:12:33 -07:00
Richard Henderson
375e2d5cfa 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
1999-10-04 21:04:48 -07:00
Anthony Green
7a3b7acb7c 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
1999-10-05 03:44:26 +00:00
Richard Henderson
1fef02f64a 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
1999-10-04 16:57:47 -07:00
Mark Mitchell
8a693bd0bb 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
1999-10-04 23:18:09 +00:00
Ulrich Drepper
436c94cb55 Update.
From-SVN: r29815
1999-10-04 22:13:38 +00:00
Ulrich Drepper
ed9e042da2 Test for not using results of va_arg calls.
From-SVN: r29814
1999-10-04 22:12:37 +00:00
Tom Tromey
5d836b57fc 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
1999-10-04 22:08:42 +00:00
Tom Tromey
97cf151d27 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
1999-10-04 21:37:30 +00:00
Tom Tromey
05a3dfc719 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
1999-10-04 20:32:08 +00:00
Mark Mitchell
5828784f30 Always use -fvtable-thunks.
From-SVN: r29810
1999-10-04 20:13:42 +00:00
Tom Tromey
39acd93283 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
1999-10-04 19:09:09 +00:00
Richard Henderson
8229306b8b 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
1999-10-04 11:52:39 -07:00
Richard Henderson
393f3ad5b9 * sbitmap.c (sbitmap_ones): Don't set too many bits.
From-SVN: r29807
1999-10-04 11:39:19 -07:00
Richard Henderson
4afd525437 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
1999-10-04 11:30:10 -07:00
Nathan Sidwell
ce7695e001 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
1999-10-04 15:13:26 +00:00
Stan Cox
d38e58a5ab 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
1999-10-04 13:59:24 +00:00
Jeffrey A Law
62e1ef6878 * mn10200.c (asm_file_start): Fix typo.
From-SVN: r29803
1999-10-04 05:20:11 -06:00
Alexandre Oliva
712fbcfac4 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
1999-10-04 11:11:16 +00:00
Mark Mitchell
39c76b4f03 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
1999-10-04 09:33:31 +00:00
Mark Mitchell
b3a798924e 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
1999-10-04 09:26:57 +00:00
Mark Mitchell
c557501d33 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
1999-10-04 09:15:17 +00:00
Mark Mitchell
783feeb034 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
1999-10-04 09:07:53 +00:00
Jason Merrill
37f88e3ea0 * init.c (build_vec_delete_1): Fold COND_EXPRs.
From-SVN: r29796
1999-10-04 04:30:28 -04:00
Jeff Law
749168094a Daily bump.
From-SVN: r29795
1999-10-04 01:45:16 -06:00
Jeffrey A Law
d93ec8a08c 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
1999-10-04 00:19:02 -06:00
Jeffrey A Law
88deedb5c9 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
1999-10-04 00:14:10 -06:00
Jeffrey A Law
910eabe501 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
1999-10-04 00:08:16 -06:00
Anthony Green
aedf9aa78c Fix changelog entry
From-SVN: r29791
1999-10-04 03:44:07 +00:00
Anthony Green
0d9cd062a0 A little clean up.
From-SVN: r29790
1999-10-04 03:30:54 +00:00
Jeffrey A Law
3897b7b7b8 * configure.in (fr30): Fix typo.
From-SVN: r29789
1999-10-03 14:21:45 -06:00
Jeffrey A Law
1f4915dcb3 * mbchar.h: Add missing #endif.
From-SVN: r29788
1999-10-03 14:16:30 -06:00
Jeffrey A Law
f400f2b600 t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
* t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
        (FPBIT, DPBIT): Define.

From-SVN: r29787
1999-10-03 14:14:14 -06:00
Mark Mitchell
6f80451c66 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
1999-10-03 18:57:37 +00:00
Kaveh Ghazi
e192c1020f Update copyright date
From-SVN: r29785
1999-10-03 17:01:59 +00:00
Kaveh R. Ghazi
95d75019ff 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
1999-10-03 16:47:52 +00:00
Kaveh R. Ghazi
ca3075bd73 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
1999-10-03 16:28:33 +00:00
Kaveh R. Ghazi
93868d11a6 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
1999-10-03 16:08:31 +00:00
Mark Mitchell
807625cf45 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
1999-10-03 16:04:30 +00:00
Jeff Law
4927b3d487 Daily bump.
From-SVN: r29780
1999-10-03 01:45:08 -06:00
Mark Mitchell
fc232f7a62 xmalloc.c (xmalloc): Fix spelling error.
* xmalloc.c (xmalloc): Fix spelling error.
	(xcalloc, xrealloc): Likewise.

From-SVN: r29779
1999-10-03 01:55:59 +00:00