Commit Graph

56861 Commits

Author SHA1 Message Date
Per Bothner
881ad9e405 natPosixProcess.cc (startProcess): Implement standard streams using FileChannelImpl, not FileDescriptor.
* java/lang/natPosixProcess.cc (startProcess):  Implement standard
	streams using FileChannelImpl, not FileDescriptor.
	* java/lang/natWin32Process.cc (startProcess):  Likewise.

From-SVN: r78664
2004-02-29 11:14:20 -08:00
Per Bothner
3ae1e52c91 FileLockImpl.java (fd): Remove field, replacing it by:
* gnu/java/nio/FileLockImpl.java (fd):  Remove field, replacing it by:
	(ch):  New FileChannelImpl field.  Update constructor to match.
	(releaseImpl):  Remove native method.  Instead ...
	(release):  Call unlock on channel.
	* gnu/java/nio/natFileLockImpl.cc:  Removed file.

From-SVN: r78663
2004-02-29 11:13:45 -08:00
Per Bothner
d199feb748 MappedByteBuffer.java: (forceImpl...
* java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl,
	unmapImpl):  New dummy methods, to be overridden by subclass.
	(finalize, isLoaded, load, force):  New methods.
	* java/nio/MappedByteBufferImpl.java:  More-or-less rewrite.
	Now works, at least for read mapping.

From-SVN: r78662
2004-02-29 11:12:45 -08:00
Per Bothner
ef3916ef8e FileDescriptor.java: Implement on top of FileChannel.
* java/io/FileDescriptor.java:  Implement on top of FileChannel.
	Remove native methods.

	* java/io/natFileDescriptorEcos.cc:  Remove file.
	* java/io/natFileDescriptorPosix.cc:  Remove file.
	* java/io/natFileDescriptorWin32.cc:  Remove file.
	* java/io/FileInputStream.java (ch):  Change type to FileChannelImpl.
	(<init>(File)):  Allocate a FileChannelImpl, not a FileDescriptor.
	(<init>(FileChannelImpl)):  New package-private constructor.
	(<init>(FileDescriptor)):  Extract FileChannelImpl from arg.
	(available, close, read, skip):  Implement using FileChannelImpl.
	(getFD):  Allocate FileDescriptor if needed.
	(getChannel):  Is now trivial.
	* java/io/FileOutputStream.java:  Corresponding changes.
	* java/io/RandomAccessFile.java:  Corresponding changes.

From-SVN: r78661
2004-02-29 11:12:15 -08:00
Per Bothner
d5fe0403cc FileChannelImpl.java: Moved to package gnu/java/nio/channels, since we need to refer to it from java.io.
* java/nio/channels/FileChannelImpl.java:  Moved to package
	gnu/java/nio/channels, since we need to refer to it from java.io.
	* java/nio/channels/natFileChannelImpl.cc:  Removed file.

	* Makefile.am, configure.in:  Updated accordingly.

From-SVN: r78660
2004-02-29 11:10:46 -08:00
Per Bothner
612e660987 FileChannelImpl.java: New class, renamed from java/nio/channels.
* gnu/java/nio/channels/FileChannelImpl.java:  New class, renamed
	from java/nio/channels.  Don't depend on FileDescriptor.
	(in, out, err):  New static fields.
	(mode):  New field.
	(SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC):  Moved constants
	from FileDescriptor.
	(by):  Removed MappedByteBuffer field.
	(map):  New working implementation.
	* gnu/java/nio/channels/natFileChannelPosix.cc:  New file, though
	some code "ported" from natFileDescriptoPosix.cc.
	* gnu/java/nio/channels/natFileChannelEcos.cc:  Likewise.
	* gnu/java/nio/channels/natFileChannelWin32.cc  Likewise.

From-SVN: r78659
2004-02-29 11:09:28 -08:00
Kazu Hirata
2f537af9e7 h8300.md: Tweak operand numbers of some peephole2's.
* config/h8300/h8300.md: Tweak operand numbers of some
	peephole2's.

