Commit Graph

54984 Commits

Author SHA1 Message Date
Michael Koch
4e24f93733 2003-12-20 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/jar/Connection.java
	(connectionCache): New field.
	(connect): New method.
	(getInputStream): New method.
	(hdrHash): New field.
	(hdrVec): New field.
	(gotHeaders): New field.
	(getHeaderField): New method.
	(getHeaderFields): New method.
	(getHeaderFieldKey): New method.
	(getKey): New method.
	(getField): New method.
	(getHeaders): New method.
	* java/net/JarURLConnection.java
	(connectionCache): Removed.
	(connect): Removed.
	(getInputStream): Removed.
	(hdrHash): Removed.
	(hdrVec): Removed.
	(gotHeaders): Removed.
	(getHeaderField): Removed.
	(getHeaderFields): Removed.
	(getHeaderFieldKey): Removed.
	(getKey): Removed.
	(getField): Removed.
	(getHeaders): Removed.

From-SVN: r74895
2003-12-20 22:54:26 +00:00
Michael Koch
70d26e8152 ObjectStreamField.java (isUnshared): Added documentation.
2003-12-20  Michael Koch  <konqueror@gmx.de>

	* java/io/ObjectStreamField.java (isUnshared): Added documentation.

From-SVN: r74894
2003-12-20 22:36:02 +00:00
Andrew Pinski
781f4ec18f re PR target/12749 (i386 LP64 bug.)
2003-12-20  Andrew Pinski  <pinskia@gcc.gnu.org>
            Matt Thomas  <matt@3am-software.com>

       PR target/12749
       * config/i386/i386.c (print_operand): Print only the first
       8 characters of the float in hex.

2003-12-20  Andrew Pinski  <pinskia@gcc.gnu.org>

       PR target/12749
       * gcc.c-torture/compile/20031220-2.c: New test case.

Co-Authored-By: Matt Thomas <matt@3am-software.com>

From-SVN: r74893
2003-12-20 13:56:47 -08:00
Roger Sayle
3b24df36c0 re PR rtl-optimization/13031 (ICE (unrecognizable insn) when building gnome-libs-1.4.2)
2003-12-20  Roger Sayle  <roger@eyesopen.com>

	PR optimization/13031
	* gcc.c-torture/compile/20031220-1.c: New test case.

From-SVN: r74892
2003-12-20 20:17:53 +00:00
Jason Merrill
c703c3900e atomicity.h: Fix oversight in previous change.
* config/cpu/powerpc/atomicity.h: Fix oversight in previous
        change.

From-SVN: r74890
2003-12-20 13:45:30 -05:00
Jason Merrill
778e99e55f fix thinko
From-SVN: r74889
2003-12-20 12:44:11 -05:00
John David Anglin
3914c31fc6 pa.h (TRAMPOLINE_TEMPLATE): Shorten sequence when generating PA 2.0 code.
* pa.h (TRAMPOLINE_TEMPLATE): Shorten sequence when generating PA
	2.0 code.
	(TRAMPOLINE_CODE_SIZE, MIN_CACHELINE_SIZE): New defines.
	(INITIALIZE_TRAMPOLINE): Rework to pass line length, and aligned start
	and end addresses to I and D cache instruction patterns.
	* pa.md (anddi3, iordi3): Change predicates of operands 1 and 2 to
	and_operand and ior_operand, respectively.  When generating 64-bit
	code, only one operand needs to be a register operand.
	(xordi3): Change predicates of operands 1 and 2 to register_operand.
	(one_cmpldi2): Change predicate of operand 1 to register_operand.
	(dcacheflush, icacheflush): Revise to flush an arbitrary number of
	cache lines.

From-SVN: r74888
2003-12-20 17:24:15 +00:00
Josef Zlomek
6ae533cf89 PR optimization/13430, PR optimization/12322
PR optimization/13430, PR optimization/12322
	* bb-reorder.c (copy_bb_p): Do not allow block with many successors to
	be copied.
	(find_traces_1_round): Surround check for fake edges by
	#ifdef ENABLE_CHECKING #endif.

