Commit Graph

39027 Commits

Author SHA1 Message Date
Jeffrey A Law c36b1123ae gthr-dce.h: If _DCE_THREADS is not defined, then just include gthr-single.
* gthr-dce.h: If _DCE_THREADS is not defined, then just include
        gthr-single.

From-SVN: r47490
2001-11-30 12:47:11 -07:00
Jason Merrill 1d3d6b1e6d dwarf2out.c (is_cxx): New fn.
* dwarf2out.c (is_cxx): New fn.
        (add_data_member_location_attribute): Check it.
        * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.

From-SVN: r47483
2001-11-30 09:00:25 -05:00
Richard Kenner 3248917b3e * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
From-SVN: r47482
2001-11-30 08:34:12 -05:00
Bryce McKinlay a7c5337dce * class.c (add_interface_do): Set BINFO_VPTR_FIELD.
From-SVN: r47480
2001-11-30 09:55:06 +00:00
GCC Administrator 806b8c3c98 Daily bump.
From-SVN: r47479
2001-11-30 08:16:49 +00:00
Daniel Berlin 7d9e680fbe genopinit.c (gen_insn): Handle MODE_VECTOR_INT and MODE_VECTOR_FLOAT as allowed.
2001-11-30  Daniel Berlin  <dan@cgsoftware.com>

	* genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
	MODE_VECTOR_FLOAT as allowed.

From-SVN: r47476
2001-11-30 05:13:17 +00:00
Zack Weinberg 06f0b04cab Purge cruft now we have build libiberty.
* Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
	HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
	USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
	USE_HOST_STRSTR): Delete variables.
	(vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
	hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
	$(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
	$(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
	(LIBIBERTY, BUILD_LIBIBERTY): New variables.
	(LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
	(LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
	(HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
	(HOST_LIBS): Ditto.
	(HOST_RTL): Remove hashtab.o safe-ctype.o.
	(OBJS): Remove splay-tree.o.
	(gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
	(distclean): No need to delete splay-tree.c obstack.c
	hashtab.c safe-ctype.c.
	(mostlyclean): Delete build copies of print-rtl.c bitmap.c
	errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
	* aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
	Delete.
	* configure.in: Don't use them.
	Set and substitute @FORBUILD@.
	* config.in, configure: Regenerate.
	* doprint.c: Move to libiberty/_doprnt.c.
	* doc/configterms.texi: Document that libiberty is now built
	up to three times.  Fix typo.
	* f/Make-lang.in (f/fini, f/intdoc): Depend on $(HOST_LIBDEPS)
	and link with $(HOST_LIBS), not safe-ctype.o.

From-SVN: r47475
2001-11-30 04:43:05 +00:00
Mark Mitchell 998979e6dc re PR c++/3048 (Lookup problem (gcc 2.95 regression))
2001-11-29  Mark Mitchell  <mark@codesourcery.com>

	PR c++/3048
	* cp-tree.h (ovl_member): Remove.
	* decl2.c (merge_functions): Handle extern "C" functions
	specially.
	* tree.c (ovl_member): Remove.

From-SVN: r47474
2001-11-30 03:14:56 +00:00
Bryce McKinlay fc6e87b33f Remove ">>>"
From-SVN: r47472
2001-11-30 03:05:09 +00:00
Bryce McKinlay 9dd668d2fc Makefile.am (nat_headers, [...]): Depend on .class files, not libgcj.jar.
* Makefile.am (nat_headers, x_nat_headers): Depend on .class files, not
	libgcj.jar.
	(nat_files, x_nat_files): Build native files in subdirectories using
	the same dependency options as the java files.
	(gnu/gcj/runtime/FirstThread.h): Remove explicit rule and friend
	declarations.
	* configure.in: Put dependencies for .cc files in deps.mak.
	* Makefile.in: Rebuilt.
	* configure: Rebuilt.

From-SVN: r47471
2001-11-30 03:04:01 +00:00
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