platform/upstream/gcc.git
21 years agoBufferedOutputStream.java (write(int)): Only flush when next byte cannot be buffered.
Mark Wielaard [Thu, 13 Feb 2003 22:48:36 +0000 (22:48 +0000)]
BufferedOutputStream.java (write(int)): Only flush when next byte cannot be buffered.

       * java/io/BufferedOutputStream.java (write(int)): Only flush when
       next byte cannot be buffered.

From-SVN: r62867

21 years agoc++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
Benjamin Kosnik [Thu, 13 Feb 2003 21:39:03 +0000 (21:39 +0000)]
c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.

2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
* include/bits/basic_ios.tcc: Guard use of extern template.
* include/std/std_iomanip.h: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/stl_alloc.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/bits/ostream.tcc: Same.
* include/bits/istream.tcc: Same.
* include/bits/fstream.tcc: Same.
* include/bits/basic_string.tcc: Same.

From-SVN: r62865

21 years ago2003-02-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 13 Feb 2003 19:28:32 +0000 (19:28 +0000)]
2003-02-13  Michael Koch  <konqueror@gmx.de>

* java/awt/Label.java
(Label): Don't implement Serializable directly.
(addNotify): Fixed typo in documentation.
* java/awt/List.java
(List): Don't implement Serializable directly.
* java/awt/PopupMenu.java
(PopupMenu): Don't implement Serializable directly.
* java/awt/ScrollPane.java
(ScrollPane): Don't implement Serializable directly.
* java/awt/Scrollbar.java
(Scrollbar): Don't implement Serializable directly.
* java/awt/TextArea.java
(preferredSize): Fixed method arguments.
* java/awt/TextField.java
(TextField): Don't implement Serializable directly.
* java/awt/color/ICC_ColorSpace.java
(fromCIOXYZ): Documentation added.
(getMinValue): Documentation added.
(getMaxValue): Documentation added.
* java/awt/datatransfer/DataFlavor.java
(isMimeTypeEqual): May not be final.
(clone): Throws CloneNotSupportedException.
(getReaderForText): Don't throws UnsupportedEncodingException.

From-SVN: r62863

21 years ago2003-02-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 13 Feb 2003 19:26:57 +0000 (19:26 +0000)]
2003-02-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/peer/gtk/GdkGraphics.java
(drawString): New stubbed method.
* java/awt/Graphics.java
(drawString): New method.

From-SVN: r62862

21 years agocfgcleanup.c (outgoing_edges_match): When there is single outgoing edge and block...
Josef Zlomek [Thu, 13 Feb 2003 18:31:40 +0000 (19:31 +0100)]
cfgcleanup.c (outgoing_edges_match): When there is single outgoing edge and block ends with a jump insn it must be...

* cfgcleanup.c (outgoing_edges_match): When there is single outgoing
edge and block ends with a jump insn it must be simple jump.

From-SVN: r62858

21 years agoostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563.
Paolo Carlini [Thu, 13 Feb 2003 17:43:58 +0000 (18:43 +0100)]
ostream.tcc (sentry::sentry): Improve performance-wise the fix for libstdc++/9563.

2003-02-13  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/ostream.tcc (sentry::sentry): Improve
performance-wise the fix for libstdc++/9563.

From-SVN: r62855

21 years agoMakefile.in (PREPROCESSOR_DEFINES): Add @TARGET_SYSTEM_ROOT_DEFINE@.
Daniel Jacobowitz [Thu, 13 Feb 2003 17:23:56 +0000 (17:23 +0000)]
Makefile.in (PREPROCESSOR_DEFINES): Add @TARGET_SYSTEM_ROOT_DEFINE@.

