Commit Graph

46244 Commits

Author SHA1 Message Date
Joerg Brunsmann
441c779913 KeyStore.java (getInstance): Fix comment and throw IllegalArgumentException if given provider is null.
2002-11-18  Joerg Brunsmann  <joerg_brunsmann@yahoo.de>

	* java/security/KeyStore.java (getInstance): Fix
	comment and throw IllegalArgumentException if
	given provider is null.
	(getInstance): New method for jdk1.4 compatibility.

From-SVN: r59226
2002-11-18 18:09:35 +00:00
Kazu Hirata
ac655495ad h8300.md (*andorqi3): Use bor between bld and bst.
* config/h8300/h8300.md (*andorqi3): Use bor between bld and
	bst.  Update the insn length.
	(*andorhi3): Likewise.
	(*andorsi3): Likewise.

From-SVN: r59225
2002-11-18 16:40:43 +00:00
Jens-Michael Hoffmann
a92cb0c3d3 buffer.c: Remove unnecessary casts.
2002-11-14  Jens-Michael Hoffmann  <jensmh@gmx.de>

        * buffer.c: Remove unnecessary casts.
        * check-init.c: Likewise.
        * class.c: Likewise.
        * constants.c: Likewise.
        * decl.c: Likewise.
        * except.c: Likewise.
        * gjavah.c: Likewise.
        * jcf-io.c: Likewise.
        * jcf-parse.c: Likewise.
        * jcf-path.c: Likewise.
        * jvspec.c: Likewise.
        * lang.c: Likewise.
        * lex.c: Likewise.
        * verify.c: Likewise.

From-SVN: r59224
2002-11-18 15:46:34 +00:00
Gerald Pfeifer
e7e0de7e33 * MAINTAINERS: Complete James Dennett's entry.
From-SVN: r59222
2002-11-18 14:57:19 +00:00
Michael Koch
4f13d99ed3 PlainSocketImpl.java: Fix imports.
2002-11-18  Michael Koch <konqueror@gmx.de>

	* java/net/PlainSocketImpl.java: Fix imports.

From-SVN: r59221
2002-11-18 14:55:54 +00:00
Nathanael Nerode
dfc15546d8 adaint.c (__gnat_tmp_name): Better, but good enough for now, solution to buffer overflow bug on GNU/Linux.
2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
	* adaint.c (__gnat_tmp_name): Better, but good enough for now,
	solution to buffer overflow bug on GNU/Linux.

From-SVN: r59220
2002-11-18 14:39:46 +00:00
Michael Koch
ecfef45b9a 2002-11-18 Michael Koch <konqueror@gmx.de>
* java/nio/channels/SelectionKey.java
	(isValid): Added exception documentation.
	* java/nio/channels/Selector.java
	(open): Declare "throws IOException".

From-SVN: r59219
2002-11-18 14:31:39 +00:00
Jesse Rosenstock
3386451d20 2002-11-17 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/nio/charset/Charset.java
	(<clinit>): New method.
	(encode): Synchronize use of cached encoder object.
	(decode): Synchronize use of cached encoder object.

From-SVN: r59218
2002-11-18 14:15:16 +00:00
Richard Sandiford
ea4210ef82 sh-protos.h (sh_mark_label): Declare.
* config/sh/sh-protos.h (sh_mark_label): Declare.
	* config/sh/sh.c (sh_mark_label): New function, taken from
	movdi_const, but fixing the case when the address has an addend.
	* config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.

From-SVN: r59217
2002-11-18 14:01:23 +00:00
Michael Koch
48f5b6723a ByteBufferImpl.java, [...]: New files.
2002-11-18  Michael Koch <konqueror@gmx.de>

	* gnu/java/nio/ByteBufferImpl.java,
	gnu/java/nio/CharBufferImpl.java,
	gnu/java/nio/DatagramChannelImpl.java,
	gnu/java/nio/DoubleBufferImpl.java,
	gnu/java/nio/FileChannelImpl.java,
	gnu/java/nio/FloatBufferImpl.java,
	gnu/java/nio/IntBufferImpl.java,
	gnu/java/nio/LongBufferImpl.java,
	gnu/java/nio/PipeImpl.java,
	gnu/java/nio/SelectionKeyImpl.java,
	gnu/java/nio/SelectorImpl.java,
	gnu/java/nio/SelectorProviderImpl.java,
	gnu/java/nio/ServerSocketChannelImpl.java,
	gnu/java/nio/ShortBufferImpl.java,
	gnu/java/nio/SocketChannelImpl.java,
	java/nio/DoubleBuffer.java,
	java/nio/FloatBuffer.java,
	java/nio/IntBuffer.java,
	java/nio/LongBuffer.java,
	java/nio/ShortBuffer.java,
	java/nio/channels/FileChannel.java: New files.

