Commit Graph

28690 Commits

Author SHA1 Message Date
Warren Levy
99a7631a98 Fix a stupid typo.
From-SVN: r34536
2000-06-13 23:52:00 +00:00
Anthony Williams
97e0a05a9d bitset_ctor.cc: Qualify reverse wth std::.
2000-06-13  Anthony Williams  <anthony@anthonyw.cjb.net>

	* testsuite/23_containers/bitset_ctor.cc: Qualify reverse wth std::.

	* testsuite/27_io/filebuf.cc: Changed calls to
	fpos<>._M_position() to implicit calls to operator streamoff().
	* testsuite/27_io/iostream_objects.cc: Removed #include <ciso646>,
	as not needed. Revert, as part of standard.
	* testsuite/27_io/ostream_inserter_arith.cc: Replaced explicit
	call to numpunct<>._M_init() with overrides of the appropriate
	virtual functions.

	* testsuite/27_io/stringstream.cc: Removed unnecessary char *
	pointers from test01, so no need to call base(), which isn't
	guaranteed to be implemented as iterators may themselves be pointers
	* testsuite/27_io/stringbuf.cc: Removed unnecessary calls to
	_M_position() - use implicit conversion to streamoff instead

From-SVN: r34535
2000-06-13 23:48:29 +00:00
Benjamin Kosnik
8173b2d78a stl_iterator.h: Added inline to operators == to >=.
2000-06-13  Thomas Holenstein  <thomas@hex.ch>

        * bits/stl_iterator.h: Added inline to operators == to >=.

From-SVN: r34534
2000-06-13 23:48:02 +00:00
Jason Merrill
a032eacb1b complain about long long
From-SVN: r34533
2000-06-13 19:47:37 -04:00
Warren Levy
7254e4eab9 Test for PR java.lang/258:
* libjava.lang/Class_1.java: New file.
	* libjava.lang/Class_1.out: New file.

