1. 11 Feb, 2003 17 commits
    • re PR libstdc++/9320 (Incorrect usage of traits_type::int_type in stdio_filebuf) · dfc7d899
      2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
      
      	PR libstdc++/9320
      	* include/ext/stdio_filebuf.h
      	(stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
      	stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
      	Change to take a __size parameter of type size_t, not
      	of type (template parameter dependent) int_type.
      	* src/ios.cc (ios_base::Init::_S_ios_create): Change type of
      	size vars to size_t.
      	* testsuite/ext/stdio_filebuf.cc: Add.
      
      From-SVN: r62691
      Paolo Carlini committed
    • re PR libstdc++/9318 (i/ostream::operator>>/<<(streambuf*) broken) · da61d022
      2003-02-11  Paolo Carlini  <pcarlini@unitus.it>
      	    Petur Runolfsson  <peturr02@ru.is>
      
      	PR libstdc++/9318
      	* include/bits/streambuf.tcc (__copy_streambufs):
      	Don't conditionalize the copy to __testput.
      	* testsuite/27_io/streambuf_members.cc (test09, test10): Add.
      
      Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
      
      From-SVN: r62689
      Paolo Carlini committed
    • 2003-02-11 Michael Koch <konqueror@gmx.de> · 194ea9ce
      	* gnu/java/nio/natCharBufferImpl.cc
      	(nio_cast): Removed.
      	(nio_put_*): Removed.
      	(nio_get_*): Removed.
      	* gnu/java/nio/natDoubleBufferImpl.cc
      	(nio_cast): Removed.
      	(nio_put_*): Removed.
      	(nio_get_*): Removed.
      	* gnu/java/nio/natFloatBufferImpl.cc
      	(nio_cast): Removed.
      	(nio_put_*): Removed.
      	(nio_get_*): Removed.
      	* gnu/java/nio/natIntBufferImpl.cc
      	(nio_cast): Removed.
      	(nio_put_*): Removed.
      	(nio_get_*): Removed.
      	* gnu/java/nio/natLongBufferImpl.cc
      	(nio_cast): Removed.
      	(nio_put_*): Removed.
      	(nio_get_*): Removed.
      	* gnu/java/nio/natShortBufferImpl.cc
      	(nio_cast): Removed.
      	(nio_put_*): Removed.
      	(nio_get_*): Removed.
      	* gnu/java/nio/SelectorProviderImpl.java
      	(openDatagramChannel): Throws IOException.
      	(openPipe): Throws IOException.
      	(openSelector): Throws IOException.
      	(openServerSocketChannel): Throws IOException.
      	(openSocketChannel): Throws IOException.
      	* gnu/java/nio/ServerSocketChannelImpl.java
      	(ServerSocketChannelImpl): Throws IOException.
      	(implCloseSelectableChannel): Throws IOException.
      	(implConfigureBlocking): Throws IOException.
      	* java/nio/ByteBuffer.java
      	(readOnly): Removed.
      	(hasArray): Use isReadOnly() instead of readOnly.
      	(array): Use isReadOnly() instead of readOnly.
      	(arrayOffset): Use isReadOnly() instead of readOnly.
      	* java/nio/CharBuffer.java
      	(CharBuffer): Implements Cloneable and CharSequence.
      
      From-SVN: r62688
      Michael Koch committed
    • 2003-02-11 Michael Koch <konqueror@gmx.de> · d19e783c
      	* java/nio/Buffer.java
      	(cap, lim, pos, mark): Made private
      	(Buffer): Added package private constructor.
      	* java/nio/ByteBuffer.java
      	(ByteBuffer): Implements Cloneable.
      	(offset): New member variable.
      	(readOnly): New member variable.
      	(backing_buffer): New member variable.
      	(allocateDirect): Throw exception and tell that direct buffers are
      	not supported yet, documentation added.
      	(allocate): Documentation added.
      	(wrap): Documentation added.
      	(ByteBuffer): New constructor.
      	(hasArray): New method.
      	(array): New method.
      	(arrayOffset): New method.
      	(get): Documentation added.
      	(put): Documentation added.
      	* java/nio/CharBuffer.java
      	(CharBuffer): New constructor.
      	(compareTo): Don't access member variables of Buffer directly.
      	* java/nio/DoubleBuffer.java
      	(allocateDirect): Throw exception and tell that direct buffers are
      	not supported yet.
      	* java/nio/FloatBuffer.java
      	(allocateDirect): Throw exception and tell that direct buffers are
      	not supported yet.
      	* java/nio/IntBuffer.java
      	(allocateDirect): Throw exception and tell that direct buffers are
      	not supported yet.
      	* java/nio/LongBuffer.java
      	(allocateDirect): Throw exception and tell that direct buffers are
      	not supported yet.
      	* java/nio/MappedByteBuffer.java
      	(MappedByteBuffer): New method.
      	(force): New method.
      	(isLoaded): New method.
      	(load): New method.
      	* java/nio/ShortBuffer.java
      	(allocateDirect): Throw exception and tell that direct buffers are
      	not supported yet.
      
      From-SVN: r62685
      Michael Koch committed
    • 2003-02-11 Michael Koch <konqueror@gmx.de> · c0da2641
      	* java/nio/DoubleBuffer.java
      	(DoubleBuffer): Implements Comparable.
      	(endian): Removed.
      	(array_offset): New member variable.
      	(DoubleBuffer): New constuctor.
      	(get): May not be final.
      	(put): May not be final.
      	(arrayOffset): Implemented.
      	(order): Made abstract.
      	(order): Removed.
      	(as*Buffer): Removed.
      	(get*): Removed.
      	(put*): Removed.
      	* java/nio/FloatBuffer.java
      	(FloatBuffer): Implements Comparable.
      	(endian): Removed.
      	(array_offset): New member variable.
      	(FloatBuffer): New constuctor.
      	(get): May not be final.
      	(put): May not be final.
      	(arrayOffset): Implemented.
      	(order): Made abstract.
      	(order): Removed.
      	(as*Buffer): Removed.
      	(get*): Removed.
      	(put*): Removed.
      	* java/nio/IntBuffer.java
      	(IntBuffer): Implements Comparable.
      	(endian): Removed.
      	(array_offset): New member variable.
      	(IntBuffer): New constuctor.
      	(get): May not be final.
      	(put): May not be final.
      	(arrayOffset): Implemented.
      	(order): Made abstract.
      	(order): Removed.
      	(as*Buffer): Removed.
      	(get*): Removed.
      	(put*): Removed.
      	* java/nio/LongBuffer.java
      	(LongBuffer): Implements Comparable.
      	(endian): Removed.
      	(array_offset): New member variable.
      	(LongBuffer): New constuctor.
      	(get): May not be final.
      	(put): May not be final.
      	(arrayOffset): Implemented.
      	(order): Made abstract.
      	(order): Removed.
      	(as*Buffer): Removed.
      	(get*): Removed.
      	(put*): Removed.
      	* java/nio/ShortBuffer.java
      	(ShortBuffer): Implements Comparable.
      	(endian): Removed.
      	(array_offset): New member variable.
      	(ShortBuffer): New constuctor.
      	(get): May not be final.
      	(put): May not be final.
      	(arrayOffset): Implemented.
      	(order): Made abstract.
      	(order): Removed.
      	(as*Buffer): Removed.
      	(get*): Removed.
      	(put*): Removed.
      
      From-SVN: r62684
      Michael Koch committed
    • 2003-02-11 Michael Koch <konqueror@gmx.de> · c34ce2a6
      	* java/nio/channels/SelectionKey.java
      	(OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct
      	values.
      
      From-SVN: r62683
      Michael Koch committed
    • 2003-02-11 Michael Koch <konqueror@gmx.de> · d62f8f8d
      	* java/nio/channels/DatagramChannel.java
      	(write): Throws IOException.
      	(connect): Throws IOException.
      	(disconnect): Throws IOException.
      	(read): Throws IOException.
      	(receive): Throws IOException.
      	(send): Throws IOException.
      	* java/nio/channels/Pipe.java
      	(open): Throws IOException.
      	* java/nio/channels/SelectableChannel.java
      	(configureBlocking): Throws IOException.
      	* java/nio/channels/ServerSocketChannel.java
      	(accept): Throws IOException.
      	* java/nio/channels/SocketChannel.java
      	(SocketChannel): Implements ByteChannel, ScatteringByteChannel,
      	GatheringByteChannel.
      	(read): Throws IOException.
      	(write): Throws IOException.
      	(finishConnect): Throws IOException.
      	* java/nio/channels/spi/AbstractInterruptibleChannel.java
      	(end): Throws AsynchronousCloseException.
      	* java/nio/channels/spi/AbstractSelectableChannel.java
      	(configureBlocking): Throws IOException.
      	(implCloseChannel): Throws IOException.
      	(implCloseSelectableChannel): Throws IOException.
      	(implConfigureBlocking): Throws IOException.
      	* java/nio/channels/spi/SelectorProvider.java
      	(openDatagramChannel): Throws IOException.
      	(openPipe): Throws IOException.
      	(openSelector): Throws IOException.
      	(openServerSocketChannel): Throws IOException.
      	(openSocketChannel): Throws IOException.
      
      From-SVN: r62682
      Michael Koch committed
    • FileLockImpl.java, [...]: New files. · e3b6a47f
      2003-02-11  Michael Koch  <konqueror@gmx.de>
      
      	* gnu/java/nio/FileLockImpl.java,
      	java/nio/channels/FileLock.java: New files.
      
      From-SVN: r62681
      Michael Koch committed
    • 2003-02-08 Michael Koch <konqueror@gmx.de> · bde8b581
      	* java/nio/charset/IllegalCharsetNameException.java
      	(serialVersionUID): New member variable.
      	(charsetName): New member variable.
      	(IllegalCharsetException): New implementation.
      	(getCharsetName): New implementation.
      	* java/nio/charset/UnsupportedCharsetException.java
      	(serialVersionUID): New member variable.
      	(charsetName): New member variable.
      	(UnsupportedCharsetException): New implementation.
      	(getCharsetName): New implementation.
      
      From-SVN: r62680
      Michael Koch committed
    • acinclude.m4: Check for native targets that can't link at this point in the build. · 294901f8
      * acinclude.m4: Check for native targets that can't link at
      this point in the build.
      * aclocal.m4: Regenerate.
      * configure: Regenerate.
      
      From-SVN: r62679
      DJ Delorie committed
    • ConnectionEvent.java (serialVersionUID): New field. · 91adf6cf
      	* javax/sql/ConnectionEvent.java (serialVersionUID): New field.
      	(ex): Renamed from sqlException.
      
      From-SVN: r62678
      Tom Tromey committed
    • reload1.c (first_label_num): New. · 4cc0fdd2
      	* reload1.c (first_label_num): New.
      	(reload): Index offsets_known_at and offsets_at using difference of
      	label number and first label number.  Don't use offset pointers.
      	(set_label_offsets, set_initial_label_offsets): Likewise.
      
      From-SVN: r62672
      John David Anglin committed
    • mips-tfile.c (init_file): Add missing initializers in the "#ifdef __alpha" case. · 44b1fa11
      
      	* mips-tfile.c (init_file): Add missing initializers in the
      	"#ifdef __alpha" case.
      	(file_offset, max_file_offset): Declare as unsigned long.
      	(write_varray): Cast to "unsigned long" in comparisons against
      	either file_offset or max_file_offset.
      	(write_object): Likewise.
      	(read_seek): Likewise.
      	(copy_object): Likewise. Declare "ifd" as int to match its use
      	in add_ext_symbol, and avoid signed/unsigned conditional warning.
      
      From-SVN: r62671
      Roger Sayle committed
    • Daily bump. · 9ecd389e
      From-SVN: r62669
      GCC Administrator committed
    • eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not override options which have… · 2948ade7
      eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not override options which have been specified on the command line.
      
      2003-02-10  Nick Clifton  <nickc@redhat.com>
                  Aldy Hernandez  <aldyh@redhat.com>
      
              * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
              override options which have been specified on the command line.
      
      Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>
      
      From-SVN: r62662
      Nick Clifton committed
    • SHA1PRNG.java (ensureIsSeeded): new method used to ensure seeding has occurred… · ff23b16c
      SHA1PRNG.java (ensureIsSeeded): new method used to ensure seeding has occurred and that a specific seed can be...
      
      2003-02-10  Raif S. Naffah  <raif@fl.net.au>
      
      	* gnu/java/security/provider/SHA1PRNG.java (ensureIsSeeded): new
      	method used to ensure seeding has occurred and that a specific
      	seed can be set and used.
      
      From-SVN: r62660
      Raif S. Naffah committed
  2. 10 Feb, 2003 23 commits
    • Win32Process.java (destroy): Declare as native. · d6a2d36e
      2003-02-10  Ranjit Mathew  <rmathew@hotmail.com>
      
      	* java/lang/Win32Process.java (destroy): Declare as native.
      	(hasExited): New native method.
      	(exitValue): Define.
      	(getErrorStream): Likewise.
      	(getInputStream): Likewise.
      	(getOutputStream): Likewise.
      	(waitFor): Declare as native.
      	(startProcess): New native method.
      	(cleanup): Likewise.
      	(ConcreteProcess): Define.
      	(outputStream, inputStream, errorStream): New members.
      	(procHandle, exitCode): Likewise.
      
      	* java/lang/natWin32Process.cc
      	(java::lang::ConcreteProcess::cleanup): Define.
      	(java::lang::ConcreteProcess::destroy): Likewise.
      	(java::lang::ConcreteProcess::hasExited): Likewise.
      	(java::lang::ConcreteProcess::waitFor): Likewise.
      	(new_string): Likewise.
      	(java::lang::ConcreteProcess::startProcess): Likewise.
      
      From-SVN: r62657
      Ranjit Mathew committed
    • BigInteger.java: Updated notice to include years 2002 and 3. · 17e39e5c
      2003-02-10  Raif S. Naffah <raif@fl.net.au>
      
      	* java/math/BigInteger.java:
      	Updated notice to include years 2002 and 3.
      	Added 2 private (int) arrays with values from the HAC (Handbook of
      	Applied Cryptography -A. Menezes & al): k[] that contains bit lengths
      	and t[] that contains nbr. of tests --used in isProbablePrime().
      
      	* java/math/BigInteger.java (make(long)): Merged into valueOf(long).
      
      	* java/math/BigInteger.java (make(int[],int), add(int,int),
      	add(BI,BI,int), times(BI,int), divide(long,long,BI,BI,int), gcd(BI),
      	isProbablePrime(int), shift(BI,int), valueOf(String,int), neg(BI),
      	bitOp(int,BI,BI), and(BI,int)): Use valueOf(long) instead of
      	make(long).
      
      	* java/math/BigInteger.java (euclidInv): Reduce number of work vars
      	(euclidInv(int,int,int)): Now returns an array of 2 ints instead of 3.
      	(euclidInv(BI,BI,BI)): Used to return an array of 2 BIs; now accepts 6
      	BIs and returns void.
      	(modInverse(BI)): Use new signatures of euclidInv().
      
      	* java/math/BigInteger.java (isProbablePrime(int)): Use divide() with
      	static small primes instead of remainder().
      	Use pre-computed max nbr of trials based on bitlength of BI to test.
      	Use pre-computed small primes for the trial tests instead of random
      	numbers.
      
      	* java/math/BigInteger.java (isOdd, isMinusOne, pow): Removed.
      	not used.
      
      	* java/math/BigInteger.java (format(int,StringBuffer)): Removed
      	invoacation of MPN.chars_per_word().  not used.
      
      	* java/math/BigInteger.java (gcd(int,int)): Declared 'tmp' once as
      	local var and used where needed.
      
      	* java/math/BigInteger.java (modPow(BI,BI)): Fixed spelling.
      	Combined declaration with initialisation of locals.
      	Removed unused var.
      
      	* java/math/BigInteger.java: Style changes
      	(pow(int)): Removed 'else' keyword.
      	(toString(int)): idem.
      	(doubleValue()): idem.
      	(bitLength()): idem.
      	(equals(Object)): Use static methods name in same class w/o prepending
      	class name.
      	(doubleValue()): idem.
      	(setNegative(BI)): idem.
      	(negate()): idem.
      	(and(BI,int)): idem.
      	(and(BI)): idem.
      	(gcd(BI)): idem.
      	(byteArrayToIntArray()): Removed casting to (int). this is
      	std. behaviour.
      	(canonicalize()): idem.
      	(alloc(int)): Always instantiate a new BI.
      
      From-SVN: r62656
      Raif S. Naffah committed
    • h8300.md (abssf2): New. · 2a4e6df4
      	* config/h8300/h8300.md (abssf2): New.
      	(*abssf2_h8300): Likewise.
      	(*abssf2_h8300hs): Likewise.
      
      From-SVN: r62654
      Kazu Hirata committed
    • tree.c (build_tree_list): Fix parameter names in comment. · 411e2759
      2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
      
      	* tree.c (build_tree_list):  Fix parameter names in comment.
      
      From-SVN: r62653
      Phil Edwards committed
    • ppc64-fp.c: New file. · 2b24fc41
      2003-02-10  Janis Johnson  <janis187@us.ibm.com>
      
      	* config/rs6000/ppc64-fp.c: New file.
      	* config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
      
      From-SVN: r62652
      Janis Johnson committed
    • - Really commit ctz patch. · 1b1edcfa
      From-SVN: r62649
      David Edelsohn committed
    • Timestamp.java (compareTo(Object)): New method. · 848f2ce8
      	* java/sql/Timestamp.java (compareTo(Object)): New method.
      	(compareTo(Timestamp)): Likewise.
      	(serialVersionUID): Updated.
      
      From-SVN: r62648
      Tom Tromey committed
    • Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H). · aa634f11
      	* Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
      	* bb-reorder.c (make_reorder_chain): Deleted.
      	(make_reorder_chain_1): Deleted.
      	(find_traces): New function.
      	(rotate_loop): New function.
      	(mark_bb_visited): New function.
      	(find_traces_1_round): New function.
      	(copy_bb): New function.
      	(bb_to_key): New function.
      	(better_edge_p): New function.
      	(connect_traces): New function.
      	(copy_bb_p): New function.
      	(get_uncond_jump_length): New function.
      	(reorder_basic_blocks): Use new functions (Software Trace Cache).
      	* cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
      	boundaries.
      
      From-SVN: r62645
      Josef Zlomek committed
    • rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3. · 17edbda5
      2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
      
              * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
      
      From-SVN: r62644
      Aldy Hernandez committed
    • tree.h (struct tree_decl): Remove unused live_range_rtl field. · 57116c34
      	* tree.h (struct tree_decl): Remove unused live_range_rtl field.
      	(DECL_LIVE_RANGE_RTL): Remove.
      
      From-SVN: r62642
      Dan Nicolaescu committed
    • cp-tree.h (struct lang_type_header): Make all fields unsigned char. · 7a93f739
              * cp-tree.h (struct lang_type_header): Make all fields unsigned
              char.
      
      From-SVN: r62641
      Dan Nicolaescu committed
    • clzsi2.c: Remove. · 19190d27
      	* config/h8300/clzsi2.c: Remove.
      	* config/h8300/ctzsi2.c: Likewise.
      	* config/h8300/paritysi2.c: Likewise.
      	* config/h8300/popcountsi2.c: Likewise.
      	* config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
      	ctzsi2, paritysi2, and popcountsi2.
      
      From-SVN: r62637
      Kazu Hirata committed
    • re PR c/7741 (ICE on conflicting types (make_decl_rtl at varasm.c:834)) · ecf92f82
      	PR c/7741
      	* c-decl.c (duplicate_decls): Discard the initializer of the
      	new decl when the types are conflicting.
      
      Co-Authored-By: Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
      
      From-SVN: r62631
      Eric Botcazou committed
    • Makefile.in (sreal.o): Added. · ac5e69da
      	* Makefile.in (sreal.o): Added.
      	(predict.o): Depends on sreal.h instead of real.h.
      	* sreal.c: New file.
      	* sreal.h: New file.
      	* predict.c: Use sreal.c instead of real.c.
      
      From-SVN: r62630
      Josef Zlomek committed
    • * gcc.dg/i386-fpcvt-1.c: New test. · 637df4f4
      From-SVN: r62627
      Jan Hubicka committed
    • oops - omiited from previous delta: · 63a3b0a7
          * Contributed support for the Cirrus EP9312 "Maverick"
          floating point co-processor.  Written by Aldy Hernandez
          <aldyh@redhat.com>.
          (config/arm/arm.c): Add Cirrus support.
          (config/arm/arm.h): Likewise.
          (config/arm/aout.h): Likewise.
          (config/arm/arm.md): Likewise.
          (config/arm/arm-protos.h): Likewise.
          (config.gcc): Likewise.
          (doc/invoke.texi): Describe new -mcpu value and new
          -mcirrus-fix-invalid-insns switch,
          (cirrus.md): New file.
      
      From-SVN: r62626
      Nick Clifton committed
    • Add support for Cirrus EP9312, an ARM variant. · 9b6b54e2
      From-SVN: r62625
      Nick Clifton committed
    • combine.c (combine_simplify_rtx): Simplify using (float_truncate (float x)) is… · 949824fe
      combine.c (combine_simplify_rtx): Simplify using (float_truncate (float x)) is (float x) (float_extend...
      
      	* combine.c (combine_simplify_rtx): Simplify using
      	(float_truncate (float x)) is (float x)
      	(float_extend (float_extend x)) is (float_extend x).
      
      From-SVN: r62624
      Jan Hubicka committed
    • calls.c (try_to_integrate): Tidy stack_usage_map access. · 546ff777
      	* calls.c (try_to_integrate): Tidy stack_usage_map access.
      	(emit_library_call_value_1): Likewise.	Formatting.
      	(store_one_arg): Likewise.
      
      From-SVN: r62622
      Alan Modra committed
    • [multiple changes] · 626098f9
      2003-02-09  Nick Clifton  <nickc@redhat.com>
                  Aldy Hernandez  <aldyh@redhat.com>
      
              * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
              spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
              spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
              spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
              spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
              docs.  Add range test for immediate value.
      
      2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
      
              Rename spe_evxor to xorv2si3.
              (xorv4hi3): New.
              (xorv1di3): New.
      
      From-SVN: r62621
      Aldy Hernandez committed
    • extend.texi (C++98 Thread-Local Edits): Add missing @item tag. · 8d23a2c8
      	* doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
      	tag.
      
      From-SVN: r62620
      Glen Nakamura committed
    • Daily bump. · 2ae4751a
      From-SVN: r62619
      GCC Administrator committed