Commit Graph

35745 Commits

Author SHA1 Message Date
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
Jan Hubicka
205a5b4550 damn me,
now it must be correct.

From-SVN: r43264
2001-06-12 17:54:39 +00:00
Jan Hubicka
963943b0ee * recog.c (validate_replace_rtx_1): Fix previous patch.
From-SVN: r43263
2001-06-12 17:06:18 +00:00
Jan Hubicka
5fecb52868 * recog.c (validate_replace_rtx_1): Do plus_constant call always.
From-SVN: r43262
2001-06-12 15:26:49 +00:00
Jan Hubicka
04864a4677 simplify-rtx.c (simplify_subreg): Allow volatile memory to be subregged in case we don't have move instruction.
* simplify-rtx.c (simplify_subreg): Allow volatile memory
	to be subregged in case we don't have move instruction.

From-SVN: r43261
2001-06-12 15:25:16 +00:00
Kaveh R. Ghazi
2c1a24210c c-decl.c (grokdeclarator): Use INTEGRAL_TYPE_P.
* c-decl.c (grokdeclarator): Use INTEGRAL_TYPE_P.

	* c-typeck.c (c_start_case): Likewise.

testsuite:
	* gcc.c-torture/compile/20010610-1.c: New test.

From-SVN: r43257
2001-06-12 12:15:46 +00:00
Mark Mitchell
0ea834c115 expr.c (store_field): Don't set MEM_ALIAS_SET for a field in a structure at a variable address.
* expr.c (store_field): Don't set MEM_ALIAS_SET for a field
	in a structure at a variable address.

From-SVN: r43256
2001-06-12 11:17:09 +00:00
Joseph Myers
c50174e729 * doc/gcov.texi: Use more logical markup.
From-SVN: r43253
2001-06-12 12:00:29 +01:00
Jan Hubicka
17d6c819b2 * analyze_brprob: New file.
From-SVN: r43252
2001-06-12 10:39:42 +00:00
Jan Hubicka
aa18f20e74 loop.c: Include predict.h
* loop.c: Include predict.h
	(strength_reduce): Drop branch prediction note in case
	number of iterations is known.
	* predict.def (PRED_LOOP_ITERATIONS): new.
	* Makefile.in (loop.o): Add dependancy on predict.h

From-SVN: r43251
2001-06-12 10:22:22 +00:00
Nathan Sidwell
7bdcf888aa re PR c++/3089 (ICE in dfs_accumulate_vtbl_inits)
cp:
	PR c++/3089
	* class.c (dfs_accumulate_vtbl_inits): Always walk down the
	hierarchy looking for primary bases for a ctor
	vtable. Recursively call oneself, if we meet our primary via
	this route and haven't met it yet via inheritance graph order.
testsuite:
	* g++.old-deja/g++.abi/vbase4.C: New test.

From-SVN: r43248
2001-06-12 08:47:48 +00:00
GCC Administrator
5a2dd36ccd Daily bump.
From-SVN: r43246
2001-06-12 07:16:10 +00:00
Loren J. Rittle
a4c03da24b Add GNATS ID.
From-SVN: r43244
2001-06-12 05:08:23 +00:00
Loren J. Rittle
473c2d0bcb strerror.c (sys_nerr): Hide the OS header version.
* strerror.c (sys_nerr): Hide the OS header version.
	* strsignal.c (sys_nsig): Likewise.

From-SVN: r43242
2001-06-12 05:04:42 +00:00
Mark Mitchell
b59a386b2e unroll.c (initial_reg_note_copy): Use PUT_REG_NOTE_KIND and REG_NOTE_KIND, not PUT_MODE and GET_MODE.
* unroll.c (initial_reg_note_copy): Use PUT_REG_NOTE_KIND and
	REG_NOTE_KIND, not PUT_MODE and GET_MODE.
	(final_reg_note_copy): Remove REG_WAS_0 notes that are no longer
	valid.