From-SVN: r78658
2004-02-29 19:04:34 +00:00
Kazu Hirata
a207f649ad * config/h8300/h8300.md: Tweak comments about peephole2's.
From-SVN: r78657
2004-02-29 18:44:18 +00:00
Kazu Hirata
2750f3f2fd Fix the date of the last entry.
From-SVN: r78653
2004-02-29 15:16:08 +00:00
Kazu Hirata
f5d404d7c3 sibcall-3.c (recurser_void1): Make it an extern function with __attribute__((noinline)).
* gcc.dg/sibcall-3.c (recurser_void1): Make it an extern
	function with __attribute__((noinline)).
	(recurser_void2): Likewise.
	* gcc.dg/sibcall-4.c (recurser_void1): Likewise.
	(recurser_void2): Likewise.

From-SVN: r78652
2004-02-29 15:11:12 +00:00
Roger Sayle
b416fab459 parse.c (ffe_parse_file): Handle the case that main_input_filename is NULL.
* parse.c (ffe_parse_file): Handle the case that main_input_filename
	is NULL.

From-SVN: r78650
2004-02-29 14:12:20 +00:00
Roger Sayle
083474cc69 jcf-parse.c (java_parse_file): Handle the case that input_filename is NULL.
* jcf-parse.c (java_parse_file): Handle the case that input_filename
	is NULL.

From-SVN: r78649
2004-02-29 14:09:58 +00:00
Roger Sayle
bc41842bb2 [multiple changes]
2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>

	PR middle-end/14203
	* function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
	instead of testing whether DECL_RTL is not NULL.

2004-02-29  Roger Sayle  <roger@eyesopen.com>

	PR middle-end/14203
	* g++.dg/warn/Wunused-6.C: New test case.

From-SVN: r78648
2004-02-29 14:07:44 +00:00
Phil Edwards
8b42508262 Makefile.am (check-abi, [...]): Copy the summary file to the logfile.
2004-02-29  Phil Edwards  <phil@codesourcery.com>

	* testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
	the summary file to the logfile.
	* testsuite/Makefile.in:  Regenerate.

From-SVN: r78647
2004-02-29 12:57:33 +00:00
Kazu Hirata
832a3292d9 * config/sh/sh.c: Fix formatting.
From-SVN: r78646
2004-02-29 02:53:51 +00:00
Kazu Hirata
508ea1c5fa * config/sh/sh.c: Convert to ISO-C.
From-SVN: r78645
2004-02-29 02:28:59 +00:00
GCC Administrator
4217f24bf8 Daily bump.
From-SVN: r78642
2004-02-29 00:16:40 +00:00
Andrew Pinski
8cd6bdd1c6 c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in my previous patch.
2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
        my previous patch.

From-SVN: r78635
2004-02-28 15:23:30 -08:00
Andrew Pinski
dd833c7b25 darwin.h (machopic_finish): Output stub even if the symbol is already defined.
2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/darwin.h (machopic_finish): Output stub even if the
        symbol is already defined.

From-SVN: r78634
2004-02-28 15:20:01 -08:00
John David Anglin
3a1a4ed26e atomicity.h (__atomic_add): Make first argument volatile.
* config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
	volatile.
	* config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
	__GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.

From-SVN: r78633
2004-02-28 22:46:32 +00:00
John David Anglin
5f1908384a * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
From-SVN: r78632
2004-02-28 22:40:38 +00:00
Nathanael Nerode
d4cd9d813c re PR bootstrap/7087 (sub-make FLAG propagation fails if flag ends with '=')
PR bootstrap/7087
	* Makefile.tpl: Guard XFOO sed statements better.
	* Makefile.tpl: Add dependency for configure-target-libada.
	* Makefile.in: Regenerate (incidentally fixes broken
	commit when libada-branch was merged).