From-SVN: r74887
2003-12-20 16:31:12 +00:00
Bruce Korb
5d7f899bb3 New file for the darwin_private_extern fix
From-SVN: r74886
2003-12-20 16:00:47 +00:00
Ian Lance Taylor
2307e075c1 cp-demangle.c (d_identifier): In Java mode, skip an optional '$' after the identifier.
* cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
	after the identifier.
	* testsuite/demangle-expected: Add test case.

From-SVN: r74885
2003-12-20 15:53:06 +00:00
Jerry Quinn
3101fa3c06 TODO: Update.
2003-12-20  Jerry Quinn  <jlquinn@optonline.net>

	* docs/doxygen/TODO: Update.
	* include/bits/locale_classes.h (locale, facet, id): Document.
	* include/bits/locale_facets.tcc (has_facet, use_facet): Document.

From-SVN: r74884
2003-12-20 15:51:09 +00:00
Bruce Korb
9c0817543f Keep inclhack.def sortable.
Keep inclhack.def sortable.  The segmentation is based on lines containing only
a slash and an asterisk

From-SVN: r74883
2003-12-20 15:49:22 +00:00
Kazu Hirata
3a976c72d6 class.c: Remove uses of "register" specifier in declarations of arguments and local...
* class.c: Remove uses of "register" specifier in
	declarations of arguments and local variables.
	* decl.c: Likewise.
	* expr.c: Likewise.
	* gjavah.c: Likewise.
	* jcf-dump.c: Likewise.
	* jcf-io.c: Likewise.
	* jcf-parse.c: Likewise.
	* jcf-write.c: Likewise.
	* keyword.h: Likewise.
	* parse.y: Likewise.
	* typeck.c: Likewise.
	* verify.c: Likewise.

From-SVN: r74882
2003-12-20 15:38:28 +00:00
Kazu Hirata
aed8bfdc7e trans.c: Remove uses of "register" specifier in declarations of local variables.
* trans.c: Remove uses of "register" specifier in
	declarations of local variables.

From-SVN: r74880
2003-12-20 15:37:31 +00:00
Mohan Embar
677f99cce5 * gnu/java/nio/SelectorImpl.java
(selectThreadMutex): New field.
	(selectThread): New field.
	(unhandledWakeup): New field.
	(implCloseSelector): Added skeleton code which
	synchronizes as per Sun JRE JavaDoc.
	(keys): Throw ClosedSelectorException if selector
	is closed.
	(selectNow): Added comment that we're faking out
	an immediate select with a one-microsecond-timeout one.
	(select): Use 0 instead of -1 for infinite timeout.
	(implSelect): Changed comment in declaration.
	(select): Added synchronized to method declaration.
	Added synchronization and wakeup support as per Sun
	JRE JavaDoc.
	(selectedKeys): Throw ClosedSelectorException if selector
	is closed.
	(wakeup): Implemented.
	(deregisterCancelledKeys): Synchronize on cancelled key
	set before deregistering.
	(register): Synchronize on key set before registering.
	* java/nio/channels/spi/AbstractSelector.java
	Added import for java.nio.channels.ClosedSelectorException.
	(close): Added synchronized to method declaration.
	(cancelledKeys): Throw ClosedSelectorException if selector
	is closed.
	(cancelKey): Synchronize on cancelled key set before key.

From-SVN: r74879
2003-12-20 15:33:24 +00:00
Michael Koch
59687e1890 Makefile.am (ordinary_java_source_files): Added gnu.java.net.URLParseError.java.
2003-12-20  Michael Koch  <konqueror@gmx.de>

	* Makefile.am (ordinary_java_source_files):
	Added gnu.java.net.URLParseError.java.
	* Makefile.in: Regenerated.

