Commit Graph

22392 Commits

Author SHA1 Message Date
Warren Levy
07515641a5 DatagramSocket.java (laddr): Removed.
* java/net/DatagramSocket.java (laddr): Removed.
	(DatagramSocket): Removed attempts to get or set laddr if null.
	(getLocalAddress): Reimplemented per spec.
	* java/net/MulticastSocket.java (setTimeToLive): Throw exception
	when ttl is 0.
	(joinGroup): Throw NullPointerException if any argument is null.
	(leaveGroup): ditto.
	* java/net/PlainDatagramSocketImpl.java: Updated comments.
	* java/net/PlainSocketImpl.java (timeout): Added.
	(getInputStream): Added FIXME comment on how to support timeouts
	for TCP.
	* java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
	* java/net/Socket.java: Added FIXME comments to identify
	conflicting specs between the JCL and JDK 1.2 documents.
	* java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
	if host is null.  Get localport value resolved by kernel if bind
	lport is 0.
	(receive): Implemented support for timeouts in UDP.
	(setOption): Implemented based on natPlainSocketImpl version.
	(getOption): ditto.
	* java/net/natPlainSocketImpl.cc (bind): Get localport value
	resolved by kernel if bind lport is 0.
	(connect): Get localport value resolved by kernel if bind wasn't
	done to set localport.
	(accept): Implemented support for timeouts for ServerSocket.
	(setOption): Save value for SO_TIMEOUT.
	(getOption): Return timeout for SO_TIMEOUT.

From-SVN: r27230
1999-05-28 19:29:53 +00:00
Alexandre Petit-Bianco
930248932e [multiple changes]
Fri May 28 18:22:45 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * parse.y (lookup_field_wrapper): Unified returned value to NULL
          or the searched field decl.
Fri May 28 11:34:05 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * parse.y (fold_constant_for_init): Convert numerical constant
        values to the type of the assigned field.
Thu May 27 19:57:40 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * expr.c (lookup_field): Relaxed the test on class loading error
        detection.
        * parse.y (fold_constant_for_init): Enabeled old code.
Wed May 26 18:06:02 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * parse.y (valid_ref_assignconv_cast_p): Let `_Jv_CheckCast'
        decide the validity of the cast of a java.lang.Cloneable reference
        to an array.
        (patch_conditional_expr): Fixed first argument passed to
        binary_numeric_promotion.

From-SVN: r27229
1999-05-28 12:26:08 -07:00
Craig Burley
04b1e34d64 fix thinko
From-SVN: r27223
1999-05-28 10:52:41 -04:00
Robert Lipe
d664559da2 "New" testsuite entries approved by Jeff on 5/23.
From-SVN: r27222
1999-05-28 13:26:49 +00:00
Kaveh R. Ghazi
fee9125c10 putenv.c: Include ansidecl.h to define `const'.
* putenv.c: Include ansidecl.h to define `const'.
        * setenv.c: Likewise.

From-SVN: r27221
1999-05-28 07:34:48 +00:00
Eric Raskin
77b7d85187 t-dgux (EXTRA_PARTS): Add crti.o
* i386/t-dgux (EXTRA_PARTS): Add crti.o
        (crti.o): Add build rule and dependencies.

From-SVN: r27218
1999-05-27 20:54:05 -06:00
Franz Sirl
d540a32c56 sysv4.h (CC1_SPEC): Add support for -profile
* rs6000/sysv4.h (CC1_SPEC): Add support for -profile
        (LIB_LINUX_SPEC): Likewise.
        (LIB_LINUX_SPEC): Add support for -pthread
        (CPP_OS_LINUX_SPEC): Likewise.
        (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
        specified

From-SVN: r27217
1999-05-27 20:49:16 -06:00
Mark Mitchell
263505afaf decl.c (add_binding): Don't complain about a redeclaration of a semantically identical typedef in a...
* decl.c (add_binding): Don't complain about a redeclaration of a
	semantically identical typedef in a local scope.

From-SVN: r27213
1999-05-28 02:37:13 +00:00
Mark Klein
6c123729de * makeinfo/makeinfo.c: Add HAVE_LC_MESSAGES around setlocale call.
From-SVN: r27212
1999-05-27 20:10:39 -06:00
Nathan Sidwell
6ab5c7408e decl.c (complete_array_type): Allocate off same obstack.
* decl.c (complete_array_type): Allocate off same obstack. Fix
	DO_DEFAULT comment to match reality.
	* friend.c (make_friend_class): Fix diagnostic typo.

From-SVN: r27210
1999-05-28 01:56:31 +00:00
Jeff Law
9cb15ab62f Daily bump.
From-SVN: r27208
1999-05-27 18:45:03 -06:00
Mark Mitchell
f30c84c966 decl.c (lookup_namespace_name): Handle getting a TEMPLATE_ID_EXPR.
* decl.c (lookup_namespace_name): Handle getting a
	TEMPLATE_ID_EXPR.
	(expand_static_init): Don't call pushdecl for implicitly declared
	`atexit' used to register destructors.

