Commit Graph

47607 Commits

Author SHA1 Message Date
Jerry Quinn
8d0a564bba std_ostream.h (ostream::_M_write): Declare.
2003-02-04  Jerry Quinn  <jlquinn@optonline.net>

	* include/std/std_ostream.h (ostream::_M_write): Declare.
        * ostream.tcc (ostream::_M_write): Define.
	(basic_ostream::write): Use it.
	(operator<<(basic_ostream, _CharT)): Ditto.
	(operator<<(basic_ostream, char)): Ditto.
	(operator<<(basic_ostream, _CharT*)): Ditto.
	(operator<<(basic_ostream, char*)): Ditto.
	(operator<<(basic_ostream, basic_string)): Ditto.

From-SVN: r62399
2003-02-04 20:56:50 +00:00
Benjamin Kosnik
431a736388 valarray_name_lookup.cc: Fix.
2003-02-04  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/26_numerics/valarray_name_lookup.cc: Fix.

From-SVN: r62398
2003-02-04 20:53:19 +00:00
Jan Hubicka
f0f0d98e16 * i386.md (movti_rex64): Fix constraint.
From-SVN: r62396
2003-02-04 20:47:46 +00:00
Jan Hubicka
83dbda5bca i386-cadd.c: Compile using -march=k8.
* gcc.dg/i386-cadd.c:  Compile using -march=k8.
	* gcc.dg/i386-cmov?.c:  Likewise.
	* gcc.dg/i386-fpcvt-?.c:  Likewise.
	* gcc.dg/i386-ssefp-1.c:  Likewise.
	* gcc.dg/i386-ssetype-?.c:  Likewise; fix for register passing
	convetions.

From-SVN: r62395
2003-02-04 20:45:00 +00:00
Jan Hubicka
afffc4e236 i386-cadd.c: Compile using -march=k8.
* gcc.dg/i386-cadd.c:  Compile using -march=k8.
	* gcc.dg/i386-cmov?.c:  Likewise.
	* gcc.dg/i386-fpcvt-?.c:  Likewise.
	* gcc.dg/i386-ssefp-1.c:  Likewise.
	* gcc.dg/i386-ssetype-?.c:  Likewise; fix for register passing
	convetions.

From-SVN: r62394
2003-02-04 20:43:04 +00:00
Jonathan Wakely
6e40349a80 howto.html: Link to Dietmar Kuehl's IOStream page...
2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
	add HTML comment about updating links if numbering changes.

From-SVN: r62390
2003-02-04 18:24:07 +00:00
Paolo Carlini
7cd3907b57 [multiple changes]
2003-02-04  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9538
	* include/bits/streambuf.tcc (sputbackc): Access
	this->gptr()[-1] only if _M_in_beg < _M_in_cur.
	* testsuite/27_io/filebuf_virtuals.cc (test08): Add.

2003-02-04  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9507
	* include/bits/fstream.tcc (open): If the 'ate' repositioning
	operation fails, calls close _and_ returns a null pointer
	to indicate failure (27.8.1.3,4).
	* testsuite/27_io/filebuf_members.cc (test_06): Add.

2003-02-04  Petur Runolfsson  <peturr02@ru.is>

	* testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).

From-SVN: r62388
2003-02-04 18:08:45 +00:00
Jan Hubicka
09f26fb511 * i386.md (vector push splitters): Fix typo in resolving conflict.
From-SVN: r62387
2003-02-04 18:08:16 +00:00
Rodney Brown
ff6e2d3e76 i386.c (x86_function_profiler): Fix typo in format.
2003-02-04  Rodney Brown  <rbrown64@csc.com.au>

	* config/i386/i386.c (x86_function_profiler): Fix typo in format.

From-SVN: r62384
2003-02-04 18:01:20 +00:00
Jonathan Wakely
e7cc090e91 howto.html: New section on stdio_filebuf.
2002-02-04  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/27_io/howto.html: New section on stdio_filebuf.
	* docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
	* docs/html/documentation.html: Regenerate.

