Commit Graph

54882 Commits

Author SHA1 Message Date
Paolo Carlini
7e08b3b816 locale_facets.tcc (time_get::_M_extract_via_format): Use narrow to get from __format[__i] a char __c representing a formatting code...
2003-12-17  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
	Use narrow to get from __format[__i] a char __c representing a
	formatting code, don't use it to compare *__beg to __format[__i].
	* testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.

From-SVN: r74755
2003-12-17 22:14:09 +00:00
Geoffrey Keating
7a681365b9 re PR pch/12480 (pch error messages do not say they for PCH.)
PR 12480
	* c-pch.c (pch_init): Improve error message when precompiled
	header can't be written.

	PR 12606
	* c-pch.c (pch_init): Make a PCH file appear invalid while it's
	being written.
	(c_common_write_pch): Make it valid once it's done.

From-SVN: r74754
2003-12-17 22:04:34 +00:00
Ulrich Weigand
287ff1982c re PR target/11992 (Wrong built-in code for memcmp with length 1<<24 only (1<<24)-1 possible for CLCL-Instruction)
PR target/11992
	* config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
	instead of CLCL.
	("*cmpmem_long_31"): Likewise.

From-SVN: r74752
2003-12-17 21:51:57 +00:00
Vladimir Makarov
c856f53627 ia64.c: Add more comments about insn bundling.
2003-12-17  Vladimir Makarov  <vmakarov@redhat.com>

	* config/ia64/ia64.c: Add more comments about insn bundling.

From-SVN: r74751
2003-12-17 20:29:02 +00:00
Richard Earnshaw
4d450e9ac8 re PR rtl-optimization/10592 ([arm] caller-save incorrectly handles a reloaded SET_DEST operand)
PR optimization/10592
* caller-save.c (mark_referenced_regs): Don't short-circuit a reg
or subreg in SET_DEST if it isn't a hard register.

From-SVN: r74747
2003-12-17 18:20:44 +00:00
David Edelsohn
77e86c9109 collect2.c (main): Add -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities to arguments...
* collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
        -fno-branch-probabilities to arguments when compiling ctors and
        dtors.

From-SVN: r74746
2003-12-17 13:14:45 -05:00
Fernando Nasser
f84241ba7d GtkListPeer.java (handleEvent): Fix generation of ActionEvents for mouse double-clicks.
2003-12-17  Fernando Nasser  <fnasser@redhat.com>

        * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): Fix generation
        of ActionEvents for mouse double-clicks.

From-SVN: r74745
2003-12-17 18:02:56 +00:00
Fernando Nasser
310b075bd8 GtkContainerPeer.java (handleEvent): Check for null Graphics pointer returned by FileDialogPeer.
2003-12-16  Fernando Nasser  <fnasser@redhat.com>

        * gnu/java/awt/peer/gtk/GtkContainerPeer.java (handleEvent): Check for
        null Graphics pointer returned by FileDialogPeer.

From-SVN: r74744
2003-12-17 17:20:00 +00:00
Mark Mitchell
5c832178f8 re PR c++/10603 (failing to print problematic token upon parse error)
PR c++/10603
	PR c++/12827
	* parser.c (cp_parser_error): Help c_parse_error print good
	messages if the next token is a keyword.
	(cp_parser_parameter_declaration_list): When resynchronizing after
	a bad parameter declaration, stop if a comma is found.
	(cp_parser_parameter_declaration): Avoid backtracking.

	PR c++/10603
	* g++.dg/parse/error6.C: New test.

	PR c++/12827
	* g++.dg/parse/error7.C: New test.

From-SVN: r74743
2003-12-17 16:58:14 +00:00
Michael Koch
8f0f6aa1fd stamp-h.in: Removed, not used anymore.
2003-12-17  Michael Koch  <konqueror@gmx.de>

	* libltdl/stamp-h.in: Removed, not used anymore.

From-SVN: r74742
2003-12-17 16:24:11 +00:00
Arnaud Charlet
891a6e79d8 [multiple changes]
2003-12-17  Ed Falis  <falis@gnat.com>

	* a-elchha.adb (Tailored_Exception_Information): made Info constant to
	eliminate warning.

	* a-exextr.adb: Add context clause for
	Ada.Exceptions.Last_Chance_Handler.

2003-12-17  Sergey Rybin  <rybin@act-europe.fr>

	* cstand.adb (Create_Standard): Change the way how the declaration of
	the Duration type is created (making it the same way as it is for all
	the other standard types).