From-SVN: r43241
2001-06-12 04:42:46 +00:00
Benjamin Kosnik
3b0fd4bcdb basic_string.h (string::compare): Adjust signatures as per DR 5.
2001-06-11  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3126
	* include/bits/basic_string.h (string::compare): Adjust signatures
	as per DR 5.
	* include/bits/basic_string.tcc: And here.

	libstdc++/2346
	* config/c_io_stdio.h: Remove whitespace.
	* testsuite/27_io/istream_seeks.cc (test03): Add regression.
	(test02): Add regression.
	* testsuite/27_io/istream_seeks-3.tst: New file.

From-SVN: r43240
2001-06-12 02:30:37 +00:00
Stan Shebs
9dffe3b49e * darwin.h (ASM_FILE_END): Remove decl of language_string.
From-SVN: r43238
2001-06-12 00:27:31 +00:00
Zack Weinberg
6137abd318 POTFILES.in: Comment out config/float-*.
* POTFILES.in: Comment out config/float-*.
	No need to regenerate gcc.pot.

From-SVN: r43237
2001-06-11 23:00:39 +00:00
Stephane Carrez
b05d820141 920501-8.x: New file, sprintf() does not support %f for HC11/HC12 targets.
* gcc.c-torture/execute/920501-8.x: New file, sprintf() does not
	support %f for HC11/HC12 targets.
	* gcc.c-torture/execute/930513-1.x: New file, likewise.
	* gcc.c-torture/execute/980709-1.x: New file, pow() is not available
	on HC11/HC12 targets.
	* gcc.c-torture/execute/990826-0.x: New file, likewise for floor().

From-SVN: r43233
2001-06-12 00:26:58 +02:00
Stephane Carrez
c6af4c2e6c m68hc11.md ("*lshrdi3_const32"): Mark the clobber as an early clobber to make sure it is not used by reload in...
* config/m68hc11/m68hc11.md ("*lshrdi3_const32"): Mark the clobber
	as an early clobber to make sure it is not used by reload in
	one of the operands.

From-SVN: r43231
2001-06-12 00:11:02 +02:00
Zack Weinberg
e8c443781f gcc.pot: Regenerate, again.
* gcc.pot: Regenerate, again.  You go away for five minutes
	and someone tweaks the messages on you.
	* cat-id-tbl.c: Regenerate this too.

From-SVN: r43230
2001-06-11 22:05:04 +00:00
Zack Weinberg
9e62008227 Makefile.in.in: Take --defines switch off of xgettext command line.
* Makefile.in.in: Take --defines switch off of xgettext
	command line.
	* POTFILES.in: Massive update, removing all dead files and
	adding approximately 300 files which had been left out.
	Clarify comments on what should and should not appear here.

	* gcc.pot: Regenerate.

From-SVN: r43228
2001-06-11 21:50:54 +00:00
Daniel Berlin
4f5d646cce MAINTAINERS (Write After Approval): Add myself.
2001-06-11  Daniel Berlin  <dan@cgsoftware.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r43227
2001-06-11 21:49:05 +00:00
Mark Mitchell
25b5b4657b c-tree.texi: Update information about flag_honor_std.
* doc/c-tree.texi: Update information about flag_honor_std.
	* doc/install.texi: Note that binutils is required on HPUX 11.
	* doc/invoke.texi (-fhonor-std): Note that -fno-honor-std is
	now the default.

	* config/mips/abi64.h (RETURN_IN_MEMORY): Fix handling of
	variable-sized types.

	* lang-options.h: Emit documentation for -fno-honor-std, not
	-fhonor-std.

From-SVN: r43226
2001-06-11 21:29:39 +00:00
Loren J. Rittle
c94cfc8b23 Add bug ID.
From-SVN: r43223
2001-06-11 21:18:44 +00:00
Mark Mitchell
72e0bae59f gcc_build: Output information about the commands used to configure the compiler.
* gcc_build: Output information about the commands used to
	configure the compiler.