* Makefile.in (PREPROCESSOR_DEFINES): Add
@TARGET_SYSTEM_ROOT_DEFINE@.
* configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
is specified or if building a cross compiler.
(TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
if the sysroot is under $exec_prefix.
* configure: Regenerated.
* cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
defined.
(struct default_include): Add add_sysroot field.
(cpp_SYSROOT): Declare.
* cppdefault.c (cpp_include_defaults): Fill in add_sysroot
field.
(cpp_SYSROOT): New variable.
* cppinit.c (cpp_create_reader): Initialize
CPP_OPTION (pfile, sysroot).
(init_standard_includes): Handle add_sysroot.  Do not
add unrelocated copies of relocated directories.
(COMMAND_LINE_OPTIONS): Add -isysroot.
(cpp_handle_option): Handle -isysroot.
* cpplib.h (struct cpp_options): Add sysroot member.
* gcc.c (The Specs Language): Update description of %I.
(target_system_root_changed): New variable.
(process_command): Conditionalize make_relative_prefix call
on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
target_system_root_changed.
(do_spec_1): Add -isysroot to %I.
* doc/invoke.texi (Spec Files): Update description of %I.
* doc/install.texi (--with-sysroot): Update comment about
relocation.

From-SVN: r62853

21 years agore PR c++/7612 (Memory leaks in cplus-dem.c)
Daniel Jacobowitz [Thu, 13 Feb 2003 17:21:20 +0000 (17:21 +0000)]
re PR c++/7612 (Memory leaks in cplus-dem.c)

Fix PR c++/7612.
* cplus-dem.c (demangle_signature): Call string_delete.
Remove extra string_init.
(demangle_arm_hp_template): Call string_delete instead of
string_clear.  Add missing string_delete call.
(demangle_qualified): Add missing string_delete call.
(do_type): Remove unused variable btype.  Add missing string_delete
call.  Call string_delete instead of string_clear.
(demangle_fund_type): Move variable btype inside of the switch
statement.  Add missing string_delete call.
(do_arg): Call string_delete instead of string_clear.  Remove extra
string_init.
(demangle_nested_args): Free work->previous_argument.

From-SVN: r62852

21 years agore PR libgcj/9271 (Severe bias in java.security.SecureRandom)
Casey Marshall [Thu, 13 Feb 2003 17:00:22 +0000 (17:00 +0000)]
re PR libgcj/9271 (Severe bias in java.security.SecureRandom)

2003-02-13  Casey Marshall  <rsdio@metastatic.org>

PR libgcj/9271:
* java/security/SecureRandom.java (next): Avoid bias in results.

From-SVN: r62851

21 years agoxfails: Added entries for an unimplemented Class method.
Tom Tromey [Thu, 13 Feb 2003 16:36:57 +0000 (16:36 +0000)]
xfails: Added entries for an unimplemented Class method.

* libjava.mauve/xfails: Added entries for an unimplemented Class
method.

From-SVN: r62843

21 years ago* config/h8300/h8300.md (a peephole2): New.
Kazu Hirata [Thu, 13 Feb 2003 16:33:00 +0000 (16:33 +0000)]
* config/h8300/h8300.md (a peephole2): New.

From-SVN: r62842

21 years ago2003-02-13 Michael <konqueror@gmx.de>
Michael Koch [Thu, 13 Feb 2003 15:12:36 +0000 (15:12 +0000)]
2003-02-13  Michael  <konqueror@gmx.de>

* gnu/java/nio/FileChannelImpl.java
(lengthInternal): Must be native.
(size): Check if channel is already closed.
(implCloseChannel): Reformated.
(read): w was unused, removed it.
(read): Removed.
(read): New method.
(write): New method.
(map): Check arguments.
(force): Throws IOException, check if channel is closed.
(transferTo): New method.
(transferFrom): New method.
(lock): New method.
(tryLock): New method.
(position): New method.
(truncate): New method.
(nio_mmap_file): Uncommented.
(nio_munmap_file): Uncommented.
(nio_msync): Uncommented.
* gnu/java/nio/natFileChannelImpl.cc: New file.

From-SVN: r62841

21 years agoinstall.texi (Specific): Update three SCO-related URLs.
Robert Lipe [Thu, 13 Feb 2003 14:16:45 +0000 (14:16 +0000)]
install.texi (Specific): Update three SCO-related URLs.

* doc/install.texi (Specific): Update three SCO-related URLs.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r62840

21 years agocgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
Andreas Schwab [Thu, 13 Feb 2003 12:28:26 +0000 (12:28 +0000)]
cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.

* cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
Parenthesize properly.
(NPREDECESORS): Parenthesize properly.

From-SVN: r62838

21 years ago2003-02-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 13 Feb 2003 11:37:10 +0000 (11:37 +0000)]
2003-02-13  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBuffer.java
(endian): New member variable.
(get): New methods.
(equals): New method.
(compareTo): New method.
(order): New methods.
(compact): New method.
(isDirect): New method.
(slice): New method.
(duplicate): New method.
(asReadOnlyBuffer): New method.
(asCharBuffer): New method.
(asDoubleBuffer): New method.
(asFloatBuffer): New method.
(asIntBuffer): New method.
(asLongBuffer): New method.
(asShortBuffer): New method.
(get*): New methods.
(put*): New methods.
(toString): New method.
* java/nio/CharBuffer.java
(CharBuffer): Implement Comparable instead of Cloneable.
(get): May not be final.
(put): May not be final.

From-SVN: r62836

21 years agoNameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of indexOf...
Ranjit Mathew [Thu, 13 Feb 2003 09:33:18 +0000 (09:33 +0000)]
NameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of indexOf( ) to find the colon before the line...

2002-02-13  Ranjit Mathew  <rmathew@hotmail.com>

       * gnu/gcj/runtime/NameFinder.java (createStackTraceElement): Use
       lastIndexOf( ) instead of indexOf( ) to find the colon before
       the line number, because Win32 file names might contain a
       drive letter and a colon at the start of an absolute path.

From-SVN: r62834

21 years ago2003-02-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 13 Feb 2003 08:50:52 +0000 (08:50 +0000)]
2003-02-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/natSocketChannelImpl.cc
(SocketConnect): This is not implemented yet.
(SocketBind): This is not implemented yet.

From-SVN: r62833

21 years agonatByteBufferImpl.cc, [...]: Added copyright and license.
Michael Koch [Thu, 13 Feb 2003 08:40:35 +0000 (08:40 +0000)]
natByteBufferImpl.cc, [...]: Added copyright and license.

2003-02-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/natByteBufferImpl.cc,
gnu/java/nio/natCharBufferImpl.cc,
gnu/java/nio/natDoubleBufferImpl.cc,
gnu/java/nio/natFloatBufferImpl.cc,
gnu/java/nio/natIntBufferImpl.cc,
gnu/java/nio/natLongBufferImpl.cc,
gnu/java/nio/natShortBufferImpl.cc:
Added copyright and license.
* java/nio/DoubleBuffer.java,
java/nio/FloatBuffer.java,
java/nio/IntBuffer.java,
java/nio/LongBuffer.java,
java/nio/ShortBuffer.java
(array): Throw exceptions.
(arrayOffset): Throw exceptions.

From-SVN: r62832

21 years agoImprove previous fix.
Gabriel Dos Reis [Thu, 13 Feb 2003 08:10:27 +0000 (08:10 +0000)]
Improve previous fix.

From-SVN: r62831

21 years agodecl.c: (define_label): Fix warning for return 0 instead of NULL.
Andrew Pinski [Thu, 13 Feb 2003 08:02:39 +0000 (08:02 +0000)]
decl.c: (define_label): Fix warning for return 0 instead of NULL.

2003-02-14   Andrew Pinski <pinskia@physics.uc.edu>

        * decl.c: (define_label): Fix warning for return 0 instead of NULL.

From-SVN: r62828

21 years agoFileBasedFactory.java, [...]: New files, all merged from classpath.
Michael Koch [Thu, 13 Feb 2003 07:45:58 +0000 (07:45 +0000)]
FileBasedFactory.java, [...]: New files, all merged from classpath.

