Commit Graph

39254 Commits

Author SHA1 Message Date
Mark Mitchell
b67db52985 re PR c++/3471 (gcc 3.01 reports error about a private copy constructor that shouldn't get called.)
PR c++/3471
	* call.c (convert_like_real): Do not build additional temporaries
	for rvalues of class type.

From-SVN: r47451
2001-11-29 20:19:41 +00:00
Benjamin Kosnik
004249997b locale_facets.tcc (num_get::do_get(long double)): Fix __traits_type typo.
2001-11-29  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.tcc (num_get::do_get(long double)):
	Fix __traits_type typo.

From-SVN: r47449
2001-11-29 20:14:38 +00:00
Mark Mitchell
816a39741d memtemp100.C: Remove non-standard constructs.
* g++.old-deja/g++.pt/memtemp100.C: Remove non-standard
	constructs.

From-SVN: r47448
2001-11-29 19:04:47 +00:00
Geoffrey Keating
8125704bd0 emit-rtl.c (gen_lowpart_common): Fix conversion of REAL_VALUE_TYPEs to an array of target integers.
* emit-rtl.c (gen_lowpart_common): Fix conversion of
        REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
        of low part of those arrays for 32bit and 64bit hosts.

From-SVN: r47446
2001-11-29 11:12:37 -07:00
Richard Henderson
c87222f074 * init.c: Remove obsolete dwarf2 frame.h section.
From-SVN: r47445
2001-11-29 09:53:13 -08:00
Nathan Sidwell
2db1ab2d04 cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
cp:
	* cp-tree.h (UNIQUELY_DERIVED_FROM_P): Use lookup base.
	(ACCESSIBLY_UNIQUELY_DERIVED_FROM_P): Likewise.
	(PUBLICLY_UNIQUELY_DERIVED_FROM_P: Likewise.
	(DERIVED_FROM_P): Likewise.
	(enum base_access): Renumber, add ba_quiet bit mask.
	(get_binfo): Remove.
	(get_base_distance): Remove.
	(binfo_value): Remove.
	(ACCESSIBLY_DERIVED_FROM_P): Remove.
	* call.c (standard_conversion): Use lookup_base.
	* class.c (strictly_overrides): Likewise.
	(layout_virtual_bases): Likewise.
	(warn_about_ambiguous_direct_bases): Likewise.
	(is_base_of_enclosing_class): Likewise.
	(add_vcall_offset_vtbl_entries_1): Likewise.
	* cvt.c (build_up_reference): Adjust comment.
	* init.c (build_member_call): Reformat.
	* search.c (get_binfo): Remove.
	(get_base_distance_recursive): Remove.
	(get_base_distance): Remove.
	(lookup_base_r): Tweak.
	(lookup_base): Add ba_quiet control. Complete the types here.
	(covariant_return_p): Use lookup_base.
	* tree.c (binfo_value): Remove.
	(maybe_dummy_object): Use lookup_base.
	* typeck.c (build_static_cast): Use lookup_base.
	(get_delta_difference): Likewise.
	* typeck2.c (binfo_or_else): Use lookup_base.
	(build_scoped_ref): Add back error_mark_check.
	(build_m_component_ref): Use lookup_base.

From-SVN: r47444
2001-11-29 17:15:56 +00:00
Kaveh R. Ghazi
298d914f05 * Makefile.in (insn-output.o): Depend on insn-codes.h.
From-SVN: r47443
2001-11-29 17:12:52 +00:00
Joseph Myers
d3945f0a4e configure.in (target_list): Add generated-manpages.
* configure.in (target_list): Add generated-manpages.
	* configure: Regenerate.
	* Makefile.in (generated-manpages): Depend on
	lang.generated-manpages.
	* objc/Make-lang.in (objc.generated-manpages): New dummy target.

ada:
	* Make-lang.in (ada.generated-manpages): New dummy target.

ch:
	* Make-lang.in (CHILL.generated-manpages): New dummy target.

cp:
	* Make-lang.in (c++.generated-manpages): New dummy target.

f:
	* Make-lang.in (f77.generated-manpages): New target.
	($(srcdir)/f/g77.1): Don't check $(GENERATED_MANPAGES).  Allow
	manpage generation to fail.
	(f77.info): Don't depend on $(srcdir)/f/g77.1.
	(f77.install-man): Depend on $(GENERATED_MANPAGES) rather than
	directly on $(srcdir)/g77.1.

java:
	* Make-lang.in (java.generated-manpages): New dummy target.

From-SVN: r47442
2001-11-29 16:50:19 +00:00
Nick Clifton
38f90bec56 Mark _init and _fini as Thumb functions if compiled in thumb mode.
From-SVN: r47441
2001-11-29 16:05:59 +00:00
GCC Administrator
243ebca042 Daily bump.
From-SVN: r47439
2001-11-29 08:16:16 +00:00
Eric Christopher
4e0a5dc289 mips.c (override_options): Fix thinko in mips_tune for mips32/mips64.
2001-11-28  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.c (override_options): Fix thinko in mips_tune
	for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.

From-SVN: r47438
2001-11-29 07:42:15 +00:00
Richard Henderson
efc981bbe5 Fix comment typo.
From-SVN: r47437
2001-11-28 23:32:40 -08:00
John Wehle
a1fa55444b alpha.md (tablejump): Use pic_offset_table_rtx instead of gen_rtx_REG.
* alpha.md (tablejump): Use pic_offset_table_rtx
	instead of gen_rtx_REG.

From-SVN: r47436
2001-11-29 05:26:31 +00:00
Ed Schonberg
9f63939774 g-os_lib.adb (Add_To_Command): use explicit loop to move string into Command, an array conversion is illegal here.
* g-os_lib.adb (Add_To_Command): use explicit loop to move string
	into Command, an array conversion is illegal here. Uncovered by
	ACATS B460005.

From-SVN: r47435
2001-11-29 06:15:53 +01:00
Benjamin Kosnik
911b415e52 locale_facets.tcc (__pad): Correctly pad internal-adjusted hex numbers.
2001-11-28  Paolo Carlini  <pcarlini@unitus.it>

	libstdc++/3655
	* include/bits/locale_facets.tcc (__pad): Correctly pad
	internal-adjusted hex numbers.
	* testsuite/27_io/ostream_inserter_arith.cc: Add testcase.

From-SVN: r47434
2001-11-29 00:30:01 +00:00
Paolo Carlini
5a4c85886a locale_facets.tcc (__pad): correctly output hex numbers internally aligned.
2001-11-28  Paolo Carlini  <pcarlini@unitus.it>

	libstdc++/3655
	* include/bits/locale_facets.tcc (__pad): correctly output hex
	numbers internally aligned.
	* testsuite/27_io/ostream_inserter_arith.cc: Add testcase.

From-SVN: r47433
2001-11-29 00:27:54 +00:00
Jeffrey A Law
35a53991ae expr.c (store_expr): When copying a string constant into an array...
* expr.c (store_expr): When copying a string constant into an
        array, reset the known alignment of the MEM for the section to
        be cleared to BITS_PER_UNIT.

From-SVN: r47432
2001-11-28 15:34:07 -07:00
Jeffrey A Law
d4d73d4c5a * gcc.c-torture/execute/20011128-1.c: New test.
From-SVN: r47431
2001-11-28 15:04:05 -07:00
Hans-Peter Nilsson
117b0c0a5e * config/cris/cris.c: Remove whitespace at end of line.
From-SVN: r47430
2001-11-28 22:00:29 +00:00
Geert Bosch
c835e5c6df * init.c: Minor whitespace changes.
From-SVN: r47429
2001-11-28 22:49:44 +01:00
Douglas B Rupp
04cec1a71d config.gcc (i[34567]86-*-interix3*): New case.
* config.gcc (i[34567]86-*-interix3*): New case.
	* config/x-interix3, config/interix3.h, config/i386/i386interix3.h:
	New files.

From-SVN: r47428
2001-11-28 16:41:54 -05:00
Douglas B Rupp
49bb454841 init.c: (__gnat_install_handler,VMS): Increase size of alternate signal stack.
* init.c: (__gnat_install_handler,VMS): Increase size of alternate
	signal stack.

From-SVN: r47427
2001-11-28 22:38:18 +01:00
Zack Weinberg
ea2417e542 misc.c (gnat_expand_constant): Move declaration above definition of lang_hooks.
* misc.c (gnat_expand_constant): Move declaration above
	definition of lang_hooks.
	(LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
	(gnat_init): lang_expand_constant no longer exists.

	(internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
	always have vprintf.
	(gnat_init): Always call set_internal_error_function.

From-SVN: r47426
2001-11-28 19:49:00 +00:00
Paolo Carlini
6dafbab7e5 2001-11-28 Paolo Carlini <pcarlini@unitus.it>
Loren J. Rittle <ljrittle@acm.org>

	* include/bits/basic_string.h
	(basic_string::_Rep::__default_excess, _S_excess_slop):
	Unused, remove.
	* include/bits/basic_string.tcc: Remove dead code.
	* include/bits/c++config: Remove comment.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>

From-SVN: r47425
2001-11-28 18:58:19 +00:00
Richard Henderson
391f61d928 alpha.md (sibcall_osf_1, [...]): Use symbolic_operand as the predicate.
* config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
        symbolic_operand as the predicate.

From-SVN: r47424
2001-11-28 10:36:14 -08:00
Richard Henderson
e6dc3aa0ee doloop.c (doloop_modify_runtime): Properly select induction variable...
* doloop.c (doloop_modify_runtime): Properly select induction
        variable; skip late entry test if biv initializer created by loop.

From-SVN: r47423
2001-11-28 10:09:26 -08:00
Rainer Orth
969ff1a019 Missed in last commit.
From-SVN: r47422
2001-11-28 17:34:54 +00:00
Richard Kenner
f724a9d2e2 tree.h (EXPR_WFL_LINECOL): Used by Java in node other than EXPR_WITH_FILE_LOCATION...
* tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
	EXPR_WITH_FILE_LOCATION, so change checks and documentation.

From-SVN: r47420
2001-11-28 11:55:59 -05:00
Richard Kenner
3e87ad4df7 * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
From-SVN: r47419
2001-11-28 09:37:58 -05:00
Richard Kenner
c46080ab33 tree.h: Add missing checks on some macros; make formatting more consistent.
* tree.h: Add missing checks on some macros; make formatting more
	consistent.

From-SVN: r47416
2001-11-28 07:33:03 -05:00
Richard Kenner
3874585e2e stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top level; only add to pending_sizes if find it.
* stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
	level; only add to pending_sizes if find it.

From-SVN: r47415
2001-11-28 07:21:07 -05:00
Richard Kenner
d6d709cdb5 Remove blank line.
From-SVN: r47414
2001-11-28 07:18:37 -05:00
Richard Kenner
f80230c1e8 * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
From-SVN: r47413
2001-11-28 07:13:50 -05:00
Richard Kenner
36221fc4ec df.c (iterate_dataflow_sbitmap, [...]): Add casts to remove warnings.
* df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
	Add casts to remove warnings.

From-SVN: r47412
2001-11-28 07:10:38 -05:00
Arnaud Charlet
04203c18ad Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
* Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
	(FLAGS_TO_PASS): Add STAGE_PREFIX.
	(SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
	to STAGE_PREFIX.

From-SVN: r47411
2001-11-28 07:01:20 -05:00
Richard Kenner
0c3a03cf65 Remove extra blank
From-SVN: r47410
2001-11-28 06:56:51 -05:00
Richard Kenner
033265badf * Makefile.in (OBJS): Sort alphabetically.
From-SVN: r47409
2001-11-28 06:55:41 -05:00
Richard Kenner
5e74f966b7 print-rtl.c (print_rtx): If RTX code is bad, just say so.
* print-rtl.c (print_rtx): If RTX code is bad, just say so.
	Also minor cleanups.

From-SVN: r47408
2001-11-28 06:52:21 -05:00
Jan Hubicka
d2c35e6748 Add missing hunk, due to reject I've missed in my previous commit.
From-SVN: r47407
2001-11-28 10:16:40 +00:00
Jan Hubicka
db4a825457 cse.c (true_dependence_in_rtx): New function.
* cse.c (true_dependence_in_rtx): New function.
	(invalidate): Use it.

	* c-common.h (GOTO_FAKE_P): New macro.
	* tree-inline.c (GOTO_FAKE_P): Set.
	* c-tree.texi (GOTO_FAKE_P): Document.

	* varasm.c (assemble_variable): Set reloc to 3 for error_mark
	containing pointers.
	(output_addressed_constants): Check for local/external relocations.
	* elfos.h (SELECT_SECTION): Classify data section.
	* tm.texi (SELECT_SECTION): Update documentation.

	* cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
	(flow_dfs_compute_reverse_execute): Add only unvisited blocks.

From-SVN: r47405
2001-11-28 09:47:25 +00:00
GCC Administrator
562d21e913 Daily bump.
From-SVN: r47403
2001-11-28 08:16:14 +00:00
Benjamin Kosnik
861768350b 2001-11-28 Benjamin Kosnik <bkoz@redhat.com>
Jakub Jelinek  <jakub@redhat.com>

	* config/locale/moneypunct_members_gnu.cc
	(moneypunct<wchar_t>::_M_initialize_moneypunct): Correctly cast
	for ia64, others.
	* config/locale/numpunct_members_gnu.cc
	(numpunct<wchar_t>::_M_initialize_numpunct): Same.

From-SVN: r47402
2001-11-28 07:40:12 +00:00
Benjamin Kosnik
074a8e74dd locale_facets.tcc: Formatting tweaks.
2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.tcc: Formatting tweaks.

	* testsuite/23_containers/map_operators.cc: Don't xfail.
	* testsuite/23_containers/set_operators.cc: Same.
	* testsuite/backward/header_iterator_h.cc: Pass in -Wno-deprecated.
	* testsuite/backward/header_deque_h.cc: Same.

From-SVN: r47401
2001-11-28 06:53:29 +00:00
Benjamin Kosnik
5fd0af8754 locale_facets.tcc: Formatting tweaks.
2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.tcc: Formatting tweaks.

	* testsuite/23_containers/map_operators.cc: Don't xfail.
	* testsuite/23_containers/set_operators.cc: Same.

From-SVN: r47400
2001-11-28 06:35:00 +00:00
Benjamin Kosnik
ec9d6e9f45 Numeric facets cleanup.
2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>

	Numeric facets cleanup.
	* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
	+ and - signs.
	(__num_base::_M_zero): Add
	(__num_base::_M_e): Add.
	(__num_base::_M_E): Add.
	* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
	(num_get::_M_extract_float): New.
	(num_get::_M_extract_int): New.
	* src/locale.cc (num_get::_M_extract): Remove.

	* include/bits/locale_facets.tcc (num_put::_M_insert_float):
	Simplify, use _M_insert.
	(num_put::do_put(bool)): Simplify, remove __pad.
	(__pad): Remove.
	(__pad_output): Change to __pad.
	* include/bits/ostream.tcc: And here.
	* src/locale-inst: Remove instantiations.

	* include/bits/locale_facets.h: Move helper functions in to class
	num_put.
	(num_put::_M_insert_float): Same, for __output_integer.
	(num_put::_M_insert_int): Same, for __output_float.
	(num_put::_M_insert): New.
	(__num_base): Add.
	(__num_base::_S_format_float): Move
	__build_float_format into class __num_base.
	(__num_base::_S_format_int): Move __build_int_format into class
	__num_base.
	* include/bits/locale_facets.tcc (__group_digits): Change to
	(__add_grouping): This.
	* src/locale-inst.cc: And here. Tweak instantiations.
	* src/misc-inst.cc: Remove instantiations.

	* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
	for new calling conventions, move to...
	* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
	signature to make it useful for both ostream and num_put.
	(__pad_numeric): Remove.
	* src/misc-inst.cc: Remove instantiations.
	* src/locale-inst.cc: Same.

	* include/bits/locale_facets.h (_Numeric_get): Remove.
 	(_Numeric_put): Remove.
	(num_get::get(short)): Remove.
	(num_get::get(int)): Remove.
	(num_get::do_get(short)): Remove.
	(num_get::do_get(int)): Remove.
	* include/bits/istream.tcc (istream::operator>>(short)): Fix as
	per DR 118.
	(istream::operator>>(int)): Same.

	* include/bits/locale_facets.h (_Format_cache): Remove.
	* include/bits/locale_facets.tcc: Same.
	* src/locale.cc: Same.
	* src/locale-inst.cc: Same.
	* include/bits/ostream.tcc: Same.
	* src/ios.cc (ios_base::imbue): Remove here as well.

	* testsuite/22_locale/num_get.cc: New file.
	* testsuite/22_locale/num_get_members_char.cc: New file.
	* testsuite/22_locale/num_get_members_wchar_t.cc: New.
	* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
	* testsuite/22_locale/num_put.cc: New file.
	* testsuite/22_locale/num_put_members_char.cc: New file.
	* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
	* testsuite/27_io/ostream_inserter_arith.cc: Fix.
	* testsuite/27_io/istream_extractor_arith.cc: Fix.

From-SVN: r47399
2001-11-28 06:29:55 +00:00
Loren J. Rittle
2883d58bf5 basic_string.tcc (basic_string::_Rep::_S_create): Enforce allocation size blocking policy to reduce fragmentation and enhance...
2001-11-27  Loren J. Rittle  <ljrittle@acm.org>
            Paolo Carlini  <pcarlini@unitus.it>

        * include/bits/basic_string.tcc (basic_string::_Rep::_S_create):
        Enforce allocation size blocking policy to reduce
        fragmentation and enhance performance with common malloc
        implementations.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>

From-SVN: r47398
2001-11-28 05:17:59 +00:00
Benjamin Kosnik
86ade44cb2 Numeric facets cleanup.
2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>

	Numeric facets cleanup.
	* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
	+ and - signs.
	(__num_base::_M_zero): Add
	(__num_base::_M_e): Add.
	(__num_base::_M_E): Add.
	* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
	(num_get::_M_extract_float): New.
	(num_get::_M_extract_int): New.
	* src/locale.cc (num_get::_M_extract): Remove.

	* include/bits/locale_facets.tcc (num_put::_M_insert_float):
	Simplify, use _M_insert.
	(num_put::do_put(bool)): Simplify, remove __pad.
	(__pad): Remove.
	(__pad_output): Change to __pad.
	* include/bits/ostream.tcc: And here.
	* src/locale-inst: Remove instantiations.

	* include/bits/locale_facets.h: Move helper functions in to class
	num_put.
	(num_put::_M_insert_float): Same, for __output_integer.
	(num_put::_M_insert_int): Same, for __output_float.
	(num_put::_M_insert): New.
	(__num_base): Add.
	(__num_base::_S_format_float): Move
	__build_float_format into class __num_base.
	(__num_base::_S_format_int): Move __build_int_format into class
	__num_base.
	* include/bits/locale_facets.tcc (__group_digits): Change to
	(__add_grouping): This.
	* src/locale-inst.cc: And here. Tweak instantiations.
	* src/misc-inst.cc: Remove instantiations.

	* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
	for new calling conventions, move to...
	* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
	signature to make it useful for both ostream and num_put.
	(__pad_numeric): Remove.
	* src/misc-inst.cc: Remove instantiations.
	* src/locale-inst.cc: Same.

	* include/bits/locale_facets.h (_Numeric_get): Remove.
 	(_Numeric_put): Remove.
	(num_get::get(short)): Remove.
	(num_get::get(int)): Remove.
	(num_get::do_get(short)): Remove.
	(num_get::do_get(int)): Remove.
	* include/bits/istream.tcc (istream::operator>>(short)): Fix as
	per DR 118.
	(istream::operator>>(int)): Same.

	* include/bits/locale_facets.h (_Format_cache): Remove.
	* include/bits/locale_facets.tcc: Same.
	* src/locale.cc: Same.
	* src/locale-inst.cc: Same.
	* include/bits/ostream.tcc: Same.
	* src/ios.cc (ios_base::imbue): Remove here as well.

	* testsuite/22_locale/num_get.cc: New file.
	* testsuite/22_locale/num_get_members_char.cc: New file.
	* testsuite/22_locale/num_get_members_wchar_t.cc: New.
	* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
	* testsuite/22_locale/num_put.cc: New file.
	* testsuite/22_locale/num_put_members_char.cc: New file.
	* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
	* testsuite/27_io/ostream_inserter_arith.cc: Fix.
	* testsuite/27_io/istream_extractor_arith.cc: Fix.

From-SVN: r47397
2001-11-28 04:07:11 +00:00
Kaveh R. Ghazi
59a64a46e0 defaults.h (UNALIGNED_SHORT_ASM_OP, [...]): Also provide defaults when we have OBJECT_FORMAT_ROSE.
* defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
	UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
	OBJECT_FORMAT_ROSE.

From-SVN: r47396
2001-11-28 02:39:21 +00:00
Hans-Peter Nilsson
3d5568369f cris.c: Tweak spacing for prototypes.
* config/cris/cris.c: Tweak spacing for prototypes.
	(LOSE_AND_RETURN): New macro.
	(cris_operand_lossage): New function.
	(cris_print_index, cris_print_base): Use cris_operand_lossage
	rather than fatal_insn.
	(cris_print_operand, cris_print_operand_address): Use
	LOSE_AND_RETURN rather than fatal_insn and internal_error.
	(cris_output_addr_const): Use LOSE_AND_RETURN and
	output_operand_lossage rather than fatal_insn and internal_error
	for valid but unexpected rtx expressions.

	* config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
	for a SUBREG in src or dest, abort instead.

From-SVN: r47395
2001-11-28 02:37:44 +00:00
Hans-Peter Nilsson
fd2aba001d * gcc.dg/20011127-1.c: New test.
From-SVN: r47394
2001-11-28 02:36:03 +00:00