2003-12-17  Robert Dewar  <dewar@gnat.com>

	* s-crtl.ads: Fix header format
	Change Pure to Preelaborate

2003-12-17  Ed Schonberg  <schonberg@gnat.com>

	* checks.adb (Selected_Length_Checks): Generate an Itype reference for
	the expression type only if it is declared in the current unit.

	* sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
	are universal and already analyzed, as can occur in constrained
	subcomponents that depend on discriminants, when one constraint is a
	subtype mark.

	* sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
	type Any_Fixed is legal as the argument of a conversion, if only one
	fixed-point type is in context.

2003-12-17  GNAT Script  <nobody@gnat.com>

	* Make-lang.in: Makefile automatically updated

From-SVN: r74741
2003-12-17 14:37:04 +01:00
Eric Botcazou
9684a8405a sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
* config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
	* config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.

From-SVN: r74740
2003-12-17 12:01:47 +00:00
Richard Earnshaw
07e582651d arm.c (thumb_base_register_rtx_p): Don't allow virtual registers as base registers for sub-word operations.
* arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
as base registers for sub-word operations.
(thumb_legitimate_address_p): Simplify REG+REG test.

From-SVN: r74739
2003-12-17 11:27:25 +00:00
Paolo Carlini
cbf22cc549 container_benchmark.cc: Tweak outputs.
2003-12-17  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/container_benchmark.cc: Tweak outputs.

	* testsuite/performance/list_create_fill_sort.cc: Shrink a
	bit some outputs.

	* testsuite/testsuite_performance.h: Widen a few output fields.

	* testsuite/performance/ifstream_extract_int.cc: New.

From-SVN: r74738
2003-12-17 10:16:03 +00:00
Segher Boessenkool
b50d9339ba * opts.c (wrap_help): Fix overflow.
From-SVN: r74737
2003-12-17 09:34:08 +00:00
Eric Botcazou
a7833d6a0b gcc-dg.exp (gcc-dg-debug-runtest): Do not run debug-[12].c at -O with stabs debugging formats.
* lib/gcc-dg.exp (gcc-dg-debug-runtest): Do not run debug-[12].c
	at -O with stabs debugging formats.
	* gcc.dg/debug/debug-1.c: Turn 'p' into a global variable.
	* gcc.dg/debug/debug-2.c: Likewise.

From-SVN: r74736
2003-12-17 07:14:26 +00:00
Fred Fish
07f8f74a7b patch from Fred Fish
* configure.in: Remove code to examine linker scripts and set
HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
* configure, config.in: Regenerate.

From-SVN: r74735
2003-12-16 22:32:54 -08:00
James E Wilson
3a8167112a Fix required by libjava/libltdl import.
* gcc_update (files_and_dependencies): For libjava/libltdl directory,
rename configure.in to configure.ac, and stamp-h.in to config-h.in.

From-SVN: r74734
2003-12-16 22:22:00 -08:00
Mark Mitchell
0dff37fb92 re PR c++/12218 (runtime segfault when initializing global variable with pointer-to-member)
PR c++/12218
	* varasm.c (initializer_constant_valid_p): Allow a conversion from
	an integral constant to an OFFSET_TYPE.

	PR c++/12696
	* decl.c (reshape_init): Recover quickly from errors.

	PR c++/12218
	* g++.dg/init/pm3.C: New test.

	PR c++/12696
	* g++.dg/init/error1.C: New test.

From-SVN: r74731
2003-12-17 04:45:53 +00:00
Kazu Hirata
085bd3ffb6 re PR target/11012 ([m32r-elf] wrong code with -O at branch of conditional)
PR target/11012
	* config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
	gen_cmp_ne_small_const_insn.
	* config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.

From-SVN: r74726
2003-12-17 03:30:19 +00:00
Joseph Myers
2ff7cce4f2 re PR c/3347 (Too large bitfields should be errors)
2003-12-17  Neil Booth  <neil@daikokuya.co.uk>
            Joseph S. Myers  <jsm@polyomino.org.uk>

	PR c/3347
	* c-decl.c (enum_decl_context): Remove BITFIELD.
	(grokdeclarator): Take bit-field width as an input.
	Perform bit-field width validation with
	check_bitfield_type_and_width rather than waiting for
	finish_struct.
	(groktypename, groktypename_in_parm_context, start_decl,
	push_parm_decl, grokfield, start_function): Update calls to
	grokdeclarator.
	(check_bitfield_type_and_width): New function.
	(finish_struct): Move bit-field validation to grokdeclarator
	and check_bitfield_type_and_width.

