Commit Graph

38917 Commits

Author SHA1 Message Date
Jason Merrill
649ce3f25a dwarf2out.c (add_data_member_location_attribute): Do the right thing for virtual bases.
* dwarf2out.c (add_data_member_location_attribute): Do the
        right thing for virtual bases.
        * dbxout.c (dbxout_type): For a virtual base, print the offset
        within the vtable.

From-SVN: r47469
2001-11-29 21:38:43 -05:00
Zoltan Hidvegi
c7c737361b doloop.c (doloop_valid_p): Check for LTU and GTU as well.
2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>

        * doloop.c (doloop_valid_p): Check for LTU and GTU as well.

From-SVN: r47468
2001-11-29 21:16:31 -05:00
Aldy Hernandez
20c29ebe49 rs6000.c (function_arg): Unnamed vector arguments go in memory.
* rs6000.c (function_arg): Unnamed vector arguments go in memory.
        Remove unused attribute for named.

From-SVN: r47466
2001-11-30 02:04:23 +00:00
Kaveh R. Ghazi
0d35f155c0 genattrtab.c (attr_rtx_1): New function containing the majority of `attr_rtx'.
* genattrtab.c (attr_rtx_1): New function containing the
	majority of `attr_rtx'.  Move variable declarations into the
	scope where they are used.  Eliminate unnecessary gotos.
	(attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
	VA_FIXEDARG, and VA_CLOSE.

From-SVN: r47465
2001-11-30 01:55:24 +00:00
Hans-Peter Nilsson
45b677bc9e * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix typo in comment.
From-SVN: r47464
2001-11-30 00:29:30 +00:00
Hans-Peter Nilsson
d3295e2542 cris.c (cris_notice_update_cc): Check first destination also against overlap with cc_status.value2 and second...
* config/cris/cris.c (cris_notice_update_cc): Check first
	destination also against overlap with cc_status.value2 and second
	destination against overlap with cc_status.value1.  For overlaps,
	clear overlapped value, don't just CC_STATUS_INIT.

	* config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
	(LINK_SPEC): Remove whitespace at end of line.

From-SVN: r47463
2001-11-30 00:17:49 +00:00
Jakub Jelinek
c65fd410e9 * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
From-SVN: r47461
2001-11-29 23:40:55 +01:00
Jakub Jelinek
b2ace8a47b gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG macros for the supported debugging types.
* gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
	macros for the supported debugging types.

From-SVN: r47460
2001-11-29 23:39:10 +01:00
Paolo Carlini
b334004616 locale_facets.tcc (__pad): Add bool parameter to correctly pad internal-adjusted const char*-type objects.
2001-11-29  Paolo Carlini  <pcarlini@unitus.it>

	libstdc++/3655
	* include/bits/locale_facets.tcc (__pad): Add bool parameter to
	correctly pad internal-adjusted const char*-type objects.
	* include/bits/locale_facts.tcc (num_put::_M_insert): Update call.
	* include/bits/ostream.tcc (operator<<(_CharT , char, const
	_CharT*, const char*, const basic_string&): Update calls.
	* src/locale-inst.tcc: Update declarations.
	* testsuite/27_io/ostream_inserter_arith.cc (test04): Add test.

From-SVN: r47459
2001-11-29 22:31:02 +00:00
Mark Mitchell
7d5b8b116e re PR c++/4842 (-Woverloaded-virtual does not work)
PR c++/4842
	* class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a
	FUNCTION_DECL, as input.
	(mark_overriders): Remove.
	(warn_hidden): Rework for the new ABI.

From-SVN: r47458
2001-11-29 22:01:58 +00:00
Mark Mitchell
45aff9968e 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: r47455
2001-11-29 21:44:57 +00:00
Craig Rodrigues
c1d5afc412 re PR other/4932 (the i386 backend crashes on incorrect asm("... %c0 ..."))
2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        PR other/4932
        * config/i386/i386.c (print_operand):  Verify that the
          argument to %c is a constant and not a conditional which
          needs to be reversed.

From-SVN: r47453
2001-11-29 21:39:41 +00:00
Phil Edwards
894c7af33d howto.html: Finish allocator notes (inst and 3.0).
2001-11-29  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/ext/howto.html:  Finish allocator notes (inst and 3.0).

From-SVN: r47452
2001-11-29 21:02:34 +00:00
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