From-SVN: r34532
2000-06-13 23:44:05 +00:00
Richard Henderson
46327bc509 libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
* libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
        (__throw): Don't pass the address of a label.

        * config/ia64/ia64.c (ia64_compute_frame_size): Use
        current_function_is_leaf.
        (ia64_expand_prologue): Likewise.  Modify return_address_pointer_rtx
        instead of reg_names[RETURN_ADDRESS_REGNUM].
        (ia64_init_machine_status): Reset return_address_pointer_rtx.
        * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
        from RETURN_ADDRESS_REGNUM.  Update all uses.
        (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
        zero instead of null on failure.
        (ELIMINABLE_REGS): Add ra->b0 elimination.
        (CAN_ELIMINATE): Update accordingly.
        (INITIAL_ELIMINATION_OFFSET): Likewise.
        (REGISTER_NAMES): Use an illegal assembler name for
        RETURN_ADDRESS_POINTER_REGNUM.

From-SVN: r34531
2000-06-13 16:36:19 -07:00
Richard Henderson
13da91fd23 ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS, GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
* config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
        GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
        (REG_CLASS_NAMES): Likewise.
        (REG_CLASS_CONTENTS): Likewise.
        (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
        (HARD_REGNO_MODE_OK): Remove references to them.
        (REGNO_REG_CLASS): Likewise.
        (REG_CLASS_FROM_LETTER): Likewise.
        (CLASS_MAX_NREGS): Likewise.
        (REGISTER_MOVE_COST): Likewise.
        * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
        * config/ia64/ia64.md (*): Replace "e" constraints with "f".
        (movqi_internal): Special case moves from zero.
        (movhi_internal, movsi_internal): Likewise.
        (movdi_internal): Likewise.  Fill out "f" constraints.
        (movsf_internal): Fill out "r" constraints.
        (movdf_internal): Likewise.

From-SVN: r34530
2000-06-13 16:19:50 -07:00
Richard Henderson
ef3843807e flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM alive before reload.
* flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
        alive before reload.

        * haifa-sched.c (struct deps): Add in_post_call_group_p.
        (add_dependence): Handle notes between SCHED_GROUP_P insns.
        (remove_dependence): Always define.
        (set_sched_group_p): New.
        (sched_analyze_2): Use it.
        (sched_analyze_insn): Don't special-case naked uses.  Look for
        and extend in_post_call_group_p.
        (sched_analyze): Clear stale SCHED_GROUP_P.  Set in_post_call_group_p.
        (init_deps): Clear in_post_call_group_p.

From-SVN: r34529
2000-06-13 15:23:49 -07:00
Brent Verner
96cbf48b35 streambuf.tcc: repaired _S_copy_streambufs()
2000-06-13  Brent Verner <brent@rcfile.org>

	* bits/streambuf.tcc: repaired _S_copy_streambufs()
	* testsuite/27_io/ostream_inserter_other.cc (test03): Added testcase.

From-SVN: r34528
2000-06-13 22:20:56 +00:00
Maciej W. Rozycki
2d2586a495 Make-lang.in (c++.install-common): Install g++-cross in $(gcc_tooldir)/bin as g++ and c++...
* Make-lang.in (c++.install-common): Install g++-cross in
        $(gcc_tooldir)/bin as g++ and c++; g++ in $(bindir) as
        $(target_alias)-g++ and $(target_alias)-c++.

From-SVN: r34527
2000-06-13 15:49:33 -06:00
Richard Henderson
02188693ed combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P instead of...
* combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
        CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
        and hard-coded tests.
        (simplify_set): Likewise.
        (gen_lowpart_for_combine): Likewise.
        * emit-rtl.c (gen_lowpart_common): Likewise.
        * global.c (find_reg): Likewise.
        * local-alloc.c (find_free_reg): Likewise.
        * recog.c (register_operand): Likewise.
        * regclass.c (init_reg_sets_1): Likewise.
        (record_operand_costs, regclass): Likewise.
        * reload.c (push_reload): Likewise.
        * reload1.c (choose_reload_regs): Likewise.
        * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
        * local-alloc.c (struct qty): Rename changes_size to changes_mode.
        Update all references.
        * regs.h (struct reg_info_def): Likewise.
        (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
        * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
        (CLASS_CANNOT_CHANGE_MODE_P): Likewise.

        * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
        (CLASS_CANNOT_CHANGE_MODE_P): New.
        * config/mips/mips.h: Likewise.
        * config/pa/pa32-regs.h: Likewise.
        * config/pa/pa64-regs.h: Likewise.
        * config/rs6000/rs6000.h: Likewise.
        * config/sh/sh.h: Likewise.
        * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
        (CLASS_CANNOT_CHANGE_MODE_P): New.
        * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
        * config/d30v/d30v.h: Likewise.

From-SVN: r34526
2000-06-13 14:47:44 -07:00
Maciej W. Rozycki
d805809112 Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not $(INSTALL_PROGRAM) for chill.install.
* Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
        $(INSTALL_PROGRAM) for chill.install.

From-SVN: r34525
2000-06-13 15:31:26 -06:00
J. David Anglin
092417da9f configure.in: Add AC_TYPE_GETGROUPS test.
* configure.in: Add AC_TYPE_GETGROUPS test.
        * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
        * configure: Rebuilt.

From-SVN: r34524
2000-06-13 15:28:31 -06:00
Richard Henderson
be8d9ace54 * explow.c (set_mem_attributes): Do nothing for NULL type.
From-SVN: r34523
2000-06-13 14:16:24 -07:00
Jeffrey A Law
f8bc3f3af4 openbsd.h (ASM_SPEC): pass down options to assembler correctly.
* config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
        correctly.

From-SVN: r34522
2000-06-13 14:54:33 -06:00
James E. Wilson
46b1ac3f30 Fix typo found by bootstrap.
* config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.

From-SVN: r34521
2000-06-13 13:08:12 -07:00
Jeffrey A Law
592f12417b * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
From-SVN: r34520
2000-06-13 14:06:39 -06:00
Philipp Thomas
37aeda9a80 configure.in (ALL_LINGUAS): Changed en_UK to en_GB.
gcc:
2000-06-13  Philipp Thomas  <pthomas@suse.de>

	* configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
	* configure: Rebuilt.

gcc/po:

2000-06-13  Philipp Thomas  <pthomas@suse.de>

	* en_UK.po: Renamed to en_GB.po.

From-SVN: r34519
2000-06-13 18:04:16 +00:00
David O'Brien
bad4c10670 configure.in: Adjust FreeBSD bits to match changes to config.guess.
* configure.in:  Adjust FreeBSD bits to match changes to config.guess.
        We now default to ELF for the i386, and a.out is the special case.
        * configure:  Rebuilt.

From-SVN: r34518
2000-06-13 10:09:51 -06:00
Hans-Peter Nilsson
efd0378bd3 final.c (final_scan_insn): Delete notes between cc0 setter and user when restarting from setter.
* final.c (final_scan_insn): Delete notes between cc0 setter and
        user when restarting from setter.

From-SVN: r34517
2000-06-13 10:06:26 -06:00
J. David Anglin
97ce876c32 vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and cast to squelch signed/unsigned warnings.
* vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
        cast to squelch signed/unsigned warnings.

From-SVN: r34516
2000-06-13 09:54:53 -06:00
Jeff Law
77fd1bfbd7 Daily bump.
From-SVN: r34515
2000-06-13 01:45:07 -06:00
Zack Weinberg
54925c2087 cpplib.c (handle_directive): Print non-NUL-terminated string with %.*s.
* cpplib.c (handle_directive): Print non-NUL-terminated string
	with %.*s.

From-SVN: r34514
2000-06-13 07:19:22 +00:00
Jason Merrill
ff164a61f3 oops
From-SVN: r34513
2000-06-13 01:55:52 -04:00
Michael Meissner
89d237bf18 Do not handle dead code via conditional execution if special handling is needed
From-SVN: r34512
2000-06-13 02:23:56 +00:00
Benjamin Kosnik
088eb5a274 [multiple changes]
2000-06-12  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/locale_facets.h (ctype<wchar_t>): Remove unnecessary data
	members.
	* src/locale.cc: Add cwchar include here. Remove incorrect
	definitions, and stub them out.
	* config/generic/ctype.cc (ctype): Remove ctype<wchar_t> bits.
	* config/solaris/solaris2.7/ctype.cc (ctype): Same.
	* config/solaris/solaris2.5/ctype.cc (ctype): Same.
	* config/newlib/ctype.cc: Same.
	* config/gnu-linux/ctype.cc: Same.
	* config/bsd/ctype.cc: Same.
	* config/aix/ctype.cc: Same.

2000-06-12  Branko Cibej  <branko.cibej@hermes.si>

        * config/solaris/solaris2.6/ctype.cc (do_toupper, do_tolower): Use
        towupper and towlower to convert wide characters.

From-SVN: r34511
2000-06-13 02:13:54 +00:00
Benjamin Kosnik
d54a528ae4 mkcheck.in: Clean up confusion regarding NAME, PRE_NAME.
2000-06-12  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* mkcheck.in: Clean up confusion regarding NAME, PRE_NAME.

From-SVN: r34510
2000-06-12 23:56:56 +00:00
Jason Merrill
431f67e296 update
From-SVN: r34509
2000-06-12 19:52:58 -04:00
Jeffrey A Law
c558850470 print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC to print the alias set.
* print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
        to print the alias set.
        * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.

From-SVN: r34507
2000-06-12 17:08:05 -06:00
J. David Anglin
c6bb035c2d * config/float-vax.h: Add GFLOAT defines.
From-SVN: r34506
2000-06-12 17:01:25 -06:00
Mark Klein
5d712c3997 configure.in: Update tm dependencies for MPE.
* configure.in: Update tm dependencies for MPE.
        * configure: Rebuilt.

From-SVN: r34505
2000-06-12 16:59:13 -06:00
H.J. Lu
b9b9d06318 gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
2000-06-12  H.J. Lu  <hjl@gnu.org>

	* gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.

From-SVN: r34504
2000-06-12 22:45:46 +00:00
Mark Mitchell
9bab6c9035 class.c (vcall_offset_data_s): Add last_init and fns.
* class.c (vcall_offset_data_s): Add last_init and fns.
	(overrides): Rename to same_signature_p.
	(dfs_find_final_overrider): Adjust accordingly.
	(mark_overriders): Likewise.
	(warn_hidden): Likewise.
	(build_vtbl_initializer): Reorganize machinery for building things
	at negative offsets.
	(build_vcall_and_vbase_vtbl_entries): Likewise.
	(build_vbase_offset_vtbl_entries): Likewise.
	(dfs_build_vcall_offset_vtbl_entries): Correct order of vcall
	offset entries.  Do not create two entries for functions with the
	same signature.
	(build_vcall_offset_vtbl_entries): Initialize vod->fns.
	(build_rtti_vtbl_entries): Reorganize machinery for building things
	at negative offsets.

From-SVN: r34503
2000-06-12 20:46:28 +00:00
David Edelsohn
f6bf7de2b9 aix41.h (SUBTARGET_SWITCHES): Delete threads.
* aix41.h (SUBTARGET_SWITCHES): Delete threads.
	(CPP_SPEC): Change mthreads to pthread.
	(LIB_SPEC): Likewise.
	(STARTFILE_SPEC): Likewise.
	* aix43.h (SUBTARGET_SWITCHES): Delete thread.
	(CPP_SPEC): Change mthreads to pthread.
	(LIB_SPEC): Likewise.
	(STARTFILE_SPEC): Likewise.
	* rs6000-protos.h (reg_or_arith_cint_operand): New.
	* rs6000.c (reg_or_arith_cint_operand): New.
	(num_insns_constant_wide): Decorate unsigned constant.
	* rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
	* rs6000.md (addsi3): Use new predicate.
	(subsi3, adddi3, subdi3): Likewise.

From-SVN: r34502
2000-06-12 15:58:57 -04:00
Mark Mitchell
071f9809f9 optimize.c (expand_call_inline): Don't recurse into the code used to initialize the parameters more than once.
* optimize.c (expand_call_inline): Don't recurse into the code
	used to initialize the parameters more than once.

From-SVN: r34501
2000-06-12 19:26:43 +00:00
Mark Mitchell
f6f8291af0 * c-common.c (lang_get_alias_set): Fix typo.
From-SVN: r34500
2000-06-12 19:14:08 +00:00
Richard Earnshaw
61f286b64c flow.c (mark_used_regs): Revert last change.
* flow.c (mark_used_regs): Revert last change.
(life_analysis): Remove PROP_AUTOINC if running after reload.
(propagate_one_insn): PROP_AUTOINC is always off after reload.

From-SVN: r34499
2000-06-12 14:40:24 +00:00
Jeff Law
1565e32cd3 Daily bump.
From-SVN: r34498
2000-06-12 01:45:08 -06:00
Mark Mitchell
459c43ad00 mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment.
* mangle.c (NESTED_TEMPLATE_MATCH): Fix typo in comment.
	(is_std_substitution): Don't check CLASSTYPE_USE_TEMPLATE here.
	(find_substitution): Only use the `Sa' substitution for
	std::allocator, not instantiations of it.
	(write_template_prefix): Move comment.  Only use a TREE_LIST to
	represent substitutions for a member template.
	(write_array_type): Mangle array dimensions correctly.
	* optimize.c (maybe_clone_body): Copy more information from the
	cloned function.
	* pt.c (regenerate_decl_from_template): Preserve DECL_USE_TEMPLATE
	on the regenerated declaration.

From-SVN: r34497
2000-06-12 06:43:27 +00:00
Jeff Law
cbd3488bb9 [multiple changes]
2000-06-09  Rodney Brown  <RodneyBrown@mynd.com>

        * mcore-protos.h: discards const warning removal.
        * mcore.c: discards const warning removal.

2000-06-09  Kazu Hirata  <kazu@hxi.com>

        * config/h8300/lib1funcs.asm: Declare the machine architecture at
        the beginning of the file.

2000-06-09  J. David Anglin  <dave@hiauly1.hia.nrc.ca>

        * real.h:  Add prototype for ldexp.

From-SVN: r34496
2000-06-11 14:21:02 -06:00
Jeffrey A Law
83c137d7a0 * gcc.c-torture/compile/20000609-1.c: New test.
From-SVN: r34495
2000-06-11 14:03:20 -06:00
Herman A.J. ten Brugge
65377a89bf rdfmt.c (rd_L): Use if-then-else instead of case statement to solve problems when...
2000-06-11  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>

	* rdfmt.c (rd_L): Use if-then-else instead of case statement to
	solve problems when sizeof(char) == sizeof(short).

From-SVN: r34494
2000-06-11 19:39:55 +00:00
Toon Moene
11a27a767b MAINTAINERS: Add self as Fortran maintainer, remove Craig Burley.
Sun Jun 11 17:20:00 MET 2000  Toon Moene  <toon@moene.indiv.nluug.nl>

	* MAINTAINERS: Add self as Fortran maintainer,
	remove Craig Burley.

From-SVN: r34493
2000-06-11 15:27:10 +00:00
Richard Earnshaw
68b0ba71a4 flow.c (mark_used_regs): Don't call find_auto_inc after reload has run.
* flow.c (mark_used_regs): Don't call find_auto_inc after reload
has run.

From-SVN: r34492
2000-06-11 14:02:36 +00:00
Jeff Law
9a514f3a1e Daily bump.
From-SVN: r34491
2000-06-11 01:45:07 -06:00
Kaveh R. Ghazi
5ac9118ef9 Warning fixes:
* bb-reorder.c (build_scope_forest): Initialize variable
	`curr_scope'.

	* calls.c (expand_call): Likewise for variables
	`save_pending_stack_adjust' and `save_stack_pointer_delta'.

	* i386.c (function_arg_advance, function_arg): Cast to avoid
	signed/unsigned warnings.

	* i386.h (MEMORY_MOVE_COST): Likewise.

	* ifcvt.c (cond_exec_process_if_block): Initialize variables
	`else_start' and `else_end'.

	* libgcc2.h (__eh_alloc, __eh_free): Prototype.

	* regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.

ch:
	* Makefile.in (EXPR_H): New dependency variable.
	(actions.o, expr.o): Use EXPR_H.
	(lang.o): Depend on RTL_H and EXPR_H.

	* lang.c: Include rtl.h and expr.h.
	(lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.

cp:
	* decl2.c (compare_options): Don't needlessly cast away const-ness.

f:
	* com.c (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.

java:
	* decl.c (create_primitive_vtable): Prototype.

	* jcf-write.c (generate_bytecode_insns): Initialize variable
	`saved_context'.

	* lang.c (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.

From-SVN: r34490
2000-06-11 04:29:49 +00:00
Mark Mitchell
7b176381ec decl.c (add_binding): Handle duplicate declarations of external variables.
* decl.c (add_binding): Handle duplicate declarations of external
	variables.

From-SVN: r34489
2000-06-11 04:08:31 +00:00
Chip Salzenberg
82a362d0a4 mangle.c (write_number): Take an unsigned HOST_WIDE_INT as an argument.
* mangle.c (write_number): Take an unsigned HOST_WIDE_INT as an
	argument.
	(write_signed_number): New macro.
	(write_unsigned_number): Likewise.
	(write_source_name): Use them.
	(write_number): Handle signed and unsigned values.
	(write_integer_cst): Use tree_int_cst_sgn, and use
	write_unsigned_number or write_signed_number as appropriate.
	(write_discriminator): Use write_unsigned_number or
	write_signed_number as appropriate.
	(write_template_arg_literal): Likewise.
	(write_array_type): Use tree_low_cst.
	(write_template_parm):  Use write_unsigned_number or
	write_signed_number as appropriate.
	(write_substitution): Adjust call to write_number.
	(write_type): Get the TYPE_MAIN_VARIANT before mangling it.
	(write_expression): Handle non-type template arguments of
	reference type correctly.
	(mangle_thunk): Use write_signed_number.

	* mangle.c (find_substition): Don't mangle objects with typename
	substitutions (e.g. "cin" as "Si").

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

From-SVN: r34488
2000-06-11 03:57:18 +00:00
Mark Mitchell
4d870388ff Revert last patch
From-SVN: r34487
2000-06-11 03:44:49 +00:00
Mark Mitchell
88fa51976c Revert last patch
From-SVN: r34486
2000-06-11 03:38:05 +00:00