2003-02-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/util/prefs/FileBasedFactory.java,
gnu/java/util/prefs/MemmoryBasedFactory.java,
gnu/java/util/prefs/MemoryBasedPreferences.java,
gnu/java/util/prefs/NodeReader.java,
gnu/java/util/prefs/NodeWriter.java,
java/util/prefs/AbstractPreferences.java,
java/util/prefs/BackingStoreException.java,
java/util/prefs/InvalidPreferencesFormatException.java,
java/util/prefs/NodeChangeEvent.java,
java/util/prefs/NodeChangeListener.java,
java/util/prefs/PreferenceChangeEvent.java,
java/util/prefs/PreferenceChangeListener.java,
java/util/prefs/Preferences.java,
java/util/prefs/PreferencesFactory.java:
New files, all merged from classpath.
* Makefile.am
(ordinary_java_source_files): Added the following files:
gnu/java/util/prefs/FileBasedFactory.java,
gnu/java/util/prefs/MemmoryBasedFactory.java,
gnu/java/util/prefs/MemoryBasedPreferences.java,
gnu/java/util/prefs/NodeReader.java,
gnu/java/util/prefs/NodeWriter.java,
(core_java_source_files): Added the following files:
java/util/prefs/AbstractPreferences.java,
java/util/prefs/BackingStoreException.java,
java/util/prefs/InvalidPreferencesFormatException.java,
java/util/prefs/NodeChangeEvent.java,
java/util/prefs/NodeChangeListener.java,
java/util/prefs/PreferenceChangeEvent.java,
java/util/prefs/PreferenceChangeListener.java,
java/util/prefs/Preferences.java,
java/util/prefs/PreferencesFactory.java
* Makefile.in: Regenerated.

From-SVN: r62827

21 years agoMoved ChangeLog entry into correct ChangeLog file
Michael Koch [Thu, 13 Feb 2003 07:36:10 +0000 (07:36 +0000)]
Moved ChangeLog entry into correct ChangeLog file

From-SVN: r62825

21 years ago2003-02-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 13 Feb 2003 07:33:40 +0000 (07:33 +0000)]
2003-02-13  Michael Koch  <konqueror@gmx.de>

* java/net/NetPermission.java
(NetPermission): Make doucmentation match the method declaration.
* java/net/NetworkInterface.java
(equals): Reformated for GNU coding style.
* java/net/ServerSocket.java: Merged with classpath.
* java/net/Socket.java: Partly merged with classpath (Added some @since).
* java/net/SocketImpl.java
(localPort): Merged with classpath (initialize with -1).
* java/net/SocketPermission.java: Merged with classpath (reindented).
* java/net/URLDecoder.java: Merged with classpath (reindented).

From-SVN: r62824

21 years agoGridBagConstraints.java (FIRST_LINE_ENT, [...]): New constants.
Michael Koch [Thu, 13 Feb 2003 07:02:12 +0000 (07:02 +0000)]
GridBagConstraints.java (FIRST_LINE_ENT, [...]): New constants.

2003-02-13  Michael Koch  <konqueror@gmx.de>

* java/awt/GridBagConstraints.java
(FIRST_LINE_ENT, FIRST_LINE_START, LAST_LINE_END, LAST_LINE_START,
LINE_END, LINE_START, PAGE_END, PAGE_START): New constants.
* java/awt/KeyboardFocusManager.java
(setGlobalCurrentFocusCycleRoot): Must be public.
* java/awt/MenuComponent.java
(MenuComponent): Must be public.
* java/awt/Toolkit.java:
Added some empty lines to make documentation more readable.
(getFontPeer): Added @deprecated.
(getColorModel): Added exception documentation.
(getProperty): Fixed documentation.

From-SVN: r62822

21 years agotimevar.h (POP_TIMEVAR_AND_RETURN): New macro.
Gabriel Dos Reis [Thu, 13 Feb 2003 04:57:20 +0000 (04:57 +0000)]
timevar.h (POP_TIMEVAR_AND_RETURN): New macro.

* timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
cp/
* decl.c: Include "timevar.h".
(poplevel): Time name lookup.
(find_binding): Likewise.
(push_namespace): Likewise.
(pop_nested_namespace): Likewise.
(store_bindings): Likewise.
(maybe_push_to_top_level): Likewise.
(pop_from_top_level): Likewise.
(push_local_name): Likewise.
(pushtag): Likewise.
(pushdecl): Likewise.
(pushdecl_with_scope): Likewise.
(pushdecl_namespace_level): Likewise.
(pushdecl_top_level): Likewise.
(pushdecl_class_level): Likewise.
(push_class_level_binding): Likewise.
(push_using_decl): Likewise.
(push_using_directive): Likewise.
(push_overloaded_decl): Likewise.
(lookup_label): Likewise.
(define_label): Likewise.
(lookup_tag): Likewise.
(lookup_tag_reverse): Likewise.
(lookup_namespace_name): Likewise.
(select_decl): Likewise.
(unqualified_namespace_lookup): Likewise.
(lookup_name_real): Likewise.
(lookup_name_current_level): Likewise.
(lookup_type_current_level): Likewise.
(maybe_inject_for_scope_var): Likewise.
(xref_tag): Likewise.

* Make-lang.in (cp/decl.o): Add dependency on timevar.h

From-SVN: r62819

21 years agoatomicity.h (_Atomic_add_mutex): Fix declaration.
Phil Edwards [Thu, 13 Feb 2003 04:02:20 +0000 (04:02 +0000)]
atomicity.h (_Atomic_add_mutex): Fix declaration.

2003-02-12  Phil Edwards  <pme@gcc.gnu.org>