From-SVN: r27207
1999-05-28 00:20:07 +00:00
Jeff Law
6f82ce7097 Trivial change to test new features in the script to update the online docs.
From-SVN: r27206
1999-05-27 17:44:43 -06:00
H.J. Lu
870a0c2c34 i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for conditional move.
@
        * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
        conditional move.
        (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
        (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
        for IEEE math and CC_FCOMI.
        (put_jump_code): No IEEE if CC_FCOMI is set.

From-SVN: r27204
1999-05-27 06:11:03 -06:00
H.J. Lu
aa2c277143 i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for conditional move.
�
        * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
        conditional move.
        (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
        (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
        for IEEE math and CC_FCOMI.
        (put_jump_code): No IEEE if CC_FCOMI is set.

From-SVN: r27203
1999-05-27 06:10:59 -06:00
Andreas Schwab
2bd21a021e fold-const.c (fold_truthop): Make the field reference unsigned when converting a single bit compare.
h
        * fold-const.c (fold_truthop): Make the field reference unsigned
        when converting a single bit compare.

From-SVN: r27202
1999-05-26 20:33:58 -06:00
Andreas Schwab
8eba681fa5 fold-const.c (fold_truthop): Make the field reference unsigned when converting a single bit compare.
�
        * fold-const.c (fold_truthop): Make the field reference unsigned
        when converting a single bit compare.

From-SVN: r27201
1999-05-26 20:33:56 -06:00
Jeffrey A Law
dd559f4efe varasm.c (STRIP_NAME_ENCODING): Remove default definition.
* varasm.c (STRIP_NAME_ENCODING): Remove default definition.
        * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
        version did.

From-SVN: r27196
1999-05-26 20:01:30 -06:00
J"orn Rennecke
2485126f2d * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
From-SVN: r27194
1999-05-26 19:46:21 -06:00
Franz Sirl
b040e3a22c * gcc.c-torture/compile/990527-1.c: New test.
From-SVN: r27193
1999-05-26 19:44:02 -06:00
Joern Rennecke
49447b3665 * gcc.c-torture/execute/990527-1.c: New test.
From-SVN: r27192
1999-05-26 19:24:14 -06:00
Jeff Law
b838974e2b reload.c (push_reload): Do not call remove_address_replacements when...
p
        * reload.c (push_reload): Do not call remove_address_replacements
        when presented with identical optional reloads.

From-SVN: r27191
1999-05-26 19:19:12 -06:00
Jeff Law
b5c15deb09 reload.c (push_reload): Do not call remove_address_replacements when...
�
        * reload.c (push_reload): Do not call remove_address_replacements
        when presented with identical optional reloads.

From-SVN: r27190
1999-05-26 19:19:07 -06:00
Jeff Law
27e2b78353 Daily bump.
From-SVN: r27187
1999-05-26 18:46:03 -06:00
Warren Levy
f2ed9e9656 [multiple changes]
1999-05-26  Bryce McKinlay <bryce@albatross.co.nz>
	* java/net/DatagramSocket.java (getSoTimeout): Verify class type.
	* java/net/DatagramSocketImpl.java (getOption): Made abstract.
	(setOption): Made abstract.
	* java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
	to avoid cpp conflicts in native code.
	* java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
	cpp conflicts in native code.
	* java/net/ServerSocket.java (toString): Prepended "ServerSocket".
	* java/net/Socket.java (getLocalAddress): Implemented.
	(setTcpNoDelay): Implemented.
	(getTcpNoDelay): Implemented.
	(setSoLinger): Implemented.
	(getSoLinger): Implemented.
	(getSoTimeout): Verify class type.
	(setSendBufferSize): Implemented.
	(getSendBufferSize): Implemented.
	(setReceiveBufferSize): Implemented.
	(getReceiveBufferSize): Implemented.
	(toString): Prepended "Socket".
	* java/net/SocketImpl.java (toString): Rewritten.
	(getOption): Made abstract.
	(setOption): Made abstract.
	* java/net/natPlainSocketImpl.cc (connect): Set localport properly.
	(setOption): Implemented.
	(getOption): Implemented.
1999-05-26  Warren Levy  <warrenl@cygnus.com>
	* java/net/DatagramSocket.java (DatagramSocket): Get local host
	address when null.  Set SO_REUSEADDR for multicasts.
	(getSoTimeout): Implemented.
	(setSoTimeout): Implemented.
	* java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
	* java/net/MulticastSocket.java (getInterface): Implemented.
	(setInterface): Implemented.
	(setTimeToLive): Check for invalid ttl.
	(joinGroup): Verify multicast address and security.
	(leaveGroup): Verify multicast address and security.
	(send): Implemented.
	* java/net/PlainDatagramSocketImpl.java (timeout): Added.
	(iface): Added.
	(ttl): Added.
	(setOption): Added.
	(getOption): Added.
	(mcastGrp): Added.
	(getTTL): Implemented as non-native.
	(setTTL): ditto.
	(join): ditto.
	(leave): ditto.
	* java/net/ServerSocket.java (setSoTimeout): Implemented.
	(getSoTimeout): Implemented.
	(setSocketFactory): Made synchronized.
	* java/net/Socket.java (setSoTimeout): Implemented.
	(getSoTimeout): Implemented.
	(close): Made synchronized.
	(setSocketImplFactory): Made synchronized.
	* java/net/SocketImpl.java: Implement SocketOptions interface.
	* java/net/natInetAddress.cc: Corrected module name at top of file.
	* java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
	(bind): Added FIXME.
	(peek): Implemented.
	(setTTL): Removed.
	(getTTL): Removed.
	(join): Removed.
	(leave): Removed.
	(mcastGrp): Added.
	(setOption): Implemented for SO_REUSEADDR.
	(getOption): Implemented for SO_REUSEADDR.

From-SVN: r27184
1999-05-26 17:00:06 +00:00
Richard Henderson
de4abb91d1 alpha.h (MASK_FIX, TARGET_FIX): New.
* alpha.h (MASK_FIX, TARGET_FIX): New.
        (MASK_*): Reorganize constants.
        (CPP_AM_FIX_SPEC): New.
        (TARGET_SWITCHES): Add FIX.
        (EXTRA_SPECS): Likewise.
        (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
        (SECONDARY_MEMORY_NEEDED): Likewise.
        (REGISTER_MOVE_COST): Likewise.
        * alpha.c (override_options): Add FIX support.  Always use
        ALPHA_TP_PROG for ev6.
        * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
        * alpha/elf.h (ASM_FILE_START): Look at FIX too.
        * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.

From-SVN: r27183
1999-05-26 09:44:21 -07:00
Alexandre Petit-Bianco
2ba1f15fb9 parse.y (qualify_ambiguous_name): Take into account that a CONVERT_EXPR might specify a type as a WFL.
Wed May 26 15:33:06 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * parse.y (qualify_ambiguous_name): Take into account that a
        CONVERT_EXPR might specify a type as a WFL.

From-SVN: r27181
1999-05-26 08:41:34 -07:00
Craig Burley
5685ba9013 update derived files
From-SVN: r27178
1999-05-26 08:55:46 -04:00
Craig Burley
677c2af0df document Toon's patch, fix grammo
From-SVN: r27176
1999-05-26 08:52:30 -04:00
Craig Burley
794228803c rename version numbers, etc
From-SVN: r27174
1999-05-26 08:48:41 -04:00
Jeff Law
a7c9637fbf Forgot to commit.
From-SVN: r27172
1999-05-26 05:35:41 -06:00
Craig Burley
bac23dd63d rename -fsubscript-check to -fbounds-check
From-SVN: r27170
1999-05-26 05:52:31 -04:00
Mark Mitchell
b7f2c1fc1b fold-const.c (fold): STRIP_NOPS when deciding whether or not something is a candidate for...
* fold-const.c (fold): STRIP_NOPS when deciding whether or not
	something is a candidate for optimize_bit_field_compare.

From-SVN: r27169
1999-05-26 09:50:08 +00:00
Mark Mitchell
f20b5577f8 gcc.texi (Passes): Document branch-shortening.
* gcc.texi (Passes): Document branch-shortening.
	* invoke.texi (Debugging Options): Document the fact that `-dp'
	outputs length information for instructions.

From-SVN: r27167
1999-05-26 09:38:33 +00:00
Nick Clifton
bda435bec7 Revert previous delta
From-SVN: r27166
1999-05-26 08:50:01 +00:00
Nick Clifton
293ecd7d19 Check against frame_pointer_rtx not FRAME_POINTER_REGNUM
From-SVN: r27165
1999-05-26 06:05:46 +00:00
Jeff Law
9eb4080f6f Makefile.in (CFILES): Add putenv.c and setenv.c.
* Makefile.in (CFILES): Add putenv.c and setenv.c.
        * configure.in (funcs): Add putenv and setenv.
        (AC_CHECK_FUNCS): Check for putenv and setenv.
        * configure: Rebuilt.
        * putenv.c setenv.c: New files.

[[Split portion of a mixed commit.]]

From-SVN: r27162.2
1999-05-25 21:13:18 -06:00
Melissa O'Neill
d05ba2205f getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc.
P
        * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
        bytes of space using malloc.

From-SVN: r27161
1999-05-25 21:04:27 -06:00
Melissa O'Neill
71cce721af getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc.
�
        * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
        bytes of space using malloc.

From-SVN: r27160
1999-05-25 21:04:25 -06:00
Philip Blundell
8430617602 arm.h (NEED_PLT_GOT): Fix mistake in last change.
�
        * arm.h (NEED_PLT_GOT): Fix mistake in last change.
        (GOT_PCREL): New macro.  Define to 1 if not already defined.
        * arm/elf.h (GOT_PCREL): Define to 0.
        * arm.c (arm_finalize_pic): Take into account the setting of
        GOT_PCREL.

From-SVN: r27156
1999-05-25 19:29:10 -06:00
Jeff Law
d238a2376d Daily bump.
From-SVN: r27153
1999-05-25 18:45:02 -06:00
Jeff Law
212cf333fb Revert accidental checkin.
From-SVN: r27152
1999-05-25 17:18:19 -06:00
Jeffrey A Law
98577d038c output.h (STRIP_NAME_ENCODING): Provide default definition.
* output.h (STRIP_NAME_ENCODING): Provide default definition.
        * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.

From-SVN: r27151
1999-05-25 15:32:01 -06:00
Craig Burley
b962215a47 Delete vestigial FFECOM_FASTER_ARRAY_REFS
From-SVN: r27149
1999-05-25 17:04:32 -04:00
Alexandre Petit-Bianco
dc4e6ccfe5 [multiple changes]
Tue May 25 15:06:13 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * parse.y (patch_assignment): Save the rhs before using it as an
        argument to _Jv_CheckArrayStore.
Tue May 25 11:23:59 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* lex.c (java_parse_doc_section): Fixed `tag' buffer size.
Mon May 24 13:26:00 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
        * lex.c (java_lex): Accepts `+' or `-' after the beginning of a
        floating point litteral only when the exponent indicator has been
        parsed.

From-SVN: r27147
1999-05-25 09:36:07 -07:00
Craig Burley
47d98fa268 Fix 19990525-0.f
From-SVN: r27145
1999-05-25 12:25:57 -04:00
Mark Mitchell
3ebc5c52e8 class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to intialize a vtable.
* class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to
	intialize a vtable.
	* cp-tree.h (NAMESPACE_LEVEL): Reformat.
	(lang_decl_flags): Document MEMFUNC_POINTER_TO.  Save four bytes
	by combining TEMPLATE_INFO and LEVEL into a single union.
	(DECL_TEMPLATE_INFO): Reformat.
	(DECL_SAVED_TREE): Document.
	(DECL_TEMPLATE_INJECT): Remove.
	* class.c (finish_struct): Remove code to deal with
	DECL_TEMPLATE_INJECT.
	* decl.c (maybe_process_template_type_declaration): Handle all new
	types in templates uniformly.
	* method.c (bulid_overload_identifier): Use CP_DECL_CONTEXT, not
	DECL_CONTEXT.
	* pt.c (lookup_template_class): Inject template instantiations of
	forward-declarations.
	(instantiate_class_template): Remove code processing
	DECL_TEMPLATE_INJECT.
	* pt.c (lookup_template_class): Tweak lookup to find member
	templates.
	* pt.c (tsubst_expr, case ASM_STMT): Don't tsubst into
	ASM_CV_QUAL.
	* semantics.c (finish_asm_stmt): Make strings permanent if they're
	used in a template.

From-SVN: r27144
1999-05-25 15:31:38 +00:00
Jeff Law
c9b2595a77 Fix dumb mistakes.
From-SVN: r27143
1999-05-25 07:53:30 -06:00
Jeffrey A Law
73951da827 * gcc.c-torture/execute/990525-2.c: New test.
From-SVN: r27142
1999-05-25 07:31:37 -06:00
Jeffrey A Law
3ce7c5a21d flow.c (mark_set_1): Do not record BLKmode stores as dead store elimination candidates.
�
        * flow.c (mark_set_1): Do not record BLKmode stores as dead
        store elimination candidates.

From-SVN: r27140
1999-05-25 07:14:40 -06:00