Commit Graph

35831 Commits

Author SHA1 Message Date
Jan Hubicka c6036a3787 i386.c (x86_accumulate_outgoing_args, [...]): New global variables.
* i386.c (x86_accumulate_outgoing_args, x86_prologue_using_move,
	x86_epilogue_using_move): New global variables.
	(override_options): Enable ACCUMULATE_OUTGOING_ARGS if preferred.
	(ix86_emit_save_regs_using_mov): New static function.
	(ix86_expand_prologue, ix86_expand_epilogue): Use moves if preferred.
	* i386.h (MASK_MMX, MASK_SSE, MASK_SSE2, MASK_128BIT_LONG_DOUBLE,
	MASK_MIX_SSE_I387): Renumber.
	(MASK_NO_ACCUMULATE_OUTGOING_ARGS): New.
	(x86_accumulate_outgoing_args, x86_prologue_using_move,
	x86_epilogue_using_move): Declare.
	(TARGET_PROLOGUE_USING_MOVE, TARGET_EPILOGUE_USING_MOVE): New.

From-SVN: r43366
2001-06-14 10:45:38 +00:00
Nathan Sidwell 1de9b82250 configure.in (auxdir): Replace by ...
* configure.in (auxdir): Replace by ...
	(toprel): ... new variable.
	(toplevel_srcdir): Construct from $toprel.
	* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Use $toprel
	rather than .. to locate gcc source directory.
	(GLIBCPP_CONFIGURE): Replace $auxdir with $srcdir/$toprel.
	* aclocal.m4, configure: Rebuilt.

From-SVN: r43364
2001-06-14 08:45:38 +00:00
GCC Administrator 5ffffe20ca Daily bump.
From-SVN: r43362
2001-06-14 07:16:56 +00:00
John David Anglin 91bfd02dae globals.cc: Define globals _GLIBCPP_mutex_init ()...
* src/globals.cc: Define globals _GLIBCPP_mutex_init (),
	_GLIBCPP_mutex_address_init (), _GLIBCPP_once, _GLIBCPP_mutex
	and _GLIBCPP_mutex_address.
	* include/bits/stl_threads.h (_STL_mutex_lock): Use above to provide
	once-only runtime initialization of _M_lock mutex when
	__GTHREAD_MUTEX_INIT_FUNCTION is defined.
	(__STL_MUTEX_INITIALIZER): Provide initializer for _STL_mutex_lock
	for __GTHREAD_MUTEX_INIT_FUNCTION case.

From-SVN: r43360
2001-06-14 06:06:48 +00:00
John David Anglin 5ffd49b800 Blow away a duplicate definition of "pow()" for C++
From-SVN: r43358
2001-06-14 03:51:26 +00:00
Richard Henderson 037e3d1fb2 * ifcvt.c (dead_or_predicable): Fix return value last patch.
From-SVN: r43357
2001-06-13 17:40:44 -07:00
Gabriel Dos Reis 7c301abf46 slice_array_assignment.cc (main): New test.
* testsuite/26_numerics/slice_array_assignment.cc (main): New test.

        * include/bits/slice_array.h (slice_array<>::operator=): Make
        public and implement.
        (slice_array<>::slice_array): Make copy-constructor public.

        * include/bits/valarray_array.h (__valarray_copy): Add another
        overload to copy between strided arrays.

From-SVN: r43352
2001-06-13 22:16:24 +00:00
Franz Sirl 15a7ee9ff6 objc.exp (objc_target_compile): Add ${rootme} to ld_library_path variable.
2001-06-13  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * lib/objc.exp (objc_target_compile): Add ${rootme} to ld_library_path
        variable.

From-SVN: r43351
2001-06-13 21:56:12 +00:00
Toon Moene a821898dd2 inquire.c: Include "config.h".
2001-06-13  Toon Moene  <toon@moene.indiv.nluug.nl>

	* libI77/inquire.c: Include "config.h".