From-SVN: r78630
2004-02-28 22:01:56 +00:00
Michael Koch
763c1edf3b ObjectInputStream.java: Compile fix, damn I commited the wrong code.
2004-02-28  Michael Koch  <konqueror@gmx.de>

	* java/io/ObjectInputStream.java: Compile fix, damn I commited the
	wrong code.

From-SVN: r78629
2004-02-28 21:48:35 +00:00
Kazu Hirata
c1a41c2fa8 genattr.c (main): Don't define TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
* genattr.c (main): Don't define
	TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
	* system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
	(DFA_PIPELINE_INTERFACE): Likewise.
	* doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
	(DFA_PIPELINE_INTERFACE): Likewise.

From-SVN: r78628
2004-02-28 21:44:22 +00:00
Guilhem Lavaux
646e329010 2004-02-28 Guilhem Lavaux <guilhem@kaffe.org>
* java/io/ObjectInputStream.java
	(readClassDescriptor): Keep elements of the mapping non null.
	(checkTypeConsistency): New method.
	(readFields): Fixed main loop and base logic. Small reindentation.
	* java/io/ObjectStreamField.java
	(lookupField): New method to update the field reference.
	(checkFieldType): New method.
	* java/io/ObjectStreamClass.java
	(setClass, setFields): Call lookupField when building the field
	database. Check the real field type.

From-SVN: r78627
2004-02-28 21:28:53 +00:00
Michael Koch
ca67f27850 2004-02-28 Michael Koch <konqueror@gmx.de>
* java/nio/ByteOrder.java
	(nativeOrder): Use equals() to compare strings.

From-SVN: r78626
2004-02-28 21:16:17 +00:00
Paolo Carlini
0e1b98cccc locale_facets.tcc (num_get<>::_M_extract_float): According to 22.2.3.1...
2004-02-28  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
	According to 22.2.3.1, p2, 'units' may be followed by 'e' with
	no 'decimal-point' in the middle: in this case too we must fix
	up __found_grouping; slightly tweak.
	* testsuite/22_locale/num_get/get/char/14.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/14.cc: New.

From-SVN: r78625
2004-02-28 20:37:54 +00:00
Richard Sandiford
757f9053a2 * config/mips/mips.md (tstsi, tstdi): Delete.
From-SVN: r78624
2004-02-28 20:30:10 +00:00
Maciej W. Rozycki
23cf6987f7 mips.c (override_options): Remove an obsolete duplicate definition of the "e" constraint.
* config/mips/mips.c (override_options): Remove an obsolete
	duplicate definition of the "e" constraint.
	* config/mips/mips.h: Update a comment accordingly.