From-SVN: r62383
2003-02-04 17:42:19 +00:00
Phil Edwards
9e80ada7a7 install.texi (*-*-linux-gnu): Mention glibc requirements for recent libstdc++.
2003-02-04  Phil Edwards  <pme@gcc.gnu.org>

	* doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
	for recent libstdc++.  Remove formatting cruft.

From-SVN: r62379
2003-02-04 16:27:20 +00:00
Jakub Jelinek
79c758fbcf dwarf2out.c (dwarf2out_finish): Add AT_comp_dir attribute even if input file name is absolute...
* dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
	attribute even if input file name is absolute, but one of the
	includes is relative.

From-SVN: r62377
2003-02-04 14:30:02 +01:00
Andreas Jaeger
5b59406b2e configure.in (AC_PROG_CC_WORKS): Define _GNU_SOURCE.
* libU77/configure.in (AC_PROG_CC_WORKS): Define _GNU_SOURCE.
	* libU77/config.hin: Regenerated.
	* libU77/configure: Regenerated.

From-SVN: r62373
2003-02-04 11:04:04 +01:00
Mark Mitchell
b80f8ef302 re PR c++/7129 (ICE with min/max assignment operators (<?= and >?=))
PR c++/7129
	* call.c (z_candidate): Add args.
	(convert_class_to_reference): Set it.
	(implicit_conversion): Tidy.
	(add_candidate): Add args parameter.
	(add_function_candidate): Adjust call to add_candidate.
	(add_conv_candidate): Likewise.
	(build_builtin_candidate): Likewise.
	(build_user_type_conversion_1): Eliminate wasteful tree_cons
	usage.
	(build_new_function_call): Likewise.
	(build_object_call): Likewise.
	(add_candidates): New function.
	(build_new_op): Use it.
	(covert_like_real): Adjust call to build_over_call.
	(build_over_call): Remove args parameter.
	* operators.def: Add <?= and >?=.

	PR c++/7129
	* testsuite/g++.dg/ext/max.C: New test.

From-SVN: r62370
2003-02-04 07:23:14 +00:00
Joseph Myers
b3a8389d18 fastjar.texi: Update to GFDL 1.2.
fastjar:
	* fastjar.texi: Update to GFDL 1.2.

gcc:
	* doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
	doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
	* doc/install.texi: Update copyright dates.  Update to GFDL 1.2.

gcc/ada:
	* gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
	* gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
	gnat_ug_wnt.texi: Regenerate.

gcc/f:
	* g77.texi, invoke.texi: Update to GFDL 1.2.

gcc/java:
	* gcj.texi: Update to GFDL 1.2.

gcc/treelang:
	* treelang.texi: Update to GFDL 1.2.

libiberty:
	* libiberty.texi: Update to GFDL 1.2.

libstdc++-v3:
	* docs/html/17_intro/porting.texi: Update to GFDL 1.2.
	* docs/html/17_intro/porting.html: Regenerate.

From-SVN: r62365
2003-02-04 01:27:53 +00:00
GCC Administrator
95628882f0 Daily bump.
From-SVN: r62364
2003-02-04 00:18:06 +00:00
Richard Henderson
dabb3f04da libgcc2.c (__ffsdi2, [...]): Change return type to "int".
* libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
        __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
        return type to "int".  Shuffle declarations and undef int trap.
        * libgcc2.h: Remove their declarations.
        * optabs.c (expand_unop): Force outmode to int for bitops.

From-SVN: r62353
2003-02-03 14:42:20 -08:00
Ranjit Mathew
d074ed7c01 natRuntime.cc (java::lang::Runtime::_load)): Take care of the fact that on Win32...
2003-02-03  Ranjit Mathew <rmathew@hotmail.com>

	* java/lang/natRuntime.cc (java::lang::Runtime::_load)): Take care
	of the fact that on Win32, JNI_OnLoad is an "stdcall" function and
	could also have been exported as "JNI_OnLoad@8" (MinGW) or
	"_JNI_OnLoad@8" (MSVC).