From-SVN: r43350
2001-06-13 21:06:15 +00:00
Joseph Myers d425a1e053 * README: Remove version number.
From-SVN: r43346
2001-06-13 19:48:09 +01:00
Mark Mitchell e065a36eb3 * NEWS: Update release number.
From-SVN: r43344
2001-06-13 18:38:01 +00:00
Mark Mitchell acabb59616 * gennews: Set TERM to vt100 for Lynx.
From-SVN: r43343
2001-06-13 18:37:16 +00:00
Mark Mitchell e373113c97 * NEWS: Remove.
From-SVN: r43342
2001-06-13 18:35:53 +00:00
Mark Mitchell e79d321bbe * NEWS: Remove.
From-SVN: r43341
2001-06-13 18:30:39 +00:00
Mark Mitchell 7e18e1275b BUGS: Remove.
* BUGS: Remove.
	* NEWS: Likewise.

From-SVN: r43340
2001-06-13 18:29:38 +00:00
Richard Henderson b1b0700d9f ifcvt.c (cond_exec_get_condition): Use reversed_comparison_code.
* ifcvt.c (cond_exec_get_condition): Use reversed_comparison_code.
        (cond_exec_process_if_block, dead_or_predicable): Likewise.

From-SVN: r43336
2001-06-13 11:16:31 -07:00
Rainer Orth 984d2cb83b mips-tfile.c (copy_object): Always pass indexNil for symbol table index.
* mips-tfile.c (copy_object): Always pass indexNil for symbol
	table index.

From-SVN: r43334
2001-06-13 18:07:34 +00:00
Benjamin Kosnik dd48b185dc acinclude.m4 (GLIBCPP_CONFIGURE): Bump version to 3.0.0.
2001-06-13  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_CONFIGURE): Bump version to 3.0.0.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* include/bits/c++config (__GLIBCPP__): Update date.

From-SVN: r43332
2001-06-13 17:51:38 +00:00
Per Bothner 3b1ba991df Added John Gilmore.
From-SVN: r43330
2001-06-13 10:44:40 -07:00
Kazu Hirata a60e88ea18 h8300.h (OK_FOR_T): Remove.
2001-06-13  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.h (OK_FOR_T): Remove.
	(EXTRA_CONSTRAINT): Do not use OK_FOR_T.
	* config/h8300/h8300.md: Remove alternatives involving inc and dec
	in the helper patterns for addhi3 and addsi3.

From-SVN: r43329
2001-06-13 17:41:19 +00:00
Tom Tromey 2ee7cd3e81 aclocal.m4, configure: Rebuilt.
* aclocal.m4, configure: Rebuilt.
	* acinclude.m4: Find configure.host in srcdir.

From-SVN: r43325
2001-06-13 16:48:29 +00:00
Tom Tromey c3b488478b aclocal.m4, configure: Rebuilt.
* aclocal.m4, configure: Rebuilt.
	* acinclude.m4: Find configure.host in srcdir.

From-SVN: r43324
2001-06-13 16:38:39 +00:00
Gerald Pfeifer 9f29389307 * release: Remove.
From-SVN: r43322
2001-06-13 16:27:29 +00:00
Phil Edwards 89c0830cba contrib.texi: Link to libstdc++'s thanks.html for now.
2001-06-13  Phil Edwards  <pme@sources.redhat.com>

	* doc/contrib.texi:  Link to libstdc++'s thanks.html for now.

From-SVN: r43319
2001-06-13 15:15:24 +00:00
Gerald Pfeifer 5b5b420750 README: Update wrt.
* INSTALL/README: Update wrt. to the installation instructions now
	residing in gcc/doc/install.texi.

From-SVN: r43318
2001-06-13 14:51:33 +00:00
Zack Weinberg 72aad6e65d Makefile.in: Move _bb and __gcc_bcmp to LIB2FUNCS_ST.
* Makefile.in: Move _bb and __gcc_bcmp to LIB2FUNCS_ST.
	* libgcc-std.ver: Take out __bb* and __gcc_bcmp.

	* config/t-slibgcc-elf-ver, config/t-slibgcc-sld,
	config/alpha/t-osf4, config/mips/t-iris6: Extract all
	references to @shlib_map_file@, @shlib_objs@, or
	@shlib_base_name@ to Makefile variables.
	Bump soname version of libgcc to 1.