From-SVN: r74878
2003-12-20 12:45:11 +00:00
Guilhem Lavaux
32ab41edd2 URLParseError.java: New file.
2003-12-20  Guilhem Lavaux <guilhem@kaffe.org>

	* gnu/java/net/URLParseError.java: New file.
	* gnu/java/net/protocol/jar/Handler.java
	(parseURL): Throw URLParseError if needed, fix '/' handling.
	* java/net/URL.java (URL): Catch URLParseError and
	transform it into a MalformedURLException.

From-SVN: r74877
2003-12-20 12:28:25 +00:00
Eric Botcazou
1713a69f0a re PR other/7956 (unreadable error on -m64 with --disable-multilib)
PR other/7956
	* genmultilib: New variable disable_multilib.  Set it to 'yes'
	if enable_multilib was set to 'no'.  Emit DISABLE_MULTILIB
	if disable_multilib was set to 'yes'.
	* gcc.c: Include multilib.h before tm.h.
	* config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
	message for multiarch options if DISABLE_MULTILIB is set.
	* config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.

From-SVN: r74875
2003-12-20 07:40:24 +00:00
Eric Botcazou
c96f4f736a re PR c/12085 (Internal compiler error in convert_move, at expr.c:504 with -O3 flag)
PR c/12085
	* c-typeck.c (build_function_call): Issue a warning if a
	function is called through an incompatible prototype and
	replace the call by a trap in this case.

From-SVN: r74874
2003-12-20 07:12:39 +00:00
James E Wilson
bcd11e5e45 install.texi (ia64-*-linux): Document minimum libunwind version number.
* install.texi (ia64-*-linux): Document minimum libunwind version
number.

From-SVN: r74873
2003-12-19 23:05:17 -08:00
Per Bothner
7b330e0818 re PR c/13110 (error message includes extra blank line)
* langhooks.c (lhd_print_error_function):  Fix for PR c/13110.
	Don't do pp_newline; it causes an extra blank line.
	* pretty-print.c (pp_base_flush):  Clear pp_needs_newline.

From-SVN: r74872
2003-12-19 22:32:32 -08:00
Jason Merrill
f3da0ead0c tree.c (get_unwidened): Decide whether to narrow a bitfield reference based on TYPE_SIZE...
* tree.c (get_unwidened): Decide whether to narrow a bitfield
        reference based on TYPE_SIZE, not TYPE_PRECISION.
        * cp/cvt.c (convert_to_void): Don't warn about the RHS of a comma
        being useless if TREE_NO_UNUSED_WARNING is set.

        * stmt.c (parse_output_constraint): Warn about in-out constraint
        that doesn't allow a register.
        (parse_input_constraint): Warn about matching constraint that
        doesn't allow a register.

From-SVN: r74871
2003-12-19 22:21:25 -05:00
Jason Merrill
46eb4b3989 atomicity.h: Remove memory clobbers.
* config/cpu/cris/atomicity.h: Remove memory clobbers.
        * config/cpu/mips/atomicity.h: Likewise.
        * config/cpu/i486/atomicity.h: Remove memory clobbers.
        Split up read-write memory operand.
        * config/cpu/m68k/atomicity.h: Likewise.
        * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
        * config/cpu/s390/atomicity.h: Likewise.
        * config/cpu/sparc/atomicity.h: Likewise.

From-SVN: r74870
2003-12-19 22:08:42 -05:00
James E Wilson
a06f01ba1e Patch for asm clobber of fp.
* flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
Add case for ASM_OPERANDS.
* global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
registers.

From-SVN: r74869
2003-12-19 18:39:43 -08:00
Kazu Hirata
020036b90e expr.c (check_max_integer_computation_mode): Remove.
* expr.c (check_max_integer_computation_mode): Remove.
	* dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
	* fold-const.c (fold): Likewise.
	* system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
	* doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.

From-SVN: r74868
2003-12-20 01:40:41 +00:00
Jim Wilson
750e3ed363 Fix typo in name.
From-SVN: r74866
2003-12-19 17:31:23 -08:00
James E Wilson
28f08c8adb Drop test for libunwind 0.95 and earlier.
* configure.in: Delete libunwind_has_eh_support test.
* configure: Regenerate.
* config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
and libunwind_has_eh_support check.
* config/t-libunwind-no-eh: Delete.

