Commit Graph

24348 Commits

Author SHA1 Message Date
Mark Mitchell
c219b87877 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
1999-10-07 16:41:48 +00:00
Anthony Green
ab150fb189 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
1999-10-07 13:26:01 +00:00
Richard Henderson
81bf3d9ed3 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
1999-10-07 01:15:19 -07:00
Jeff Law
bdf768134b Daily bump.
From-SVN: r29852
1999-10-07 01:45:09 -06:00
Richard Henderson
0f695c379e * c-decl.c (ggc_p): Enable.
From-SVN: r29851
1999-10-06 23:57:07 -07:00
Diego Novillo
201b6183d2 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
1999-10-07 02:38:15 -04:00
Mark Mitchell
56934d5c71 * dump.c (dequeue_and_dump): Dump all three operands to a COND_EXPR.
From-SVN: r29849
1999-10-07 03:34:58 +00:00
Tom Tromey
f2646bf2fa 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
1999-10-06 23:13:37 +00:00
Kaveh R. Ghazi
dd6d68a933 * flow.c (verify_flow_info): Make it extern & unconditionally define.
From-SVN: r29847
1999-10-06 21:23:52 +00:00
Brendan Kehoe
129a720f0a 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
1999-10-06 16:20:15 -04:00
Michael Meissner
319d943479 Fix sanity check
From-SVN: r29845
1999-10-06 20:14:28 +00:00
Richard Henderson
2224ac3c4e 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
1999-10-06 12:24:28 -07:00
Mark Mitchell
d3a3fb6add 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
1999-10-06 19:01:44 +00:00
Brendan Kehoe
a4156b889d 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
1999-10-06 13:48:17 -04:00
Richard Henderson
2ee2956a63 genconfig.c (main): Disable HAVE_conditional_arithmetic.
* genconfig.c (main): Disable HAVE_conditional_arithmetic.
        * jump.c (jump_optimize_1): Document why.

From-SVN: r29841
1999-10-06 10:22:54 -07:00
Kaveh R. Ghazi
f428f25240 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
1999-10-06 14:48:41 +00:00
Jeff Law
1e0a44093b Daily bump.
From-SVN: r29839
1999-10-06 01:45:19 -06:00
Mark Mitchell
13ef1ec581 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
1999-10-06 06:18:18 +00:00
Mark Mitchell
3454335f03 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
1999-10-06 05:35:38 +00:00
Michael Meissner
dca31eb4cc Redo changelog entry.
From-SVN: r29836
1999-10-06 03:25:39 +00:00
Mark Mitchell
3651fb44bb 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
1999-10-05 23:59:27 +00:00
Mark Mitchell
cd6642cbec * ir.texi: Document LOOP_EXPR and EXIT_EXPR.
From-SVN: r29834
1999-10-05 23:40:00 +00:00
Paul Burchard
85f88abf55 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
From-SVN: r29833
1999-10-05 23:29:32 +00:00
Michael Meissner
820f6e3ac9 Make libgcc1-test.c compile without warnings
From-SVN: r29832
1999-10-05 23:07:09 +00:00
Michael Meissner
2f9e65b1f1 Do not include stddef.h if building trampoline support and inhibit_libc is defined
From-SVN: r29831
1999-10-05 19:59:03 +00:00
Michael Meissner
139fa6f87b Mark args as unused.
From-SVN: r29830
1999-10-05 19:48:55 +00:00
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