* config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
(_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
(_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
when we don't have static mutex initialization.
(__exchange_and_add):  Use _Atomic_add_mutex_once.
* src/misc-inst.cc:  Definitions of all the above.

From-SVN: r62818

21 years agodecl.c (build_enumerator): Remove unneeded test.
Phil Edwards [Thu, 13 Feb 2003 03:50:18 +0000 (03:50 +0000)]
decl.c (build_enumerator): Remove unneeded test.

2003-02-12  Phil Edwards  <pme@gcc.gnu.org>

* decl.c (build_enumerator):  Remove unneeded test.

From-SVN: r62817

21 years agoi386.md (UNSPEC_FPATAN): New UNSPEC constant.
Roger Sayle [Thu, 13 Feb 2003 03:09:45 +0000 (03:09 +0000)]
i386.md (UNSPEC_FPATAN): New UNSPEC constant.

* config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
(atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.

* reg-stack.c (subst_stack_regs_pat): Add support for binary
UNSPEC instructions (e.g. "fpatan").

* gcc.dg/i386-387-1.c: Add new test for __builtin_atan2.
* gcc.dg/i386-387-2.c: Likewise.

From-SVN: r62816

21 years agoconfigure.host (alpha*-*): Default to -mieee.
Jeff Sturm [Thu, 13 Feb 2003 02:51:26 +0000 (02:51 +0000)]
configure.host (alpha*-*): Default to -mieee.

* configure.host (alpha*-*): Default to -mieee.
* configure.in (IEEESPEC): New.
* libgcj.spec.in (jc1): Add IEEESPEC.
* configure: Rebuild.

From-SVN: r62815

21 years agoacconfig.h: New file.
Kaveh R. Ghazi [Thu, 13 Feb 2003 01:54:07 +0000 (01:54 +0000)]
acconfig.h: New file.

* acconfig.h: New file.  Add uintptr_t.
* config.in: Regenerated.

From-SVN: r62811

21 years agovarray.c (element_size): Remove.
Mike Stump [Thu, 13 Feb 2003 00:41:28 +0000 (00:41 +0000)]
varray.c (element_size): Remove.

* varray.c (element_size): Remove.
(uses_ggc): Remove.
(element): Add.
(varray_init): Use new interface.
(varray_grow): Use new interface.
(varray_clear): Use new interface.

From-SVN: r62810

21 years agoDaily bump.
GCC Administrator [Thu, 13 Feb 2003 00:17:06 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r62809

21 years agowin32.h: Include ws2tcpip.h instead of winsock.h to obtain definition of the socklen_...
Ranjit Mathew [Thu, 13 Feb 2003 00:07:37 +0000 (00:07 +0000)]
win32.h: Include ws2tcpip.h instead of winsock.h to obtain definition of the socklen_t type.

2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

* include/win32.h: Include ws2tcpip.h instead of
winsock.h to obtain definition of the socklen_t type.
Remove IP_TOS definition - not needed with ws2tcpip.h
(_Jv_connect): Correct slight formatting error.

From-SVN: r62801

21 years agoppc-spe.c: Fix formatting.
Aldy Hernandez [Wed, 12 Feb 2003 23:54:32 +0000 (23:54 +0000)]
ppc-spe.c: Fix formatting.

2003-02-12  Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.dg/ppc-spe.c: Fix formatting.
        Enable tests that were previously unsupported by gas.
        Delete tests for instructions that no longer exist.
        Switch arguments on evsubifw builtin.

From-SVN: r62798

21 years agospe.h: Add casts to the arguments of the following macros...
Aldy Hernandez [Wed, 12 Feb 2003 23:49:30 +0000 (23:49 +0000)]
spe.h: Add casts to the arguments of the following macros...

2003-02-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.h: Add casts to the arguments of the following
        macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
        evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
        evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
        __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
        __ev_get_u16, __ev_get_s16.

From-SVN: r62797

21 years agojni.cc (_Jv_LookupJNIMethod): Modify to accept the size of the arguments for a JNI...
Ranjit Mathew [Wed, 12 Feb 2003 23:40:31 +0000 (23:40 +0000)]
jni.cc (_Jv_LookupJNIMethod): Modify to accept the size of the arguments for a JNI function.

2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

* jni.cc (_Jv_LookupJNIMethod): Modify to accept the
size of the arguments for a JNI function. For Win32,
modify to search for all forms of possible exported
names of an stdcall JNI function.
(_Jv_JNIMethod::call): Modify to calculate the size
of the arguments passed to a JNI function and pass
it to _Jv_LookupJNIMethod.

From-SVN: r62796

21 years agodecl.c (java_init_decl_processing): Change soft_lookupjnimethod_node to reflect the...
Ranjit Mathew [Wed, 12 Feb 2003 23:39:50 +0000 (23:39 +0000)]
decl.c (java_init_decl_processing): Change soft_lookupjnimethod_node to reflect the change in signature of...

2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

* decl.c (java_init_decl_processing): Change
soft_lookupjnimethod_node to reflect the change in
signature of _Jv_LookupJNIMethod in libjava/jni.cc
* expr.c (build_jni_stub): Calculate and pass the size
on the stack of the arguments to a JNI function. Use
new target macro MODIFY_JNI_METHOD_CALL to allow a
target to modify the call to a JNI method.

From-SVN: r62795

21 years ago* config/h8300/h8300.md (a peephole2): New.
Kazu Hirata [Wed, 12 Feb 2003 23:32:21 +0000 (23:32 +0000)]
* config/h8300/h8300.md (a peephole2): New.

From-SVN: r62792

21 years agoMakefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
Jan Hubicka [Wed, 12 Feb 2003 21:48:59 +0000 (22:48 +0100)]
Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time

* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
(OBJS): Add callgraph.o
(callgraph.o): New.
* c-decl.c (expand_body_1): Break out from ...
(expand_body): This one;  change calling convention
(finish_function): Move some of expand_body logic here.
(c_expand_deferred_function): Update call of expand_body
(c_expand_stmt): Use c_expand_body_1.
* c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
* c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
* c-tree.h (c_expand_body): Declare.
* callgraph.c: New file.
* flags.h (flag_unit_at_a_time): Declare.
* langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
* langhooks.h (struct lang_hooks_for_callgraph): New.
(struct lang_hooks): Add callgraph field.
* toplev.c (flag_unit_at_a_time): New.
(lang_independent_options): Add flag_unit_at_a_time.
(process_options): Disable unit-at-a-time mode for frontends not
supporting callgraph.
* tree-inline.c (typedef struct inline_data): Add "decl"
(expand_call_inline): Update callgraph.
(optimize_inline_calls): Set id.decl.
* tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
cgraph_calls_p): Declare.
* invoke.texi (-funit-at-a-time): Document

From-SVN: r62789

21 years agospe.h: Fix misc formatting.
Aldy Hernandez [Wed, 12 Feb 2003 20:25:38 +0000 (20:25 +0000)]
spe.h: Fix misc formatting.

2003-02-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.h: Fix misc formatting.
        (__ev_create_ufix32_fs): Cast ev argument.
        (__ev_create_sfix32_fs): Same.
        (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
        (__ev_get_ufix32_fs_internal): Same.

From-SVN: r62788

21 years agoparser.c (cp_parser_postfix_expression): Set idk properly for object->scope::member.
Jason Merrill [Wed, 12 Feb 2003 20:02:40 +0000 (15:02 -0500)]
parser.c (cp_parser_postfix_expression): Set idk properly for object->scope::member.

        * parser.c (cp_parser_postfix_expression): Set idk properly for
        object->scope::member.

From-SVN: r62784

21 years agore PR libstdc++/9563 (ostream::sentry returns true after a failed preparation)
Paolo Carlini [Wed, 12 Feb 2003 19:39:19 +0000 (20:39 +0100)]
re PR libstdc++/9563 (ostream::sentry returns true after a failed preparation)

2003-02-12  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/9563
* include/bits/ostream.tcc (sentry::sentry): Check
the state of the stream after the preparation.
* testsuite/27_io/ostream_sentry.cc (test02): Add.

From-SVN: r62779

21 years agotm.texi (MODIFY_JNI_METHOD_CALL): Document.
Ranjit Mathew [Wed, 12 Feb 2003 18:39:35 +0000 (18:39 +0000)]
tm.texi (MODIFY_JNI_METHOD_CALL): Document.

2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

* doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
* config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.

From-SVN: r62776

21 years agocpplib.c (do_include_common): Move warnings for #include_next and #import out to...
Zack Weinberg [Wed, 12 Feb 2003 17:01:53 +0000 (17:01 +0000)]
cpplib.c (do_include_common): Move warnings for #include_next and #import out to callers.

* cpplib.c (do_include_common): Move warnings for
#include_next and #import out to callers.  Use early-return
instead of nested ifs.  Don't do check_eol here.
(parse_include): Do check_eol here with the rest of the
parsing stuff.
(do_include_next, do_import): Now handle warnings.

From-SVN: r62772

21 years ago* doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
Gerald Pfeifer [Wed, 12 Feb 2003 15:06:40 +0000 (16:06 +0100)]
* doc/install.texi (Specific): Update AVR- and Darwin-related URLs.

From-SVN: r62767

21 years ago20030209-1.c: Disable the test if STACK_SIZE is too small.
Kazu Hirata [Wed, 12 Feb 2003 14:33:24 +0000 (14:33 +0000)]
20030209-1.c: Disable the test if STACK_SIZE is too small.

* gcc.c-torture/execute/20030209-1.c: Disable the test if
STACK_SIZE is too small.

From-SVN: r62766

21 years ago* predict.c (estimate_probability): Fix roundoff error.
Jan Hubicka [Wed, 12 Feb 2003 14:23:20 +0000 (15:23 +0100)]
* predict.c (estimate_probability):  Fix roundoff error.

From-SVN: r62765

21 years agoh8300.md (a peephole2): Don't handle 65535.
Kazu Hirata [Wed, 12 Feb 2003 14:10:21 +0000 (14:10 +0000)]
h8300.md (a peephole2): Don't handle 65535.

* config/h8300/h8300.md (a peephole2): Don't handle 65535.
(two peephole2): New.

From-SVN: r62764

21 years agoh8300.md (several peephole2): Replace find_regno_note with peep2_reg_dead_p.
Kazu Hirata [Wed, 12 Feb 2003 13:57:56 +0000 (13:57 +0000)]
h8300.md (several peephole2): Replace find_regno_note with peep2_reg_dead_p.

* config/h8300/h8300.md (several peephole2): Replace
find_regno_note with peep2_reg_dead_p.

From-SVN: r62763

21 years agoChannels.java: New file.
Michael Koch [Wed, 12 Feb 2003 10:10:28 +0000 (10:10 +0000)]
Channels.java: New file.

2003-02-12  Michael Koch  <konqueror@gmx.de>

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

From-SVN: r62762

21 years ago2003-02-12 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 12 Feb 2003 08:01:10 +0000 (08:01 +0000)]
2003-02-12  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBuffer.java
(allocate): Implemented.
(wrap): Implemented.
* java/nio/CharBuffer.java:
Some documentation added and reworked.
(endian): Removed.
(allocate): Implemented.
(wrap): Implemented.
(array): Throw exceptions.
(arrayOffset): Throw exceptions.
(toString): Implemented.
(length): Implemented.
(put): Implemented.
(charAt): Implemented.

From-SVN: r62760

21 years agogcse.c (lookup_set): Remove unused argument PAT.
Richard Henderson [Wed, 12 Feb 2003 06:14:12 +0000 (22:14 -0800)]
gcse.c (lookup_set): Remove unused argument PAT.

        * gcse.c (lookup_set): Remove unused argument PAT.  Update
        both callers.

From-SVN: r62759

21 years agoWrote better ChangeLog entry
Tom Tromey [Wed, 12 Feb 2003 01:26:49 +0000 (01:26 +0000)]
Wrote better ChangeLog entry

From-SVN: r62757

21 years agoZipInputStream.java: idem
John Leuner [Wed, 12 Feb 2003 01:25:08 +0000 (01:25 +0000)]
ZipInputStream.java: idem

2003-02-11  John Leuner  <jewel@debian.org>

* java/util/zip/ZipInputStream.java: idem

From-SVN: r62754

21 years agodiagnostic.c (real_abort): New.
Geoffrey Keating [Wed, 12 Feb 2003 01:05:47 +0000 (01:05 +0000)]
diagnostic.c (real_abort): New.

* diagnostic.c (real_abort): New.
(diagnostic_report_diagnostic): Call real_abort on error.
* diagnostic.h (diagnostic_abort_on_error): New.
(struct diagnostic_context): Add abort_on_error field.
* toplev.c (setup_core_dumping): New.
(decode_d_option): Handle 'H' case.
* doc/invoke.texi (Debugging Options): Document -dH.

From-SVN: r62753

21 years agoMakefile.am (stamp-std-precompile): Add rule.
Benjamin Kosnik [Wed, 12 Feb 2003 00:54:39 +0000 (00:54 +0000)]
Makefile.am (stamp-std-precompile): Add rule.

2003-02-11  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am (stamp-std-precompile): Add rule.
* include/Makefile.in: Regenerated.

From-SVN: r62752

21 years agoDaily bump.
GCC Administrator [Wed, 12 Feb 2003 00:17:06 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r62751

21 years agoMakefile.in: Remove pointless setting of CXXFLAGS for dejagnu which refers to obsolete...
Nathanael Nerode [Tue, 11 Feb 2003 22:24:40 +0000 (22:24 +0000)]
Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu which refers to obsolete...

* Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
which refers to obsolete directories.

From-SVN: r62738

21 years ago* config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
Richard Henderson [Tue, 11 Feb 2003 22:15:20 +0000 (14:15 -0800)]
* config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.

From-SVN: r62736

21 years agoi386.c (override_options): Define c3-2 as a 686 with SSE.
Richard Henderson [Tue, 11 Feb 2003 22:13:57 +0000 (14:13 -0800)]
i386.c (override_options): Define c3-2 as a 686 with SSE.

        * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
        * doc/invoke.texi: Extra alias.

From-SVN: r62735

21 years agoi386.c (contains_128bit_aligned_vector_p): New function.
Jan Hubicka [Tue, 11 Feb 2003 21:58:09 +0000 (22:58 +0100)]
i386.c (contains_128bit_aligned_vector_p): New function.

* i386.c (contains_128bit_aligned_vector_p): New function.
(ix86_function_arg_boundary): Properly align vector modes.

From-SVN: r62732

21 years agolocale_facets.h (__num_base): Add _S_atoms_out.
Jerry Quinn [Tue, 11 Feb 2003 21:55:49 +0000 (21:55 +0000)]
locale_facets.h (__num_base): Add _S_atoms_out.

2003-02-11 Jerry Quinn  <jlquinn@optonline.net>
           Benjamin Kosnik  <benjamin@redhat.com>

* include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
Add indexes into this array.
(__num_base::_S_atoms): To _S_atoms_in.
(num_put::_M_insert): Rename to _M_pad.
(num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
(num_put::_M_widen_int): Rename to _M_group_int.
(num_put::_M_widen_float): Rename to _M_group_float.
* include/bits/locale_facets.tcc (__int_to_char): New inline
function and adapter functions.
(num_put::_M_group_int): Streamline.
(num_put::_M_group_float): Streamline.
(num_put::_M_convert_int): Remove unused parameter names. Choose
large enough buffer for text.  Use __int_to_char instead of
__convert_from_v.  Formatted text is now at the end of the buffer.
(num_put::_M_convert_float): Preliminary fixups.
* src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
(__int_to_char<unsigned long long>): Same.
(__int_to_char<char, unsigned long>): New.
(__int_to_char<char, unsigned long long>): New.
(__int_to_char<wchar_t, unsigned long>): New.
(__int_to_char<wchar_t, unsigned long long>): New.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>
From-SVN: r62731

21 years agoxtensa.md (set_frame_ptr): Change rtl to set reg a7.
Bob Wilson [Tue, 11 Feb 2003 21:42:31 +0000 (21:42 +0000)]
xtensa.md (set_frame_ptr): Change rtl to set reg a7.

        * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
        * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
        as a SET pattern.

From-SVN: r62730

21 years agoAdd missing log entry from commit.
John David Anglin [Tue, 11 Feb 2003 21:28:29 +0000 (21:28 +0000)]
Add missing log entry from commit.

From-SVN: r62729

21 years agoFix double applied patch.
Richard Henderson [Tue, 11 Feb 2003 21:26:48 +0000 (13:26 -0800)]
Fix double applied patch.

From-SVN: r62728

21 years ago* builtins.c: Fix failures caused by commit of the wrong patch.
Roger Sayle [Tue, 11 Feb 2003 21:15:26 +0000 (21:15 +0000)]
* builtins.c: Fix failures caused by commit of the wrong patch.

From-SVN: r62727

21 years agora-build.c (compare_and_free_webs): Relax checking.
Dale Johannesen [Tue, 11 Feb 2003 20:58:36 +0000 (20:58 +0000)]
ra-build.c (compare_and_free_webs): Relax checking.

2003-02-11  Dale Johannesen  <dalej@apple.com>
        * ra-build.c (compare_and_free_webs):  Relax checking.
        * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
        (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.

From-SVN: r62724

21 years ago2003-02-11 Ranjit Mathew <rmathew@hotmail.com>
Ranjit Mathew [Tue, 11 Feb 2003 20:55:26 +0000 (20:55 +0000)]
2003-02-11  Ranjit Mathew  <rmathew@hotmail.com>

* java/io/natFileDescriptorWin32.cc
(java::io::FileDescriptor::read): Return -1 (EOF) if ReadFile( )
returns with Win32 error code ERROR_BROKEN_PIPE.

From-SVN: r62722

21 years agoinclhack.def (hpux_long_double, [...]): New hacks.
John David Anglin [Tue, 11 Feb 2003 20:43:41 +0000 (20:43 +0000)]
inclhack.def (hpux_long_double, [...]): New hacks.

* inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
* fixincl.x: Rebuilt.
* tests/base/stdlib.h: Update.
* tests/base/ctype.h: New file.

From-SVN: r62718

21 years agore PR rtl-optimization/9651 ([Alpha] FPE with NAN in spite of isnan protection)
Falk Hueffner [Tue, 11 Feb 2003 20:43:06 +0000 (20:43 +0000)]
re PR rtl-optimization/9651 ([Alpha] FPE with NAN in spite of isnan protection)

        PR optimization/9651
        * rtlanal.c (may_trap_p): Handle FIX.

From-SVN: r62717

21 years agoi386.c (override_options): Define c3-2 as a 686 with SSE.
Dave Jones [Tue, 11 Feb 2003 20:41:13 +0000 (20:41 +0000)]
i386.c (override_options): Define c3-2 as a 686 with SSE.

        * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
        * doc/invoke.texi: Extra alias.

From-SVN: r62716

21 years ago* config/rs6000/host-darwin.c: Fix comment.
Geoffrey Keating [Tue, 11 Feb 2003 20:39:07 +0000 (20:39 +0000)]
* config/rs6000/host-darwin.c: Fix comment.

From-SVN: r62715

21 years agors6000.md (divmodsi4): Use register_operand predicate for mod result.
David Edelsohn [Tue, 11 Feb 2003 20:38:28 +0000 (20:38 +0000)]
rs6000.md (divmodsi4): Use register_operand predicate for mod result.

        * config/rs6000/rs6000.md (divmodsi4): Use register_operand
        predicate for mod result.

From-SVN: r62714

21 years agore PR libstdc++/9659 (3.3/3.4 seekoff overload problem with optimization)
Scott Snyder [Tue, 11 Feb 2003 19:53:51 +0000 (19:53 +0000)]
re PR libstdc++/9659 (3.3/3.4 seekoff overload problem with optimization)

2003-02-11  Scott Snyder  <snyder@fnal.gov>

PR libstdc++/9659
* include/bits/fstream.tcc (seekoff): Avoid operator+
for pos_type.

From-SVN: r62712

21 years ago* emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
Jan Hubicka [Tue, 11 Feb 2003 19:47:30 +0000 (20:47 +0100)]
* emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.

From-SVN: r62711

21 years agoi386.c (ix86_expand_movstr): Fail if esi or edi appropriated as globals.
Richard Henderson [Tue, 11 Feb 2003 19:44:46 +0000 (11:44 -0800)]
i386.c (ix86_expand_movstr): Fail if esi or edi appropriated as globals.

        * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
        appropriated as globals.
        (ix86_expand_clrstr): Similarly.
        * config/i386/i386.md (cmpstrsi): Similarly.

From-SVN: r62710

21 years ago* config/h8300/h8300.md (a peephole2): Add a case of 255.
Kazu Hirata [Tue, 11 Feb 2003 19:36:49 +0000 (19:36 +0000)]
* config/h8300/h8300.md (a peephole2): Add a case of 255.

From-SVN: r62709

21 years agooptabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
Roger Sayle [Tue, 11 Feb 2003 19:34:11 +0000 (19:34 +0000)]
optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.

* optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
(pow_optab, atan2_optab): Define corresponding macros.
* optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
* genopinit.c (optabs): Implement pow_optab and atan2_optab
using pow?f3 and atan2?f3 patterns.
* builtins.c (expand_errno_check): New function to update errno
if necessary, split out from expand_builtin_mathfn.
(expand_builtin_mathfn): Use expand_errno_check.
(expand_builtin_mathfn_2): New function to handle expanding binary
math functions, reusing the code in expand_errno_check.
(expand_builtin): Handle the pow and atan2 math built-ins,
BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
expand_builtin_mathfn_2.

* doc/md.texi: Document new pow?f3 and atan2?f3 patterns.

From-SVN: r62708

21 years agogcconfig.h: undefine MPROTECT_VDB for MACOSX
Andreas Tobler [Tue, 11 Feb 2003 18:22:08 +0000 (19:22 +0100)]
gcconfig.h: undefine MPROTECT_VDB for MACOSX

2003-02-11  Andreas Tobler  <a.tobler@schweiz.ch>

        * include/private/gcconfig.h: undefine MPROTECT_VDB for MACOSX

From-SVN: r62705

21 years agocombine.c (combine_simplify_rtx): Fix folding of nested float_truncates.
Jan Hubicka [Tue, 11 Feb 2003 18:05:55 +0000 (19:05 +0100)]
combine.c (combine_simplify_rtx): Fix folding of nested float_truncates.

* combine.c (combine_simplify_rtx): Fix folding of
nested float_truncates.

From-SVN: r62702

21 years ago* config/h8300/h8300.md (a peephole2): Fix a typo.
Kazu Hirata [Tue, 11 Feb 2003 17:41:33 +0000 (17:41 +0000)]
* config/h8300/h8300.md (a peephole2): Fix a typo.

From-SVN: r62701

21 years ago2003-02-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 15:41:31 +0000 (15:41 +0000)]
2003-02-11  Michael Koch  <konqueror@gmx.de>

       * Makefile.in
       (libgcj_la_OBJECTS): Removed natSelctorImpl.la.

From-SVN: r62700

21 years agoarm.mc (return_address_mask): Use CC_REGNUM for the condition code register number.
Richard Earnshaw [Tue, 11 Feb 2003 14:44:35 +0000 (14:44 +0000)]
arm.mc (return_address_mask): Use CC_REGNUM for the condition code register number.

* arm.mc (return_address_mask): Use CC_REGNUM for the condition code
register number.

From-SVN: r62699

21 years agoh8300-protos.h: Add a prototype for gtuleu_operator.
Kazu Hirata [Tue, 11 Feb 2003 13:43:20 +0000 (13:43 +0000)]
h8300-protos.h: Add a prototype for gtuleu_operator.

* config/h8300/h8300-protos.h: Add a prototype for
gtuleu_operator.
* config/h8300/h8300.c (gtuleu_operator): New.
* config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
* config/h8300/h8300.md (a peephole2): New.

From-SVN: r62696

21 years ago* sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
Jan Hubicka [Tue, 11 Feb 2003 12:33:52 +0000 (13:33 +0100)]
* sched-ebb.c (schedule_ebbs): Do not verify_flow_info.

From-SVN: r62694

21 years agoByteBufferImpl.java: Reformated and removed some code.
Michael Koch [Tue, 11 Feb 2003 11:16:18 +0000 (11:16 +0000)]
ByteBufferImpl.java: Reformated and removed some code.

2003-02-11  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/ByteBufferImpl.java:
Reformated and removed some code.
(backing_buffer): Removed.
(array_offset): Removed.
(ro): Renamed to readOnly.
(ByteBufferImpl): Use parent constructor, initialize readOnly.
* gnu/java/nio/CharBufferImpl.java:
Reformated and removed some code.
(array_offset): Removed.
(ro): Renamed to readOnly.
(CharBufferImpl): Use parent constructor, initialize readOnly.
(inc_pos): Removed.
(order): New method.
* gnu/java/nio/DoubleBufferImpl.java:
Reformated and removed some code.
(array_offset): Removed.
(ro): Renamed to readOnly.
(DoubleBufferImpl): Use parent constructor, initialize readOnly.
(inc_pos): Removed.
(order): New method.
* gnu/java/nio/FloatBufferImpl.java:
Reformated and removed some code.
(array_offset): Removed.
(ro): Renamed to readOnly.
(FloatBufferImpl): Use parent constructor, initialize readOnly.
(inc_pos): Removed.
(order): New method.
* gnu/java/nio/IntBufferImpl.java:
Reformated and removed some code.
(array_offset): Removed.
(ro): Renamed to readOnly.
(IntBufferImpl): Use parent constructor, initialize readOnly.
(inc_pos): Removed.
(order): New method.
* gnu/java/nio/LongBufferImpl.java:
Reformated and removed some code.
(array_offset): Removed.
(ro): Renamed to readOnly.
(LongBufferImpl): Use parent constructor, initialize readOnly.
(inc_pos): Removed.
(order): New method.
* gnu/java/nio/ShortBufferImpl.java:
Reformated and removed some code.
(array_offset): Removed.
(ro): Renamed to readOnly.
(ShortBufferImpl): Use parent constructor, initialize readOnly.
(inc_pos): Removed.
(order): New method.
* Makefile.am
(ordinary_java_source_files): Added the following files:
gnu/java/nio/ByteBufferImpl.java
gnu/java/nio/CharBufferImpl.java
gnu/java/nio/DoubleBufferImpl.java
gnu/java/nio/FloatBufferImpl.java
gnu/java/nio/IntBufferImpl.java
gnu/java/nio/LongBufferImpl.java
gnu/java/nio/ShortBufferImpl.java
java/nio/DoubleBuffer.java
java/nio/FloatBuffer.java
java/nio/IntBuffer.java
java/nio/LongBuffer.java
java/nio/ShortBuffer.java
(nat_source_files): Added the following files:
gnu/java/nio/natByteBufferImpl.cc
gnu/java/nio/natCharBufferImpl.cc
gnu/java/nio/natDoubleBufferImpl.cc
gnu/java/nio/natFloatBufferImpl.cc
gnu/java/nio/natIntBufferImpl.cc
gnu/java/nio/natLongBufferImpl.cc
gnu/java/nio/natShortBufferImpl.cc
* Makefile.in: Regenerated.

From-SVN: r62692

21 years agore PR libstdc++/9320 (Incorrect usage of traits_type::int_type in stdio_filebuf)
Paolo Carlini [Tue, 11 Feb 2003 10:43:49 +0000 (11:43 +0100)]
re PR libstdc++/9320 (Incorrect usage of traits_type::int_type in stdio_filebuf)

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

21 years agore PR libstdc++/9318 (i/ostream::operator>>/<<(streambuf*) broken)
Paolo Carlini [Tue, 11 Feb 2003 09:59:19 +0000 (10:59 +0100)]
re PR libstdc++/9318 (i/ostream::operator>>/<<(streambuf*) broken)

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

21 years ago2003-02-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 09:44:57 +0000 (09:44 +0000)]
2003-02-11  Michael Koch  <konqueror@gmx.de>

* 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

21 years ago* predict.c (choose_function_section): Choose sections correctly.
Jan Hubicka [Tue, 11 Feb 2003 09:05:30 +0000 (10:05 +0100)]
* predict.c (choose_function_section): Choose sections correctly.

From-SVN: r62686

21 years ago2003-02-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 07:42:17 +0000 (07:42 +0000)]
2003-02-11  Michael Koch  <konqueror@gmx.de>

* 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

21 years ago2003-02-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 06:51:34 +0000 (06:51 +0000)]
2003-02-11  Michael Koch  <konqueror@gmx.de>

* 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

21 years ago2003-02-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 06:50:13 +0000 (06:50 +0000)]
2003-02-11   Michael Koch  <konqueror@gmx.de>

* java/nio/channels/SelectionKey.java
(OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE): Initialize with correct
values.

From-SVN: r62683

21 years ago2003-02-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 06:48:53 +0000 (06:48 +0000)]
2003-02-11  Michael Koch  <konqueror@gmx.de>

