Daniel Jacobowitz
902cf50c93
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
2003-02-13 17:21:20 +00:00
Casey Marshall
894c84e4d9
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
2003-02-13 17:00:22 +00:00
Tom Tromey
06b5f09133
xfails: Added entries for an unimplemented Class method.
...
* libjava.mauve/xfails: Added entries for an unimplemented Class
method.
From-SVN: r62843
2003-02-13 16:36:57 +00:00
Kazu Hirata
4302db7910
* config/h8300/h8300.md (a peephole2): New.
...
From-SVN: r62842
2003-02-13 16:33:00 +00:00
Michael Koch
6b603eb999
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
2003-02-13 15:12:36 +00:00
Robert Lipe
e0d9cc7770
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
2003-02-13 14:16:45 +00:00
Andreas Schwab
9fb93b00b0
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
2003-02-13 12:28:26 +00:00
Michael Koch
8c9c9dfb8f
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
2003-02-13 11:37:10 +00:00
Ranjit Mathew
4cce66c3d7
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
2003-02-13 09:33:18 +00:00
Michael Koch
3b95ff5ebb
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
2003-02-13 08:50:52 +00:00
Michael Koch
9038b8b4d3
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
2003-02-13 08:40:35 +00:00
Gabriel Dos Reis
e8298892fa
Improve previous fix.
...
From-SVN: r62831
2003-02-13 08:10:27 +00:00
Andrew Pinski
62ed060f3c
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
2003-02-13 08:02:39 +00:00
Michael Koch
63640075b0
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
2003-02-13 07:45:58 +00:00
Michael Koch
31aef004ee
Moved ChangeLog entry into correct ChangeLog file
...
From-SVN: r62825
2003-02-13 07:36:10 +00:00
Michael Koch
05008212fb
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
2003-02-13 07:33:40 +00:00
Michael Koch
4e3243ef0e
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
2003-02-13 07:02:12 +00:00
Gabriel Dos Reis
22ffcc6f9f
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
2003-02-13 04:57:20 +00:00
Phil Edwards
8d55a4aa3b
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
2003-02-13 04:02:20 +00:00
Phil Edwards
6a540f3ca3
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
2003-02-13 03:50:18 +00:00
Roger Sayle
1fb54135be
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
2003-02-13 03:09:45 +00:00
Jeff Sturm
c4ebd83df2
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
2003-02-13 02:51:26 +00:00
Kaveh R. Ghazi
7ac27e08a3
acconfig.h: New file.
...
* acconfig.h: New file. Add uintptr_t.
* config.in: Regenerated.
From-SVN: r62811
2003-02-13 01:54:07 +00:00
Mike Stump
19a7414eb4
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
2003-02-13 00:41:28 +00:00
GCC Administrator
e3c3342556
Daily bump.
...
From-SVN: r62809
2003-02-13 00:17:06 +00:00
Ranjit Mathew
ea5a63a26d
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
2003-02-13 00:07:37 +00:00
Aldy Hernandez
c6e2a538a6
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
2003-02-12 23:54:32 +00:00
Aldy Hernandez
e589cc6ebb
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
2003-02-12 23:49:30 +00:00
Ranjit Mathew
c79d770273
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
2003-02-12 23:40:31 +00:00
Ranjit Mathew
697ec3260d
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
2003-02-12 23:39:50 +00:00
Kazu Hirata
2bbfc54272
* config/h8300/h8300.md (a peephole2): New.
...
From-SVN: r62792
2003-02-12 23:32:21 +00:00
Jan Hubicka
e72fcfe8e4
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
2003-02-12 21:48:59 +00:00
Aldy Hernandez
9037b0c71e
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
2003-02-12 20:25:38 +00:00
Jason Merrill
30dca1c87e
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
2003-02-12 15:02:40 -05:00
Paolo Carlini
ff5d863fc2
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
2003-02-12 19:39:19 +00:00
Ranjit Mathew
55ae46b15f
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
2003-02-12 18:39:35 +00:00
Zack Weinberg
3963c2e00e
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
2003-02-12 17:01:53 +00:00
Gerald Pfeifer
d1a86812fa
* doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
...
From-SVN: r62767
2003-02-12 15:06:40 +00:00
Kazu Hirata
5c4d5a15cc
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
2003-02-12 14:33:24 +00:00
Jan Hubicka
6efcd26809
* predict.c (estimate_probability): Fix roundoff error.
...
From-SVN: r62765
2003-02-12 14:23:20 +00:00
Kazu Hirata
9083b5dab9
h8300.md (a peephole2): Don't handle 65535.
...
* config/h8300/h8300.md (a peephole2): Don't handle 65535.
(two peephole2): New.
From-SVN: r62764
2003-02-12 14:10:21 +00:00
Kazu Hirata
86bc9b196b
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
2003-02-12 13:57:56 +00:00
Michael Koch
0e0335e36a
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
2003-02-12 10:10:28 +00:00
Michael Koch
ad2e63d5df
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
2003-02-12 08:01:10 +00:00
Richard Henderson
ceda50e9d5
gcse.c (lookup_set): Remove unused argument PAT.
...
* gcse.c (lookup_set): Remove unused argument PAT. Update
both callers.
From-SVN: r62759
2003-02-11 22:14:12 -08:00
Tom Tromey
cc687dae1d
Wrote better ChangeLog entry
...
From-SVN: r62757
2003-02-12 01:26:49 +00:00
John Leuner
8f561af784
ZipInputStream.java: idem
...
2003-02-11 John Leuner <jewel@debian.org>
* java/util/zip/ZipInputStream.java: idem
From-SVN: r62754
2003-02-12 01:25:08 +00:00
Geoffrey Keating
886e08657e
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
2003-02-12 01:05:47 +00:00
Benjamin Kosnik
ab77073fd7
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
2003-02-12 00:54:39 +00:00
GCC Administrator
e7478fa2aa
Daily bump.
...
From-SVN: r62751
2003-02-12 00:17:06 +00:00