From-SVN: r43316
2001-06-13 14:26:03 +00:00
Joseph Myers 6cfb3f16f1 install.texi: Use more logical markup.
* doc/install.texi: Use more logical markup.  Include @node
	commands in the source when generating any non-HTML.

From-SVN: r43314
2001-06-13 14:07:28 +01:00
Joseph Myers be839b69fd README: Replace with a cut-down and updated version of gcc/README.
* README: Replace with a cut-down and updated version of gcc/README.

gcc:
	* README: Remove.  Some of the contents moved to ../README.

From-SVN: r43312
2001-06-13 08:55:27 +01:00
GCC Administrator 01fe4f7259 Daily bump.
From-SVN: r43311
2001-06-13 07:18:21 +00:00
Alexandre Oliva 0cb98517cb install.texi (--enable-shared): List package names recognized by GCC.
* doc/install.texi (--enable-shared): List package names
recognized by GCC.

From-SVN: r43308
2001-06-13 07:11:59 +00:00
Jeff Law 63f39cc982 Add various folks.
From-SVN: r43305
2001-06-12 22:16:45 -06:00
Alexandre Oliva 0e96b2039c install.texi (ix86-*-solaris*): Removed, outdated.
* doc/install.texi (ix86-*-solaris*): Removed, outdated.
(*-*-solaris*): Document problem in /bin/sh that affects
configuring libraries.
(sparc-*-solaris*): Recommend GNU binutils 2.11.1 or vendor tools.
(*-sun-solaris2.8): Document linker problem that explains why
libjava is disabled by default.

From-SVN: r43303
2001-06-13 03:38:52 +00:00
Mark Mitchell 6c7905cd83 Revert this patch:
* toplev.c (rest_of_compilation): Remove dead code before
	purge_addressof.

From-SVN: r43301
2001-06-13 03:21:48 +00:00
Alexandre Oliva cb65112ade revert: configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support.
Reverted:
2001-06-07  Nathan Sidwell  <nathan@codesourcery.com>
* configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support.
* configure: Rebuilt.

From-SVN: r43300
2001-06-13 03:10:44 +00:00
Jim Wilson 97ebd24c89 Fix for PR 3128, IA-64 linux kernel miscompile
Fix for PR 3128, IA-64 linux kernel miscompile
	* loop.c (strength_reduce): Move bl->all_reduced set before
	check_ext_dependant_givs call.
	(check_ext_dependant_givs): Clear bl->all_reduced when ignoring givs.

From-SVN: r43298
2001-06-12 19:48:45 -07:00
David Edelsohn fe2ee7c4a7 config-ml.in (powerpc-*-* | rs6000-*-*): Allow aix64 and pthread multilibs to be disabled.
* config-ml.in (powerpc-*-* | rs6000-*-*): Allow aix64 and pthread
        multilibs to be disabled.

From-SVN: r43294
2001-06-12 22:12:07 -04:00
Alexandre Oliva b93e38937e extend.texi (Function Attributes): Document SH's sp_switch and trap_exit.
* doc/extend.texi (Function Attributes): Document SH's sp_switch
and trap_exit.

From-SVN: r43293
2001-06-13 02:09:18 +00:00
Benjamin Kosnik 9aaa9ee026 fpos.h (fpos::operator-): Don't return reference, return original, non-modified version.
2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/fpos.h (fpos::operator-): Don't return reference,
	return original, non-modified version.
	(fpos::operator+): Same.
	* testsuite/27_io/fpos.cc: Add test.

[[Split portion of a mixed commit.]]

From-SVN: r43290.2
2001-06-13 01:50:27 +00:00
Benjamin Kosnik 7f3e3e0a22 fpos.h (fpos::operator-): Don't return reference, return original, non-modified version.
2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/fpos.h (fpos::operator-): Don't return reference,
	return original, non-modified version.
	(fpos::operator+): Same.

