Commit Graph

45946 Commits

Author SHA1 Message Date
Michael Koch
9dcb1ec813 ByteOrder.java: New file.
2002-11-01  Michael Koch  <konqueror@gmx.de>

	* java/nio/ByteOrder.java: New file.
	* java/nio/channels/DatagramChannel.java:
	(DatagramChannel): New constructor.
	* java/nio/channels/Pipe.java: New file.
	* java/nio/channels/SelectableChannel.java: New file.
	* java/nio/channels/SelectionKey.java: New file.
	* java/nio/channels/Selector.java: New file.
	* java/nio/channels/ServerSocketChannel.java
	(ServerSocketChannel): New constructor.
	* java/nio/channels/SocketChannel.java
	(SocketChannel): New constructor.
	* java/nio/channels/Pipe.java: New file.
	* java/nio/channels/spi/AbstractChannel.java: New file.
	* java/nio/channels/spi/AbstractInterruptibleChannel.java: New file.
	* java/nio/channels/spi/AbstractSelectableChannel.java:
	License added
	(AbstractSelectableChannel): New stubbed method.
	* java/nio/channels/spi/AbstractSelectionKey.java: New file.
	* java/nio/channels/spi/AbstractSelector.java: New file.
	* java/nio/channels/spi/SelectorProvider.java: New file.
	* java/nio/charset/Charset.java: New file.
	* java/nio/charset/CoderMalfunctionError.java: New file.
	* java/nio/charset/CodingErrorAction.java: New file.
	* java/nio/charset/spi/CharsetProvider.java
	(charsetForName): Uncommented.
	* Makefile.am (java_native_source_files): Added new files.
	* Makefile.in: Regenerated.

From-SVN: r58713
2002-11-01 12:03:40 +00:00
Jan Hubicka
075fc17aa5 expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P
* expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
	* machmode.h (SCALAR_FLOAT_MODE_P): New macro.

From-SVN: r58712
2002-11-01 09:35:24 +00:00
GCC Administrator
cfcfd176a1 Daily bump.
From-SVN: r58711
2002-11-01 08:17:07 +00:00
Nathanael Nerode
9efb4cb690 re PR inline-asm/6162 (i386 asm reloader ice in reload_cse_simplify_operands)
PR optimization/6162
	* md.texi: Document restriction on commutative operand
	specification.

From-SVN: r58705
2002-11-01 07:05:57 +00:00
Michael Koch
75fe3383d8 2002-11-01 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
	(isAnyLocalAddress): Implemented.
	(isLoopbackAddress): Implemented, comment added.
	(isLinkLocalAddress): Implemented, documentation added.
	(isSiteLocalAddress): Implemented, documentation added.
	(isMCGlobal): Implemented, documentation added.
	(isMCNodeLocal): Implemented, documentation added.
	(isMCLinkLocal): Implemented, documentation added.
	(isMCSiteLocal): Implemented, documentation added.
	(isMCOrgLocal): Implemented, documentation added.
	(getHostName): Documentation added.
	(getCanonicalHostName): Implemented, documentation added.
	(getAddress): Documentation added.
	(hashCode): Documentation added.
	(equals): Documentation added.
	(toString): Fixed implementation.
	(getByAddress): Use Inet4Address and Inet6Address.
	(lookup): New linewrap.
	(getByName): SecurityManager check added, support Inet4Address and
	Inet6address, comments added.
	(getAllByName): SecurityManager check added, comments added.
	* java/net/Inet6Address.java:
	(Inet6Address): Initialize parent class with addr instead of null.
	* java/net/URL.java
	(equals): Documentation added.
	(getFile): Documentation added.
	(hashCode): Documentation added.
	* java/net/natInetAddress.cc:
	(aton): Fix IPv6 support.
	* java/net/natPlainDatagramSocketImpl.cc:
	(peek): Throw PortUnreachableException when suitable.
	(peekData): Throw PortUnreachableException when suitable.
	(send): Throw PortUnreachableException when suitable.
	(receive): Throw PortUnreachableException when suitable.

