Tom Tromey
0003efa0b3
PrintStream.java (out): Removed field.
...
* java/io/PrintStream.java (out): Removed field. Fixes PR
java/2449.
(write): Call flush, not out.flush, per spec.
(close): Flush output stream, per spec. Handle
InterruptedIOException.
(checkError): Likewise.
(flush, print, write): Handle InterruptedIOException per spec.
(PrintStream): Don't create BufferedOutputStream.
(work_bytes): New field.
(writeChars): Use work_bytes. Don't assume `out' is a
BufferedOutputStream.
From-SVN: r41014
2001-04-02 21:16:38 +00:00
Torsten Rueger
5f82d4f21c
re PR libgcj/2429 (java.text.MessageFormat should usefully set text on exceptions)
...
2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
* java/text/MessageFormat.java (setLocale): Added missing `else'.
For PR libgcj/2429.
From-SVN: r41012
2001-04-02 19:55:56 +00:00
Tom Tromey
5152512c2e
jni.cc (add_char): Correctly encode non-ascii characters.
...
* jni.cc (add_char): Correctly encode non-ascii characters.
(add_char): Define even when INTERPRETER not defined.
(mangled_name): Likewise.
(_Jv_GetJNIEnvNewFrame): Likewise.
(_Jv_LookupJNIMethod): Likewise.
From-SVN: r41010
2001-04-02 19:52:39 +00:00
Kevin B Hendricks
23ab86e452
* configure.host: Enable interpreter for PPC.
...
From-SVN: r41009
2001-04-02 19:51:40 +00:00
Benjamin Kosnik
d31eaae034
configopts.html: Add --enable-sjlj-exceptions docs.
...
2001-04-01 Benjamin Kosnik <bkoz@codesourcery.com>
* docs/html/configopts.html: Add --enable-sjlj-exceptions docs.
From-SVN: r41007
2001-04-02 19:00:13 +00:00
Zack Weinberg
0313e85b82
genattr.c, [...]: Wrap generated header in multiple-include guard.
...
* genattr.c, gencheck.c, gencodes.c, genconfig.c, genflags.c,
gengenrtl.c: Wrap generated header in multiple-include guard.
Improve error checking.
From-SVN: r41006
2001-04-02 16:29:32 +00:00
Kaveh R. Ghazi
79cb7361fa
configure.in: Don't check for putenv.
...
* configure.in: Don't check for putenv.
* configure: Regenerate.
* gcc.c (putenv): Don't define.
* vax/xm-vms.h: Handle putenv.
From-SVN: r41005
2001-04-02 15:20:53 +00:00
Jakub Jelinek
32ff70d299
ifcvt.c (noce_emit_move_insn): New.
...
* ifcvt.c (noce_emit_move_insn): New.
(noce_try_store_flag, noce_try_store_flag_constants,
noce_try_store_flag_inc, noce_try_store_flag_mask,
noce_try_cmove, noce_try_cmove_arith, noce_try_minmax,
noce_try_abs): Use it.
(noce_process_if_block): Likewise.
For STRICT_LOW_PART, take mode from its SUBREG.
* gcc.c-torture/compile/20010329-1.c: New test.
From-SVN: r41001
2001-04-02 10:17:15 +02:00
Jakub Jelinek
d791ea1e0a
fold-const.c (fold): Before optimizing unsigned comparison with 0x7fffffffU...
...
* fold-const.c (fold): Before optimizing unsigned comparison with
0x7fffffffU, make sure arg0 is integral type.
* gcc.c-torture/execute/20010329-1.c: New test.
From-SVN: r41000
2001-04-02 10:08:22 +02:00
Joseph Myers
c6955d8518
* c-tree.texi: Document representation of wide strings.
...
From-SVN: r40998
2001-04-02 08:39:39 +01:00
GCC Administrator
6c13e19358
Daily bump.
...
From-SVN: r40997
2001-04-02 07:16:38 +00:00
Richard Henderson
efc4565875
* except.h (expand_builtin_dwarf_fp_regnum): Declare.
...
From-SVN: r40995
2001-04-01 23:36:33 -07:00
Bryce McKinlay
8f58baf480
natSystem.cc (init_properties): Revert yesterday's changes to "file.separator"...
...
* java/lang/natSystem.cc (init_properties): Revert yesterday's changes
to "file.separator", "path.separator", and "java.io.tmpdir" property
initialization.
* java/io/File.java: Likewise.
* java/io/natFile.cc (init_native): Likewise.
* java/io/natFileWin32.cc (init_native): Likewise.
From-SVN: r40994
2001-04-02 06:23:10 +01:00
Alexandre Oliva
a3406c06c2
Makefile.in (CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, [...]): New macros.
...
* Makefile.in (CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, RECURSE_FLAGS):
New macros.
(bootstrap, cross): Use RECURSE_FLAGS.
* configure.in: Subst CXX_FOR_TARGET_FOR_RECURSIVE_MAKE.
From-SVN: r40991
2001-04-02 01:26:14 +00:00
Per Bothner
a3b63299e6
natString.cc (intern): If string's data does not point to this String, make a fresh String that does.
...
* java/lang/natString.cc (intern): If string's data does not point to
this String, make a fresh String that does.
* java/lang/natString.cc (unintern): Replace by static function.
* java/lang/String.java (unintern): Remove method.
From-SVN: r40990
2001-04-01 14:54:10 -07:00
Per Bothner
f44b63ae02
DeflaterOutputStream.java (deflate): Loop while def.needsInput.
...
* DeflaterOutputStream.java (deflate): Loop while def.needsInput.
(finish): def.deflate needs to be called in a loop.
(inbuf, inbufLength): New private fields.
(write(int)): Use inbuf.
(write(byte[],int,int): Check if pending output in inbuf.
* ZipOutputStream.java: Don't use Deflater if stored.
Use a Checksum object directly, not via a CheckedOutputStream.
(uncompressed_size): New field,
(closeEntry): Only write data_directory if needed.
(write): If STORED, write directly.
Always update crc, and uncompressed_size.
(write_entry): Fix lots of protocol erors.
From-SVN: r40988
2001-04-01 14:28:45 -07:00
Zack Weinberg
aa9de837a8
tests_flags.in: Use test a = b, not test a == b which is not portable.
...
* tests_flags.in: Use test a = b, not test a == b which is not
portable.
From-SVN: r40986
2001-04-01 19:19:57 +00:00
Bryce McKinlay
f404754042
1.3-Compliant Implementation of java.io.File.
...
* java/lang/natSystem.cc (init_properties): Get "file.separator",
"path.separator", and "java.io.tmpdir" from the File class, instead
of setting them explicitly.
* java/io/File.java: Do not canonicalize paths for security manager
checks. Call init_native() from static initializer. Do not pass path
argument to native methods. New native method declarations. Some
security manager checks moved to checkWrite().
(equals): Check file system case sensitivity and act appropriatly.
(hashCode): Likewise.
(isHidden): New method implemented.
(performList): Changed prototype. Now takes a class argument specifying
the class of the returned array: Strings or File objects. Also added
FileFilter argument.
(listFiles): New variants with "File" return type implemented.
(createTempFile): Use createNewFile(). Use maxPathLen.
(setReadOnly): New method implemented.
(listRoots): Likewise.
(compareTo): Likewise.
(setLastModified): Likewise.
(checkWrite): New method.
(setPath): Removed.
* java/io/natFile.cc: Various functions no longer take canonical path
argument.
(stat): Handle ISHIDDEN query.
(isAbsolute): Remove WIN32 cruft.
(performList): New arguments. Handle returning either File[] or
String[] arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New method implemented.
(performListRoots): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(init_native): New initialization function.
* java/io/natFileWin32.cc: Various functions no longer take canonical
path argument.
(stat): Add FIXME about ISHIDDEN query.
(performList): New arguments. Handle returning either File[] or String[]
arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New. Stubbed.
(performListRoots): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(init_native) New initialization function.
* configure.in: Check for utime() and chmod().
* configure: Rebuilt.
* include/config.h.in: Rebuilt.
Resolves PR libgcj/1759.
From-SVN: r40985
2001-04-01 12:16:40 +01:00
Jan Hubicka
e74061a981
i386.md: remove obsoleted comments.
...
* i386.md: remove obsoleted comments.
(adddi_?): Rename to adddi_?_rex64; disable for 32bit.
(x86_movsicc_0_m1_rex64): Rename to x86_movdicc_0_m1_rex64;
fix output template.
From-SVN: r40982
2001-04-01 09:50:06 +00:00
GCC Administrator
efb580646b
Daily bump.
...
From-SVN: r40980
2001-04-01 08:16:08 +00:00
Benjamin Kosnik
9b7e0d0005
[multiple changes]
...
2001-03-31 Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Remove duplicate aix entry.
2001-03-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stl_bvector.h: Move to...
* include/bits/stl_vector.h: ...here.
* include/ext/bvector: Move to...
* include/backward/bvector.h: ...here.
* include/bits/std_vector.h: Change stl_bvector include.
* include/bits/std_queue.h: Remove bvector include.
* include/ext/tree: Insert using rb_tree, move to...
* include/backward/tree.h: ...here.
* include/backward/hash_map.h: Include ext/hash_map.
* include/backward/hash_set.h: Include ext/hash_set.
* include/backward/queue.h: New file.
* include/backward/stack.h: Edit.
* include/backward/algo.h: Same.
* include/backward/algobase.h: Same.
* include/backward/alloc.h: Same.
* include/backward/function.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/istream.h: Same.
* include/backward/iterator.h: Same.
* include/backward/list.h: Same.
* include/backward/map.h: Same.
* include/backward/multimap.h: Same.
* include/backward/multiset.h: Same.
* include/backward/ostream.h: Same.
* include/backward/pair.h: Same
* include/backward/rope.h: Same.
* include/backward/set.h: Same.
* include/backward/stream.h: Same.
* include/backward/strstream.h: Same.
* include/backward/tempbuf.h: Same.
* src/Makefile.am (ext_headers): Edit.
* src/Makefile.in: Regenerate.
* testsuite/ext/headers.cc (main): Fix.
* mkcheck.in: Fix.
From-SVN: r40979
2001-03-31 20:15:43 +00:00
Kaveh R. Ghazi
cc56c744ee
* libiberty.h (alloca): Handle setting C_ALLOCA.
...
From-SVN: r40978
2001-03-31 18:59:56 +00:00
Marek Michalkiewicz
7656d28aed
* config/avr/libgcc.S (__mulhi3): Optimize previous change.
...
From-SVN: r40976
2001-03-31 16:24:16 +00:00
GCC Administrator
59350e5059
Daily bump.
...
From-SVN: r40974
2001-03-31 08:16:18 +00:00
Phil Edwards
b935ee2092
tests_flags.in (LIBS): Pass correct path for installed testing.
...
2001-03-30 Phil Edwards <pme@sources.redhat.com>
* tests_flags.in (LIBS): Pass correct path for installed testing.
From-SVN: r40973
2001-03-30 21:59:12 +00:00
Benjamin Kosnik
62f079c57e
mkcheck.in (LIBTOOL): Don't construct -B argument here...
...
2001-03-28 Benjamin Kosnik <bkoz@redhat.com>
* mkcheck.in (LIBTOOL): Don't construct -B argument here...
* tests_flags.in (CXX): Construct here.
(static_fail): Don't remove compile.out. Format with spaces.
(INCLUDES): Deal with xcompiling.
* configure.in (xcompiling): Substitute.
* testsuite/Makefile.am: Snake libjava configury.
* testsuite/Makefile.in: Regenerate.
* testsuite/23_containers/map_operators.cc: Tweaks.
* testsuite/23_containers/set_operators.cc: Tweaks.
From-SVN: r40972
2001-03-30 17:41:33 +00:00
Bernd Schmidt
1757e77456
Prevent hoisting code from generating uninitialized accesses.
...
From-SVN: r40971
2001-03-30 17:18:14 +00:00
Jan Hubicka
886cbb8881
i386.c (ix86_split_long_move): Use change address to compensate stack pointer change in push instruction.
...
* i386.c (ix86_split_long_move): Use change address to compensate
stack pointer change in push instruction.
From-SVN: r40968
2001-03-30 15:43:44 +00:00
GCC Administrator
63408ab10c
Daily bump.
...
From-SVN: r40961
2001-03-30 08:16:14 +00:00
Benjamin Kosnik
755f30f40c
[multiple changes]
...
2001-03-28 Benjamin Kosnik <bkoz@redhat.com>
* mkcheck.in (LIBTOOL): Don't construct -B argument here...
* tests_flags.in (CXX): Construct here.
(static_fail): Don't remove compile.out. Format with spaces.
(INCLUDES): Deal with xcompiling.
* configure.in (xcompiling): Substitute.
* testsuite/Makefile.am: Snake libjava configury.
* testsuite/Makefile.in: Regenerate.
* testsuite/23_containers/map_operators.cc: Tweaks.
* testsuite/23_containers/set_operators.cc: Tweaks.
2001-03-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
Enable dejagnu testing framework.
* configure.in: Generate testsuite/Makefile.
* configure: Regenerate.
* Makefile.am (check-install): Change rule from this...
(check-script-install): ...to this.
(check): Change rule from this...
(check-script):...to this.
* Makefile.in: Regenerate.
From-SVN: r40960
2001-03-30 08:14:15 +00:00
Jan Hubicka
f021d6fc66
i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p instead of...
...
* i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p
instead of rtx_equal_p; fix the output template.
From-SVN: r40959
2001-03-29 22:32:53 +00:00
Jan Hubicka
885a70fdff
i386.c (ix86_expand_setcc): Support 64bit.
...
* i386.c (ix86_expand_setcc): Support 64bit.
(ix86_expand_int_movcc): Likewise.
* i386.md (movdicc_rex64, x86_movsicc_0_m1_rex64, movdicc_c_rex64):
New patterns.
* i386.md (allocate_stack_worker): Turn to expander.
(allocate_stack_worker_1, allocate_stack_worker_rex64): New insns.
* i386.c (print_reg): Do not print x86_64 style regs on IA-32
From-SVN: r40958
2001-03-29 22:25:16 +00:00
Richard Henderson
e4b776a6d0
* libgcc2.c [L__main]: Include unwind-dw2-fde.h instead of frame.h.
...
From-SVN: r40957
2001-03-29 13:11:23 -08:00
Matthew Hiller
498cf3d0ed
mn10300.md (cmpsi): Fix first alternative's output template.
...
2001-03-28 Matthew Hiller <hiller@redhat.com>
* config/mn10300/mn10300.md (cmpsi): Fix first alternative's
output template.
* MAINTAINERS: Added self.
From-SVN: r40956
2001-03-29 02:32:46 +00:00
Bryce McKinlay
3b905056f9
configure.in: Use different syntax for subdirectory creation.
...
* configure.in: Use different syntax for subdirectory creation.
* configure: Rebuilt.
From-SVN: r40955
2001-03-29 01:03:27 +01:00
Richard Henderson
2bb9b75d52
Makefile.in (cs-tconfig.h): Depend on CONFIG_H, not GCONFIG_H.
...
* Makefile.in (cs-tconfig.h): Depend on CONFIG_H, not GCONFIG_H.
Use ALL_CFLAGS not HOST_CFLAGS for sjlj detection.
From-SVN: r40952
2001-03-28 14:20:31 -08:00
Jim Wilson
2bf47a10a9
Fix abort when passing 1.0L as unnamed argument.
...
* config/ia64/ia64.md (movtf): Change DImode to TFmode in calls to
operand_subword.
From-SVN: r40951
2001-03-28 13:55:09 -08:00
Alexandre Oliva
400f4e5529
Makefile.am (CXXLINK): Add --tag disable-shared after --tag CXX.
...
* libsupc++/Makefile.am (CXXLINK): Add --tag disable-shared after
--tag CXX.
(LIBTOOL): Let automake take care of its definition.
* libsupc++/Makefile.in: Rebuilt.
From-SVN: r40947
2001-03-28 21:18:21 +00:00
Loren J. Rittle
a7fd218666
* g++.old-deja/g++.other/eh4.C: Fix typo.
...
From-SVN: r40946
2001-03-28 21:15:55 +00:00
Loren J. Rittle
2c082cb286
* g++.dg/special/ecos.exp (conpr-1.C): Do not write in $srcdir.
...
From-SVN: r40943
2001-03-28 21:10:51 +00:00
Kaveh R. Ghazi
80122075e3
expr.c (pop_type_0): Call `concat' rather than building the string manually.
...
* expr.c (pop_type_0): Call `concat' rather than building the
string manually.
(pop_type): Add format specifier in call to `error'.
* parse.y (patch_method_invocation): Avoid casting away
const-ness.
From-SVN: r40940
2001-03-28 19:31:43 +00:00
Kaveh R. Ghazi
3fdefbcc63
toplev.h (fatal_error): Add ATTRIBUTE_NORETURN.
...
* toplev.h (fatal_error): Add ATTRIBUTE_NORETURN.
* tradcif.y (yyerror): Likewise. Add format specifier in call to
`error'.
* tradcpp.c (macroexpand): Likewise for call to `error_with_line'.
From-SVN: r40939
2001-03-28 19:24:11 +00:00
Alexandre Petit-Bianco
883e9882ff
re PR java/2066 (Source parser segfault in resolve_package)
...
2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (qualify_ambiguous_name): Broaden `length'
recognition. Help MODIFY_EXPR be resolved as expression names.
Fixes PR java/2066. Fixes PR java/2400.
(http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01935.html )
From-SVN: r40938
2001-03-28 11:22:05 -08:00
Jeffrey Oldham
0f5c1ee409
jvgenmain.c (do_mangle_classname): End string constant with '\0'.
...
2001-03-28 Jeffrey Oldham <oldham@codesourcery.com>
* jvgenmain.c (do_mangle_classname): End string constant with '\0'.
From-SVN: r40936
2001-03-28 18:16:14 +00:00
DJ Delorie
0ac19cfa6d
Revert cflags patch.
...
From-SVN: r40935
2001-03-28 12:50:11 -05:00
Philip Blundell
145c1defc3
20010328-1.c: New test.
...
2001-03-28 Philip Blundell <philb@gnu.org>
* gcc.c-torture/compile/20010328-1.c: New test.
From-SVN: r40934
2001-03-28 17:46:52 +00:00
Marek Michalkiewicz
500164d236
libgcc.S (__mulhi3): Correct tests to exit the loop when multiplier or multiplicand is zero.
...
* config/avr/libgcc.S (__mulhi3): Correct tests to exit the loop
when multiplier or multiplicand is zero.
From-SVN: r40933
2001-03-28 17:11:28 +00:00
Bernd Schmidt
112333d3e4
Fix missing barrier problem
...
From-SVN: r40932
2001-03-28 14:25:37 +00:00
Bernd Schmidt
669ff14e8d
Make hash values more random
...
From-SVN: r40931
2001-03-28 14:21:18 +00:00
Richard Henderson
3553b09d2c
rs6000.h (EPILOGUE_USES): Use TARGET_AIX, not TARGET_TOC for special toc restore handling.
...
* config/rs6000/rs6000.h (EPILOGUE_USES): Use TARGET_AIX,
not TARGET_TOC for special toc restore handling.
* config/rs6000/rs6000.md (eh_return): Likewise.
From-SVN: r40930
2001-03-28 04:22:48 -08:00