From-SVN: r43287
2001-06-13 01:14:42 +00:00
Joseph Myers 695ac33fac invoke.texi: Use more logical markup.
* doc/invoke.texi: Use more logical markup.  Use TeX quotes,
	dashes and @dots{}.

From-SVN: r43286
2001-06-13 02:12:19 +01:00
Richard Henderson f2042df38f i386.c (ix86_expand_prologue): Always use gen_pro_epilogue_adjust_stack; update arguments.
* config/i386/i386.c (ix86_expand_prologue): Always use
        gen_pro_epilogue_adjust_stack; update arguments.
        (ix86_expand_epilogue): Likewise.
        (ix86_emit_epilogue_esp_adjustment): Remove.
        (ix86_adjust_cost): Remove pro_epilogue_adjust_stack hack.
        * config/i386/i386.md (pro_epilogue_adjust_stack): Use a BLKmode
        clobber of scratch memory instead of a modification of EBP as the
        barrier.  Update all peepholes to match.

From-SVN: r43284
2001-06-12 17:54:41 -07:00
Richard Henderson 757e4f2317 * g++.old-deja/g++.other/crash27.C: Don't XFAIL.
From-SVN: r43282
2001-06-12 17:43:18 -07:00
Loren J. Rittle ddf1e65262 porting.texi: Add documentation about libstdc++-v3-specific macros that are currently...
libstdc++/2071
	* porting.texi: Add documentation about libstdc++-v3-specific
	macros that are currently included in os_defines.h files.

	* config/basic_file_stdio.h (sys_getc): New method.
	(sys_ungetc): New method.
	* include/bits/basic_file.h: (sys_getc): New method signature.
	(sys_ungetc): New method signature.

	* include/bits/fstream.tcc (underflow): Add conditional code
	paths which avoid using short seeks on streams (especially
	useful when the stream might be interactive or a pipe).  At
	the moment, this alternate path only avoids seeking when the
	``buffer size'' of underflow() is 1 since the C standard only
	guarantees buffer space for one ungetc (this technique could
	be extended since *-*-solaris* supports buffering for 4 calls
	to ungetc and *-*-*bsd* supports buffering limited only by
	memory resources).  Also, _GLIBCPP_AVOID_FSEEK must be defined
	in a port's os_defines.h file for this alternate path to even
	be considered.  As a bonus, the idiom of using getc/ungetc
	requires no system calls whereas fseek maps to one or two
	system call(s) on many platforms.

	* config/os/bsd/freebsd/bits/os_defines.h (_GLIBCPP_AVOID_FSEEK):
	Define it.
	* config/os/solaris/solaris2.5/bits/os_defines.h
	(_GLIBCPP_AVOID_FSEEK): Likewise.
	* config/os/solaris/solaris2.6/bits/os_defines.h
	(_GLIBCPP_AVOID_FSEEK): Likewise.
	* config/os/solaris/solaris2.7/bits/os_defines.h
	(_GLIBCPP_AVOID_FSEEK): Likewise.

From-SVN: r43278
2001-06-12 23:09:09 +00:00
Benjamin Kosnik 1d855e87fd std_sstream.h: Add allocator_type, as per DR 251.
2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3142
	* include/bits/std_sstream.h: Add allocator_type, as per DR 251.

	libstdc++/3141
	* include/bits/istream.tcc (getline, get): Fix as per DR 243.

	libstdc++/3140
	* include/bits/std_bitset.h (bitset::set): Fix as per DR 186.

	libstdc++/3139
	* include/bits/limits_generic.h: Fix as per DR 184.

From-SVN: r43276
2001-06-12 23:00:39 +00:00
Joseph Myers 84330467cd gcc.texi: Change the font used for @def...
* doc/gcc.texi: Change the font used for @def... commands to a
	fixed width font.
	* doc/extend.texi: Use more logical markup.  Use "built-in"
	instead of "builtin".  Use @deftypefn to mark up built-in
	functions; specify their types in the @deftypefn and not in the
	descriptive text.  Use TeX quotes and dashes.  Add more index
	entries.