From-SVN: r58704
2002-11-01 06:35:14 +00:00
Benjamin Kosnik
04c7481ed2 re PR libstdc++/8348 (fail() flag is set in istringstream when eof() flag is set !)
2002-10-31  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/8348
	* include/bits/istream.tcc (istream::tellg): Remove sentry bits.
	(istream::seekg): Same.
	* testsuite/27_io/istream_seeks.cc (test06): New.

From-SVN: r58703
2002-11-01 05:38:27 +00:00
Mark Wielaard
5e81d5beff ZipFile.java (readLeShort): Take and use DataInput as argument.
* java/util/zip/ZipFile.java (readLeShort): Take and use DataInput as
	argument.
	(readLeShort): Likewise and use byte[].
	(readLeInt): Likewise.
	(readEntries): Use new versions of methods and use byte[] for reading
	a complete zip entry. Add ZipFile name to exceptions.
	(entries): Add ZipFile name to exceptions.
	(getEntry): Likewise.
	(checkLocalHeader): Use new versions of methods and add ZipFile name
	to exceptions.

From-SVN: r58697
2002-10-31 21:56:32 +00:00
Jason Merrill
bab076f76a re PR c++/8186 (ICE in cp_expr_size, at cp/cp-lang.c:304)
PR c++/8186
        * cp-tree.h (ADDR_IS_INVISIREF): New macro.
        * call.c (convert_for_arg_passing): Set it.
        * except.c (stabilize_throw_expr): Recurse for such an arg.

From-SVN: r58696
2002-10-31 16:42:46 -05:00
Eric Christopher
ce02ba255c explow.c (convert_memory_address): Use shallow_copy_rtx.
2002-10-31  Eric Christopher  <echristo@redhat.com>

        * explow.c (convert_memory_address): Use shallow_copy_rtx.

From-SVN: r58695
2002-10-31 21:35:57 +00:00
Steve Ellcey
8efb33ec2d * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
From-SVN: r58694
2002-10-31 20:43:07 +00:00
Steve Ellcey
a543c709ab * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
From-SVN: r58693
2002-10-31 20:40:29 +00:00
Dale Johannesen
cdc58a822b Correct formatting in previous patch.
From-SVN: r58692
2002-10-31 20:32:49 +00:00
Dale Johannesen
e381c27adc enable -falign-xxx flags
From-SVN: r58690
2002-10-31 19:40:12 +00:00
Jason Merrill
3b5b4904ec restore old comment
From-SVN: r58687
2002-10-31 13:57:39 -05:00
Mark Anderson
b8d5baff92 GridBagLayout.java (setConstraints): New stubbed method added
2002-10-31  Mark Anderson  <mark@panonet.net>

	* java/awt/GridBagLayout.java (setConstraints): New stubbed method
	added

From-SVN: r58686
2002-10-31 18:50:38 +00:00
Jan Hubicka
41ed223784 Fix typo in my previous commit.
From-SVN: r58684
2002-10-31 17:27:02 +00:00
Jan Hubicka
55ba61f31a i386.c (override_options): Set defaults for flag_omit_frame_pointer...
* i386.c (override_options): Set defaults for flag_omit_frame_pointer,
	flag_asynchronous_unwind_tables, flag_pcc_struct_return.
	* i386.c (optimization_options): Set flag_omit_frame_pointer,
	flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
	Do not clear -momit-leaf-frame-pointer when profiling.
	(ix86_frame_pointer_required): Frame pointer is allways required when
	profiling.

From-SVN: r58681
2002-10-31 17:16:52 +00:00
Mark Mitchell
14b4829dfd cp-tree.h (lang_decl_flags): Remove init_priority.
* cp-tree.h (lang_decl_flags): Remove init_priority.
	(lang_decl): Add delta.
	(GLOBAL_INIT_PRIORITY): Remove.
	(THUNK_DELTA): Revise definition.
	* decl2.c (start_objects): Don't set GLOBAL_INIT_PRIORITY.
	* dump.c (cp_dump_tree): Don't dump it.