testsuite:
	* gcc.dg/bitfld-8.c: New test.

From-SVN: r74725
2003-12-17 00:25:24 +00:00
GCC Administrator
89843f8b85 Daily bump.
From-SVN: r74723
2003-12-17 00:16:10 +00:00
Phil Edwards
2d52e9e364 configure.ac (AM_INIT_AUTOMAKE): Don't warn about GNU Make.
2003-12-16  Phil Edwards  <phil@codesourcery.com>

	* configure.ac (AM_INIT_AUTOMAKE):  Don't warn about GNU Make.
	* configure:  Regenerated.
	* Makefile.am (check-%):  New catch-all forwarding target.
	* Makefile.in:  Regenerated.

From-SVN: r74718
2003-12-16 23:44:53 +00:00
Paolo Carlini
da2fd9486b container_benchmark.cc: New...
2003-12-16  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/container_benchmark.cc: New, a
	benchmark developed by Bjarne Stroustrup and Alexander
	Stepanov and made available with no restrictions.

	* testsuite/testsuite_performance.h (report_header): New,
	useful to produce header lines in the reports.

From-SVN: r74717
2003-12-16 22:57:57 +00:00
Mohan Embar
89c5711036 natPlainDatagramSocketImplWin32.cc: Removed unused InterruptedIOException.h include.
* gnu/java/net/natPlainDatagramSocketImplWin32.cc:
	Removed unused InterruptedIOException.h include.
	* gnu/java/net/natPlainSocketImplWin32.cc
	(connect): Reset and ignore our thread's interrupted
	flag instead of testing and throwing an InterruptedIOException
	if set.
	(accept): Likewise + changed case of SocketTimeoutException
	text.
	(write): Likewise (for both overloads).
	(doRead): Likewise.

From-SVN: r74716
2003-12-16 22:57:06 +00:00
Mohan Embar
5cd4d463f9 win32.cc (WSAEventWrapper): Implemented default constructor and init() methods.
* win32.cc (WSAEventWrapper): Implemented default
	constructor and init() methods.
	(_Jv_select): Removed.
	* gnu/java/nio/natSelectorImplWin32.cc
	(helper_put_filedescriptors): Removed.
	(helper_get_filedescriptors): Removed.
	(implSelect): Implemented in terms of WSAEventWrapper
	and WSAWaitForMultipleEvents instead of _Jv_select().
	Added support for thread interruption.
	* include/win32.h (WSAEventWrapper): Minor formatting
	changes; added default constructor declaration, init(),
	getFD() and getEventHandle() methods.
	(_Jv_select): Removed.

From-SVN: r74715
2003-12-16 22:54:22 +00:00
Mohan Embar
027e655b6e * gnu/java/net/natPlainDatagramSocketImplPosix.cc
(peekData): Throw SocketTimeoutException instead of
	InterruptedIOException on timeout.
	(receive): Likewise.
	* gnu/java/net/natPlainSocketImplPosix.cc
	(read): Made a minor exception text case change.

From-SVN: r74714
2003-12-16 22:47:53 +00:00
Paolo Carlini
93cbdb1a0c container_benchmark.cc: New...
2003-12-16  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/container_benchmark.cc: New, a
	benchmark developed by Bjarne Stroustrup and Alexander
	Stepanov and made available with no restrictions.

	* testsuite/testsuite_performance.h (report_header): New,
	useful to produce header lines in the reports.

From-SVN: r74713
2003-12-16 22:44:19 +00:00
James Lemke
6d43c524dd xscale testcases from James Lemke
xscale testcases from James Lemke
	* gcc.dg/arm-scd42-[123].c: New tests.

From-SVN: r74712
2003-12-16 14:38:58 -08:00
Michael Koch
9e129d901c re PR libgcj/13056 (import new libltdl)
2003-12-16  Michael Koch  <konqueror@gmx.de>

	Fix for PR libgcj/13056.
	* libltdl/configure.in,
	libltdl/config.h.in: Removed.
	* libltdl/configure.ac,
	libltdl/config-h.in,
	libltdl/install-sh,
	libltdl/config.guess,
	libltdl/config.sub,
	libltdl/missing,
	libltdl/mkinstalldirs,
	libltdl/ltmain.sh: New files.
	* libltdl/Makefile.am,
	libltdl/acinclude.m4,
	libltdl/aclocal.m4,
	libltdl/ltdl.c,
	libltdl/ltdl.h,
	libltdl/README: Update to versions from libtool 1.5.
	libltdl/configure,
	* libltdl/Makefile.in: Regenerated.
	* java/lang/natRuntime.cc (find_symbol):
	Use type 'lt_ptr' instead of 'lt_ptr_t'.