From-SVN: r74865
2003-12-19 17:30:23 -08:00
GCC Administrator
0d49ce35e3 Daily bump.
From-SVN: r74863
2003-12-20 00:16:06 +00:00
Joseph Myers
be7ac47149 c-format.c (print_char_table): Allow 'I' flag on floating point decimal formats.
* c-format.c (print_char_table): Allow 'I' flag on floating point
	decimal formats.

testsuite:
	* gcc.dg/format/ext-1.c: Allow 'I' flag on floating point decimal
	formats.

From-SVN: r74860
2003-12-20 00:00:39 +00:00
Stuart Hastings
0f901c4c23 i386.c (ix86_expand_call, [...]): Trivial fixes for i386.c on Darwin/x86.
* gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
	Trivial fixes for i386.c on Darwin/x86.

From-SVN: r74859
2003-12-19 23:37:38 +00:00
Fariborz Jahanian
b240b5a250 Test to test -mdynamic-no-pic -O2 -mpowerpc64 on Darwin.
From-SVN: r74858
2003-12-19 23:35:40 +00:00
Fariborz Jahanian
ef342e209f Added code to recognize macho-style lo_sum adrress patterns.
From-SVN: r74857
2003-12-19 23:34:58 +00:00
Fariborz Jahanian
8622e23543 Added TARGET_MACHO to handle lo_sum address recognition.
Reviewed by Geoff.

From-SVN: r74856
2003-12-19 23:32:44 +00:00
Kazu Hirata
926ce8bd97 cvt.c: Remove uses of "register" specifier in declarations of arguments and local...
* cvt.c: Remove uses of "register" specifier in
	declarations of arguments and local variables.
	* decl.c: Likewise.
	* decl2.c: Likewise.
	* expr.c: Likewise.
	* friend.c: Likewise.
	* lex.c: Likewise.
	* name-lookup.c: Likewise.
	* repo.c: Likewise.
	* search.c: Likewise.
	* tree.c: Likewise.
	* typeck.c: Likewise.
	* typeck2.c: Likewise.

From-SVN: r74855
2003-12-19 23:28:11 +00:00
Kazu Hirata
49a2799521 dwarfout.c: Remove uses of "register" specifier in declarations of arguments and local...
* dwarfout.c: Remove uses of "register" specifier in
	declarations of arguments and local variables.
	* gensupport.c: Likewise.
	* local-alloc.c: Likewise.
	* regclass.c: Likewise.

From-SVN: r74854
2003-12-19 23:27:05 +00:00
Carlo Wood
6fe68b3740 * bits/demangle.h
namespace __gnu_cxx::demangler
(session<Allocator>::decode_encoding): Put the postfix
of the return type of (member) functions after the function
instead of after the return type.

From-SVN: r74853
2003-12-19 23:15:24 +00:00
Kelley Cook
128325718c config.guess: Remove.
2003-12-19  Kelley Cook  <kelleycook@wideopenwest.com>

	* config.guess: Remove.