* 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

21 years agoFileLockImpl.java, [...]: New files.
Michael Koch [Tue, 11 Feb 2003 06:47:50 +0000 (06:47 +0000)]
FileLockImpl.java, [...]: New files.

2003-02-11  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/FileLockImpl.java,
java/nio/channels/FileLock.java: New files.

From-SVN: r62681

21 years ago2003-02-08 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Feb 2003 06:46:16 +0000 (06:46 +0000)]
2003-02-08  Michael Koch  <konqueror@gmx.de>

* 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

21 years agoacinclude.m4: Check for native targets that can't link at this point in the build.
DJ Delorie [Tue, 11 Feb 2003 05:50:01 +0000 (00:50 -0500)]
acinclude.m4: Check for native targets that can't link at this point in the build.

* acinclude.m4: Check for native targets that can't link at
this point in the build.
* aclocal.m4: Regenerate.
* configure: Regenerate.

From-SVN: r62679

21 years agoConnectionEvent.java (serialVersionUID): New field.
Tom Tromey [Tue, 11 Feb 2003 05:13:14 +0000 (05:13 +0000)]
ConnectionEvent.java (serialVersionUID): New field.

* javax/sql/ConnectionEvent.java (serialVersionUID): New field.
(ex): Renamed from sqlException.

From-SVN: r62678

21 years agoreload1.c (first_label_num): New.
John David Anglin [Tue, 11 Feb 2003 03:52:28 +0000 (03:52 +0000)]
reload1.c (first_label_num): New.

* 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

21 years agomips-tfile.c (init_file): Add missing initializers in the "#ifdef __alpha" case.
Roger Sayle [Tue, 11 Feb 2003 03:47:48 +0000 (03:47 +0000)]
mips-tfile.c (init_file): Add missing initializers in the "#ifdef __alpha" case.

* 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