From-SVN: r62348
2003-02-03 21:23:59 +00:00
Ranjit Mathew
9762ec767e resolve.cc (_Jv_JNIMethod::ncode): Use stdcall calling convention on Win32 to invoke native JNI methods.
2003-02-03  Ranjit Mathew <rmathew@hotmail.com>

	* resolve.cc (_Jv_JNIMethod::ncode): Use stdcall calling
	convention on Win32 to invoke native JNI methods.

From-SVN: r62345
2003-02-03 21:07:22 +00:00
Bob Wilson
985d0d50d5 xtensa.c (order_regs_for_local_alloc): Order the coprocessor registers before floating-point registers.
* config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
        coprocessor registers before floating-point registers.
        * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
        to account for a previously removed register.
        (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
        Delete unused macros.

From-SVN: r62340
2003-02-03 20:23:24 +00:00
Jan Hubicka
7f0e57bdf7 i386.c (ix86_expand_store_builtin): Always force op1 to register.
* i386.c (ix86_expand_store_builtin):  Always force op1 to register.
	(mov*_internal): Fix predicates; require one of operands to not be
	memory.
	(SSE?MMX move expanders):  Fix predicates; force one of operands to
	register.
	(SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
	(movups/movupd/movdqu patterns): Force one of operands to not be
	memory.

From-SVN: r62339
2003-02-03 20:20:36 +00:00
Roger Sayle
7daebb7ae4 hooks.c (hook_rtx_rtx_identity): Generic hook function that takes a single rtx and returns it unmodified.
* hooks.c (hook_rtx_rtx_identity): Generic hook function that
	takes a single rtx and returns it unmodified.
	* hooks.h (hook_rtx_rtx_identity): Prototype here.
	* target.h (struct gcc_target): Add "delegitimize_address"
	field to target structure.
	* target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
	for delegitimize_address target using hook_rtx_rtx_identity.
	(TARGET_INITIALIZER): Initialize delegitimize_address field
	using TARGET_DELEGITIMIZE_ADDRESS macro.
	* simplify-rtx.c (avoid_constant_pool_reference): Handle float
	extensions of constant pool references.  Use delegitimize_address
	to undo the obfuscation of "-fpic".
	* Makefile.in (simplify-rtx.o): Add dependency on target.h.

	* config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
	i386_simplify_dwarf_addr.
	(ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
  	(maybe_get_pool_constant): Likewise.

From-SVN: r62336
2003-02-03 19:40:58 +00:00
Falk Hueffner
348b0c3105 std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use numeric_limits for bits-per-word values.
2003-02-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
            Phil Edwards  <pme@gcc.gnu.org>

	* include/std/std_bitset.h:  Replace CHAR_BIT with __CHAR_BIT__, use
	numeric_limits for bits-per-word values.
	(_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
	Use __builtin_popcountl instead.
	(_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
	_Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
	Use __builtin_ctzl instead.
	(_S_bit_count, _S_first_one):  Remove.
	* config/linker-map.gnu (GLIBCPP_3.4):  Remove std::_S_bit_count.
	* src/Makefile.am (sources):  Remove bitset.cc.
	* src/bitset.cc:  Delete file.
	* src/Makefile.in:  Regenerate.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>

From-SVN: r62335
2003-02-03 19:37:53 +00:00
Andrew Haley
2d7b3505f7 parse.y (java_expand_classes): Scan the whole class list looking for access methods that haven't yet been expanded.
2003-01-31  Andrew Haley  <aph@redhat.com>

        * parse.y (java_expand_classes): Scan the whole class list looking
        for access methods that haven't yet been expanded.

From-SVN: r62329
2003-02-03 17:44:55 +00:00
Andrew Haley
cea9c57b59 Fix ChangeLog entry.
From-SVN: r62328
2003-02-03 17:14:38 +00:00
Andrew Haley
7b22f8b08a configure.host (x86_64): Enable interpreter.
2003-02-03  Andrew Haley  <aph@emcee.cambridge.redhat.com>

        * configure.host (x86_64): Enable interpreter.

From-SVN: r62326
2003-02-03 17:10:16 +00:00
Phil Edwards
a31e49ec14 Add missing TOC link from previous commit. Regenerate .txt file.
From-SVN: r62323
2003-02-03 16:47:44 +00:00
Phil Edwards
00f53979c7 PR libstdc++/9527, PR libstdc++/8713
2003-02-03  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/9527, PR libstdc++/8713
	* docs/html/install.html:  Mention glibc version requirement.
	* docs/html/faq/index.html (3.8):  New note, glibc 2.2.5+ is needed
	with 3.2.1+ (formatting bugfixes).
	* docs/html/faq/index.txt:  Regenerate.

From-SVN: r62322
2003-02-03 16:44:44 +00:00
Ulrich Weigand
954d4177cc jacks.exp (gcj_jacks_write): Set LD_LIBRARY_PATH to find libgcc_s.
* libjava.jacks/jacks.exp (gcj_jacks_write): Set LD_LIBRARY_PATH
	to find libgcc_s.  Set JAVA_CLASSPATH to find libgcj.jar.

From-SVN: r62318
2003-02-03 16:20:30 +00:00
Andrew Haley
4b445d7cfb libgcj.spec.in (jc1): Add BACKTRACESPEC.
2003-02-03  Andrew Haley  <aph@redhat.com>

	* libgcj.spec.in (jc1): Add BACKTRACESPEC.
        * configure.host (x86_64): Default to -fno-omit-frame-pointer.
        * configure.in (BACKTRACESPEC): New.
        * configure: Regenerate.

From-SVN: r62316
2003-02-03 15:59:48 +00:00
Jan Hubicka
7393205f69 * gcc.c-torture/execute/20030203-1.c: New test.
From-SVN: r62314
2003-02-03 15:07:50 +00:00
Jan Hubicka
5fb486851a * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
From-SVN: r62313
2003-02-03 15:02:07 +00:00
Jan Hubicka
84520a2006 i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
* i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.

[[Split portion of a mixed commit.]]

From-SVN: r62312.2
2003-02-03 15:02:02 +00:00
Adrian Bunk
7d503466fb Fix for java/4269:
2003-01-31 Adrian Bunk <bunk@fs.tum.de>

	Fix for java/4269:

	* jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO
	to fix bootstrap on sparc-unknown-netbsdelf1.5.
	* jcf-parse.c: Likewise.

From-SVN: r62310
2003-02-03 13:57:15 +00:00
Volker Reichelt
847e8c74ac re PR libstdc++/9234 (unary minus for valarrays broken)
PR libstdc++/9234
	* include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
	operator.

	* include/bits/valarray_before.h (__not_equal_to): Use != instead of ==.

	* testsuite/26_numerics/valarray_operators.cc: New test.

From-SVN: r62309
2003-02-03 10:38:36 +00:00
Richard Earnshaw
ca777b88c8 20000320-1.c: The ARM VFP format is 'natural-endian'.
* gcc.c-torture/exectue/ieee/20000320-1.c: The ARM VFP format is
'natural-endian'.

From-SVN: r62306
2003-02-03 10:15:15 +00:00
Christian Cornelssen
5da14cb5ce Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir) be created if necessary.
* Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
	be created if necessary.
	(ada.install-common): Let $(DESTDIR)$(bindir) be created
	if necessary.  Remove erroneous and redundant gnatchop
	installation commands.	Test for gnatdll before attempting
	to install it.
	(ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
	and gnatdll from all plausible locations.

From-SVN: r62304
2003-02-03 01:55:32 +01:00
Jan Hubicka
035b2a3475 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
From-SVN: r62302
2003-02-03 00:31:53 +00:00
GCC Administrator
f2e05ec7c7 Daily bump.
From-SVN: r62299
2003-02-03 00:17:03 +00:00
Tom Tromey
9e8e1bec48 configure: Rebuilt.
* configure: Rebuilt.
	* configure.in (TOOLKIT) [xlib]: Set correctly.

From-SVN: r62292
2003-02-02 23:08:35 +00:00
Tom Tromey
5f9cea34bb Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (lib_gnu_awt_xlib_la_LDFLAGS): Link against
	libstdc++.

From-SVN: r62291
2003-02-02 23:06:39 +00:00
Christian Cornelssen
f5f2cce54c * MAINTAINERS (Write after approval): Add myself.
From-SVN: r62287
2003-02-02 21:44:31 +01:00
Kaveh R. Ghazi
1f143d5ab1 _tilib.c: Don't include tsystem.h or defaults.h.
* mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
	define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.

From-SVN: r62284
2003-02-02 19:55:15 +00:00
Andreas Schwab
4b550d9f65 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
From-SVN: r62282
2003-02-02 17:30:49 +00:00
Richard Earnshaw
0732a08996 arm.md (sibcall_epilogue): Set the "conds" to "clob".
* arm.md (sibcall_epilogue): Set the "conds" to "clob".
(epilogue_insns): Likewise.

From-SVN: r62281
2003-02-02 16:20:31 +00:00
John David Anglin
f269f54ff8 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
From-SVN: r62273
2003-02-02 06:08:58 +00:00
John David Anglin
611ad29eed pa-protos.h (attr_length_millicode_call): Remove second argument.
* pa-protos.h (attr_length_millicode_call): Remove second argument.
	(attr_length_indirect_call, attr_length_indirect_call,
	attr_length_save_restore_dltp): New prototypes.
	* pa.c (attr_length_millicode_call): Remove second argument.  Check
	INSN_ADDRESSES_SET_P in distance calculation.
	(output_millicode_call): Check INSN_ADDRESSES_SET_P before using
	INSN_ADDRESSES.
	(attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
	(output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
	Call attr_length_call directly.
	(attr_length_indirect_call, output_indirect_call,
	attr_length_save_restore_dltp): New functions.
	* pa.md (attr_length_millicode_call): Drop second argument from all
	patterns.
	(return_internal_pic): Delete.
	(return_external_pic): Remove use of PIC register and pic operand and
	flag checks.
	(epilogue): Use return_internal for both normal and pic code.
	(call, call_value): Emit new 32-bit pic patterns for symref and
	indirect calls.  Remove uses for arg pointer and pic register.
	(call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
	call_reg_pic_post_reload, call_val_symref_pic,
	call_val_symref_pic_post_reload, call_val_reg_pic,
	call_val_reg_pic_post_reload): New pre and post reload insn patterns.
	Implement define_split and define_peephole2 patterns for pre reload
	patterns.
	(call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
	call_value_internal_reg_64bit): Shorten names.
	(all call patterns): Explicitly indicate registers used and clobbered.
	Use attr_length_indirect_call and attr_length_save_restore_dltp for
	attribute length calculation.  Move code generation for indirect calls
	to output_indirect_call.
	(sibcall, sibcall_value): Don't restore PIC register.
	(exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
	register retore.

From-SVN: r62272
2003-02-02 06:04:58 +00:00
Gerald Pfeifer
8cacda7c8b install.texi (Testing): Simplify and compress instructions concerning Dejagnu.
* doc/install.texi (Testing): Simplify and compress instructions
	concerning Dejagnu.

From-SVN: r62270
2003-02-02 01:52:15 +00:00
John David Anglin
cbc158bba5 collect2.c (pexecute_pid): Rename to pid.
* collect2.c (pexecute_pid): Rename to pid.
	(collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
	pid.

From-SVN: r62269
2003-02-02 01:31:40 +00:00
Geoffrey Keating
dcef1843bb extend.texi (Function Attributes): Remove documentation for PowerPC Windows NT function attributes..
* doc/extend.texi (Function Attributes): Remove documentation
	for PowerPC Windows NT function attributes..

From-SVN: r62268
2003-02-02 01:21:21 +00:00