From-SVN: r74852
2003-12-19 22:49:22 +00:00
Joseph Myers
d800897a04 * de.po: Update.
From-SVN: r74851
2003-12-19 21:53:53 +00:00
Ian Lance Taylor
a91d1af087 re PR c++/13447 (Another demangler problem with method cv-qualifiers)
Fix for PR c++/13447:
	* cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
	(d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
	(is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
	D_COMP_QUAL_NAME.
	(is_ctor_or_dtor): Likewise.
	(d_local_name): Use D_COMP_LOCAL_NAME rather than
	D_COMP_QUAL_NAME.
	(d_print_comp) [D_COMP_LOCAL_NAME]: New.
	(d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
	D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
	(d_print_mod_list): Handle D_COMP_LOCAL_NAME.
	* testsuite/demangle-expected: Add two test cases.

	* cp-demangle.c (d_print_function_type): Clear the global modifier
	list when printing the modifiers, not just when printing the
	function parameters.
	* testsuite/demangle-expected: Add two test cases.

From-SVN: r74850
2003-12-19 21:14:35 +00:00
Mark Mitchell
4656bc859d re PR c++/12795 (ICE with attribute __alias__)
PR c++/12795
	* name-lookup.c (pushdecl): Do not treated any functions as being
	"nested" in C++.

	PR c++/12795
	* g++.dg/ext/attrib10.C: New test.

From-SVN: r74849
2003-12-19 21:10:03 +00:00
Jerry Quinn
2dbd0234aa 2003-12-19 Jerry Quinn <jlquinn@optonline.net>
* include/bits/locale_facet.h
        (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
        Document.

From-SVN: r74848
2003-12-19 20:44:18 +00:00
Michael Koch
01da266767 ChannelOutputStream.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/ChannelOutputStream.java: New file.
	* java/nio/channels/Channels.java
	(newOutputStream): Implemented.
	* Makefile.am (ordinary_java_source_files)
	Added gnu/java/nio/ChannelOutputStream.java.
	* Makefile.in: Regenerated.

From-SVN: r74847
2003-12-19 20:42:00 +00:00
Jason Merrill
60cd3e8bab re PR c++/13371 (infinite loop with packed struct and inlining)
PR c++/13371
        * typeck.c (build_modify_expr): Stabilize lhs if we're narrowing.

From-SVN: r74846
2003-12-19 15:25:22 -05:00
Thomas Fitzsimmons
a0687c1fbc FlowLayout.java (layoutContainer): Let components assume their preferred height.
2003-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/FlowLayout.java (layoutContainer): Let components
	assume their preferred height.  Centre components vertically.

From-SVN: r74844
2003-12-19 20:11:56 +00:00
Michael Koch
26392535a7 ChannelInputStream.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/ChannelInputStream.java: New file.
	* java/nio/channels/Channels.java (newInputStream): Implemented.
	* java/nio/channels/FileChannelImpl.java
	(readImpl): Only put data into buffer if something was read.
	* Makefile.am (ordinary_java_source_files):
	Added gnu/java/nio/ChannelInputStream.java.
	* Makefile.in: Regenerated.

From-SVN: r74842
2003-12-19 19:06:34 +00:00
Paolo Carlini
cc16f8b948 locale_facets.tcc (num_get::_M_extract_int, [...]): According to 22.2.2.1.2, p8-9, first look for decimal_point and thousands_sep.
2003-12-19  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get::_M_extract_int,
	num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
	first look for decimal_point and thousands_sep.
	* testsuite/22_locale/num_get/get/char/11.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.

From-SVN: r74841
2003-12-19 18:14:22 +00:00
Michael Koch
9175d628d0 OutputStreamChannel.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/OutputStreamChannel.java: New file.
	* java/nio/channels/Channels.java (newChannel): Implemented.
	* Makefile.am (ordinary_java_source_files):
	Added gnu/java/nio/OutputStreamChannel.java.
	* Makefile.in: Regenerated.

From-SVN: r74840
2003-12-19 16:31:59 +00:00
Michael Koch
71646cb777 Makefile.am (ordinary_java_source_files): Added gnu.java.nio.InputStreamChannel.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* Makefile.am (ordinary_java_source_files):
	Added gnu.java.nio.InputStreamChannel.
	* Makefile.in: Regenerated.

From-SVN: r74839
2003-12-19 15:28:00 +00:00
Michael Koch
b8362a2315 InputStreamChannel.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/InputStreamChannel.java: New file.
	* java/nio/channels/Channels.java (newChannel): Implemented.

From-SVN: r74838
2003-12-19 15:22:33 +00:00
Andreas Tobler
7dff81909b fibheap.h (fibnode): Use __extension__ for bit-fields mark and degree if __GNUC__.
* include/fibheap.h (fibnode): Use __extension__ for
	bit-fields mark and degree if __GNUC__.

From-SVN: r74836
2003-12-19 14:37:36 +00:00