Commit Graph

48822 Commits

Author SHA1 Message Date
Paolo Carlini
eea5120f82 1.cc: Remove find_first_of, find_last_of and find_last_not_of tests.
2003-03-24  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/21_strings/basic_string/find/char/1.cc: Remove
	find_first_of, find_last_of and find_last_not_of tests.
	* testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
	tests here, new file.
	* testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise, remove
	wchar_t find_first_of, find_last_of and find_last_not_of tests.
	* testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
	wchar_t find_first_of tests here, new file.
	* testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of tests
	here.
	* testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
	tests here.
	* testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
	wchar_t find_last_of tests here.
	* testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
	wchar_t find_last_not_of tests here.

From-SVN: r64824
2003-03-24 22:22:40 +00:00
Eric Botcazou
9fdbe7df39 * gcc.dg/ultrasp5.c: Fix comment.
From-SVN: r64822
2003-03-24 22:03:31 +00:00
Toon Moene
c12741e91b re PR fortran/10197 (direct acces files not unformatted by default)
2003-03-24  Bud Davis  <bdavis9659@comcast.net>

	PR fortran/10197
	* libI77/open.c (f_open): A DIRECT ACCESS file is
	UNFORMATTED by default.

From-SVN: r64821
2003-03-24 21:20:20 +00:00
Neil Booth
696fe23cb6 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
From-SVN: r64820
2003-03-24 20:44:54 +00:00
Nathan Sidwell
bd83b409c5 Changelog commit escaped earlier
Changelog commit escaped earlier
cp:
	PR c++/10119
	* error.c (dump_expr) [BASELINK]: Use dump_expr.
	* pt.c (maybe_fold_nontype_args): New function.
	(tsubst_copy) [SCOPE_REF]: Subst any template_id args.
	[TEMPLATE_ID_EXPR]: Break out folding code, call it.
	(tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Call
	maybe_fold_nontype_args.
testsuite:
	PR c++/10119
	* g++.dg/template/ptrmem5.C: New test.

From-SVN: r64819
2003-03-24 20:40:25 +00:00
Nathan Sidwell
1c82cc9081 PR c++/9898, PR c++/383, DR 322
cp:
	PR c++/9898, PR c++/383, DR 322
	* pt.c (maybe_adjust_types_for_deduction) [DEDUCE_CONV]: Look
	through reference types on both PARM and ARG.
testsuite:
	PR c++/9898, c++/383
	* g++.dg/template/conv6.C: New test.

From-SVN: r64815
2003-03-24 19:47:17 +00:00
Nathan Sidwell
a5fcc8951b re PR c++/10119 (tree-checking ICE in dump_expr)
cp:
	PR c++/10119
	* error.c (dump_expr) [BASELINK]: Use dump_expr.
	* pt.c (maybe_fold_nontype_args): New function.
	(tsubst_copy) [SCOPE_REF]: Subst any template_id args.
	[TEMPLATE_ID_EXPR]: Break out folding code, call it.
	(tsubst_copy_and_build) [TEMPLATE_ID_EXPR]: Call
	maybe_fold_nontype_args.
testsuite:
	PR c++/10119
	* g++.dg/template/ptrmem5.C: New test.

From-SVN: r64814
2003-03-24 19:41:10 +00:00
Janis Johnson
05253aed88 install.texi (Testing): Mention test result links from build status pages.
2003-03-24  Janis Johnson  <janis187@us.ibm.com>

	* doc/install.texi (Testing): Mention test result links from build
	status pages.

From-SVN: r64811
2003-03-24 18:27:26 +00:00
Nathan Sidwell
2ef6c975b9 re PR c++/10026 (ICE on incomplete type)
cp:
	PR c++/10026
	* decl2.c (arg_assoc_type) [ERROR_MARK]: Don't die.
testsuite:
	PR c++/10026
	* g++.dg/lookup/koenig1.C: New test.

	PR C++/10199
	* g++.dg/lookup/template2.C: New test.

From-SVN: r64809
2003-03-24 18:20:12 +00:00
Mark Mitchell
f89283915d function.c (put_var_into_stack): Change bool parameter to int.
* function.c (put_var_into_stack): Change bool parameter to int.
	(gen_mem_addressof): Likewise.
	* rtl.h (gen_mem_addressof): Likewise.
	* tree.h (put_var_into_stack): Likewise.
	* config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
	gen_mem_addressof or put_var_into_stack.
	* config/c4x/c4x.c (c4x_expand_builtin): Likewise.
	* config/ia64/ia64.c (spill_tfmode_operand): Likewise.

From-SVN: r64807
2003-03-24 17:53:31 +00:00
Michael Koch
950ebbeaf0 2003-03-24 Michael Koch <konqueror@gmx.de>
* java/io/DataOutputStream.java
	(write): Merged from classpath.
	* java/io/File.java:
	Merged copyrigth with classpath.
	* java/io/FileInputStream.java
	(getChannel): Made it synchronized instead of using a synchronized
	block.
	* java/io/FileOutputStream.java: Reformatted.
	* java/io/InputStreamReader.java
	(InputStreamReader): Renamed enc to encoding_name.
	(close): Merged documentation from classpath.
	(getEncoding): Merged documentation from classpath.
	(ready): Merged documentation from classpath.
	(read): Merged documentation from classpath.
	* java/io/LineNumberReader.java
	(lineNumber): Made it private.
	(LineNumberReader): Use Constant instead of a direct value.
	* java/io/OutputStreamWriter.java
	(OutputStreamWriter): Renamed enc to encoding_scheme, merged
	documentation from classpath.
	(close): Merged documentation from classpath.
	(flush): Merged documentation from classpath.
	(write): Merged documentation from classpath.
	* java/io/PrintStream.java: Reformatted.

From-SVN: r64806
2003-03-24 15:43:22 +00:00
Andreas Schwab
6db450f90a configure.in: Avoid trailing /.
2003-03-10  Andreas Schwab  <schwab@suse.de>

boehm-gc:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

libf2c:
	* aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
	glibcpp_toolexeclibdir.
	* configure: Rebuilt.

libffi:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

libjava:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

libobjc:
	* aclocal.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
	glibcpp_toolexeclibdir.
	* configure: Rebuilt.

libstdc++-v3:
	* acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
	glibcpp_toolexeclibdir.
	* aclocal.m4, configure: Rebuilt.

zlib:
	* configure.in: Avoid trailing /. in toolexeclibdir.
	* configure: Rebuilt.

From-SVN: r64805
2003-03-24 15:29:54 +00:00
Kazu Hirata
b980d72537 * config/h8300/h8300.md (a peephole2): New.
From-SVN: r64802
2003-03-24 14:17:49 +00:00
Michael Koch
fba5a74af3 2003-03-24 Michael Koch <konqueror@gmx.de>
* javax/swing/text/ComponentView.java
	(getComponent): Must be final.
	* javax/swing/tree/DefaultTreeCellRenderer.java:
	Reformatted.
	* javax/swing/undo/StateEditable.java:
	Reformatted.

From-SVN: r64801
2003-03-24 14:05:02 +00:00
Michael Koch
3bc8a4e355 ActivationInstantiator.java: Reformatted.
2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/rmi/activation/ActivationInstantiator.java:
	Reformatted.
	* java/rmi/activation/Activator.java:
	Reformatted.
	* java/rmi/registry/RegistryHandler.java:
	Remerged from classpath.

From-SVN: r64800
2003-03-24 14:01:41 +00:00
Michael Koch
1ab1cf4ecc Date.java: Fixed documentation starting tag to make javadoc happy.
2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/util/Date.java:
	Fixed documentation starting tag to make javadoc happy.
	* java/util/regex/Pattern.java
	(Pattern): Implements Serializable.
	* java/util/PatternSyntaxException.java
	(serialVersionUID): New member variable.

From-SVN: r64799
2003-03-24 13:56:57 +00:00
Michael Koch
050d3e13d8 2003-03-24 Michael Koch <koqnueror@gmx.de>
* java/awt/ContainerOrderFocusTraversalPolicy.java
	(getFirstComponent): Implemented.
	(getLastComponent): Implemented.
	(getDefaultComponent): Implemented.
	(setImplicitDownCycleTraversal): Fixed implementation.
	* java/awt/Robot.java
	(Robot): Added documentation.
	* java/awt/Toolkit.java
	(getFontList): Deprecated.
	(getFontMetrics): Deprecated.
	(getPrintJob): Added documentation.
	(getSystemSelection): Added documentation.
	(getLockingKeyState): Added documentation.
	(setLockingKeyState): Added documentation.
	(createCustomCursor): Added documentation.
	(getBestCursorSize): Added documentation.
	(getMaximumCursorColors): Added documentation.
	(isFrameStateSupported): Added documentation.

From-SVN: r64798
2003-03-24 13:50:32 +00:00
Michael Koch
3d6431d724 ChangeLog entry fix
From-SVN: r64797
2003-03-24 13:47:05 +00:00
Michael Koch
7e7ed852f9 RandomAccessFile.java: More little merges with libgcj.
2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/io/RandomAccessFile.java:
	More little merges with libgcj.

From-SVN: r64796
2003-03-24 13:45:29 +00:00
Michael Koch
24a3f7ac04 natInetAddressNoNet.cc: Include stddef.h.
2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/net/natInetAddressNoNet.cc:
	Include stddef.h.
	* java/net/natPlainDatagramSocketImplNoNet.cc:
	Fixed inlcude of java/net/DatagramPacket.h.
	* java/net/natPlainSocketImplNoNet.cc:
	Include some missing classes.

From-SVN: r64795
2003-03-24 13:40:44 +00:00
Michael Koch
5eec7c8caf 2003-03-24 Michael Koch <konqueror@gmx.de>
* java/awt/dnd/DropTarget.java
	(DropTargetAutoScroller): According to the online documentation, this
	is protected, but in reality it is public.
	* java/awt/dnd/DropTargetContext.java
	(TransferableProxy): According to the online documentation, this
        is protected, but in reality it is public.

From-SVN: r64794
2003-03-24 13:12:55 +00:00
Jakub Jelinek
2ff1fb45d5 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
From-SVN: r64791
2003-03-24 12:43:21 +01:00
Jakub Jelinek
1134f4ace4 * g++.dg/opt/rtti1.C: New test.
From-SVN: r64788
2003-03-24 12:36:26 +01:00
Gerald Pfeifer
8b5777dbb4 * doc/contrib.texi (Contributors): Update Janis Johnson.
From-SVN: r64787
2003-03-24 11:35:14 +00:00
Eric Botcazou
02484af985 re PR target/10072 ([Sparc] internal compiler error: in trunc_int_for_mode, at explow.c:54)
PR target/10072
	* combine.c (simplify_if_then_else): Check that the mode
	has MODE_INT class before applying the (OP Z (mult COND C2))
	transformation.

From-SVN: r64785
2003-03-24 11:29:11 +00:00
Eric Botcazou
941bc65971 re PR rtl-optimization/9414 ([Sparc] Scheduling bug on Ultrasparc)
PR optimization/9414
	* config/sparc/sparc.md (widening peepholes): Use
	widen_memory_access instead of change_address.

From-SVN: r64782
2003-03-24 10:21:46 +00:00
Mark Mitchell
f29a2bd17d re PR c++/7086 (compile time regression)
PR c++/7086
	* c-typeck.c (c_mark_addressable): Adjust calls to
	put_var_into_stack.
	* expr.c (expand_expr): Likewise.
	* function.c (put_var_into_stack): Add rescan parameter.  Do not
	call fixup_var_refs when rescan is false.
	(gen_mem_addressof): Likewise.
	(assign_parms): Adjust calls to put_var_into_stack.
	(setjmp_protect): Likewise.
	(setjmp_protect_args): Likewise.
	* rtl.h (gen_mem_addressof): Change prototype.
	* stmt.c (expand_decl): Adjust calls to put_var_into_stack.
	* tree.h (put_var_into_stack): Change prototype.

	PR c++/7086
	* utils2.c: Adjust calls to put_var_into_stack.

	PR c++/7086
	* semantics.c (genrtl_named_return_value): Adjust calls to
	put_var_into_stack.
	* typeck.c (cxx_mark_addressable): Likewise.

	PR c++/7086
	* com.c (ffecom_sym_transform_): Adjust calls to
	put_var_into_stack.
	(ffe_mark_addressable): Likewise.

From-SVN: r64781
2003-03-24 08:31:36 +00:00
Michael Koch
ffe4ebba87 DataInputStream.java (): Wrapped documentation line.
2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/io/DataInputStream.java
	(): Wrapped documentation line.
	(): Fixed @return tag.
	* java/io/DataOutputStream.java
	(written): Moved to top of class.
	(all methods): Merged documentation from classpath.
	* java/io/File.java:
	Merged copyright year with classpath.
	* java/io/FileInputStream.java
	(all methods): Merged documentation from classpath.
	* java/io/LineNumberReader.java
	(getLineNumber): Fixed @return tag.
	* java/io/ObjectInputStream.java.
	Reformatted.
	* java/io/ObjectOutputStream.java:
	Reformatted, fixed some @see tags.
	* java/io/OutputStreamWriter.java:
	Deleted empty line.
	* java/io/Writer.java:
	Reformatted.

From-SVN: r64780
2003-03-24 08:27:28 +00:00
Michael Koch
228115acf4 2003-03-24 Michael Koch <konqueror@gmx.de>
* java/awt/Frame.java
	(DEFAULT_CURSOR): Fixed @deprecated tag.
	(setCursor): Fixed @deprecated tag.

From-SVN: r64779
2003-03-24 08:26:52 +00:00
Michael Koch
99010ccbb8 BeanContextEvent.java: Reformated.
2003-03-24  Michael Koch  <konqueror@gmx.de>

	* java/beans/beancontext/BeanContextEvent.java:
	Reformated.

From-SVN: r64778
2003-03-24 08:24:29 +00:00
Kaveh Ghazi
b099daeb77 clarify which PR was fixed.
From-SVN: r64773
2003-03-24 01:30:44 +00:00
Arpad Beszedes
fa9b490440 builtins.c (expand_builtin_fputs): When optimizing for size, don't transform fputs into fwrite.
gcc:
	* builtins.c (expand_builtin_fputs): When optimizing for size,
	don't transform fputs into fwrite.
testsuite:
	* gcc.c-torture/execute/stdio-opt-1.c: Adjust test for change to
	builtin fputs.

From-SVN: r64771
2003-03-24 01:24:41 +00:00
Eric Blake
ce1bb3bbba natStringBuffer.cc (regionMatches): New function.
2003-03-23  Eric Blake  <ebb9@email.byu.edu>

	* java/lang/natStringBuffer.cc (regionMatches): New function.
	* java/lang/String.java (count): Now package-private.
	* java/lang/StringBuffer.java: Merged with Classpath.

From-SVN: r64770
2003-03-24 00:50:18 +00:00
GCC Administrator
fc3703e35c Daily bump.
From-SVN: r64769
2003-03-24 00:17:06 +00:00
Mark Mitchell
068d2c9db6 re PR c/8224 (Incorrect joining of signed and unsigned division)
PR c/8224
	* fold-const.c (extract_muldiv_1): Don't pass through type conversions
	when signedness changes for division or modulus.

	PR c/8224
	* gcc.dg/20030323-1.c: New test.

From-SVN: r64760
2003-03-23 22:57:26 +00:00
Alan Modra
c967e28c2f sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary globalize_label.
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
	globalize_label.

From-SVN: r64758
2003-03-24 09:14:04 +10:30
Roger Sayle
766dec0ecd re PR c/10178 (ICE in tree_low_cst)
PR c/10178
	* stmt.c (expand_end_case_type): Check for overflow in range when
	determining whether to use a bit-test implementation.

	* gcc.c-torture/compile/20030323-1.c: New test case.

From-SVN: r64757
2003-03-23 21:25:13 +00:00
Richard Henderson
ef3e988690 cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps before flow2.
* cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
        before flow2.
        * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.

From-SVN: r64754
2003-03-23 12:40:26 -08:00
Richard Henderson
ac514408f6 New test.
From-SVN: r64753
2003-03-23 12:21:24 -08:00
Richard Henderson
bd2eae1880 re PR rtl-optimization/10116 (ce2: invalid merge of "join_bb" in the context of switch statements)
PR opt/10116
        * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
        from then_bb or else_bb after flow2.

From-SVN: r64750
2003-03-23 12:14:57 -08:00
Zack Weinberg
62c9aa5f9e configure.in: Check whether it is necessary to link against libm to use ldexp.
* configure.in: Check whether it is necessary to link against
	libm to use ldexp.
	* configure: Regenerate.
	* Makefile.in: Add LDEXP_LIB substitution variable.
	* java/Make-lang.in: Link jcf-dump against $(LDEXP_LIB).

From-SVN: r64749
2003-03-23 20:13:58 +00:00
Michael Koch
93b3986a7f BufferedOutputStream.java: Reformated.
2003-03-23  Michael Koch  <konqueror@gmx.de>

	* java/io/BufferedOutputStream.java:
	Reformated.
	* java/io/BufferedReader.java:
	Reformated.
	* java/io/ByteArrayOutputStream.java
	(size): Fixed @see tag.
	* java/io/CharArrayWriter.java
	(size): Fixed @see tag.
	* java/io/DataInput.java:
	Reformated.
	* java/io/DataOutput.java:
	Reformated.
	* java/io/DataOutputStream.java:
	Merged copyright years with classpath.
	* java/io/Externalizable.java:
	Reformated.
	* java/io/FileFilter.java:
	Reformated.
	* java/io/FileInputStream.java:
	Merged copyright years with classpath.
	* java/io/FileOutputStream.java:
	Merged copyright years with classpath.
	* java/io/FilePermission.java
	(FilePermission): Replaced @XXX with FIXME:.
	* java/io/FileWriter.java:
	Reformated.
	* java/io/FilenameFilter.java:
	Reformated.
	* java/io/FilterInputStream.java:
	Reformated.
	* java/io/FilterOutputStream.java:
	Reformated.
	* java/io/FilterReader.java:
	Reformated.
	* java/io/FilterWriter.java:
	Reformated.
	* java/io/LineNumberInputStream.java
	(LineNumberInputStream): Replaced @code with HTML tags to make javadoc
	happy.
	(getLineNumber): Fixed @return tag.
	* java/io/ObjectInput.java:
	Reformated.
	* java/io/ObjectOutput.java:
	Reformated.
	* java/io/ObjectStreamClass.java:
	Reformated.
	* java/io/PrintStream.java:
	Merged copyright years with classpath.
	* java/io/PushbackReader.java
	(PushbackReader): Replaced @code with @param.
	* java/io/SerializablePermission.java:
	Reformated.
	* java/io/StreamTokenizer.java
	(resetSyntax): Fixed @see tag.

From-SVN: r64748
2003-03-23 19:11:19 +00:00
Kazu Hirata
4d1da12a32 * config/h8300/h8300.md: Fix comment typos.
From-SVN: r64747
2003-03-23 14:32:47 +00:00
Alexandre Oliva
9f2e060862 Makefile.in (MULTIOSDIR): New macro.
* Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
instead of $$CC alone.
(install_to_tooldir): Use it.

From-SVN: r64745
2003-03-23 10:15:50 +00:00
John David Anglin
7772f0a997 * pa.c (output_cbranch): Fix typo in comment.
From-SVN: r64741
2003-03-23 05:24:27 +00:00
Richard Henderson
3ce6bef0f9 cfgcleanup.c (insns_match_p): Do not do EQUIV substitution after reload.
* cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
        after reload.

From-SVN: r64738
2003-03-22 17:40:04 -08:00
Richard Henderson
de32716c0d locks.h: Include ia64intrin.h.
* sysdep/ia64/locks.h: Include ia64intrin.h.
        (compare_and_swap): Use __sync_bool_compare_and_swap.
        (compare_and_swap_release): Expose ar.ccv assignment.

From-SVN: r64737
2003-03-22 17:38:00 -08:00
Richard Henderson
2298018014 gc_locks.h [IA64]: Include ia64intrin.h.
* include/private/gc_locks.h [IA64]: Include ia64intrin.h.
        (GC_test_and_set): Use __sync_lock_test_and_set.
        (GC_clear): Use volatile assignment.
        (GC_compare_and_exchange): Use __sync_bool_compare_and_swap.
        (GC_memory_write_barrier): Use __sync_synchronize.

From-SVN: r64736
2003-03-22 17:36:22 -08:00
GCC Administrator
086bfb7a46 Daily bump.
From-SVN: r64735
2003-03-23 00:17:06 +00:00
Bruce Korb
00af168c3e be explicit about the default VERBOSE case
From-SVN: r64728
2003-03-22 21:58:56 +00:00