From-SVN: r43222
2001-06-11 21:13:36 +00:00
Joseph Myers
d7d9c429a5 * doc/md.texi: Use TeX dashes and quotes.
From-SVN: r43219
2001-06-11 21:52:30 +01:00
Joseph Myers
49a4e827eb * doc/rtl.texi: Reference manual chapter about trees.
From-SVN: r43217
2001-06-11 21:47:35 +01:00
Rainer Orth
55f61a5602 iris6.h (NO_BUILTIN_WINT_TYPE): Define.
* config/mips/iris6.h (NO_BUILTIN_WINT_TYPE): Define.
	(WINT_TYPE): Override.
	(WINT_TYPE_SIZE): Likewise.
	(SUBTARGET_CPP_SIZE_SPEC): Define __WINT_TYPE__ as appropriate.

	* config/sparc/sol2.h (WINT_TYPE): Define.
	(WINT_TYPE_SIZE): Likewise.

	* config/sparc/sol2-sld-64.h (NO_BUILTIN_WINT_TYPE): Define.
	(WINT_TYPE): Override.
	(WINT_TYPE_SIZE): Likewise.
	(CPP_ARCH32_SPEC): Add __WINT_TYPE__ definition.
	(CPP_ARCH64_SPEC): Likewise.

	testsuite:
	* gcc.dg/wchar_t-1.c: New file.
	* gcc.dg/wint_t-1.c: Likewise.

From-SVN: r43216
2001-06-11 20:36:56 +00:00
Richard Henderson
8ac9057145 unwind-dw2-fde.c (__deregister_frame_info): Don't play games with alias attribute.
* unwind-dw2-fde.c (__deregister_frame_info): Don't play games
        with alias attribute.

From-SVN: r43214
2001-06-11 13:15:44 -07:00
Richard Henderson
eb2d0fd5f2 Fix typo in comment.
From-SVN: r43211
2001-06-11 12:51:59 -07:00
Richard Henderson
281e78ae1c linux.h (CPLUSPLUS_CPP_SPEC): Use %(cpp) not $(cpp_cpu).
* config/linux.h (CPLUSPLUS_CPP_SPEC): Use %(cpp) not $(cpp_cpu).
        * config/alpha/linux.h (CPLUSPLUS_CPP_SPEC): Likewise.

From-SVN: r43210
2001-06-11 12:51:02 -07:00
Franz Sirl
437558e818 linux.h (CPLUSPLUS_CPP_SPEC): New.
2001-06-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): New.

From-SVN: r43207
2001-06-11 19:39:06 +00:00
Phil Edwards
52b55e7ddc README: Update to reflect reality.
2001-06-11  Phil Edwards  <pme@sources.redhat.com>

	* README:  Update to reflect reality.
	* acinclude.m4:  Update descriptions, fix typos.  Comment changes only.
	* configure.in:  Make certain target_alias is set and subst'd for 2.50.
	* aclocal.m4:  Regenerate.
	* configure:  Regenerate (with 2.13).

From-SVN: r43203
2001-06-11 19:35:32 +00:00
Bernd Schmidt
07732516da Remove Stepanov test
From-SVN: r43202
2001-06-11 19:28:51 +00:00
Benjamin Kosnik
d52a984783 ostream.tcc (ostream::seekp): Add error checking as per DR 129.
2001-06-11  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3114
	* include/bits/ostream.tcc (ostream::seekp): Add error checking as
	per DR 129.
	* include/bits/istream.tcc (istream::seekg): Same.
	* testsuite/27_io/istream_seeks.cc: Fix.

	libstdc++/3113
	* include/bits/stl_function.h (binder2nd): Fix as per DR 109.
	(binder1st): Same.
	* include/bits/std_queue.h: Add c++config.h.
	* testsuite/20_util/binders.cc: New test.

From-SVN: r43201
2001-06-11 19:20:20 +00:00
Stan Shebs
353e51f8e5 darwin.c (darwin_encode_section_info): Rewrite to simplify and fix coding mistakes.
* darwin.c (darwin_encode_section_info):  Rewrite to simplify
        and fix coding mistakes.

From-SVN: r43200
2001-06-11 18:59:42 +00:00