Commit Graph

54573 Commits

Author SHA1 Message Date
Paolo Carlini 3259561c4c re PR libstdc++/12791 (_M_extract_num returns a wrong __beg in case of error)
2003-12-03  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12791
	* include/bits/locale_facets.tcc (time_get::_M_extract_num):
	Rewrite, stop the parsing as soon as a digit cannot possibly
	lead to a final number within the bounds; otherwise, simplify,
	avoiding __ctype.is() and atoi().
	* testsuite/22_locale/time_get/get_date/char/12791.cc: New.
	* testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.

	* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
	Minor tweak: a 4-digit integer cannot be bigger than 9999.

	* testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
	type-correct wchar_t string literals.
	* testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
	* testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
	* testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
	* testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.

From-SVN: r74220
2003-12-03 09:18:28 +00:00
Ralph Loader c6a25d3a3d re PR java/12374 (Segfault on "".x)
PR java/12374:
	* parse.y (qualify_ambiguous_name): Remove lots of broken
	field access processing - there's no need to do that here,
	because we have resolve_field_access.  Remove
	RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else.
	* java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't
	used.

From-SVN: r74217
2003-12-03 07:04:19 +00:00
David Edelsohn a0506b54dd function.c (assign_parms): Make sure parm PARALLEL combined in reg is composed of more than one object and...
* function.c (assign_parms): Make sure parm PARALLEL combined
        in reg is composed of more than one object and the mode really
        produces a reg.

From-SVN: r74214
2003-12-02 23:48:26 -05:00
Jan Hubicka 296e4ae881 * i386.c (classify_argument): Make it 64bit clean.
From-SVN: r74209
2003-12-03 00:59:25 +00:00
Jan Hubicka 8ef3373200 i386.c (classify_argument): Make it 64bit clean.
* i386.c (classify_argument): Make it 64bit clean.

[[Split portion of a mixed commit.]]

From-SVN: r74208.2
2003-12-03 00:59:21 +00:00
GCC Administrator d4817c509d Daily bump.
From-SVN: r74206
2003-12-03 00:16:08 +00:00
Richard Sandiford 7a8086745d mips.c (mips_output_external): Replace checks for specific builtin-in functions with a check for DECL_BUILTIN_IN.
* config/mips/mips.c (mips_output_external): Replace checks for
	specific builtin-in functions with a check for DECL_BUILTIN_IN.

From-SVN: r74202
2003-12-02 22:30:28 +00:00
Mohan Embar 83c02e38a3 configure.in: Added new MinGW-specific configure flag --with-win32-nlsapi.
* configure.in: Added new MinGW-specific configure flag
	--with-win32-nlsapi.
	Added new AC_DEFINE MINGW_LIBGCJ_UNICODE.
	Add -lunicows to MinGW SYSTEMSPEC if --with-win32-nlsapi
	is set to unicows.
	* configure: Rebuilt.
	* include/config.h.in: Rebuilt.
	* win32.cc (_Jv_Win32NewString): Implemented.
	(nativeToUnicode): New helper function defined only for
	non-UNICODE builds.
	(unicodeToNative): Likewise.
	(_Jv_Win32TempString): Implemented.
	(lots): Refactored using tchar.h macros.
	(WSAEventWrapper): Use _Jv_Win32NewString.
	(_Jv_platform_initialize): Use GetModuleFileNameA instead
	of GetModuleFileName.
	(_Jv_platform_initProperties): Use _Jv_Win32NewString.
	Use temporary stack buffer instead of a heap buffer.
	* include/win32.h
	Added defines for UNICODE and _UNICODE if MINGW_LIBGCJ_UNICODE is
	defined; added tchar.h include.
	(_Jv_Win32TempString): Declared new helper class.
	(JV_TEMP_STRING_WIN32): New helper macro.
	(_Jv_Win32NewString): Declared new helper method.
	* java/io/natFileDescriptorWin32.cc (open): Use
	JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING.
	(write): Reformatted slightly.
	* java/io/natFileWin32.cc (lots): Use tchar.h macros;
	use JV_TEMP_STRING_WIN32 instead of JV_TEMP_UTF_STRING.
	(getCanonicalPath): Use _Jv_Win32NewString instead of
	JvNewStringUTF.
	(performList): Likewise.
	* java/lang/natWin32Process.cc (ChildProcessPipe):
	Use tchar.h macros.
	(startProcess): Use tchar.h macros, JV_TEMP_STRING_WIN32,
	and UNICODE environment flag for CreateProcess.
	* java/net/natNetworkInterfaceWin32.cc
	(winsock2GetRealNetworkInterfaces): Use tchar.h macros and
	_Jv_Win32NewString.