From-SVN: r78623
2004-02-28 20:27:42 +00:00
Maciej W. Rozycki
bddbfe5f67 mips.md: Complete the unfinished R4000 multiply/shift errata workaround.
* config/mips/mips.md: Complete the unfinished R4000
	multiply/shift errata workaround.  Improve documentation.
	(hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
	has a hilo hazard.
	(mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
	(muldi3, muldi3_internal): Likewise.
	(muldi3_internal2): Remove, replacing with...
	(muldi3_mult3, muldi3_r4000): ...these new patterns.
	(mulsidi3): Take the errata into account.
	(mulsidi3_32bit): Remove, replacing with...
	(mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
	(mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
	(umulsidi3): Take the errata into account.
	(umulsidi3_32bit): Remove, replacing with..
	(umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
	(umulsi3_highpart, umulsi3_highpart_internal): Disable if
	TARGET_FIX_R4000.
	(smulsi3_highpart, smulsi3_highpart_internal): Likewise.
	(smuldi3_highpart, umuldi3_highpart): Likewise.
	* doc/invoke.texi: Document the errata workaround.

From-SVN: r78622
2004-02-28 20:06:01 +00:00
Maciej W. Rozycki
4649040309 mips-protos.h (mips_idiv_insns): Declare.
* config/mips/mips-protos.h (mips_idiv_insns): Declare.
	* config/mips/mips.h (MASK_FIX_SB1): Bump.
	(MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
	(TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
	* config/mips/mips.c (mips_idiv_insns): New function.
	(override_options): Make -march=r4000 imply -mfix-r4000 by default.
	(mips_output_division): Add a workaround for the R4000 divide/shift
	errata.
	* config/mips/mips.md (length): Use mips_idiv_insns() to calculate
	the length of an "idiv" instruction.
	* doc/invoke.texi: Document the new switches.

From-SVN: r78621
2004-02-28 19:59:24 +00:00
Kazu Hirata
1b2c37673a tm.texi (IS_COSTLY_DEPENDENCE): Change to TARGET_SCHED_IS_COSTLY_DEPENDENCE.
* doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
	TARGET_SCHED_IS_COSTLY_DEPENDENCE.

From-SVN: r78620
2004-02-28 19:23:37 +00:00
Zdenek Dvorak
79771cc412 re PR rtl-optimization/14229 (20000504-1.c:15: error: missing barrier after block 1)
PR optimization/14229
	* cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.

From-SVN: r78605
2004-02-28 09:51:56 +00:00
Richard Earnshaw
b922546d07 g++.exp (g++_link_flags): Don't crash if LD_LIBRARY_PATH is not defined.
* lib/g++.exp (g++_link_flags): Don't crash if LD_LIBRARY_PATH is
not defined.

From-SVN: r78604
2004-02-28 09:40:24 +00:00
Eric Botcazou
68a1a5da2b fold-const.c (fold): Strip NOPs that change the signedness for RSHIFT too.
* fold-const.c (fold): Strip NOPs that change the signedness
	for RSHIFT too.  Expand comment.

From-SVN: r78603
2004-02-28 07:33:10 +00:00
Ian Lance Taylor
a10016d3b0 re PR rtl-optimization/7871 (ICE on legal code, global register variables problems)
PR optimization/7871
	* flow.c (mark_set_1): Don't add LOG_LINKS for global registers
	from or to call insns.
	(propagate_one_insn): Interpret calls as setting global registers,
	not merely clobbering them.

From-SVN: r78601
2004-02-28 02:43:41 +00:00
Per Bothner
6bd5c787cc Note that entry fixes PR java/13508, java/11714.
From-SVN: r78598
2004-02-27 16:55:40 -08:00
Per Bothner
202167e7f1 parse.y (build_assertion): Re-do 02-25 change following Jeff Sturm suggestion: Use build_incomplete_class_ref.
* parse.y (build_assertion):  Re-do 02-25 change following Jeff Sturm
	suggestion:  Use build_incomplete_class_ref.

From-SVN: r78597
2004-02-27 16:34:26 -08:00
Eric Christopher
0717c5b065 charset.exp: Change CFLAGS to CHARSETCFLAGS.
2004-02-27  Eric Christopher  <echristo@redhat.com>

	* g++.dg/charset/charset.exp: Change CFLAGS to CHARSETCFLAGS.
	* g++.dg/charset/asm2.c: Run only x86.
	* gcc.dg/charset/asm3.c: Ditto.

From-SVN: r78596
2004-02-28 00:28:55 +00:00
GCC Administrator
2a4fc77a22 Daily bump.
From-SVN: r78593
2004-02-28 00:16:18 +00:00
Dale Johannesen
b30e1617dc darwin.c (machopic_output_possible_stub_label): Remove.
2004-02-27  Dale Johannesen  <dalej@apple.com>
        * config/darwin.c (machopic_output_possible_stub_label):  Remove.
        config/darwin-protos.h:  Ditto.
        config/darwin.h:  Remove call to it.
        * combine.c (distribute_notes): Do not place a REG_DEAD note
        when value is both set and used.

From-SVN: r78590
2004-02-27 23:48:00 +00:00
Kazu Hirata
bbc51dc29f fixunssfsi.c (__fixunssfsi): Enable on H8/300 as well.
* config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
	as well.
	* config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
	* config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.

From-SVN: r78588
2004-02-27 23:20:48 +00:00
Andrew Pinski
dedbabed29 c-typeck.c (tagged_types_tu_compatible_p): Speedup common case of the type values being in the same order.
* c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
	Speedup common case of the type values being in the same order.

From-SVN: r78585
2004-02-27 14:33:02 -08:00
Eric Christopher
58adf39ce4 2.cc, [...]: Use dg-require-iconv.
2004-02-27  Eric Christopher  <echristo@redhat.com>
            Phil Edwards  <phil@codesourcery.com>

	* testsuite/22_locale/collate/compare/wchar_t/2.cc,
	testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
	testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
	testsuite/22_locale/collate/hash/wchar_t/2.cc,
	testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
	testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
	testsuite/22_locale/collate/transform/wchar_t/2.cc,
	testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
	testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
	Use dg-require-iconv.
	* testsuite/lib/libstdc++.exp:  Load target-supports.exp.

From-SVN: r78582
2004-02-27 22:09:23 +00:00
Aldy Hernandez
dab8eb5731 g++.exp (g++_link_flags): Append LD_LIBRARY_PATH to ld_library_path.
2004-02-27  Aldy Hernandez  <aldyh@redhat.com>

	* lib/g++.exp (g++_link_flags): Append LD_LIBRARY_PATH to
	ld_library_path.

From-SVN: r78581
2004-02-27 22:05:51 +00:00
Phil Edwards
238345774b default.exp: Update with comments.
2004-02-27  Phil Edwards  <phil@codesourcery.com>

	* testsuite/config/default.exp:  Update with comments.
	(${tool}_target_compile):  New wrapper routine.
	* testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
	* testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
	fixes.
	(load_gcc_lib, v3track):  New routines.
	(v3-init):  Rename to libstdc++_init.
	* testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
	Move DEFAULT_CXXFLAGS handling into libstdc++_init.

From-SVN: r78580
2004-02-27 22:01:32 +00:00
Ziemowit Laski
b1009a5d12 tree.c (pod_type_p): Treat VECTOR_TYPEs as PODs.
[gcc/cp/ChangeLog]
2004-02-27  Ziemowit Laski  <zlaski@apple.com>

        * tree.c (pod_type_p): Treat VECTOR_TYPEs as PODs.

[gcc/testsuite/ChangeLog]
2004-02-27  Ziemowit Laski  <zlaski@apple.com>

        * g++.dg/ext/altivec-3.C: New.

From-SVN: r78578
2004-02-27 21:31:36 +00:00
Benjamin Kosnik
00d04db682 atomicity.h: Include c++config.h to get defines.
2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>

	* config/cpu/hppa/atomicity.h: Include c++config.h to get defines.

	* src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.

	* config/os/irix/irix5.2/atomicity.h: Merge..
	* config/os/irix/irix6.5/atomicity.h: Merge..
	* config/os/irix/atomicity.h: ...into this.
	* config/os/irix/atomic_word.h: New.
	* configure.host: Set atomic_word_dir for irix.

	* hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
	* i386/atomicity.h: Same.
	* m68k/atomicity.h: Same.
	* sparc/atomicity.h: Same.

From-SVN: r78577
2004-02-27 20:56:46 +00:00
David Edelsohn
c284a1261d atomicity.h: Use __gnu_cxx namespace.
* config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
        static, and inline keyworks.

From-SVN: r78574
2004-02-27 13:59:31 -05:00
Steve Ellcey
b6b979d46b ia64.h (no-inline-float-divide): New option.
* config/ia64/ia64.h (no-inline-float-divide): New option.
	* config/ia64/ia64.h (no-inline-int-divide): New option.
	* config/ia64/ia64.h (no-inline-sqrt): New option.
	(TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
	* config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
	* config/ia64/ia64.c (ia64_override_options): Modify error
	checking for inlined division/sqrt.

From-SVN: r78569
2004-02-27 17:17:01 +00:00