From-SVN: r58680
2002-10-31 16:07:32 +00:00
Jan Hubicka
f7e5dfbd02 * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
From-SVN: r58678
2002-10-31 15:21:22 +00:00
J"orn Rennecke
ff881d5229 sh.h (binary_logical_operator): Declare.
* sh.h (binary_logical_operator): Declare.
	* sh.c (binary_logical_operator): New function.
	* sh.md (xordi3+1): New combiner splitter pattern.

From-SVN: r58675
2002-10-31 12:53:06 +00:00
David O'Brien
e8e4c876bc freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define __enable_execute_stack function.
2002-10-31  David O'Brien  <obrien@FreeBSD.org>
	* config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
	__enable_execute_stack function.

Approved by:  David S. Miller <davem@redhat.com>
              Message-Id: <20021031.005015.22856738.davem@redhat.com>

From-SVN: r58674
2002-10-31 09:08:11 +00:00
GCC Administrator
0d55d45aa5 Daily bump.
From-SVN: r58673
2002-10-31 08:17:11 +00:00
Aldy Hernandez
27bd7792bf c-common.c: Add GTY to vector_type_node_list.
2002-10-30  Aldy Hernandez  <aldyh@redhat.com>

        * c-common.c: Add GTY to vector_type_node_list.

From-SVN: r58666
2002-10-31 06:57:28 +00:00
John David Anglin
a02aa5b099 pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
* pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
	* pa-protos.h (attr_length_millicode_call, attr_length_call,
	pa_init_machine_status): Declare new global functions.
	* pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
	implement new functions.
	(attr_length_millicode_call, attr_length_call): Implement.
	(total_code_bytes): Change type to long.
	(pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
	Reset counter if flag_function_sections.
	(output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
	(output_cbranch): Move call to gen_label_rtx.
	(output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
	delay slot in all variants, shorten pc-relative calls.
	(output_call): Rewrite adding long TARGET_64BIT call, improved delay
	slot usage and exposure, various new call variants, and shortened
	sequences for some variants on TARGET_PA_20.
	Miscellaneous format changes.
	* pa.h (total_code_bytes): Change type to long.
	(MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
	TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
	(TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
	(EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
	LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
	stores on TARGET_ELF32.
	*pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
	(unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
	canonicalize_funcptr_for_compare expanders): Calculate attribute length
	attr_length_millicode_call().
	(call_internal_symref, call_value_internal_symref): Clobber register 1.
	Calculate attribute length using attr_length_call().
	(call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
	to delay slot.
	(sibcall, sibcall_value): Rewrite.
	(sibcall_internal_symref, sibcall_value_internal_symref): Clobber
	register 1.  Use attr_length_call().
	(sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
	New patterns.
	(unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
	* som.h (MEMBER_TYPE_FORCES_BLK): Define.
	* t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
	* doc/invoke.texi (mlong-calls): Document.

From-SVN: r58665
2002-10-31 03:13:44 +00:00
Mark Mitchell
8c081e84f7 re PR c++/8160 (ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization)
PR c++/8160
	* typeck2.c (process_init_constructor): Call complete_array_type.

	PR c++/8149
	* decl.c (make_typename_type): Issue errors about invalid results.

	PR c++/8160
	* g++.dg/template/complit1.C: New test.

	PR c++/8149
	* g++.dg/template/typename4.C: Likewise.

From-SVN: r58663
2002-10-31 00:04:12 +00:00
Roger Sayle
9402f6fb74 fold-const.c (fold_binary_op_with_conditional_arg): Improve handling of cases where one or both branches of the conditional have...
* fold-const.c (fold_binary_op_with_conditional_arg):  Improve
	handling of cases where one or both branches of the conditional
	have void type, i.e. throw an exception or don't return.
	(fold): Only apply (and undo) type conversion to the non-void
	branches of a COND_EXPR.

	* f/com.c (ffecom_subscript_check_): Cast the failure branch
	of the bounds check COND_EXPR to void, to indicate noreturn.
	(ffe_truthvalue_conversion): Only apply truth value conversion
	to the non-void branches of a COND_EXPR.

From-SVN: r58661
2002-10-30 23:07:48 +00:00
Mark Mitchell
9b5b7e3a8f re PR c++/8333 (c++ emits double .globals for symbols [ regression from 3.0.4 ])
PR c++/8333
	* varasm.c (asm_output_aligned_bss): Do not call
	ASM_GLOBALIZE_LABEL.

From-SVN: r58658
2002-10-30 19:23:27 +00:00
Geert Bosch
1c4048ca8d re PR ada/6558 (Wrongly reverted patches)
PR ada/6558
	* misc.c : Include optabs.h

	* Make-lang.in (misc.o): Add dependency on optabs.h

From-SVN: r58656
2002-10-30 18:42:53 +01:00
David Edelsohn
df7a898926 rs6000.md (load_toc_v4_PIC_1): Use preferred form for addressibility.
* config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
        for addressibility.
        (load_toc_v4_PIC_1b): Same.

Co-Authored-By: Torbjorn Granlund <tege@swox.com>

From-SVN: r58655
2002-10-30 10:56:37 -05:00
Kriang Lerdsuwanakij
7088fca941 Core issue 287, PR c++/7639
Core issue 287, PR c++/7639
	* cp-tree.h (lang_type_class): Add decl_list field.
	(CLASSTYPE_DECL_LIST): New macro.
	(maybe_add_class_template_decl_list): Add declaration.
	* class.c (duplicate_tag_error): Initialize CLASSTYPE_DECL_LIST.
	(unreverse_member_declarations): Reverse CLASSTYPE_DECL_LIST.
	(maybe_add_class_template_decl_list): New function.
	(add_implicitly_declared_members): Use it.
	* decl.c (maybe_process_template_type_declaration): Likewise.
	(pushtag): Likewise.
	* friend.c (add_friend): Likewise.
	(make_friend_class): Likewise.
	* semantics.c (finish_member_declaration): Likewise.
	(begin_class_definition): Initialize CLASSTYPE_DECL_LIST.
	* pt.c (instantiate_class_template): Use CLASSTYPE_DECL_LIST
	to process members and friends in the order of declaration.

	Core issue 287, PR c++/7639
	* g++.dg/template/instantiate1.C: Adjust error location.
	* g++.dg/template/instantiate3.C: New test.
	* g++.old-deja/g++.pt/crash10.C: Adjust error location.
	* g++.old-deja/g++.pt/derived3.C: Adjust error location.
	* g++.old-deja/g++.pt/spec28.C: Reorder declaration.

From-SVN: r58654
2002-10-30 15:54:10 +00:00
Kazu Hirata
d2d199a3e6 h8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using HImode.
* config/h8300/h8300.c (h8300_eightbit_constant_address_p):
	Truncate the addresses for H8/300 using HImode.

From-SVN: r58653
2002-10-30 11:21:24 +00:00
GCC Administrator
964dad84b4 Daily bump.
From-SVN: r58652
2002-10-30 08:17:49 +00:00
Hans-Peter Nilsson
f6a9714b8a * lib/compat.exp (compat-execute): Don't clean out a gluefile.
From-SVN: r58646
2002-10-30 00:27:34 +00:00
Hans-Peter Nilsson
33c21f5cc0 toplev.c (rest_of_type_compilation): Return early in case of errors.
* toplev.c (rest_of_type_compilation): Return early in case of
	errors.
	(check_global_declarations): Don't call debug_hooks->global_decl
	in case of errors.

From-SVN: r58645
2002-10-30 00:19:59 +00:00
Mark Mitchell
59db5f7beb re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
PR c++/8287
	* g++.dg/init/dtor2.C: New test.

From-SVN: r58644
2002-10-30 00:05:56 +00:00
Mark Mitchell
5633b37c1b re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
PR c++/8287
	* decl.c (finish_destructor_body): Create the label to jump to
	when returning from a destructor here.
	(finish_function_body): Rather than here.

	PR c++/8287
	* g++.dg/init/dtor2.C: New test.

From-SVN: r58643
2002-10-30 00:05:36 +00:00
Krister Walfridsson
7deae97af8 configure.in: Disable hash sync when not using threads.
* configure.in: Disable hash sync when not using threads.
        * configure: Regenerated.

From-SVN: r58641
2002-10-29 23:03:17 +00:00
Andreas Bauer
d1445f8d81 * doc/c-tree.texi (Tree overview): Fix typos.
From-SVN: r58640
2002-10-29 22:39:49 +00:00
Geert Bosch
f0d96f9c14 re PR ada/6558 (Wrongly reverted patches)
PR ada/6558
	* Make-lang.in (gnatbind): Depend on CONFIG_H

From-SVN: r58637
2002-10-29 23:18:07 +01:00
Geert Bosch
a7512decd0 re PR ada/6558 (Wrongly reverted patches)
PR ada/6558
        * misc.c: Unrevert misc.c (1.13)

From-SVN: r58636
2002-10-29 23:01:18 +01:00
Phil Edwards
fc556cb99d Makefile.in (gnucompare*): Only record bad comparisons if there really was a bad comparison.
2002-10-29  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.in (gnucompare*):  Only record bad comparisons
	if there really was a bad comparison.

From-SVN: r58635
2002-10-29 21:37:13 +00:00
Jan Hubicka
f8ca792302 re PR target/8322 (SSE2 intrinsics broken?)
* i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
	* i386.md (movsf*, movdf*): Use 'C' instead of 'H'
	* md.texi (machine dependent constraints): Document 'C'

	* simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.

	* i386.c (ix86_expand_vector_move): Fix.

	* i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
	* i386.md (sse2_maskmovdqu_rex64): New pattern

	PR target/8322
	* xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
	(ix86_init_mmx_sse_builtins): Fix type.

From-SVN: r58631
2002-10-29 19:41:35 +00:00
Jason Thorpe
c95d07f893 gthr-posix.h: Include <unistd.h> for feature tests.
* gthr-posix.h: Include <unistd.h> for feature tests.
(sched_get_priority_max, sched_get_priority_min)
(pthread_getschedparam, pthread_setschedparam): Only use
if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
(__gthread_objc_thread_set_priority): Don't treat all non-zero
returns from sched_get_priority_max and sched_get_priority_min
as an error.

From-SVN: r58630
2002-10-29 18:23:02 +00:00
Kazu Hirata
3950794d0a h8300.h (TARGET_DEFAULT): Make it MASK_QUICKCALL.
* config/h8300/h8300.h (TARGET_DEFAULT): Make it
	MASK_QUICKCALL.

From-SVN: r58629
2002-10-29 18:03:37 +00:00
Kazu Hirata
803d56f52a h8300.c (h8300_eightbit_constant_address_p): New.
* config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
	(h8300_tiny_constant_address_p): Likewise.
	* config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
	h8300_eightbit_constant_address_p.
	(TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
	* config/h8300/h8300-protos.h: Add the prototypes for the two
	new functions.

From-SVN: r58628
2002-10-29 17:55:45 +00:00
Kazu Hirata
6bb8a3f75a reload1.c (update_eliminables): Unconditionally check if frame_pointer_needed has changed.
* reload1.c (update_eliminables): Unconditionally check if
	frame_pointer_needed has changed.

From-SVN: r58627
2002-10-29 17:47:12 +00:00
Jan Hubicka
fc8dfa2066 toplev.c (rest_of_compilation): Reorganize way reg_scan is called before final pass.
* toplev.c (rest_of_compilation): Reorganize way reg_scan is called
	before final pass.

From-SVN: r58624
2002-10-29 14:39:38 +00:00
Eric Botcazou
6e7727ebee expr.c (expand_expr): Don't use simplify_binary_operation; check for zero operands explicitly.
* expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
        check for zero operands explicitly.

From-SVN: r58623
2002-10-29 06:20:16 -08:00
Richard Sandiford
02c6a17aef mips.md (extv, [...]): Set size of referenced memory after adjusting to BLKmode.
* config/mips/mips.md (extv, extzv, insv): Set size of referenced
	memory after adjusting to BLKmode.

From-SVN: r58621
2002-10-29 13:47:10 +00:00
Kazu Hirata
1862869df9 h8300.h (MASK_*): New.
* config/h8300/h8300.h (MASK_*): New.
	(TARGET_*): Use MASK_*.

From-SVN: r58620
2002-10-29 12:29:54 +00:00