From-SVN: r43274
2001-06-12 23:40:00 +01:00
Benjamin Kosnik 30f69f71d8 std_sstream.h: Add allocator_type, as per DR 251.
2001-06-12  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3142
	* include/bits/std_sstream.h: Add allocator_type, as per DR 251.

	libstdc++/3141
	* include/bits/istream.tcc (getline, get): Fix as per DR 243.

	libstdc++/3140
	* include/bits/std_bitset.h (bitset::set): Fix as per DR 186.

	libstdc++/3139
	* include/bits/limits_generic.h: Fix as per DR 184.

From-SVN: r43273
2001-06-12 22:14:08 +00:00
Lars Brinkhoff 3a08e428d3 gcc.texi (HOST_BITS_PER_LONGLONG): Document.
* gcc.texi (HOST_BITS_PER_LONGLONG): Document.
	(DIR_SEPARATOR_2): Likewise.

From-SVN: r43272
2001-06-12 19:47:44 +00:00
Joseph Myers ab130aa59f install.texi (--exec-prefix, [...]): Document.
* doc/install.texi (--exec-prefix, --bindir, --libdir,
	--with-slibdir, --infodir, --mandir, --with-cpp-install-dir):
	Document.
	(--enable-cpp): Change to document --disable-cpp instead; update
	to reflect current default.
	(--without-fast-fixincludes): Remove documentation.
	(Final install): Document installation directories in more
	detail.  Document use of make dvi.

From-SVN: r43270
2001-06-12 20:36:53 +01:00
Andrew Haley be72207cd2 osf.S (__FRAME_BEGIN__): Conditionalize for ELF.
2001-06-06  Andrew Haley  <aph@redhat.com>

        * src/alpha/osf.S (__FRAME_BEGIN__): Conditionalize for ELF.

From-SVN: r43268
2001-06-12 19:14:04 +00:00
Nathan Sidwell 623fe76a4c PR c++/3130, c++/3131, c++/3132
cp:
	PR c++/3130, c++/3131, c++/3132
	* cp-tree.h (BINFO_UNSHARED_MARKED): New #define.
	* class.c (force_canonical_binfo_r): Move
	BINFO_UNSHARED_MARKED, BINFO_LOST_PRIMARY_P. Don't move
	virtual bases unless they're primary and what they're primary
	too has been moved.
	(dfs_unshared_virtual_bases): Use BINFO_UNSHARED_MARKED. Cope
	with morally virtual bases. Duplicate BINFO_LOST_PRIMARY_P and
	BINFO_PRIMARY_BASE_OF. Clear BINFO_VTABLE for all but the most
	derived binfo.
	(mark_primary_bases): Use BINFO_UNSHARED_MARKED.
	(layout_nonempty_base_or_field): Add most derived type
	parameter. Adjust.
	(layout_empty_base): Likewise.
	(build_base_field): Likewise.
	(build_base_fields): Likewise.
	(propagate_binfo_offsets): Add most derived type
	parameter. Skip non canonical virtual bases too.
	(dfs_set_offset_for_unshared_vbases): Don't skip primary
	bases. Do skip canonical bases.
	(layout_virtual_bases): Adjust.
	(layout_class_type): Adjust.
	(dfs_get_primary_binfo): Build list of virtual primary base
	candidates.
	(get_primary_binfo): Check that the shared virtual primary
	base candidate was found first.
	(accumulate_vtbl_inits): Don't do anything for non-vptr
	containing binfos. For case 1 primary virtual bases, keep
	checking that we've not emerged from the hierarchy of RTTI_BINFO.
testsuite:
	* g++.old-deja/g++.abi/vbase5.C: New test.
	* g++.old-deja/g++.abi/vbase6.C: New test.
	* g++.old-deja/g++.abi/vbase7.C: New test.

From-SVN: r43266
2001-06-12 18:08:05 +00:00