From-SVN: r74201
2003-12-02 22:26:50 +00:00
Thomas Fitzsimmons 5f8a45f75c 2003-12-02 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
	(initState): Mark obj parameter as unused.
	(stringWidth): Mark obj parameter as unused.  Initialize
	font_name properly.

From-SVN: r74198
2003-12-02 21:00:05 +00:00
David Ung e7f2e92fcb vector-check.h: Corrected type for var g_##TMODE
2003-12-02  David Ung  <davidu@mips.com>

	* gcc.dg/compat/vector-check.h: Corrected type for var
	g_##TMODE

From-SVN: r74197
2003-12-02 20:29:48 +00:00
Thomas Fitzsimmons 49246a5229 GdkPixbufDecoder.java: Make BufferedImageBuilder class static.
2003-12-02  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Make
	BufferedImageBuilder class static.

From-SVN: r74195
2003-12-02 19:56:30 +00:00
Paolo Carlini 17e15f7f3b locale_facets.tcc (time_get::do_get_year): Avoid using a basic_string and calling a full blown strtol (via __convert_to_v)...
2003-12-02  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (time_get::do_get_year):
	Avoid using a basic_string and calling a full blown strtol
	(via __convert_to_v) for simple 2 or 4 digits, base 10,
	positive integers; simplify.

From-SVN: r74193
2003-12-02 18:30:42 +00:00
Mark Wielaard 0548bb4aba Security.java: Don't use &nbsp; in the api doc.
2003-12-02  Mark Wielaard  <mark@klomp.org>

	* java/security/Security.java: Don't use &nbsp; in the api doc.

From-SVN: r74191
2003-12-02 17:31:46 +00:00
Dalibor Topic 23757fa5ca Reported by: Jim Pick <jim@kaffe.org>
2003-12-02  Dalibor Topic <robilad@kaffe.org>

	Reported by: Jim Pick <jim@kaffe.org>
	* libraries/javalib/java/util/Hashtable.java
	(internalcontainsValue): New method.
	(contains): Delegate to internalContainsValue.

	Reported by: Mark Wielaard  <mark@klomp.org>
	* libraries/javalib/java/util/Hashtable.java
	(contains): Improved comment.

	Reported by: Jeroen Frijters  <jeroen@frijters.net>
	* libraries/javalib/java/util/Hashtable.java
	(containsValue): Delegate to contains(Object) to make sure older
	code overwriting it continues to work.

From-SVN: r74190
2003-12-02 17:05:40 +00:00
Fernando Nasser a104538631 GtkListPeer.java (handleEvent): New method.
2003-12-02  Fernando Nasser  <fnasser@redhat.com>

        * gnu/java/awt/peer/gtk/GtkListPeer.java (handleEvent): New
        method. Handle mouse and key events that must generate
        ActionEvents.
        * java/awt/List.java (getSelectedIndex): Return -1
        if no list element is selected.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler):
        Correct handling of mouse and key events so that List receives them.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
        (Java_gnu_java_awt_peer_gtk_GtkListPeer_delItems): Fix removal of
        multiple list elements.