From-SVN: r59216
2002-11-18 13:56:59 +00:00
Michael Koch
d812d8211c Makefile.am (ordinary_java_source_files): Added java/nio/ReadOnlyBufferException.java and...
2002-11-18  Michael Koch <konqueror@gmx.de>

	* Makefile.am (ordinary_java_source_files):
	Added java/nio/ReadOnlyBufferException.java and
	java/nio/channels/ClosedSelectorException.java.
	* Makefile.in: Regenerated.

From-SVN: r59215
2002-11-18 13:29:29 +00:00
Michael Koch
6602dd4a3b PlainSocketImpl.java: Reworked imports.
2002-11-18  Michael Koch <konqueror@gmx.de>

	* java/net/PlainSocketImpl.java: Reworked imports.
	* java/net/ServerSocket.java
	(ServerSocket): Create socket.
	* java/net/SocketAddress.java: Documentation added.
	* java/net/natPlainSocketImpl.cc: Reindented.
	* java/nio/ReadOnlyBufferException.java: New file
	* java/nio/channels/ClosedChannelException.java: Documentation added.
	* java/nio/channels/ClosedSelectorException.java: New file.

From-SVN: r59214
2002-11-18 13:22:55 +00:00
Richard Sandiford
3503150c4c sh.c (pool_node): New field: part_of_sequence_p.
* config/sh/sh.c (pool_node): New field: part_of_sequence_p.
	(add_constant): Set it.
	(dump_table): Don't reorder a constant if part_of_sequence_p.
	(machine_dependent_reorg): Assume that float constants will
	stay in their original order if used as a sequence.

From-SVN: r59213
2002-11-18 12:46:48 +00:00
Richard Sandiford
180bde4f78 sh.c (calc_live_regs): Update check for PIC liveness in compact code.
* config/sh/sh.c (calc_live_regs): Update check for PIC liveness
	in compact code.

From-SVN: r59212
2002-11-18 12:35:15 +00:00
Richard Sandiford
e300c78c25 sh.md (initialize_trampoline): Do not force the trampoline address into R0_REGS here.
* config/sh/sh.md (initialize_trampoline): Do not force the
	trampoline address into R0_REGS here.

From-SVN: r59211
2002-11-18 12:12:24 +00:00
GCC Administrator
d1afe2caee Daily bump.
From-SVN: r59210
2002-11-18 08:19:10 +00:00
Kazu Hirata
ec748ec83a * df.c: Fix formatting.
From-SVN: r59203
2002-11-18 03:19:44 +00:00
Kazu Hirata
cf0cec73f6 h8300.md (two anonymous patterns): Fix insn lengths.
* config/h8300/h8300.md (two anonymous patterns): Fix insn
	lengths.

From-SVN: r59202
2002-11-17 23:32:45 +00:00
Daniel Jacobowitz
d2b2c7cd3d sh.c (gen_shl_and): Don't create a zero_extend if the operand is not an arith_reg_operand.
* sh.c (gen_shl_and): Don't create a zero_extend if the operand
	is not an arith_reg_operand.

From-SVN: r59201
2002-11-17 22:33:31 +00:00
Graham Stott
6ddb1bc19f real.c (real_to_decimal): Fix buffer overrun when buffer size is smaller than representation.
* real.c (real_to_decimal): Fix buffer overrun when buffer size
        is smaller than representation.

