John David Anglin [Tue, 5 Nov 2002 19:17:37 +0000 (19:17 +0000)]
os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define.
* config/os/hpux/os_defines.h (_GLIBCPP_INST_ATOMICITY_LOCK): Define.
* src/misc-inst.cc (std): Instantiate atomicity lock when
_GLIBCPP_INST_ATOMICITY_LOCK is defined.
* config/cpu/hppa/atomicity.h: New file.
From-SVN: r58831
John David Anglin [Tue, 5 Nov 2002 16:51:10 +0000 (16:51 +0000)]
pa64-hpux.h (LIB_SPEC): Fix p and pg options.
* pa64-hpux.h (LIB_SPEC): Fix p and pg options.
(STARTFILE_SPEC): Remove p and pg options.
From-SVN: r58824
Benjamin Kosnik [Tue, 5 Nov 2002 16:49:42 +0000 (16:49 +0000)]
re PR libstdc++/8463 (std::ios_base has a non-virtual destructor)
2002-11-05 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8463
* include/bits/ios_base.h (~ios_base): Make virtual.
From-SVN: r58823
Andrew Haley [Tue, 5 Nov 2002 14:32:24 +0000 (14:32 +0000)]
fold-const.c (fold): Don't transform (a0 op compound(a1,a2)) to (compound(a1,a0 op a2)) if...
2002-11-05 Andrew Haley <aph@redhat.com>
* fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
From-SVN: r58822
Richard Sandiford [Tue, 5 Nov 2002 12:41:52 +0000 (12:41 +0000)]
mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
* config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
* config/mips/mips.c (mips_cannot_change_mode_class): ...here.
From-SVN: r58821
GCC Administrator [Tue, 5 Nov 2002 08:17:10 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58818
Adam Nemet [Tue, 5 Nov 2002 05:41:39 +0000 (05:41 +0000)]
941014-1.x: thumb-elf was deprecated, use -mthumb.
* gcc.c-torture/execute/941014-1.x: thumb-elf was deprecated, use
-mthumb. Only xfail with -O0.
From-SVN: r58809
Adam Nemet [Tue, 5 Nov 2002 05:14:42 +0000 (05:14 +0000)]
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r58808
R. A. Rivas Diaz [Tue, 5 Nov 2002 04:12:04 +0000 (04:12 +0000)]
SHA.java (engineGetDigestLength): Return 20.
2002-11-04 R. A. Rivas Diaz <rivasdiaz@yahoo.com>
* gnu/java/security/provider/SHA.java (engineGetDigestLength):
Return 20.
* gnu/java/security/provider/MD5.java (engineGetDigestLength):
Return 16.
From-SVN: r58807
Tom Tromey [Tue, 5 Nov 2002 04:07:39 +0000 (04:07 +0000)]
* libjava.compile/pr7912.java: New file.
From-SVN: r58806
Graham Stott [Tue, 5 Nov 2002 00:49:44 +0000 (00:49 +0000)]
re PR ada/8358 (Ada accesses freed memory)
PR ada/8358
* trans.c (gnu_pending_elaboration_lists): New GC root.
(build_unit_elab): Use..
From-SVN: r58804
Benjamin Kosnik [Mon, 4 Nov 2002 22:57:00 +0000 (22:57 +0000)]
linker-map.gnu: Export string operator+.
2002-11-04 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Export string operator+.
Export __default_alloc_template::_S_force_new.
* testsuite/abi_check.cc: Output tweaks.
From-SVN: r58801
Dale Johannesen [Mon, 4 Nov 2002 20:06:28 +0000 (20:06 +0000)]
Fix bugs that showed up building Spec on ppc darwin.
From-SVN: r58800
Ulrich Weigand [Mon, 4 Nov 2002 19:04:46 +0000 (19:04 +0000)]
s390.c (s390_decompose_address): Use arg_pointer_rtx for comparison.
* config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
for comparison.
From-SVN: r58799
Kevin Buettner [Mon, 4 Nov 2002 18:40:27 +0000 (18:40 +0000)]
Top level configury changes for RDA.
From-SVN: r58797
Andrew Haley [Mon, 4 Nov 2002 17:34:09 +0000 (17:34 +0000)]
utilTest.java: New.
2002-11-04 Andrew Haley <aph@redhat.com>
* libjava.lang/utilTest.java: New.
* libjava.lang/utilTest.out: New.
From-SVN: r58795
Aldy Hernandez [Mon, 4 Nov 2002 16:58:39 +0000 (16:58 +0000)]
hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
2002-11-04 Aldy Hernandez <aldyh@redhat.com>
* hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
* config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
(CLASS_CANNOT_CHANGE_MODE): Remove.
(CANNOT_CHANGE_MODE_CLASS): New.
* config/alpha/alpha.h: Same.
* config/ia64/ia64.h: Same.
* config/mips/mips.h: Same.
* config/s390/s390.h: Same.
* config/sh/sh.h: Same.
* config/pa/pa64-regs.h: Same.
* config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
* config/sh/sh.c (sh_cannot_change_mode_class): New.
* config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
prototype.
* config/mips/mips.c (mips_cannot_change_mode_class): New.
* doc/tm.texi (Register Classes): Remove
CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
Document CANNOT_CHANGE_MODE_CLASS.
* reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
(push_reload): Same.
* simplify-rtx.c (simplify_subreg): Same.
* reload1.c (choose_reload_regs): Same.
* recog.c (register_operand): Same.
* regrename.c (mode_change_ok): Change to use new
CANNOT_CHANGE_MODE_CLASS infrastructure.
* regclass.c (cannot_change_mode_set_regs): New.
Declare subregs_of_mode.
(regclass): Use subregs_of_mode.
Remove references to reg_changes_mode.
(init_reg_sets_1): Remove class_can_change_mode and
reg_changes_mode code.
(invalid_mode_change_p): New.
(dump_regclass): Use invalid_mode_change_p instead of
class_can_change_mode.
(regclass): Same.
(record_operand_costs): Do not set reg_changes_mode.
* local-alloc.c (struct qty): Remove changes_mode field.
(alloc_qty): Remove changes_mode initialization.
(update_qty_class): Remove set of changes_mode.
(find_free_reg): Use subregs_of_mode.
* global.c (find_reg): Use subregs_of_mode info.
* rtl.h (cannot_change_mode_set_regs): New prototype.
(invalid_mode_change_p): Same.
(REG_CANNOT_CHANGE_MODE_P): New macro.
* flow.c (mark_used_regs): Calculate subregs_of_mode. Remove
REG_CHANGES_MODE.
(life_analysis): Clear subregs_of_mode.
* combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
Remove use of CLASS_CANNOT_CHANGE_MODE.
(simplify_set): Same.
(gen_lowpart_for_combine): Calculate subregs_of_mode. Remove
REG_CHANGES_MODE.
* regs.h: Add extern for subregs_of_mode;
Include hard-reg-set and basic-block.
(REG_CHANGES_MODE): Delete.
From-SVN: r58794
Anthony Green [Mon, 4 Nov 2002 14:00:15 +0000 (14:00 +0000)]
More test code.
From-SVN: r58793
GCC Administrator [Mon, 4 Nov 2002 08:17:09 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58792
Tom Tromey [Mon, 4 Nov 2002 06:17:55 +0000 (06:17 +0000)]
ClassLoader.java (loadClass): Call loadClass on VMClassLoader, not findClass.
* java/lang/ClassLoader.java (loadClass): Call loadClass on
VMClassLoader, not findClass.
From-SVN: r58786
John David Anglin [Mon, 4 Nov 2002 05:01:21 +0000 (05:01 +0000)]
jump.c (never_reached_warning): Don't set contains_insn until the first line note is seen.
* jump.c (never_reached_warning): Don't set contains_insn until the
first line note is seen.
From-SVN: r58785
Anthony Green [Mon, 4 Nov 2002 04:19:47 +0000 (04:19 +0000)]
Add missing file.
From-SVN: r58784
Anthony Green [Mon, 4 Nov 2002 04:17:59 +0000 (04:17 +0000)]
New test code
From-SVN: r58783
Anthony Green [Mon, 4 Nov 2002 04:17:38 +0000 (04:17 +0000)]
New tests.
From-SVN: r58782
David Edelsohn [Mon, 4 Nov 2002 03:04:10 +0000 (03:04 +0000)]
* config/rs6000/rs6000.md (movti_string): Use string instructions.
From-SVN: r58781
Jeff Sturm [Mon, 4 Nov 2002 02:45:31 +0000 (02:45 +0000)]
resolve.cc (METHOD_NOT_THERE, [...]): Remove.
* resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): Remove.
(_Jv_ResolvePoolEntry): Use _Jv_Method.index, not
_Jv_DetermineVTableIndex, to determine vtable offset.
(_Jv_DetermineVTableIndex): Remove.
(_Jv_PrepareClass): Don't layout vtable. Use _Jv_MakeVTable instead.
* java/lang/Class.h (friend int _Jv_DetermineVTableIndex): Remove.
From-SVN: r58780
Mark Mitchell [Mon, 4 Nov 2002 01:45:58 +0000 (01:45 +0000)]
call.c (build_special_member_call): Do not try to lookup VTTs by name.
* call.c (build_special_member_call): Do not try to lookup VTTs by
name.
* class.c (vtbl_init_data): Add generate_vcall_entries.
(get_vtable_decl): Do not look up virtual tables by name.
(copy_virtuals): Do not use BV_USE_VCALL_INDEX_P.
(set_primary_base): Do not set CLASSTYPE_RTTI.
(determine_primary_base): Likewise.
(get_matching_virtual): Remove.
(get_vcall_index): New function.
(update_vtable_entry_for_fn): Do not try to use virtual thunks
when they are not required. Assign vcall indices at this point.
(finish_struct_1): Do not set CLASSTYPE_NEEDS_VIRTUAL_REINIT.
Do update dynamic_classes.
(build_vtt): Do not add VTTs to the symbol table.
(build_ctor_vtbl_group): Likewise.
(build_vtbl_initializer): Simplify handling of vcall indices.
(build_vcall_offset_vtbl_entries): Pretend to build vcall offsets
for the most derived class.
(add_vcall_offset_vtbl_entries_1): But do not actually add them to
the vtable.
* cp-tree.h (dynamic_classes): New macro.
(lang_type_class): Remove rtti. Add vtables. Add vcall_indices.
(CLASSTYPE_RTTI): Remove.
(CLASSTYPE_NEEDS_VIRTUAL_REINIT): Remove.
(CLASSTYPE_VCALL_INDICES): New macro.
(CLASSTYPE_VTABLES): Likewise.
(BV_USE_VCALL_INDEX_P): Remove.
(build_vtable_path): Remove.
* decl2.c (finish_vtable_vardecl): Remove.
(key_method): Remove #if 0'd code.
(finish_vtable_vardecl): Rename to ...
(maybe_emit_vtables): ... this.
(finish_file): Use it.
* search.c (look_for_overrides_here): Update comment.
* g++.dg/abi/thunk1.C: New test.
* g++.dg/abi/thunk2.C: Likewise.
* g++.dg/abi/vtt1.C: Likewise.
From-SVN: r58779
Anthony Green [Mon, 4 Nov 2002 01:31:12 +0000 (01:31 +0000)]
New files.
From-SVN: r58778
Roger Sayle [Mon, 4 Nov 2002 00:22:57 +0000 (00:22 +0000)]
re PR c/7128 (Undeclared variables as asm argument cause ICE)
PR c/7128
* c-typeck.c (c_expand_asm_operands): Defend against
error_mark_nodes in the output argument to avoid ICE.
From-SVN: r58777
Eric Botcazou [Sun, 3 Nov 2002 23:42:51 +0000 (00:42 +0100)]
re PR middle-end/8408 (simple legal c program ice in fixup_var_refs_1, at function.c:1938)
PR middle-end/8408
* genrecog.c (preds): Handle ADDRESSOF.
(validate_pattern): Mark it as an lvalue.
* gcc.c-torture/compile/
20021103-1.c: New.
From-SVN: r58774
Tom Tromey [Sun, 3 Nov 2002 21:18:32 +0000 (21:18 +0000)]
AlreadyConnectedException.java: Extend IllegalStateException, per spec.
* java/nio/channels/AlreadyConnectedException.java: Extend
IllegalStateException, per spec.
From-SVN: r58773
Mark Wielaard [Sun, 3 Nov 2002 20:27:31 +0000 (20:27 +0000)]
GNU Classpath merge.
2002-10-31 Stephen Crawley <crawley@dstc.edu.au>
* java/lang/Double.java (valueOf): Return new Double(parseDouble(s)).
2002-10-31 Wu Gansha <gansha.wu@intel.com>:
* java/util/ArrayList.java (readObject, writeObject): Only read/write
size items.
2002-10-31 Wu Gansha <gansha.wu@intel.com>:
* java/io/DataInputStream.java (convertFromUTF): Give StringBuffer an
initial estimated size to avoid enlarge buffer frequently.
2002-10-31 Wu Gansha <gansha.wu@intel.com>:
* java/lang/reflect/Proxy.java (ProxyType): Set loader to System
ClassLoader when null.
(ProxyType.hashCode): Loader null check no longer needed.
(ProxyType.sameTypes): New method.
(ProxyType.equals): Use new method.
2002-10-31 Mark Wielaard <mark@klomp.org>
* java/net/URLDecoder.java (decode): Initialize Stringbuffer size to
length of String.
* java/net/URLEncoder.java (encode): Likewise.
2002-10-31 Mark Wielaard <mark@klomp.org>
* java/util/zip/ZipInputStream.java (getNextEntry): Throw IOException
when stream is closed.
(closeEntry): Likewise.
(read): Likewise.
* java/util/zip/ZipOutputStream.java (putNextEntry): Throw
ZipException when no entry active.
(closeEntry): Likewise.
(write): Likewise.
From-SVN: r58772
GCC Administrator [Sun, 3 Nov 2002 08:17:09 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58771
Tom Tromey [Sun, 3 Nov 2002 01:30:28 +0000 (01:30 +0000)]
initexc.java (fail): Static initializers must be able to complete normally.
* libjava.lang/initexc.java (fail): Static initializers must be
able to complete normally. From Eric Blake.
From-SVN: r58765
Tom Tromey [Sat, 2 Nov 2002 23:52:56 +0000 (23:52 +0000)]
Class.h: Move JV_STATE_ERROR before JV_STATE_DONE.
* java/lang/Class.h: Move JV_STATE_ERROR before JV_STATE_DONE.
* java/lang/natClass.cc (initializeClass): Don't return just
because self==thread.
From-SVN: r58763
Tom Tromey [Sat, 2 Nov 2002 23:52:26 +0000 (23:52 +0000)]
* java-tree.h: Move JV_STATE_ERROR before JV_STATE_DONE.
From-SVN: r58762
Tom Tromey [Sat, 2 Nov 2002 23:36:47 +0000 (23:36 +0000)]
initexc.java: New file.
* libjava.lang/initexc.java: New file.
* libjava.lang/initexc.out: New file.
From-SVN: r58761
Diego Novillo [Sat, 2 Nov 2002 22:58:54 +0000 (22:58 +0000)]
re PR rtl-optimization/8423 (CSE1 not propagating __builtin_constant_p enough)
PR optimization/8423
* gcc.c-torture/execute/builtin-constant.c: New test.
From-SVN: r58760
David Edelsohn [Sat, 2 Nov 2002 21:55:55 +0000 (21:55 +0000)]
rs6000.c (rs6000_override_options): Use string instructions when optimizing for size.
* config/rs6000/rs6000.c (rs6000_override_options): Use string
instructions when optimizing for size.
From-SVN: r58759
Tom Tromey [Sat, 2 Nov 2002 21:33:54 +0000 (21:33 +0000)]
re PR java/8415 (reflection bug: exception info for Method)
* class.c (make_method_value): Put class name, not signature, into
`throws' field. For PR java/8415.
From-SVN: r58758
Tom Tromey [Sat, 2 Nov 2002 21:33:30 +0000 (21:33 +0000)]
For PR java/8415:
* java/lang/reflect/natMethod.cc (getType): Use _Jv_FindClass.
* prims.cc (_Jv_FindClassFromSignature): Indentation fix.
From-SVN: r58757
Tom Tromey [Sat, 2 Nov 2002 21:29:36 +0000 (21:29 +0000)]
Reverted erroneous checkin
From-SVN: r58756
Tom Tromey [Sat, 2 Nov 2002 21:26:28 +0000 (21:26 +0000)]
re PR java/6388 (Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc)
Fix for PR java/6388.
* lex.h (JAVA_INTEGRAL_RANGE_ERROR): Wrap in do...while.
* java-tree.h (enum java_tree_index): New values
JTI_DECIMAL_INT_MAX_NODE, JTI_DECIMAL_LONG_MAX_NODE.
(decimal_int_max, decimal_long_max): New defines.
* lex.c (yylex): Rewrote range checking. Sign extend literals.
(error_if_numeric_overflow): Rewrote range checking.
* decl.c (java_init_decl_processing): Initialize decimal_int_max,
decimal_long_max.
From-SVN: r58755
Andreas Schwab [Sat, 2 Nov 2002 16:14:50 +0000 (16:14 +0000)]
Makefile.am (AM_MAKEFLAGS): Don't pass JC1FLAGS, CC and CXX, do pass GCJFLAGS.
* Makefile.am (AM_MAKEFLAGS): Don't pass JC1FLAGS, CC and CXX, do
pass GCJFLAGS.
(FLAGS_TO_PASS): Define.
* Makefile.in: Regenerated.
From-SVN: r58752
Toon Moene [Sat, 2 Nov 2002 14:40:31 +0000 (14:40 +0000)]
news.texi: Fix .f -> .r
2002-11-02 Toon Moene <toon@moene.indiv.nluug.nl>
* news.texi: Fix .f -> .r
From-SVN: r58751
Toon Moene [Sat, 2 Nov 2002 14:36:45 +0000 (14:36 +0000)]
g77.texi: Correct documentation on generating C++ prototypes of Fortran routines with f2c.
2002-11-02 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.texi: Correct documentation on generating C++ prototypes
of Fortran routines with f2c.
* news.texi: Document fixes in GCC-3.3, 3.2 and 3.1.
From-SVN: r58750
Toon Moene [Sat, 2 Nov 2002 14:30:12 +0000 (14:30 +0000)]
g77.texi: Correct documentation on generating C++ prototypes of Fortran routines with f2c.
2002-11-02 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.texi: Correct documentation on generating C++ prototypes
of Fortran routines with f2c.
* news.texi: Document fixes in GCC-3.3, 3.2 and 3.1.
From-SVN: r58749
Kazu Hirata [Sat, 2 Nov 2002 12:51:05 +0000 (12:51 +0000)]
h8300.h: Fix comment typos.
* config/h8300/h8300.h: Fix comment typos.
* config/h8300/h8300.md: Likewise.
* config/h8300/lib1funcs.asm: Likewise.
From-SVN: r58748
Gerald Pfeifer [Sat, 2 Nov 2002 10:28:09 +0000 (11:28 +0100)]
Revert this change:
*doc/install.texi (Installing GCC: Configuration): Clarify
the only supported ways to configure gcc.
From-SVN: r58746
GCC Administrator [Sat, 2 Nov 2002 08:17:09 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58745
Benjamin Kosnik [Sat, 2 Nov 2002 02:18:18 +0000 (02:18 +0000)]
re PR libstdc++/8172 (undefined reference to operator+ for string)
2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8172
* src/string-inst.cc: Add instantiation.
From-SVN: r58738
Zack Weinberg [Sat, 2 Nov 2002 02:17:41 +0000 (02:17 +0000)]
PR c/7353 redux
PR c/7353 redux
cp:
* decl2.c (grokfield): Reject TYPE_DECLs with initializers.
testsuite:
* g++.dg/ext/typedef-init.C, gcc.dg/typedef-init.C:
Add some more cases.
From-SVN: r58737
Kazu Hirata [Sat, 2 Nov 2002 01:44:00 +0000 (01:44 +0000)]
h8300.md (anonymous and:QI pattern): Use 'n' instead of 'O' for the constraint for the second operand.
* config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
instead of 'O' for the constraint for the second operand.
From-SVN: r58736
Benjamin Kosnik [Sat, 2 Nov 2002 01:42:22 +0000 (01:42 +0000)]
re PR libstdc++/7926 (i486 instructions in header files make c++ programs crash on i386)
2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7926
* configure.target: Simplify.
* config/cpu/i386/atomicity.h: Remove.
* config/cpu/i386: Remove.
* config/cpu/arm/atomicity.h: Remove.
* config/cpu/arm: Remove.
* config/cpu/x86-64/atomicity.h: Remove.
* config/cpu/x86-64: Remove.
From-SVN: r58735
Mark Mitchell [Sat, 2 Nov 2002 01:03:03 +0000 (01:03 +0000)]
re PR c++/8391 (infinite loop in cp/decl2.c(finish_file))
PR c++/8391
* toplev.c (rest_of_compilation): Do not refuse to output code for
an inline function in a local class.
PR c++/8391
* g++.dg/opt/local1.C: New test.
From-SVN: r58734
Tom Tromey [Sat, 2 Nov 2002 00:19:52 +0000 (00:19 +0000)]
For PR java/8415:
* libjava.lang/pr8415.java: New file.
* libjava.lang/pr8415.out: New file.
From-SVN: r58732
David O'Brien [Fri, 1 Nov 2002 22:19:38 +0000 (22:19 +0000)]
freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
2002-11-01 David O'Brien <obrien@FreeBSD.org>
* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
(TRANSFER_FROM_TRAMPOLINE): Reformat.
Add comment.
Approved by: Mark Mitchell <mark@codesourcery.com>
Message-ID: <
15490000.
1036182355@warlock.codesourcery.com>
From-SVN: r58730
Kazu Hirata [Fri, 1 Nov 2002 21:36:37 +0000 (21:36 +0000)]
* config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
From-SVN: r58729
Toshiyasu Morita [Fri, 1 Nov 2002 21:22:15 +0000 (21:22 +0000)]
* config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
From-SVN: r58728
Steve Ellcey [Fri, 1 Nov 2002 20:25:35 +0000 (20:25 +0000)]
ia64.h (MASK_INLINE_DIV_LAT): Remove.
* config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
(MASK_INLINE_DIV_THR): Remove.
(TARGET_INLINE_DIV_LAT): Remove.
(TARGET_INLINE_DIV_THR): Remove.
(TARGET_INLINE_DIV): Remove.
(MASK_INLINE_FLOAT_DIV_LAT): New macro.
(MASK_INLINE_FLOAT_DIV_THR): New macro.
(MASK_INLINE_INT_DIV_LAT): New macro.
(MASK_INLINE_INT_DIV_THR): New macro.
(TARGET_INLINE_FLOAT_DIV_LAT): New macro.
(TARGET_INLINE_FLOAT_DIV_THR): New macro.
(TARGET_INLINE_INT_DIV_LAT): New macro.
(TARGET_INLINE_INT_DIV_THR): New macro.
(TARGET_INLINE_FLOAT_DIV): New macro.
(TARGET_INLINE_INT_DIV): New macro.
* config/ia64/ia64.md (divsi3): Change to use new macros.
(modsi3): Ditto.
(udivsi3): Ditto.
(umodsi3): Ditto.
(divsi3_internal): Ditto.
(divdi3): Ditto.
(moddi3): Ditto.
(udivdi3): Ditto.
(umoddi3): Ditto.
(divdi3_internal_lat): Ditto.
(divdi3_internal_thr): Ditto.
(divsf3): Ditto.
(divsf3_internal_lat): Ditto.
(divsf3_internal_thr): Ditto.
(divdf3): Ditto.
(divdf3_internal_lat): Ditto.
(divdf3_internal_thr): Ditto.
(divtf3): Ditto.
(divtf3_internal_lat): Ditto.
(divtf3_internal_thr): Ditto.
* config/ia64/ia64.c (ia64_override_options): Change
to check new macros for conflicts in settings.
* doc/invoke.texi (-minline-divide-min-latency): Remove.
(-minline-divide-max-throughput): Remove.
(-minline-float-divide-min-latency): New.
(-minline-float-divide-max-throughput): New.
(-minline-int-divide-min-latency): New.
(-minline-int-divide-max-throughput): New.
From-SVN: r58727
Tom Tromey [Fri, 1 Nov 2002 19:32:21 +0000 (19:32 +0000)]
mauve.exp (find_mauve_sources): New proc.
* libjava.mauve/mauve.exp (find_mauve_sources): New proc.
(test_mauve): Use it.
(test_mauve_sim): Likewise.
From-SVN: r58725
Christian Ehrhardt [Fri, 1 Nov 2002 17:54:51 +0000 (17:54 +0000)]
re PR libstdc++/8197 (std::sin(float) causes undefined reference to sinf)
2002-11-01 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
PR libstdc++/8197
* config/link-map.gnu: Export math stubbs.
From-SVN: r58721
Benjamin Kosnik [Fri, 1 Nov 2002 17:30:36 +0000 (17:30 +0000)]
re PR libstdc++/8318 (Not all wide character based prototypes are included within #ifdef _GLIBCPP_USE_WCHAR_T)
2002-11-01 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8318
* include/std/std_iostream.h: Tweak.
* include/std/std_iosfwd.h: Add _GLIBCPP_USE_WCHAR_T.
* include/std/std_iomanip.h: Same.
* include/bits/stringfwd.h: Same.
* include/bits/basic_string.tcc: Same.
* include/bits/sstream.tcc: Same.
* include/bits/fstream.tcc: Same.
* include/bits/basic_ios.tcc: Same.
* include/bits/streambuf.tcc: Same.
* include/bits/locale_facets.tcc: Same.
From-SVN: r58720
John Carter [Fri, 1 Nov 2002 15:21:17 +0000 (15:21 +0000)]
re PR libstdc++/7961 (compare( char *) implemented incorrectly.)
2002-11-01 John Carter <john.carter@tait.co.nz>
PR libstdc++/7961
* include/bits/basic_string.tcc
(compare(const _CharT* __s)): Don't access __s past its length.
From-SVN: r58717
Richard Earnshaw [Fri, 1 Nov 2002 14:41:57 +0000 (14:41 +0000)]
re PR target/7856 ([arm] invalid offset in constant pool reference)
PR target/7856
* arm.c (use_return_insn): Don't use a return insn if there are
saved integer regs, but LR is not one of them.
From-SVN: r58716
Michael Koch [Fri, 1 Nov 2002 12:03:40 +0000 (12:03 +0000)]
ByteOrder.java: New file.
2002-11-01 Michael Koch <konqueror@gmx.de>
* java/nio/ByteOrder.java: New file.
* java/nio/channels/DatagramChannel.java:
(DatagramChannel): New constructor.
* java/nio/channels/Pipe.java: New file.
* java/nio/channels/SelectableChannel.java: New file.
* java/nio/channels/SelectionKey.java: New file.
* java/nio/channels/Selector.java: New file.
* java/nio/channels/ServerSocketChannel.java
(ServerSocketChannel): New constructor.
* java/nio/channels/SocketChannel.java
(SocketChannel): New constructor.
* java/nio/channels/Pipe.java: New file.
* java/nio/channels/spi/AbstractChannel.java: New file.
* java/nio/channels/spi/AbstractInterruptibleChannel.java: New file.
* java/nio/channels/spi/AbstractSelectableChannel.java:
License added
(AbstractSelectableChannel): New stubbed method.
* java/nio/channels/spi/AbstractSelectionKey.java: New file.
* java/nio/channels/spi/AbstractSelector.java: New file.
* java/nio/channels/spi/SelectorProvider.java: New file.
* java/nio/charset/Charset.java: New file.
* java/nio/charset/CoderMalfunctionError.java: New file.
* java/nio/charset/CodingErrorAction.java: New file.
* java/nio/charset/spi/CharsetProvider.java
(charsetForName): Uncommented.
* Makefile.am (java_native_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r58713
Jan Hubicka [Fri, 1 Nov 2002 09:35:24 +0000 (10:35 +0100)]
expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P
* expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P
* machmode.h (SCALAR_FLOAT_MODE_P): New macro.
From-SVN: r58712
GCC Administrator [Fri, 1 Nov 2002 08:17:07 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58711
Nathanael Nerode [Fri, 1 Nov 2002 07:05:57 +0000 (07:05 +0000)]
re PR inline-asm/6162 (i386 asm reloader ice in reload_cse_simplify_operands)
PR optimization/6162
* md.texi: Document restriction on commutative operand
specification.
From-SVN: r58705
Michael Koch [Fri, 1 Nov 2002 06:35:14 +0000 (06:35 +0000)]
2002-11-01 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
(isAnyLocalAddress): Implemented.
(isLoopbackAddress): Implemented, comment added.
(isLinkLocalAddress): Implemented, documentation added.
(isSiteLocalAddress): Implemented, documentation added.
(isMCGlobal): Implemented, documentation added.
(isMCNodeLocal): Implemented, documentation added.
(isMCLinkLocal): Implemented, documentation added.
(isMCSiteLocal): Implemented, documentation added.
(isMCOrgLocal): Implemented, documentation added.
(getHostName): Documentation added.
(getCanonicalHostName): Implemented, documentation added.
(getAddress): Documentation added.
(hashCode): Documentation added.
(equals): Documentation added.
(toString): Fixed implementation.
(getByAddress): Use Inet4Address and Inet6Address.
(lookup): New linewrap.
(getByName): SecurityManager check added, support Inet4Address and
Inet6address, comments added.
(getAllByName): SecurityManager check added, comments added.
* java/net/Inet6Address.java:
(Inet6Address): Initialize parent class with addr instead of null.
* java/net/URL.java
(equals): Documentation added.
(getFile): Documentation added.
(hashCode): Documentation added.
* java/net/natInetAddress.cc:
(aton): Fix IPv6 support.
* java/net/natPlainDatagramSocketImpl.cc:
(peek): Throw PortUnreachableException when suitable.
(peekData): Throw PortUnreachableException when suitable.
(send): Throw PortUnreachableException when suitable.
(receive): Throw PortUnreachableException when suitable.
From-SVN: r58704
Benjamin Kosnik [Fri, 1 Nov 2002 05:38:27 +0000 (05:38 +0000)]
re PR libstdc++/8348 (fail() flag is set in istringstream when eof() flag is set !)
2002-10-31 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8348
* include/bits/istream.tcc (istream::tellg): Remove sentry bits.
(istream::seekg): Same.
* testsuite/27_io/istream_seeks.cc (test06): New.
From-SVN: r58703
Mark Wielaard [Thu, 31 Oct 2002 21:56:32 +0000 (21:56 +0000)]
ZipFile.java (readLeShort): Take and use DataInput as argument.
* java/util/zip/ZipFile.java (readLeShort): Take and use DataInput as
argument.
(readLeShort): Likewise and use byte[].
(readLeInt): Likewise.
(readEntries): Use new versions of methods and use byte[] for reading
a complete zip entry. Add ZipFile name to exceptions.
(entries): Add ZipFile name to exceptions.
(getEntry): Likewise.
(checkLocalHeader): Use new versions of methods and add ZipFile name
to exceptions.
From-SVN: r58697
Jason Merrill [Thu, 31 Oct 2002 21:42:46 +0000 (16:42 -0500)]
re PR c++/8186 (ICE in cp_expr_size, at cp/cp-lang.c:304)
PR c++/8186
* cp-tree.h (ADDR_IS_INVISIREF): New macro.
* call.c (convert_for_arg_passing): Set it.
* except.c (stabilize_throw_expr): Recurse for such an arg.
From-SVN: r58696
Eric Christopher [Thu, 31 Oct 2002 21:35:57 +0000 (21:35 +0000)]
explow.c (convert_memory_address): Use shallow_copy_rtx.
2002-10-31 Eric Christopher <echristo@redhat.com>
* explow.c (convert_memory_address): Use shallow_copy_rtx.
From-SVN: r58695
Steve Ellcey [Thu, 31 Oct 2002 20:43:07 +0000 (20:43 +0000)]
* expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
From-SVN: r58694
Steve Ellcey [Thu, 31 Oct 2002 20:40:29 +0000 (20:40 +0000)]
* config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
From-SVN: r58693
Dale Johannesen [Thu, 31 Oct 2002 20:32:49 +0000 (20:32 +0000)]
Correct formatting in previous patch.
From-SVN: r58692
Dale Johannesen [Thu, 31 Oct 2002 19:40:12 +0000 (19:40 +0000)]
enable -falign-xxx flags
From-SVN: r58690
Jason Merrill [Thu, 31 Oct 2002 18:57:39 +0000 (13:57 -0500)]
restore old comment
From-SVN: r58687
Mark Anderson [Thu, 31 Oct 2002 18:50:38 +0000 (18:50 +0000)]
GridBagLayout.java (setConstraints): New stubbed method added
2002-10-31 Mark Anderson <mark@panonet.net>
* java/awt/GridBagLayout.java (setConstraints): New stubbed method
added
From-SVN: r58686
Jan Hubicka [Thu, 31 Oct 2002 17:27:02 +0000 (17:27 +0000)]
Fix typo in my previous commit.
From-SVN: r58684
Jan Hubicka [Thu, 31 Oct 2002 17:16:52 +0000 (18:16 +0100)]
i386.c (override_options): Set defaults for flag_omit_frame_pointer...
* i386.c (override_options): Set defaults for flag_omit_frame_pointer,
flag_asynchronous_unwind_tables, flag_pcc_struct_return.
* i386.c (optimization_options): Set flag_omit_frame_pointer,
flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
Do not clear -momit-leaf-frame-pointer when profiling.
(ix86_frame_pointer_required): Frame pointer is allways required when
profiling.
From-SVN: r58681
Mark Mitchell [Thu, 31 Oct 2002 16:07:32 +0000 (16:07 +0000)]
cp-tree.h (lang_decl_flags): Remove init_priority.
* cp-tree.h (lang_decl_flags): Remove init_priority.
(lang_decl): Add delta.
(GLOBAL_INIT_PRIORITY): Remove.
(THUNK_DELTA): Revise definition.
* decl2.c (start_objects): Don't set GLOBAL_INIT_PRIORITY.
* dump.c (cp_dump_tree): Don't dump it.
From-SVN: r58680
Jan Hubicka [Thu, 31 Oct 2002 15:21:22 +0000 (16:21 +0100)]
* i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
From-SVN: r58678
J"orn Rennecke [Thu, 31 Oct 2002 12:53:06 +0000 (12:53 +0000)]
sh.h (binary_logical_operator): Declare.
* sh.h (binary_logical_operator): Declare.
* sh.c (binary_logical_operator): New function.
* sh.md (xordi3+1): New combiner splitter pattern.
From-SVN: r58675
David O'Brien [Thu, 31 Oct 2002 09:08:11 +0000 (09:08 +0000)]
freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define __enable_execute_stack function.
2002-10-31 David O'Brien <obrien@FreeBSD.org>
* config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
__enable_execute_stack function.
Approved by: David S. Miller <davem@redhat.com>
Message-Id: <
20021031.005015.
22856738.davem@redhat.com>
From-SVN: r58674
GCC Administrator [Thu, 31 Oct 2002 08:17:11 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58673
Aldy Hernandez [Thu, 31 Oct 2002 06:57:28 +0000 (06:57 +0000)]
c-common.c: Add GTY to vector_type_node_list.
2002-10-30 Aldy Hernandez <aldyh@redhat.com>
* c-common.c: Add GTY to vector_type_node_list.
From-SVN: r58666
John David Anglin [Thu, 31 Oct 2002 03:13:44 +0000 (03:13 +0000)]
pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
* pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
* pa-protos.h (attr_length_millicode_call, attr_length_call,
pa_init_machine_status): Declare new global functions.
* pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
implement new functions.
(attr_length_millicode_call, attr_length_call): Implement.
(total_code_bytes): Change type to long.
(pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
Reset counter if flag_function_sections.
(output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
(output_cbranch): Move call to gen_label_rtx.
(output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
delay slot in all variants, shorten pc-relative calls.
(output_call): Rewrite adding long TARGET_64BIT call, improved delay
slot usage and exposure, various new call variants, and shortened
sequences for some variants on TARGET_PA_20.
Miscellaneous format changes.
* pa.h (total_code_bytes): Change type to long.
(MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
(TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
(EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
stores on TARGET_ELF32.
*pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
(unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
canonicalize_funcptr_for_compare expanders): Calculate attribute length
attr_length_millicode_call().
(call_internal_symref, call_value_internal_symref): Clobber register 1.
Calculate attribute length using attr_length_call().
(call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
to delay slot.
(sibcall, sibcall_value): Rewrite.
(sibcall_internal_symref, sibcall_value_internal_symref): Clobber
register 1. Use attr_length_call().
(sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
New patterns.
(unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
* som.h (MEMBER_TYPE_FORCES_BLK): Define.
* t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
* doc/invoke.texi (mlong-calls): Document.
From-SVN: r58665
Mark Mitchell [Thu, 31 Oct 2002 00:04:12 +0000 (00:04 +0000)]
re PR c++/8160 (ICE in build_modify_expr, at cp/typeck.c:5494: Array initialization)
PR c++/8160
* typeck2.c (process_init_constructor): Call complete_array_type.
PR c++/8149
* decl.c (make_typename_type): Issue errors about invalid results.
PR c++/8160
* g++.dg/template/complit1.C: New test.
PR c++/8149
* g++.dg/template/typename4.C: Likewise.
From-SVN: r58663
Roger Sayle [Wed, 30 Oct 2002 23:07:48 +0000 (23:07 +0000)]
fold-const.c (fold_binary_op_with_conditional_arg): Improve handling of cases where one or both branches of the conditional have...
* fold-const.c (fold_binary_op_with_conditional_arg): Improve
handling of cases where one or both branches of the conditional
have void type, i.e. throw an exception or don't return.
(fold): Only apply (and undo) type conversion to the non-void
branches of a COND_EXPR.
* f/com.c (ffecom_subscript_check_): Cast the failure branch
of the bounds check COND_EXPR to void, to indicate noreturn.
(ffe_truthvalue_conversion): Only apply truth value conversion
to the non-void branches of a COND_EXPR.
From-SVN: r58661
Mark Mitchell [Wed, 30 Oct 2002 19:23:27 +0000 (19:23 +0000)]
re PR c++/8333 (c++ emits double .globals for symbols [ regression from 3.0.4 ])
PR c++/8333
* varasm.c (asm_output_aligned_bss): Do not call
ASM_GLOBALIZE_LABEL.
From-SVN: r58658
Geert Bosch [Wed, 30 Oct 2002 17:42:53 +0000 (18:42 +0100)]
re PR ada/6558 (Wrongly reverted patches)
PR ada/6558
* misc.c : Include optabs.h
* Make-lang.in (misc.o): Add dependency on optabs.h
From-SVN: r58656
David Edelsohn [Wed, 30 Oct 2002 15:56:37 +0000 (15:56 +0000)]
rs6000.md (load_toc_v4_PIC_1): Use preferred form for addressibility.
* config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
for addressibility.
(load_toc_v4_PIC_1b): Same.
Co-Authored-By: Torbjorn Granlund <tege@swox.com>
From-SVN: r58655
Kriang Lerdsuwanakij [Wed, 30 Oct 2002 15:54:10 +0000 (15:54 +0000)]
Core issue 287, PR c++/7639
Core issue 287, PR c++/7639
* cp-tree.h (lang_type_class): Add decl_list field.
(CLASSTYPE_DECL_LIST): New macro.
(maybe_add_class_template_decl_list): Add declaration.
* class.c (duplicate_tag_error): Initialize CLASSTYPE_DECL_LIST.
(unreverse_member_declarations): Reverse CLASSTYPE_DECL_LIST.
(maybe_add_class_template_decl_list): New function.
(add_implicitly_declared_members): Use it.
* decl.c (maybe_process_template_type_declaration): Likewise.
(pushtag): Likewise.
* friend.c (add_friend): Likewise.
(make_friend_class): Likewise.
* semantics.c (finish_member_declaration): Likewise.
(begin_class_definition): Initialize CLASSTYPE_DECL_LIST.
* pt.c (instantiate_class_template): Use CLASSTYPE_DECL_LIST
to process members and friends in the order of declaration.
Core issue 287, PR c++/7639
* g++.dg/template/instantiate1.C: Adjust error location.
* g++.dg/template/instantiate3.C: New test.
* g++.old-deja/g++.pt/crash10.C: Adjust error location.
* g++.old-deja/g++.pt/derived3.C: Adjust error location.
* g++.old-deja/g++.pt/spec28.C: Reorder declaration.
From-SVN: r58654
Kazu Hirata [Wed, 30 Oct 2002 11:21:24 +0000 (11:21 +0000)]
h8300.c (h8300_eightbit_constant_address_p): Truncate the addresses for H8/300 using HImode.
* config/h8300/h8300.c (h8300_eightbit_constant_address_p):
Truncate the addresses for H8/300 using HImode.
From-SVN: r58653
GCC Administrator [Wed, 30 Oct 2002 08:17:49 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r58652
Hans-Peter Nilsson [Wed, 30 Oct 2002 00:27:34 +0000 (00:27 +0000)]
* lib/compat.exp (compat-execute): Don't clean out a gluefile.
From-SVN: r58646
Hans-Peter Nilsson [Wed, 30 Oct 2002 00:19:59 +0000 (00:19 +0000)]
toplev.c (rest_of_type_compilation): Return early in case of errors.
* toplev.c (rest_of_type_compilation): Return early in case of
errors.
(check_global_declarations): Don't call debug_hooks->global_decl
in case of errors.
From-SVN: r58645
Mark Mitchell [Wed, 30 Oct 2002 00:05:56 +0000 (00:05 +0000)]
re PR c++/8287 (GCC3.2: Destructor called for non-constructed local object)
PR c++/8287
* g++.dg/init/dtor2.C: New test.
From-SVN: r58644