Jason Thorpe
9f689d92c0
netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC to the assembler if -mno-abicalls was specified.
...
* config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
to the assembler if -mno-abicalls was specified.
From-SVN: r58957
2002-11-09 18:38:18 +00:00
John David Anglin
1c03af8697
pa-linux.h (PREFERRED_DEBUGGING_TYPE, [...]): Delete.
...
* pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
ASM_OUTPUT_DEF): Delete.
From-SVN: r58953
2002-11-09 16:29:38 +00:00
Neil Booth
57800e9e70
* c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
...
From-SVN: r58952
2002-11-09 12:37:08 +00:00
Neil Booth
8c47cfd82a
* gcc.dg/cpp/trad/assembler.S, gcc.dg/cpp/trad/directive.c: Update.
...
From-SVN: r58951
2002-11-09 12:33:53 +00:00
Kriang Lerdsuwanakij
5c74d5b03c
re PR c++/8389 (Access to members of base class & templates)
...
PR c++/8389
* pt.c (instantiate_template): Push class scope for member
functions.
(get_mostly_instantiated_function_type): Likewise. Don't call
tsubst on context. Remove CONTEXTP and TPARMSP parameters.
* cp-tree.h (get_mostly_instantiated_function_type): Adjust.
* mangle.c (write_encoding, write_unqualified_name): Adjust.
PR c++/8389
* g++.dg/template/access6.C: New test.
From-SVN: r58950
2002-11-09 11:53:18 +00:00
GCC Administrator
8a9a176bf6
Daily bump.
...
From-SVN: r58949
2002-11-09 08:17:12 +00:00
Dale Johannesen
489d6e8e10
fix stabs info for vector types
...
From-SVN: r58939
2002-11-08 23:12:24 +00:00
Neil Booth
a4b1e6535f
re PR preprocessor/8497 (traditional preprocessor #if/#endif bug)
...
PR preprocessor/8497
PR preprocessor/8501
* cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
start a directive. In assembler, #NUM is not a line directive.
From-SVN: r58938
2002-11-08 22:36:22 +00:00
Neil Booth
e6e8c77230
cppmain.c (cpp_preprocess_file): Loop to pop any -included buffers.
...
* cppmain.c (cpp_preprocess_file): Loop to pop any -included
buffers.
From-SVN: r58933
2002-11-08 20:15:05 +00:00
Kazu Hirata
ffdf5eae7f
* config/h8300/h8300.md (two anonymous test insns): New.
...
From-SVN: r58930
2002-11-08 19:30:31 +00:00
Phil Edwards
7069c22117
atomicity.h: Provide atomic __exchange_and_add and __atomic_add.
...
2002-11-07 Phil Edwards <pme@gcc.gnu.org>
Richard Earnshaw <rearnsha@arm.com>
* config/cpu/generic/atomicity.h: Provide atomic __exchange_and_add
and __atomic_add.
Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>
From-SVN: r58929
2002-11-08 19:24:41 +00:00
Paolo Carlini
bce582242d
monetary_members.cc (moneypunct<wchar_t, [...]): Tweak parameters for glibc2.3 systems, thus avoiding unused parameter warnings.
...
2002-11-08 Paolo Carlini <pcarlini@unitus.it>
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::_M_initialize_moneypunct(__c_locale,
const char*),
moneypunct<wchar_t, false>::_M_initialize_moneypunct(__c_locale,
const char*)): Tweak parameters for glibc2.3 systems, thus
avoiding unused parameter warnings.
From-SVN: r58928
2002-11-08 17:05:40 +00:00
Jan Hubicka
8dd3ca88e5
jump.c (mark_jump_label): Handle subregs of label_refs.
...
* jump.c (mark_jump_label): Handle subregs of label_refs.
* gcc.c-torture/compile/20021108-1.c: New testcase for x86-64 failure.
From-SVN: r58921
2002-11-08 11:58:53 +00:00
GCC Administrator
1cc6f9f420
Daily bump.
...
From-SVN: r58919
2002-11-08 08:17:17 +00:00
Mark Mitchell
e6a6656780
class.c (add_vcall_offset_vtbl_entries_1): Correct ordering of vcall offfsets.
...
* class.c (add_vcall_offset_vtbl_entries_1): Correct ordering of
vcall offfsets. Split out ...
(add_vcall_offset): ... new function.
* g++.dg/abi/vthunk3.C: New test.
From-SVN: r58912
2002-11-08 02:16:48 +00:00
Mark Mitchell
4f2c9d7ec6
re PR c++/8338 (Infinite loop on illegal code)
...
PR c++/8338
* pt.c (for_each_template_parm): Add htab parameter.
(process_partial_specialization): Adjust call.
(push_template_decl_real): Likewise.
(pair_fn_data): Add visited.
(for_each_template_parm_r): Avoid walking duplicates more than
once.
(uses_template_parms): Adjust call to for_each_template_parm.
PR c++/8338
* g++.dg/template/crash2.C: New test.
From-SVN: r58911
2002-11-08 01:42:23 +00:00
David Mosberger
07cf4226a7
crtend.asm: Include "auto-host.h".
...
* config/ia64/crtend.asm: Include "auto-host.h".
[HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
* config/ia64/crtbegin.asm: Similarly.
* config/ia64/t-ia64 (crtbegin.o): Include from current directory.
(crtend.o, crtbeginS.o, crtendS.o): Likewise.
* aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
* configure.in: Use it if --enable-initfini-array not specified.
* doc/install.texi (Configuration): Document --enable-initfini-array.
* configure, config.in: Rebuild.
From-SVN: r58909
2002-11-07 14:48:10 -08:00
Mark Mitchell
f72ab53b26
class.c (add_implicitly_declared_members): Put implicitly declared functions at the end of TYPE_METHODs when...
...
* class.c (add_implicitly_declared_members): Put implicitly
declared functions at the end of TYPE_METHODs when -fabi-version
is at least 2.
* testsuite/g++.dg/abi/dtor1.C: New test.
* testsuite/g++.dg/abi/dtor2.C: Likewise.
From-SVN: r58908
2002-11-07 21:33:44 +00:00
Jason Thorpe
0977774ba0
[multiple changes]
...
2002-11-07 Jason Thorpe <thorpej@wasabisystems.com>
* config/arm/arm-protos.h (arm_get_frame_size)
(thumb_get_frame_size): New prototypes.
* config/arm/arm.c (arm_get_frame_size)
(thumb_get_frame_size): New functions.
(use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
(arm_compute_initial_elimination_offset, arm_expand_prologue): Use
arm_get_frame_size.
(thumb_expand_prologue, thumb_expand_epilogue): Use
thumb_get_frame_size.
* config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
(machine_function): Add frame_size member.
(THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
2002-11-07 Richard Earnshaw <rearnsha@arm.com>
* arm.c (bit_count): Make argument unsigned long. Return unsigned.
Adjust code to use portable unsigned bit manipulation.
(insn_flags, tune_flags): Change type to unsigned.
(struct processors): Make flags unsigned long.
(arm_override_options): Change type of count and current_bit_count
to unsigned.
From-SVN: r58901
2002-11-07 18:32:00 +00:00
Mark Wielaard
f150fe3fa7
backport: MarshalledObject.java (equals): Check hashcode first.
...
Merge Orp RMI patches from Wu Gansha <gansha.wu@intel.com>
* java/rmi/MarshalledObject.java (equals): Check hashcode first.
* java/rmi/server/RMIClassLoader.java (MyClassLoader): Create/Use
annotation.
(loadClass): Take String as codebases.
(getClassAnnotation): Use MyClassLoader annotations.
* java/rmi/server/UnicastRemoteObject.java (UnicastRemoteObject):
call exportObject(this).
* gnu/java/rmi/RMIMarshalledObjectOutputStream.java
(RMIMarshalledObjectOutputStream): set locBytesStream and locStream.
(setAnnotation): Don't set locBytesStream and locStream.
(replaceObject): Removed.
(flush): Don't test locStream.
(getLocBytes): LikeWise.
* gnu/java/rmi/dgc/DGCImpl.java: extends UnicastServerRef.
(leaseCache): New field.
(dirty): Use leaseCache.
(LeaseRecord): New inner class.
* gnu/java/rmi/registry/RegistryImpl.java (RegistryImpl): Don't
explicitly call exportObject().
* gnu/java/rmi/registry/RegistryImpl_Stub.java: set useNewInvoke to
false to communicate with Sun JDK130.
* gnu/java/rmi/server/ConnectionRunnerPool.java: Add CPU comment.
* gnu/java/rmi/server/RMIObjectInputStream.java
(UnicastConnectionManager): Removed field.
* gnu/java/rmi/server/RMIObjectOutputStream.java (replaceObject):
Use UnicastServer.getExportedRef().
* gnu/java/rmi/server/UnicastConnection.java (reviveTime): New field.
(expireTime): Likewise.
(CONNECTION_TIMEOUT): Likewise.
(disconnect): Call sock.close().
(isExpired): New method.
(resetTime): Likewise.
(run): Use do while loop and catch Exception for discardConnection().
* gnu/java/rmi/server/UnicastConnectionManager.java: Pool connections.
* gnu/java/rmi/server/UnicastRef.java: Lots of changes.
* gnu/java/rmi/server/UnicastRemoteCall.java: Lots of changes.
* gnu/java/rmi/server/UnicastServer.java (refcache): New field.
(exportObject): Use refcache.
(unexportObject): Likewise.
(getExportedRef): New method.
* gnu/java/rmi/server/UnicastServerRef.java (UnicastServerRef): New
constructor.
(exportObject): Save manager.serverobj.
(getStub): New method.
From-SVN: r58900
2002-11-07 18:01:05 +00:00
Mark Wielaard
396a80436c
natField.cc (getBoolean): Use getType().
...
* java/lang/reflect/natField.cc (getBoolean): Use getType().
(getByte): Likewise.
(getShort): Likewise.
(getInt): Likewise.
(getLong): Likewise.
(getFloat): Likewise.
(getDouble): Likewise.
(get): Likewise.
(setChar): Likewise.
(setByte): Likewise.
(setShort): Likewise.
(setInt): Likewise.
(setLong): Likewise.
(setFloat): Likewise.
(setDouble): Likewise.
From-SVN: r58899
2002-11-07 17:57:09 +00:00
Richard Earnshaw
74c1330854
* arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
...
From-SVN: r58897
2002-11-07 17:05:48 +00:00
J"orn Rennecke
e284643a06
* sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
...
From-SVN: r58895
2002-11-07 15:51:27 +00:00
Tom Tromey
76d17d6207
removed bogus ChangeLog entry
...
From-SVN: r58894
2002-11-07 14:10:01 +00:00
Tom Tromey
eeff4ca3ce
dostime.c: Rewrote from scratch.
...
* dostime.c: Rewrote from scratch.
* dostime.h (dostime): Removed.
From-SVN: r58892
2002-11-07 14:07:19 +00:00
Michael Koch
82396c2a26
Choice.java, [...]: Fixed documentation.
...
2002-11-07 Michael Koch <konqueror@gmx.de>
* java/awt/Choice.java,
java/awt/Container.java,
java/awt/GridBagLayout.java:
Fixed documentation.
* java/awt/peer/ContainerPeer.java:
Reindented.
From-SVN: r58888
2002-11-07 13:01:34 +00:00
Jan Hubicka
c2905f7b49
* reg-stack.c (compensate_edge): Fix sanity check.
...
From-SVN: r58886
2002-11-07 10:21:49 +00:00
Michael Koch
3bb5c7a169
ICC_Profile.java: Added missing constants.
...
2002-11-07 Michael Koch <konqueror@gmx.de>
* java/awt/color/ICC_Profile.java:
Added missing constants.
* java/awt/color/ICC_ColorSpace.java
(getMinValue): Added dummy implementation.
(getMaxValue): Added dummy implementation.
* java/awt/datatransfer/DataFlavor.java
(imageFlavor): Added.
(isMimeTypeEqual): Must be final.
(getDefaultRepresentationClass): Must be non-static.
(getDefaultRepresentationClassAsString): Must be non-static.
* java/awt/dnd/DragSourceContext.java
(dragExit): Corrected argument.
(dragDropEnd): Corrected argument.
* java/awt/dnd/DragSourceListener.java.java
(dragExit): Corrected argument.
(dragDropEnd): Corrected argument.
* java/awt/font/TextHitInfo.java
(toString): Added stubbed implementation.
* java/awt/geom/PathIterator.java:
The constants must be static.
* java/awt/image/VolatileImage.java
(IMAGE_INCOMPATIBLE): Fixed typo.
* java/awt/image/renderable/RenderableImage.java
(HINTS_OBSERVED): Must be static.
* java/beans/BeanInfo.java:
Constants must be final.
From-SVN: r58885
2002-11-07 08:45:19 +00:00
GCC Administrator
d7899d8a40
Daily bump.
...
From-SVN: r58884
2002-11-07 08:17:13 +00:00
Geoffrey Keating
3cfe49dab8
Index: ChangeLog
...
2002-11-05 Geoffrey Keating <geoffk@apple.com>
* config.gcc: Don't create crtbegin, crtend on Darwin; do create
crt2.o. Rearrange t-darwin makefiles.
* crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
* unwind-dw2-fde-darwin.c: New.
* unwind-dw2-fde-glibc.c: Correct comment.
* unwind-dw2-fde.c (__register_frame_info_bases)
[DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
(classify_object_over_fdes): Use last_fde.
(add_fdes): Likewise.
(linear_search_fdes): Likewise.
* unwind-dw2-fde.h (struct object)
[DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
(last_fde): New.
* config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
(ENDFILE_SPEC): No crtend.o.
* config/t-darwin: New.
* config/i386/t-darwin: Delete.
* config/darwin-crt2.c: New.
* config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
or config/t-darwin.
Index: testsuite/ChangeLog
2002-11-05 Geoffrey Keating <geoffk@apple.com>
* g++.old-deja/g++.eh/badalloc1.C: XFAIL excess errors test on
Darwin.
From-SVN: r58877
2002-11-07 06:00:07 +00:00
Tom Tromey
12f256d42e
re PR libgcj/8481 (java.Random.nextInt(int) may return negative)
...
From svens@it.uu.se . For PR libgcj/8481.
* java/util/Random.java (nextInt(int)): Only use 31 bits.
From-SVN: r58876
2002-11-07 04:38:21 +00:00
David Edelsohn
5d7e6254c6
re PR target/8480 (reload ICEs for LAPACK code on powerpc64-linux)
...
PR target/8480
* config/rs6000/rs6000.md (movdi_internal64): Discourage
FPR to FPR moves.
From-SVN: r58873
2002-11-06 19:34:42 -05:00
Janis Johnson
4fc6ad0819
contrib.texi: Merge in the list from the Java web pages.
...
2002-11-06 Janis Johnson <janis187@us.ibm.com>
* doc/contrib.texi: Merge in the list from the Java web pages.
From-SVN: r58869
2002-11-07 00:03:54 +00:00
Tom Tromey
5bd717f157
gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header.
...
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in
a JNI header.
From-SVN: r58867
2002-11-06 22:10:30 +00:00
David O'Brien
fa123c5309
freebsd: Fix typo.
...
2002-11-06 David O'Brien <obrien@FreeBSD.org>
* config/sparc/freebsd: Fix typo.
From-SVN: r58865
2002-11-06 21:29:42 +00:00
John David Anglin
81e5bc3dff
* pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
...
From-SVN: r58863
2002-11-06 19:13:34 +00:00
Alexandre Oliva
021fa809e3
mips.md (call_value_multiple_internal2): Use dla for non-SImode addresses.
...
* config/mips/mips.md (call_value_multiple_internal2): Use dla for
non-SImode addresses.
From-SVN: r58862
2002-11-06 18:10:58 +00:00
Tom Tromey
7694d69a1b
jni.cc (array_from_valist): Assume that jlong won't be promoted.
...
* jni.cc (array_from_valist): Assume that jlong won't be
promoted.
From-SVN: r58859
2002-11-06 14:14:51 +00:00
GCC Administrator
ca01c43fca
Daily bump.
...
From-SVN: r58856
2002-11-06 08:17:10 +00:00
Tom Tromey
f263ebdd7f
* libjava.jacks/jacks.exp: New file.
...
From-SVN: r58850
2002-11-06 01:02:19 +00:00
Geoffrey Keating
0a288b9a25
* decl2.c (finish_file): Correct spelling.
...
From-SVN: r58847
2002-11-06 00:44:49 +00:00
Jonathan Wakely
93d87ec6f8
std_sstream.h (basic_stringbuf::str(const __string_type&)): Prefer data() to c_str() thus avoiding assigning the unnecessary NULL-terminator.
...
2002-11-05 Jonathan Wakely <cow@compsoc.man.ac.uk>
* include/std/std_sstream.h
(basic_stringbuf::str(const __string_type&)):
Prefer data() to c_str() thus avoiding assigning the
unnecessary NULL-terminator.
From-SVN: r58844
2002-11-06 00:05:35 +00:00
Tom Tromey
c034b45358
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: r58843
2002-11-06 00:01:01 +00:00
Benjamin Kosnik
112615e7d3
re PR libstdc++/8258 (basic_istream::readsome() with default buffer change stream state to ios_base::eofbit)
...
2002-11-05 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/8258
* include/bits/istream.tcc (istream::readsome): Don't set eofbit
for null buffer.
(istream::operator>>(_CharT*)): Use traits_type.
(istream::ws): Same.
(istream::operator>>(string)): Same.
* testsuite/27_io/istream_unformatted.cc (test11): Add.
From-SVN: r58840
2002-11-05 23:46:22 +00:00
Paolo Carlini
81646a3157
re PR libstdc++/8466 (basic_stringbuf::str(basic_string const&) modifies its argument)
...
2002-11-05 Paolo Carlini <pcarlini@unitus.it>
PR libstdc++/8466
* include/std/std_sstream.h
(basic_stringbuf::str(const __string_type&)):
Cannot use simple assignment since the COW-nature of v3
basic_string is not taken into account in basic_stringbuf.
* testsuite/27_io/stringstream_members.cc: Add test04 from PR.
From-SVN: r58838
2002-11-05 23:28:15 +00:00
Bob Wilson
e9577224cc
* config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
...
From-SVN: r58837
2002-11-05 21:36:49 +00:00
John David Anglin
49dd74ef26
* configure.target (hppa*): Define cpu_include_dir.
...
From-SVN: r58835
2002-11-05 21:24:37 +00:00
John David Anglin
fa3d9f57b0
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
2002-11-05 19:17:37 +00:00
John David Anglin
a9b11d4451
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
2002-11-05 16:51:10 +00:00
Benjamin Kosnik
cb9305420a
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
2002-11-05 16:49:42 +00:00