From-SVN: r59200
2002-11-17 20:20:39 +00:00
Mark Wielaard
b9ad851eef HttpURLConnection.java ((getPermission): Take port into consideration.
* java/net/HttpURLConnection.java ((getPermission): Take port
        into consideration.
        (getErrorStream): Implement.

From-SVN: r59196
2002-11-17 16:16:52 +00:00
Mark Wielaard
e0c34466ec * java/net/HttpURLConnection.java: Merge with GNU Classpath.
From-SVN: r59195
2002-11-17 15:47:27 +00:00
Kazu Hirata
5ab2f7b747 * builtins.c: Fix formatting.
From-SVN: r59194
2002-11-17 14:47:07 +00:00
GCC Administrator
7b8dbd5041 Daily bump.
From-SVN: r59191
2002-11-17 08:18:17 +00:00
Jakub Jelinek
bd3175a2cc linker-map.gnu: Export _S_construct even if size_t is unsigned long.
* config/linker-map.gnu: Export _S_construct even if size_t is
	unsigned long.  Collapse std::codecvt<char>::codecvt(size_t)
	and std::codecvt<wchar_t>::codecvt(size_t) into one export pattern.

From-SVN: r59182
2002-11-17 06:08:23 +01:00
Kazu Hirata
0d964e40c8 * config/h8300/h8300.md (two anonymous patterns): Fix typos.
From-SVN: r59181
2002-11-17 03:30:25 +00:00
Kazu Hirata
6d55e887d0 * config/h8300/h8300.md: Fix formatting.
From-SVN: r59180
2002-11-17 03:18:12 +00:00
Mark Wielaard
b0fc58713d Integrate work by Raif S.
Integrate work by Raif S. Naffah (raif@fl.net.au)
	* java/security/DummyKeyPairGenerator.java (clone): New method.
	* java/security/DummyMessageDigest.java (clone): New method.
	(engineUpdate): Now public.
	(engineReset): Likewise.
	(engineDigest): Likewise.
	(engineGetDigestLength): New method.
	* java/security/DummySignature.java (clone): New method.
	* java/security/KeyPairGenerator.java (provider): Now package private.
	(getInstance(String)): Use getInstance(String,Provider).
	(getInstance(String,String): Use getInstance(String,Provider)
	(getInstance(String,Provider): New method.
	(getInstance(String,String,Provider): Don't cast DummyKeyPairGenerator.
	* java/security/KeyPairGeneratorSpi.java (clone): New method.
	* java/security/MessageDigest.java (provider): Now package private.
	(getInstance(String): Use getInstance(String,Provider).
	(getInstance(String,String): Use getInstance(String,Provider)
	(getInstance(String,Provider): New method.
	* java/security/Provider.java (toCanonicalKey): New method.
	(get): New method that uses toCanonicalKey().
	(put): Use toCanonicalKey().
	(remove): Likewise.
	* java/security/Security.java (insertProviderAt): Provider index is one
	based, not zero based.
	(addProvider): Likewise.
	(removeProvider): Likewise.
	* java/security/Signature.java (provider): Now package private.
	(getInstance(String)): Use getInstance(String,Provider).
	(getInstance(String,String): Use getInstance(String,Provider)
	(getInstance(String,Provider): New method.
	(getInstance(String,String,Provider): Don't cast DummySignature.

From-SVN: r59179
2002-11-17 00:10:24 +00:00
Jakub Jelinek
aaefd21647 * gcc.dg/20021116-1.c: New test.
From-SVN: r59178
2002-11-16 21:04:40 +01:00
Kazu Hirata
4d5ad877f5 h8300.md: Replace spaces with tabs.
* config/h8300/h8300.md: Replace spaces with tabs.
	* config/h8300/t-h8300: Remove a trailing empty line.

From-SVN: r59177
2002-11-16 19:49:56 +00:00
Kazu Hirata
17fa74a256 * tlink.c: Fix formatting.
From-SVN: r59176
2002-11-16 18:33:29 +00:00
David Edelsohn
68a7da974b add PR 8362 note.
From-SVN: r59175
2002-11-16 13:04:24 -05:00
David Edelsohn
9caa3eb2db rs6000.c (rs6000_outout_load_multiple): New function.
* config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
        * config/rs6000/rs6000.md (movti_string): Remove output modifier
        when scratch register never needed.
        (ldmsi[3-8]): New patterns.

From-SVN: r59174
2002-11-16 13:01:51 -05:00
Kazu Hirata
476c5eb60e hard-reg-set.h: Follow spelling conventions.
* hard-reg-set.h: Follow spelling conventions.
	* real.c: Likewise.
	* target.h: Likewise.

From-SVN: r59173
2002-11-16 17:52:53 +00:00
Benjamin Kosnik
af5fb6ab3b re PR libstdc++/8230 (Buggy allocator behaviour)
2002-11-15  Benjamin Kosnik  <bkoz@redhat.com>
            Gabriel Dos Reis  <gdr@integrable-solutions.net>

	PR libstdc++/8230
	* include/bits/stl_alloc.h: Use builtin_expect for the most
	obvious limit checks.
	(__default_alloc_template::allocate): Check for null, throw
	bad_alloc.
	* include/bits/vector.tcc: Formatting tweaks.
	* include/bits/stl_vector.h: Same.
	* testsuite/20_util/allocator_members.cc (test02): Add.
	* testsuite/23_containers/vector_capacity.cc (test03): Add.

Co-Authored-By: Gabriel Dos Reis <gdr@integrable-solutions.net>

From-SVN: r59169
2002-11-16 17:16:31 +00:00
Jakub Jelinek
5dab517fa0 * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
From-SVN: r59162
2002-11-16 14:33:38 +01:00
Jakub Jelinek
783080abfd md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be used with arguments in...
* md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
	used with arguments in traditional C' warnings.

From-SVN: r59158
2002-11-16 13:38:43 +01:00
GCC Administrator
952d707302 Daily bump.
From-SVN: r59157
2002-11-16 08:18:01 +00:00
Kazu Hirata
7e1a450d21 * optabs.c: Fix formatting.
From-SVN: r59151
2002-11-16 06:08:16 +00:00
Jan Hubicka
1b245ade01 athlon.md, [...]: Handle shift1, rotate1
* athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
	* i386.md (attribute type): Add type shift1 and rotate1.
	(*_slp): Rewrite to have just two operands to avoid reload problems.

From-SVN: r59147
2002-11-16 01:09:19 +00:00
Tom Tromey
401d536248 For PR libgcj/8593:
* java/util/zip/GZIPInputStream.java (read): Check file size.
	Look in inflater for remaining input bytes.
	(read4): Added buf and offset arguments.

From-SVN: r59145
2002-11-16 00:41:32 +00:00
Kazu Hirata
6368a49321 * config/h8300/h8300.md (4 anonymous patterns): New.
From-SVN: r59144
2002-11-15 22:16:09 +00:00
Geoffrey Keating
737c38d12a params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
* params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
	* doc/invoke.texi: Correct description of what needs to be done to
	force collection at every ggc_collect call.

From-SVN: r59143
2002-11-15 21:27:48 +00:00
Rainer Orth
423b950b13 * src/ios.cc [_GLIBCPP_HAVE_UNISTD_H]: Include unistd.h.
From-SVN: r59141
2002-11-15 19:12:31 +00:00
Jakub Jelinek
a36fc5f81d Fix typos.
From-SVN: r59137
2002-11-15 18:22:18 +01:00
Ulrich Weigand
2120e3cd74 s390.c (optimization_options): Set flag_asynchronous_unwind_tables to 1 by default.
* config/s390/s390.c (optimization_options): Set
	flag_asynchronous_unwind_tables to 1 by default.

From-SVN: r59135
2002-11-15 16:59:13 +00:00
Ulrich Weigand
18789f4e75 s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
gcc/ChangeLog:
	* config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.

libffi/ChangeLog:
	* src/s390/sysv.S (.eh_frame section): Adapt to pcrel FDE encoding.

From-SVN: r59134
2002-11-15 16:57:49 +00:00
Jan Hubicka
a5fa1ecdab i386-protos.h (x86_function_profiler): New function
* i386-protos.h (x86_function_profiler): New function
	* i386.h (MCOUNT_NAME): New.
	(PROFILE_COUNT_REGISTER): New.
	(OUTPUT_FUNCTION_PROFILER): Move offline to ...
	* i386.c (x86_function_profiler) ... here; fix 64bit support
	* beos-elf.h (FUNCTION_PROFILER): Kill.
	(MCOUNT_NAME): New.
	* freebsd-aout.h (FUNCTION_PROFILER): Kill.
	(MCOUNT_NAME): New.
	(PROFILE_COUNT_REGISTER): New.
	* linux.h (FUNCTION_PROFILER): Kill.
	(MCOUNT_NAME): New.
	* x86-64.h (FUNCTION_PROFILER): Kill.
	(MCOUNT_NAME): New.
	* freebsd.h (FUNCTION_PROFILER): Kill.
	(MCOUNT_NAME): New.

From-SVN: r59132
2002-11-15 14:57:12 +00:00
Eric Botcazou
f7109dea6c MAINTAINERS (Write After Approval): Add myself.
2002-11-15  Eric Botcazou  <ebotcazou@libertysurf.fr>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r59131
2002-11-15 14:48:55 +00:00
Jakub Jelinek
2cf2d29db4 Fix typos.
From-SVN: r59130
2002-11-15 14:53:41 +01:00