From-SVN: r74711
2003-12-16 21:48:25 +00:00
Michael Koch
08a5a9a63a 2003-12-16 Michael Koch <konqueror@gmx.de>
* java/awt/MenuComponent.java
	(serialVersionUID): Fixed value.

From-SVN: r74709
2003-12-16 20:08:01 +00:00
Nathan Sidwell
d63b5e9f25 re PR c++/9043 ([ABI] incorrect name mangling for array dimension in template function)
cp:
	PR c++/9043
	C++ ABI change: Mangling array indices in templates.
	* decl.c (compute_array_index_type): Reorganize for earlier
	template errors. Use value_dependent_expression_p for abi-2.
	* mangle.c (write_array_type): Check broken mangling for
	expression indices on abi-1
testsuite:
	PR c++/9043
	* g++.dg/abi/mangle20-1.C: New test.
	* g++.dg/abi/mangle20-2.C: New test.

From-SVN: r74707
2003-12-16 19:50:54 +00:00
John David Anglin
28690784e2 re PR bootstrap/13386 (HAVE_GAS_HIDDEN not set when using GAS with HP linker)
PR bootstrap/13386
	* configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
	using HP native linker.
	* configure: Rebuilt.

From-SVN: r74705
2003-12-16 17:49:57 +00:00
Fernando Nasser
aeb5418870 2003-12-16 Fernando Nasser <fnasser@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
        (pre_event_handler): Handle GtkButton widgets differently as events
        go to its event_window.
        (connect_awt_hook): Remove compiler warning.

From-SVN: r74704
2003-12-16 17:20:34 +00:00
Giovanni Bajo
877342e5e0 Fix typo.
From-SVN: r74703
2003-12-16 16:17:31 +00:00
Mark Mitchell
263ee05239 re PR c++/13275 (Implementation of offsetof macro)
PR c++/13275
	* c-common.h (enum rid): Add RID_OFFSETOF.
	* c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
	* ginclude/stddef.h (offsetof): Reimplement for C++, using
	__offsetof__.
	* doc/extend.texi: Document __offsetof__.

	PR c++/13275
	* lex.c (reswords): Add "__offsetof" and "__offsetof__".
	* parser.c (cp_parser): Add in_offsetof_p.
	(cp_parser_new): Initialize it.
	(cp_parser_primary_expression): Handle __offsetof__ (...).
	(cp_parser_postfix_expression): Allow casts to pointer type and
	uses of "->" in a constant expression if implementing offsetof.
	(cp_parser_unary_expression): Allow the use of "&" in a constant
	expression if implementing offsetof.

	PR c++/13275
	* g++.dg/other/offsetof2.C: Remove XFAIL.
	* g++.dg/parse/offsetof1.C: New test.
	* g++.gd/parse/offsetof2.C: Likewise.

From-SVN: r74702
2003-12-16 16:09:23 +00:00
Giovanni Bajo
ff5034c5be nontype3.C: New test.
* g++.dg/template/nontype3.C: New test.
	* g++.dg/template/static2.C: Tweaked the dg-error clause.

From-SVN: r74701
2003-12-16 15:58:38 +00:00
Giovanni Bajo
931a9c05c2 semantics.c (finish_id_expression): Refactor the code to handle template parameters...
* semantics.c (finish_id_expression): Refactor the code to handle
	template parameters, and emit a more informative error message
	when they are used within non integral constant expressions.

