Commit Graph

38937 Commits

Author SHA1 Message Date
Benjamin Kosnik
af46cdde20 exception (bad_exception::~bad_exception()): Remove declaration.
2001-11-30  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3150
	DR/266
	* libsupc++/exception (bad_exception::~bad_exception()): Remove
	declaration.
	* libsupc++/new (bad_alloc::~bad_alloc()): Remove.
	* libsupc++/typeinfo (bad_cast::~bad_cast()): Remove.
	(bad_typeid::~bad_typeid()): Remove.
	* libsupc++/tinfo.cc (bad_cast::~bad_cast()): Remove definition.
	(bad_typeid::~bad_typeid()): Same.
	* libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
	* libsupc++/eh_exception.cc (bad_exception::~bad_exception()): Same.

	* include/bits/std_iomanip.h: Tweak.

From-SVN: r47505
2001-12-01 04:56:03 +00:00
John David Anglin
6b5ffd4e3e * pa.c (output_ascii): Cast `p' to unsigned char.
From-SVN: r47504
2001-12-01 02:19:02 +00:00
Graham Stott
58d07d8f3e Makefile.in (misc.o): Add missing $(srcdir) prefix and add optabs.h dependency.
2001-12-01  Graham Stott  <grahams@redhat.com>

	* Makefile.in (misc.o): Add missing $(srcdir) prefix
	and add optabs.h dependency.

	* misc.c: Include optabs.h
	(gnat_tree_code_type): Make static and const.
	(gnat_tree_code_length): Likewise.
	(gnat_tree_code_name): Likewise.
	(update_setjmp_buf): Obtain operands mode from insn_data.

From-SVN: r47503
2001-12-01 02:11:25 +00:00
Daniel Berlin
f18c054f03 rs6000.c (altivec_expand_builtin): add ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf...
2001-11-30  Daniel Berlin  <dan@cgsoftware.com>

	* config/rs6000/rs6000.c (altivec_expand_builtin): add
	ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
	*_16qi,_8hi, rename existing V4SI ones to *_4si.
	(altivec_init_builtins): Ditto.
	(bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.

	* config/rs6000/rs6000.md: Add attribute types vecsimple,
	veccomplex, vecfloat, and vecperm, for altivec instructions.
	Modify altivec patterns to use approriate attribute type.
	Modify altivec patterns to match RTL operations where approriate
	(IE no unspec where we can avoid it).
	Add vector unit scheduling for ppc7450.
	Rename patterns to what they are where approriate
	(altivec_vaddfp->addv4sf3, etc)

	* config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
	Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.

	* config/rs6000/sysv4.h: Add -mcpu=7450.

	* testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
	_builtin_altivec_ld_interal function.

From-SVN: r47502
2001-12-01 01:59:02 +00:00
Kaveh R. Ghazi
6af8c74091 configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen, strchr, strrchr, isascii, gettimeofday.
* configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
	strchr, strrchr, isascii, gettimeofday.
	* config.in, configure: Regenerate.

f:
	* Make-lang.in: Delete references to proj.[co], proj-h.[co].
	* proj.c: Delete file.

From-SVN: r47501
2001-12-01 01:57:31 +00:00
Zoltan Hidvegi
d2384b42b7 * unroll.c (unroll_loop): Correct special exit cases.
From-SVN: r47499
2001-11-30 18:27:52 -05:00
Stephane Carrez
38875aba47 sparc.c (DF_MODES_NO_S): Fix pr/3623, define to accept DFmode and DImode only.
* config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
	accept DFmode and DImode only.

From-SVN: r47497
2001-11-30 23:47:54 +01:00
Aldy Hernandez
7b094d6e80 rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
2001-11-30  Aldy Hernandez  <aldyh@redhat.com>

	* rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
        (STACK_DYNAMIC_OFFSET): Same.

From-SVN: r47495
2001-11-30 22:22:24 +00:00
Richard Henderson
dd6bdc62bf * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
From-SVN: r47494
2001-11-30 13:53:44 -08:00
Aldy Hernandez
289e96b247 rs6000.h (CALL_REALLY_USED_REGISTERS): New.
2001-11-30  Aldy Hernandez  <aldyh@redhat.com>

        * rs6000.h (CALL_REALLY_USED_REGISTERS): New.
        (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
        the values in call_used_registers.

From-SVN: r47493
2001-11-30 21:21:32 +00:00
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