From-SVN: r74189
2003-12-02 16:19:28 +00:00
Ito Kazumitsu 10590d375b SimpleDateFormat.java (compileFormat): isLowerCase() and isUpperCase() allow too many characters.
2003-12-02  Ito Kazumitsu  <kaz@maczuka.gcd.org>

	* java/text/SimpleDateFormat.java (compileFormat):
	isLowerCase() and isUpperCase() allow too many characters.
	Just use >= 'A' && <= 'Z' || >= 'a' && <= 'z'.

From-SVN: r74188
2003-12-02 16:15:15 +00:00
Dalibor Topic 3c22b666f5 FieldPosition.java (equals): Fixed comment.
2003-12-02  Dalibor Topic <robilad@kaffe.org>

	* java/text/FieldPosition.java (equals): Fixed comment.

From-SVN: r74187
2003-12-02 15:56:52 +00:00
Mark Wielaard 54cfd51955 Reported by Archie Cobbs:
2003-12-02  Mark Wielaard  <mark@klomp.org>

	Reported by Archie Cobbs:
	* java/security/DigestInputStream.java (read(byte[], int, int): Call
	digest.update() with temp, not len as lenght.

From-SVN: r74186
2003-12-02 15:52:07 +00:00
Giovanni Bajo 1c59130c86 re PR c++/10126 (ICE in convert_nontype_argument on using overload resolution in template args)
PR c++/10126
	* g++.dg/template/ptrmem8.C: New test.

From-SVN: r74185
2003-12-02 15:50:44 +00:00
Giovanni Bajo 59e7a90194 re PR c++/10126 (ICE in convert_nontype_argument on using overload resolution in template args)
PR c++/10126
	* pt.c (convert_nontype_argument): Handle default conversions
	while converting a pointer to member function.

From-SVN: r74184
2003-12-02 15:46:51 +00:00
Michael Koch c531dd016b 2003-12-02 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java
	(close): Close associated DatagramChannel object.
	* java/net/ServerSocket.java
	* java/net/Socket.java
	(close): Reset impl and bound before calling getChannel().close() to
	prevent from loops.

From-SVN: r74183
2003-12-02 15:23:23 +00:00
Michael Koch d9b526cc1d 2003-12-02 Michael Koch <konqueror@gmx.de>
* java/nio/channels/spi/AbstractInterruptibleChannel.java
	(opened): Removed.
	(closed): New field.
	(close): Check of channel is closed already.
	(isOpen): Return !closed.

From-SVN: r74182
2003-12-02 15:11:57 +00:00
Michael Koch 598e749df6 2003-12-02 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/DatagramChannelImpl.java
	(blocking): Initialize with true by default.
	* gnu/java/nio/ServerSocketChannelImpl.java
	(serverSocket): Made private.
	(blocking): Likewise.
	(connected): Likewise.
	* gnu/java/nio/SocketChannelImpl.java
	(connectionPending): Made private.
	* gnu/java/nio/FileLockImpl.java
	(static): Load native library (needed for classpath).
	* gnu/java/nio/SelectorImpl.java
	(static): Load native library (needed for classpath).

From-SVN: r74181
2003-12-02 15:03:21 +00:00
Michael Koch a74e3b7707 2003-12-02 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/file/Connection.java
	(getLastModified): Implement for file connections.
	(getContentLength): Likewise.

From-SVN: r74180
2003-12-02 14:36:22 +00:00
Michael Koch 84ebbc6777 Connection.java: Some reformating.
2003-12-02  Michael Koch  <konqueror@gmx.de>

	* gnu/java/net/protocol/file/Connection.java:
	Some reformating.
	(file): Renamed from fileIn.
	(getPermission): Moved around.

From-SVN: r74179
2003-12-02 14:27:33 +00:00
Michael Koch 83f85f9c8d 2003-12-02 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/jar/Connection.java
	(Connection): Made class final, merged documentation with classpath.
	(file_cache): Made private.
	(jar_file): Renamed from jarfile.

From-SVN: r74178
2003-12-02 14:19:34 +00:00
Michael Koch 91305a1de9 2003-12-02 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/http/Connection.java
	(Connection): Initialize doOutput to false;
	(connect): Initialize inputStream, moved "send request" code to new
	method.
	(sendRequest): New method.
	(getHttpHeaders): Don't reinitialize inputStream.

From-SVN: r74177
2003-12-02 14:13:46 +00:00
Michael Koch 2b95402c94 2003-12-02 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol//http/Connection.java
	(defRequestProperties): Removed. This dont gets used since JDK 1.3.
	(requestProperties): Initialize, documentation added.
	(inputStream): Renamed from bufferedIn.
	(Connection): Dont initialize requestProperties.
	(setDefaultRequestProperty): Removed.
	(getDefaultRequestProperty): Removed.
	(usingProxy): Documentation added.
	(getHttpHeaders): Likewise.

From-SVN: r74176
2003-12-02 13:44:23 +00:00
Michael Koch 920ca19713 DateFormat.java: Explicitely import used classes.
2003-12-02  Michael Koch  <konqueror@gmx.de>

	* java/text/DateFormat.java:
	Explicitely import used classes.

From-SVN: r74174
2003-12-02 13:13:23 +00:00
Giovanni Bajo e77de2953d re PR c++/12573 (ICE (segfault) with Boost.Python)
PR c++/12573
	* g++.dg/template/dependent-expr3.C: New test.

From-SVN: r74173
2003-12-02 12:10:32 +00:00
Giovanni Bajo 27408a3c02 re PR c++/12573 (ICE (segfault) with Boost.Python)
PR c++/12573
	* pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
	looking into them recursively.

From-SVN: r74172
2003-12-02 12:02:21 +00:00
Richard Henderson 7e7c843fc7 rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
* rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
        * tree.h (TREE_SET_CODE): Likewise.
        * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.

From-SVN: r74170
2003-12-02 02:14:40 -08:00
Richard Henderson df2b750fc1 name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD.
* name-lookup.h (struct cp_binding_level): Use ENUM_BITFIELD.
        * parser.c (struct cp_token): Likewise.
        (struct cp_parser_token_tree_map_node): Likewise.
        * lex.c (struct resword): Move const after ENUM_BITFIELD.

From-SVN: r74169
2003-12-02 02:11:24 -08:00
Paolo Carlini 142b798be5 2003-12-02 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/monetary_members.cc
	(money_base::_S_construct_pattern): For case 3: and 4:
	exchanging 'if (__precedes)' and 'if (__space)' allows
	to factor out a few more assignments.

From-SVN: r74168
2003-12-02 09:16:30 +00:00
Ben Elliston 1d3f6c9fca [approved by wilson]
* dbxstclass.h: Rename from this ..
	* xcoff.h: .. to this.
	* xcoffout.c: Include xcoff.h.

From-SVN: r74167
2003-12-02 20:07:25 +11:00
Hosaka Yuji 2c4ed4565a re PR libffi/13221 (libffi's closure couldn't pass sequence of char and/or short arguments.)
2003-12-02  Hosaka Yuji  <hos@tamanegi.org>

	PR other/13221
	* src/x86/ffi.c (ffi_prep_args, ffi_prep_incoming_args_SYSV):
	Align arguments to 32 bits.

From-SVN: r74161
2003-12-02 06:39:06 +01:00
Jeff Sturm c25d9caa3b re PR rtl-optimization/13024 (gcj can't build current rhug)
* libjava.compile/PR13024.java: New file.
* libjava.compile/PR13237.java: New file.

From-SVN: r74157
2003-12-02 04:43:25 +00:00
Kaveh R. Ghazi 3c987b8ed7 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
From-SVN: r74153
2003-12-02 03:55:20 +00:00
Jeff Sturm c353d6a488 verify.cc (state::clean_subrs): Clear seen_subrs.
* verify.cc (state::clean_subrs): Clear seen_subrs.
(state::copy): Walk seen_subrs from copy, not `this'.
Don't clear seen_subrs.

From-SVN: r74152
2003-12-02 03:42:40 +00:00
Benjamin Kosnik 6b98580b89 basic_ios.h (basic_ios::setstate): Revert.
2003-12-01  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/basic_ios.h (basic_ios::setstate): Revert.
	* include/bits/istream.tcc: Only call setstate if __err != goodbit.
	* include/bits/ostream.tcc: Same.
	* testsuite/27_io/basic_ios/exceptions/char/2.cc: New.

	* testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
	internal buffer non-static.

From-SVN: r74151
2003-12-02 02:48:51 +00:00
James E Wilson b3538cf247 As per David's request.
* doc/contrib.texi: Update David Mosberger.

From-SVN: r74150
2003-12-01 18:45:16 -08:00
James Lemke e3b661203f arm.c (arm_rtx_costs): Improve for xscale multiply.
* config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
* testsuite/gcc.dg/arm-g2.c: New test.

From-SVN: r74149
2003-12-02 02:17:18 +00:00
Roger Sayle d9e7c8e3c3 re PR rtl-optimization/11634 ([hppa] ICE in verify_local_live_at_start, at flow.c:555)
PR optimization/11634
	* recog.c (split_insn): Factor test of INSN_P and handling of
	set_noop_p out of here into the two callers.
	(split_all_insns): Add INSN_P test and set_noop_p handling here.
	If deleting a no-op set after reload that has a REG_UNUSED note,
	mark the basic block as changed and recalculate life information.
	(split_all_insns_noflow): Add INSN_P test and set_noop_p handling
	here.

	* gcc.dg/20031201-2.c: New test case.

From-SVN: r74145
2003-12-02 01:43:58 +00:00
Roger Sayle b58b21d521 re PR rtl-optimization/12322 (Significant slowdown when compiling computed-goto code in Parrot)
PR optimization/12322
	* gcse.c (struct ls_expr): Change type of hash_index from int to
	unsigned int.
	(hash_expr): Document hash_table_size parameter and wrap long line.
	(ldst_entry): Calculate expression's hash_index and record in ptr.
	(trim_ld_motion_mems): Use hash_index to search a single bucket
	instead of scanning the entire hash_table.  Remove the "del" local
	variable and use the equivalent "expr == 0" instead.  Change last
	to be a pointer to the pointer to the current element, to simplify
	and speed-up deleting from a linked list.

From-SVN: r74144
2003-12-02 01:39:20 +00:00
James E Wilson 98376d4a7e Fixes issues pointed out by Chris Lattner.
* doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
of missing fields.

From-SVN: r74143
2003-12-01 17:32:39 -08:00
James E Wilson 4582b84915 re PR target/8407 ([IA-64] ICE in simplify_gen_subreg, at simplify-rtx.c:2711 with very simple code)
PR target/8407
* config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
gen_rtx_REG to create new reg with argument mode.

From-SVN: r74142
2003-12-01 17:12:11 -08:00
Kim Ho 85fa3bdee4 gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Disable wrapping if TextArea has horizontal scroll bars.
2003-12-01  Kim Ho <kho@redhat.com>

	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
	Disable wrapping if TextArea has horizontal scroll bars.

From-SVN: r74141
2003-12-02 01:01:07 +00:00
GCC Administrator 2704382914 Daily bump.
From-SVN: r74139
2003-12-02 00:16:09 +00:00
Zack Weinberg 75d3baee18 re PR libobjc/11433 (Crash due to dereferencing null pointer when querying protocol)
PR 11433
gcc/testsuite:
	* objc.dg/proto-lossage-3.m: New test.
libobjc:
	* Protocol.m (descriptionForInstanceMethod): Don't dereference
	instance_methods if it's NULL.
	(descriptionForClassMethod): Likewise for class_methods.

From-SVN: r74137
2003-12-01 23:29:59 +00:00
Thomas Fitzsimmons bb9cfd0062 2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
	(awt_event_handler): Hard-code inset values.

From-SVN: r74136
2003-12-01 23:27:06 +00:00