From-SVN: r74700
2003-12-16 15:54:28 +00:00
Kriang Lerdsuwanakij
cd852e4d70 * g++.dg/warn/noreturn-3.C: Also test instantiation.
From-SVN: r74698
2003-12-16 15:24:25 +00:00
Stan Cox
b5144086d5 iq2000.h: Formatting.
* config/iq2000/iq2000.h: Formatting.
	(MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
	(ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
	(IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
	* config/iq2000/iq2000.c: Formatting.
	(iq2000_rtx_costs): New.

From-SVN: r74697
2003-12-16 15:20:51 +00:00
Jonathan Wakely
d159598dda howto.html: Document shrink-to-fit reserve().
2003-12-16  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
	* docs/html/faq/index.html: Reducing vector's capacity() to size().
	* docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.

From-SVN: r74695
2003-12-16 13:57:55 +00:00
Richard Earnshaw
1cc82d1389 * arm.md (addsi3_carryin_shift): Add missing register constraints.
From-SVN: r74694
2003-12-16 13:56:25 +00:00
Guilhem Lavaux
649a1a476c i2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>
* java/io/ObjectInputStream.java
	(lookupClass): New method.
	(currentLoader): New method.
	(inputGetObjectStreamClasses): New method.
	(assignNewHandle): Documented.
	(currentClassLoader): Documented.
	* java/io/ObjectStreamClass.java
	(setClass): Changed API. Better handling of the imported/exported
	fields.
	(getSerialPersistentFields): Make it throw previously caught exceptions
	so they can handled in setClass.

From-SVN: r74693
2003-12-16 13:45:01 +00:00
Paolo Carlini
b1660ae9ea narrow_widen_char.cc: Tweak the number of iterations for each test.
2003-12-16  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/narrow_widen_char.cc: Tweak the
	number of iterations for each test.
	* testsuite/performance/narrow_widen_wchar_t.cc: Add a
	missing clear_counters.

From-SVN: r74692
2003-12-16 13:25:23 +00:00
Jan Hubicka
a268eff9ce * MAINTAINERS: Add myself as callgraph maintainer.
From-SVN: r74691
2003-12-16 12:45:53 +00:00
Guilhem Lavaux
7110657e8b ObjectStreamField.java: A few methods were added in prevision of the upcoming upgrade of the...
2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>

	* java/io/ObjectStreamField.java: A few methods were added in prevision
	of the upcoming upgrade of the serialization code. This also adds
	some missing documentation.
	(ObjectStreamField): We should throw a NullPointerException when 'name'
	is null.

From-SVN: r74690
2003-12-16 12:19:33 +00:00
Loren J. Rittle
d22240b8dc badalloc1.C: Tweak to pass with -pthread on FreeBSD systems.
* testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
        pass with -pthread on FreeBSD systems.

From-SVN: r74689
2003-12-16 11:48:50 +00:00
Guilhem Lavaux
9a3a96d0a5 ObjectInputStream.java (setBooleanField): Throw an InvalidClassException if the field hasn't the required type...
2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>

	* java/io/ObjectInputStream.java (setBooleanField):
	Throw an InvalidClassException if the field hasn't the required type,
	documentation added.
	(setByteField) Likewise.
	(setCharField) Likewise.
	(setDoubleField) Likewise.
	(setFloatField) Likewise.
	(setIntField) Likewise.
	(setShortField) Likewise.
	(setLongField) Likewise.
	(setObjectField) Likewise.

From-SVN: r74688
2003-12-16 11:46:23 +00:00
Guilhem Lavaux
5ecc3a7676 TypeSignature.java (getClassForEncoding): Splitted the method so we can specify an explicit boot loader.
2003-12-16 Guilhem Lavaux <guilhem@kaffe.org>
           Helmer Kraemer <hkraemer@freenet.de>

	* gnu/java/lang/reflect/TypeSignature.java (getClassForEncoding):
	Splitted the method so we can specify an explicit boot loader.

Co-Authored-By: Helmer Kraemer <hkraemer@freenet.de>

From-SVN: r74687
2003-12-16 11:35:40 +00:00
Paolo Carlini
9a1349b920 re PR libstdc++/11723 (ctype<wchar_t>::do_is(mask, wchar_t) is slow)
2003-12-16  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/11723
	* include/bits/locale_facets.h: Add _M_bit and _M_wmask,
	used to speed up the computation of ctype::do_is.
	* config/locale/generic/ctype_members.cc
	(_M_initialize_ctype): Fill _M_bit and _M_wmask.
	(ctype::do_is): Use _M_bit and _M_wmask.
	* config/locale/gnu/ctype_members.cc: Likewise.
	* testsuite/performance/is_wchar_t.cc: New.

	* testsuite/performance/narrow_widen_wchar_t.cc: Tweak
	string literal (incorrect citation ;)

	* include/bits/locale_facets.h: Minor tweaks, const
	correctness, unsigned -> size_t.

From-SVN: r74686
2003-12-16 11:00:52 +00:00