Kevin B Hendricks [Sat, 24 Mar 2001 03:36:08 +0000 (03:36 +0000)]
Fixed ChangeLog header
From-SVN: r40808
Kevin B Hendricks [Sat, 24 Mar 2001 03:26:28 +0000 (03:26 +0000)]
ppc_closure.S: New file.
* src/powerpc/ppc_closure.S: New file.
* src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
involving long long and register pairs.
(ffi_prep_closure): New function.
(flush_icache): Likewise.
(ffi_closure_helper_SYSV): Likewise.
* include/ffi.h.in (FFI_CLOSURES): Define on PPC.
(FFI_TRAMPOLINE_SIZE): Likewise.
(FFI_NATIVE_RAW_API): Likewise.
* Makefile.in: Rebuilt.
* Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
(TARGET_SRC_POWERPC): Likewise.
From-SVN: r40807
Richard Henderson [Sat, 24 Mar 2001 01:20:50 +0000 (17:20 -0800)]
iris4.h (ASM_OUTPUT_ASCII): Rename local variables to avoid shadowing arguments.
* config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables
to avoid shadowing arguments.
From-SVN: r40804
Per Bothner [Sat, 24 Mar 2001 01:13:30 +0000 (17:13 -0800)]
re PR java/1208 (Gcj can't compile a class file it generates.)
e
* verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE
macro for better error pin-pointing.
* java-tree.h: Fix typo in comment.
* jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR.
Don't include jsr/goto in exception range.
Check if start and end of exception range are the same (also TRY_EXPR).
Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false.
However, do emit the following goto even if try_block is empty.
Defer freeing exception_decl until after the finalizer, to make
sure the local isn't reused in the finalizer. Fixes PR java/1208.
* parse.y (java_complete_lhs): If the try-clause is empty, just
return the finally-clause and vice versa.
From-SVN: r40801
Per Bothner [Sat, 24 Mar 2001 00:59:57 +0000 (16:59 -0800)]
natDouble.cc (parseDouble): Cannot use errno to check for errors...
* java/lang/natDouble.cc (parseDouble): Cannot use errno to
check for errors, since we don't want to throw exception on
overflow/underflow. Instead, trim whitespace, and then check that
_strtod_r uses up all the rest of the string.
From-SVN: r40800
Per Bothner [Sat, 24 Mar 2001 00:21:24 +0000 (16:21 -0800)]
natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid for interfaces...
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the
ancestors array is invalid for interfaces, so do that *after*
check that the target type is not an interface.
From-SVN: r40797
Colin Howell [Fri, 23 Mar 2001 23:59:17 +0000 (23:59 +0000)]
Makefile.in (DO_X): Do not backslash single-quotes in backquotes (two places).
* Makefile.in (DO_X): Do not backslash single-quotes in
backquotes (two places).
From-SVN: r40796
Jakub Jelinek [Fri, 23 Mar 2001 22:12:55 +0000 (23:12 +0100)]
mangle.c (write_discriminator): Use `_0' for discriminator 1, not `_'.
* mangle.c (write_discriminator): Use `_0' for discriminator 1,
not `_'.
* cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
`_' not followed by a digit is invalid.
From-SVN: r40795
Jakub Jelinek [Fri, 23 Mar 2001 22:00:40 +0000 (23:00 +0100)]
varasm.c (make_decl_rtl): Don't append var_labelno discriminator to variable names where DECL_NAME is...
* varasm.c (make_decl_rtl): Don't append var_labelno discriminator
to variable names where DECL_NAME is different from
DECL_ASSEMBLER_NAME.
From-SVN: r40794
Greg Bumgardner [Fri, 23 Mar 2001 20:29:14 +0000 (20:29 +0000)]
ostream.tcc: Use __builtin_alloca.
2001-03-22 Greg Bumgardner <bumgard@roguewave.com>
* include/bits/ostream.tcc: Use __builtin_alloca.
From-SVN: r40793
Benjamin Kosnik [Fri, 23 Mar 2001 20:02:03 +0000 (20:02 +0000)]
misc-inst.cc (__sink_unused_warning): Move to...
2001-03-22 Benjamin Kosnik <bkoz@redhat.com>
* src/misc-inst.cc (__sink_unused_warning): Move to...
* src/locale-inst.cc (__sink_unused_warning): Move to...
* src/stl-inst.cc: Here.
* include/bits/c++config (_STL_NO_CONCEPT_CHECKS): Add define,
commented it out.
From-SVN: r40792
Jim Wilson [Fri, 23 Mar 2001 19:47:57 +0000 (19:47 +0000)]
Re-add missing debug info for weak aliases.
* varasm.c (make_decl_rtl): Add TREE_PUBLIC check to abort test.
(assemble_alias): Call make_decl_rtl.
From-SVN: r40791
Alexandre Petit-Bianco [Fri, 23 Mar 2001 19:42:25 +0000 (11:42 -0800)]
re PR java/1213 (gcj should check for incorrect CLASSPATH)
2001-03-22 Alexandre Petit-Bianco <apbianco@redhat.com>
* gcj.texi (Input Options): documented the check for attribute
`gnu.gcc.gccj-compiled' and the `-fforce-classes-archive-check' flag.
* java-tree.h (flag_force_classes_archive_check): Declared extern.
* jcf-parse.c (HANDLE_GCJCOMPILED_ATTRIBUTE): New macro.
(jcf_parse): Check for the right classes archive if necessary.
* jcf-reader.c (get_attribute): Define `MATCH_ATTRIBUTE' and use it.
(jcf_parse_fields): Fixed indentation.
* jcf-write.c (append_gcj_attribute): New function.
(generate_classfile): Compute the attribute count, invoke
`append_gcj_attribute'.
* jcf.h (typedef struct JCF): `seen_in_zip' and `java_source'
turned into bit fields. New bit field `right_zip.'
(JCF_ZERO): Set `right_zip' to zero.
* lang-options.h (-fforce-classes-archive-check): Added flag.
* lang.c (flag_force_classes_archive_check): New flag.
(lang_f_options): New entry `force-classes-archive-check.'
Fixes PR java/1213.
(http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01662.html)
From-SVN: r40788
Jeff Sturm [Fri, 23 Mar 2001 19:17:22 +0000 (19:17 +0000)]
prims.cc (_Jv_FindClassFromSignature): Check return of recursive call.
2000-03-23 Jeff Sturm <jsturm@one-point.com>
* prims.cc (_Jv_FindClassFromSignature): Check return of
recursive call. Do not abort on invalid signature; return NULL
instead.
From-SVN: r40787
Tom Tromey [Fri, 23 Mar 2001 19:15:44 +0000 (19:15 +0000)]
jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
* jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.
* java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField
unconditionally.
* include/jvm.h (_Jv_ResolveField): Declare.
* include/java-interp.h (_Jv_ResolveField): Don't declare.
* resolve.cc (_Jv_ResolveField): No longer conditional on
INTERPRETER.
From-SVN: r40785
Colin Howell [Fri, 23 Mar 2001 18:21:28 +0000 (18:21 +0000)]
* Makefile.in (DO_X): Do not backslash single-quotes in backquotes.
From-SVN: r40783
Andrew Haley [Fri, 23 Mar 2001 17:31:42 +0000 (17:31 +0000)]
gcj.texi (Configure-time Options): Add -fcheck-references.
2001-02-07 Andrew Haley <aph@redhat.com>
* gcj.texi (Configure-time Options): Add -fcheck-references.
* expr.c (build_java_indirect_ref): New function.
(java_check_reference): New function.
(build_java_array_length_access): Use build_java_indirect_ref to
check for null references.
(build_java_arrayaccess): Likewise.
(build_get_class): Likewise.
(build_field_ref): Likewise.
(invoke_build_dtable): Likewise.
(build_invokeinterface): Likewise.
* lang.c (lang_f_options): Add flag_check_references.
* jvspec.c (jvgenmain_spec): Add flag_check_references.
* java-tree.h (flag_check_references): New variable.
* lang.c (flag_check_references): Likewise.
* parse.y (patch_invoke): Use java_check_reference.
(patch_assignment): Allow for extra nesting in
_Jv_CheckArrayStore.
From-SVN: r40782
J"orn Rennecke [Fri, 23 Mar 2001 16:59:56 +0000 (16:59 +0000)]
* stor-layout.c (layout_type): Give OFFSET_TYPE a MODE_INT type.
From-SVN: r40781
Andrew Haley [Fri, 23 Mar 2001 14:16:33 +0000 (14:16 +0000)]
gcj.texi (Configure-time Options): Add -fcheck-references.
2001-02-07 Andrew Haley <aph@redhat.com>
* gcj.texi (Configure-time Options): Add -fcheck-references.
* expr.c (build_java_indirect_ref): New function.
(build_java_array_length_access): Use build_java_indirect_ref to
check for null references.
(build_java_arrayaccess): Likewise.
(build_get_class): Likewise.
(build_field_ref): Likewise.
(invoke_build_dtable): Likewise.
(build_invokeinterface): Likewise.
* lang.c (lang_f_options): Add flag_check_references.
* jvspec.c (jvgenmain_spec): Add flag_check_references.
* java-tree.h (flag_check_references): New variable.
* lang.c (flag_check_references): Likewise.
From-SVN: r40780
Jakub Jelinek [Fri, 23 Mar 2001 12:04:11 +0000 (13:04 +0100)]
decl.c (local_names): Define.
* decl.c (local_names): Define.
(push_local_name): New.
(grok_reference_init): Return init if initializing static reference
variable with non-constant instead of emitting it.
Move expand_static_init call to cp_finish_decl.
(layout_var_decl): Call push_local_name.
(maybe_commonize_var): Allow inlining functions even if they have
static local variables, use comdat_linkage for them if flag_weak.
(check_initializer): Call obscure_complex_init if
grok_reference_init returned non-zero.
(save_function_data): Clear x_local_names.
(pop_cp_function_context): Free x_local_names.
(mark_inlined_fns): Remove.
(mark_lang_function): Mark x_local_names.
(lang_mark_tree): Don't mark DECL_ACCESS for DECL_DISCRIMINATOR_P.
Mark inlined_fns as tree, remove call to mark_inlined_fns.
* class.c (alter_access): Ensure DECL_ACCESS is never set if
DECL_DISCRIMINATOR_P.
* cp-tree.h (cp_language_function): Add x_local_names.
(lang_decl_flags): Add discriminator into u2.
(lang_decl_inlined_fns): Remove.
(lang_decl): inlined_fns is now a TREE_VEC.
(DECL_DISCRIMINATOR_P, DECL_DISCRIMINATOR): Define.
* optimize.c (inlinable_function_p): DECL_INLINED_FNS is now a
TREE_VEC, not a custom structure.
(optimize_function): Likewise.
* mangle.c (discriminator_for_local_entity): Discriminate among
VAR_DECL local entities.
* search.c (dfs_access_in_type): If DECL_DISCRIMINATOR_P, DECL_ACCESS
is not valid.
* g++.old-deja/g++.other/mangle3.C: New test.
From-SVN: r40779
GCC Administrator [Fri, 23 Mar 2001 08:16:08 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40777
Tom Tromey [Fri, 23 Mar 2001 05:57:00 +0000 (05:57 +0000)]
field.out: New file.
* libjava.jni/field.out: New file.
* libjava.jni/field.c: New file.
* libjava.jni/field.java: New file.
From-SVN: r40776
Bryce McKinlay [Fri, 23 Mar 2001 05:18:16 +0000 (05:18 +0000)]
re PR libgcj/1736 ([irix 6.5] Cannot create libgcj - Arg list too long)
Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva
for libtool hacking.
* Makefile.am (libgcj.la): New explicit rule. Echo the list of objects
to a temporary file, then invoke libtool with the -objectlist
paramater.
(libgcjx.la): Likewise.
* Makefile.in: Rebuilt.
From-SVN: r40775
Bryce McKinlay [Fri, 23 Mar 2001 05:16:13 +0000 (05:16 +0000)]
gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c.
* gjavah.c (cxx_keywords): Update from the definitive list in cp/lex.c.
* lex.c (cxx_keywords): Likewise.
From-SVN: r40773
Joerg Brunsmann [Fri, 23 Mar 2001 02:35:39 +0000 (02:35 +0000)]
Context.java (SECURITY_CREDENTIALS): Fix typo.
2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
* javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo.
From-SVN: r40771
Bryce McKinlay [Fri, 23 Mar 2001 01:49:11 +0000 (01:49 +0000)]
[multiple changes]
2001-03-23 Bryce McKinlay <bryce@albatross.co.nz>
* extend.texi: Document the "java_interface" attribute.
java/:
2001-03-21 Bryce McKinlay <bryce@albatross.co.nz>
* gjavah.c (process_file): Mark interface definitions with
"__attribute__ ((java_interface))".
cp/:
2001-03-22 Bryce McKinlay <bryce@albatross.co.nz>
Add support for Java interface method calls.
* cp-tree.h (struct lang_type): Add java_interface flag.
(TYPE_JAVA_INTERFACE): New macro.
* tree.c (cp_valid_lang_attribute): Handle "java_interface" attribute
by setting TYPE_JAVA_INTERFACE.
* call.c (java_iface_lookup_fn): New static.
(build_over_call): If calling a method declared in a
TYPE_JAVA_INTERFACE, call build_java_interface_fn_ref to generate the
expression which resolves the function address.
(build_java_interface_fn_ref): New function.
From-SVN: r40769
Tom Tromey [Fri, 23 Mar 2001 01:26:33 +0000 (01:26 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (ffitest_LDFLAGS): New macro.
From-SVN: r40768
Zack Weinberg [Fri, 23 Mar 2001 01:16:22 +0000 (01:16 +0000)]
mkconfig.sh: Use a subshell with redirected stdout...
* mkconfig.sh: Use a subshell with redirected stdout,
instead of closing stdout and confusing commands that run
afterward. Throw away output of cmp.
From-SVN: r40765
Gordon Sadler [Thu, 22 Mar 2001 21:48:15 +0000 (21:48 +0000)]
* Makefile.in (stage1_build): Pass CFLAGS to stage1_build.
From-SVN: r40761
Jan Hubicka [Thu, 22 Mar 2001 21:17:42 +0000 (22:17 +0100)]
i386.md (zero_extendsidi2_32): Break out from ...
* i386.md (zero_extendsidi2_32): Break out from ...
(zero_extendsidi2): ... here ; turn to expander.
(zero_extendsidi2_rex64): New.
(extendsidi2_32): Break out from ...
(extendsidi2): ... here ; turn to expander.
(extendsidi2_rex64): New.
(zero_extendhidi2, zero_extendqidi2, extendhidi2, extendqidi2): New.
(trunc?f?f splitters): Add 64bit versions.
From-SVN: r40759
Jan Hubicka [Thu, 22 Mar 2001 20:43:26 +0000 (21:43 +0100)]
i386.md (pushsi, [...]): Disable.
* i386.md (pushsi, pushsi2_prologue): Disable.
(pushsi2_rex64): New.
(movabs?i_1_rex64, movabs?i_2_rex64): New.
(movqi_ext_1): Disable for 64bit.
(movqi_ext_1_rex64): New.
(pushdi2_rex64): New pattern, peep2s and splitter.
(pushdi2_prologue_rex64): New pattern.
(popdi1_epilogue_rex64, popdi1, movdi_xor_rex64, movdi_or_rex64):
Likewise.
(movdi splitters): Disable for 64bit.
(movdi_1_rex64): New pattern, peep2s and splitters.
(swapdi): New pattern.
(pushsf): Disable for 64bit.
(pushsf_rex64): New pattern and splitter.
(pushdf_nointeger): Disable for 64bit.
(pushdf_integer): Handle the 64bit case.
(pushtf): Likewise; update splitters.
From-SVN: r40758
Tom Tromey [Thu, 22 Mar 2001 19:03:01 +0000 (19:03 +0000)]
* Makefile.am (gctest_LDFLAGS): Use -shared-libgcc.
From-SVN: r40756
Richard Henderson [Thu, 22 Mar 2001 18:48:52 +0000 (10:48 -0800)]
mkconfig.sh: Include insn-flags.h.
* mkconfig.sh: Include insn-flags.h.
* Makefile.in (CONFIG_H): Include insn-flags.h.
(lots of objects): Remove insn-codes.h and insn-flags.h.
* alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
v850/v850.c, vax/vax.c:
Don't include insn-flags.h.
* diagnostic.c, expr.h, reload.c, toplev.c:
Don't include insn-codes.h.
* builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
c4x/c4x.c, i960/i960.c, mips/mips.c:
Don't include insn-codes.h or insn-flags.h.
* genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
or insn-flags.h in the generated code.
* genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
(main): Forward declare struct rtx_def.
From-SVN: r40754
Richard Henderson [Thu, 22 Mar 2001 18:47:21 +0000 (10:47 -0800)]
Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
* Make-lang.in (cp/except.o): Don't depend on insn-flags.h.
* except.c: Don't include it.
From-SVN: r40753
Gerald Pfeifer [Thu, 22 Mar 2001 18:44:21 +0000 (19:44 +0100)]
parse.y (bad_decl, [...]): New nonterminals.
* parse.y (bad_decl, template_arg_list_ignore, arg_list_ignore):
New nonterminals.
(data_def, component_decl): Add reductions to bad_decl.
Co-Authored-By: Joe Buck <jbuck@synopsys.com>
From-SVN: r40752
Alexandre Oliva [Thu, 22 Mar 2001 18:13:39 +0000 (18:13 +0000)]
ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP.
Re-installed:
2001-01-02 Laurynas Biveinis <lauras@softhome.net>
* ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP. Do not add
'-DPIC' to ac_cv_prog_cc_pic for DJGPP.
* ltcf-cxx.sh: Likewise.
* ltcf-gcj.sh: Likewise.
From-SVN: r40749
Marcus G. Daniels [Thu, 22 Mar 2001 17:47:15 +0000 (17:47 +0000)]
jni.cc (add_char): Handle `.' like `/'.
2001-03-22 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (add_char): Handle `.' like `/'.
From-SVN: r40748
Jakub Jelinek [Thu, 22 Mar 2001 17:00:28 +0000 (18:00 +0100)]
method.c (do_build_assign_ref): Don't use build_modify_expr for anonymous aggregates...
* method.c (do_build_assign_ref): Don't use build_modify_expr for
anonymous aggregates, since they don't have assignment operator
method.
* decl.c (fixup_anonymous_aggr): Disallow ctors, dtors and copy
assignment operators for anonymous structure fields.
* g++.old-deja/g++.other/anon8.C: New test.
From-SVN: r40746
Jim Blandy [Thu, 22 Mar 2001 15:15:18 +0000 (15:15 +0000)]
cp-demangle.c (string_list_delete): Don't forget to free the actual contents of the string.
* cp-demangle.c (string_list_delete): Don't forget to free the
actual contents of the string.
From-SVN: r40744
Gerald Pfeifer [Thu, 22 Mar 2001 14:27:11 +0000 (15:27 +0100)]
* MAINTAINERS: Add myself as "documentation co-maintainer".
From-SVN: r40738
Joseph Myers [Thu, 22 Mar 2001 12:01:34 +0000 (12:01 +0000)]
invoke.texi (-ffast-math): Remove duplicate line about __FAST_MATH__.
* invoke.texi (-ffast-math): Remove duplicate line about
__FAST_MATH__.
From-SVN: r40737
Joseph Myers [Thu, 22 Mar 2001 11:54:08 +0000 (11:54 +0000)]
gcc.texi: Remove more obsolete documentation of bugs and installation problems.
* gcc.texi: Remove more obsolete documentation of bugs and
installation problems.
From-SVN: r40735
Jason Merrill [Thu, 22 Mar 2001 09:30:16 +0000 (04:30 -0500)]
new
From-SVN: r40734
GCC Administrator [Thu, 22 Mar 2001 08:16:08 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40732
Alexandre Oliva [Thu, 22 Mar 2001 06:48:32 +0000 (06:48 +0000)]
ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.198.
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.198.
From-SVN: r40731
Bryce McKinlay [Thu, 22 Mar 2001 06:37:16 +0000 (06:37 +0000)]
Method.java (getExceptionTypes): Call getType() to initialize if exception_types is null.
* java/lang/reflect/Method.java (getExceptionTypes): Call getType() to
initialize if exception_types is null.
* java/lang/reflect/Constructor.java: Likewise.
* java/lang/reflect/natConstructor.cc (getType): Initialize
exception_types to an empty Object array.
From-SVN: r40730
Kazu Hirata [Thu, 22 Mar 2001 03:03:26 +0000 (03:03 +0000)]
h8300.md (movsi_h8300hs): Split the 2nd alternative into two parts.
2001-03-21 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.md (movsi_h8300hs): Split the 2nd alternative
into two parts.
From-SVN: r40725
Jason Merrill [Thu, 22 Mar 2001 00:55:13 +0000 (19:55 -0500)]
pt.c (instantiate_decl): Abort if we see a member constant instantiation that doesn't already have its...
* pt.c (instantiate_decl): Abort if we see a member constant
instantiation that doesn't already have its initializer.
Downgrade explicit instantiation without definition to pedwarn.
* cp-tree.h (DECL_TINFO_FN_P, SET_DECL_TINFO_FN_P): Remove.
* class.c (build_vtable_entry): Don't check DECL_TINFO_FN_P.
(import_export_decl): Check tinfo_decl_p, not DECL_TINFO_FN_P.
* cp-tree.h (CLASSTYPE_VTABLE_NEEDS_WRITING): Remove.
(pending_vtables): Remove.
* decl2.c (pending_vtables): Remove.
(import_export_vtable): Use CLASSTYPE_INTERFACE_ONLY, not
CLASSTYPE_VTABLE_NEEDS_WRITING.
(import_export_class): Likewise.
(init_decl2): Don't mark pending_vtables.
* lex.c (handle_pragma_vtable): Just sorry.
* pt.c (instantiate_class_template): Don't mess with
CLASSTYPE_VTABLE_NEEDS_WRITING.
(mark_class_instantiated): Likewise.
* ptree.c (print_lang_type): Don't print it.
* semantics.c (begin_class_definition): Don't set it.
* pt.c (template_tail): Replace with last_pending_template.
(maybe_templates, maybe_template_tail): Remove.
(add_pending_template): Adjust.
(instantiate_pending_templates): Adjust.
* cp-tree.h (struct saved_scope): Remove lang_stack field.
(current_lang_stack): Remove.
* decl.c (maybe_push_to_top_level): Don't initialize it.
(duplicate_decls): Use current_lang_depth.
(xref_basetypes): Likewise.
* class.c (current_lang_depth): New fn.
(push_lang_context): Use more varray functionality.
(pop_lang_context): Likewise.
From-SVN: r40724
Jason Merrill [Thu, 22 Mar 2001 00:53:50 +0000 (19:53 -0500)]
collect2.c (is_ctor_dtor): Always use '_' in the file fn names, not '.' or '$'.
* collect2.c (is_ctor_dtor): Always use '_' in the file fn names,
not '.' or '$'.
* tree.c (FILE_FUNCTION_FORMAT): Likewise.
* varasm.c (CHKR_PREFIX): Likewise.
* error.c (GLOBAL_THING): Always use '__'.
From-SVN: r40723
Richard Kenner [Thu, 22 Mar 2001 00:21:16 +0000 (00:21 +0000)]
gcse.c (hash_scan_set): An expression is not anticipatible if it is part of a multi-SET insn.
* gcse.c (hash_scan_set): An expression is not anticipatible if it
is part of a multi-SET insn.
From-SVN: r40722
Tom Tromey [Wed, 21 Mar 2001 23:55:58 +0000 (23:55 +0000)]
* config-ml.in: Handle GCJ and GCJFLAGS.
From-SVN: r40721
Alexandre Petit-Bianco [Wed, 21 Mar 2001 23:50:29 +0000 (15:50 -0800)]
re PR java/2333 (ICE in mark_reference_fields)
2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com>
* class.c (layout_class): Fixed push_super_field's second
argument. Fixes PR java/2333.
(jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's
too early to lay innerclasses out.
(http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01582.html)
From-SVN: r40719
Mark Mitchell [Wed, 21 Mar 2001 21:12:40 +0000 (21:12 +0000)]
* class.c (build_clone): Clear DECL_ASSEMBLER_NAME.
From-SVN: r40717
Richard Kenner [Wed, 21 Mar 2001 20:19:21 +0000 (20:19 +0000)]
cse.c (find_comparison_args): Remove previous change.
* cse.c (find_comparison_args): Remove previous change.
* ifcvt.c (noce_process_if_block): When moving an insn, remove any
REG_EQUAL notes.
From-SVN: r40715
Richard Kenner [Wed, 21 Mar 2001 20:14:41 +0000 (20:14 +0000)]
* config/i386/i386.md (conditional_trap): Remove warning.
From-SVN: r40714
Jim Blandy [Wed, 21 Mar 2001 20:01:40 +0000 (20:01 +0000)]
cp-demangle.c (struct demangling_def): New fields: is_constructor and is_destructor.
* cp-demangle.c (struct demangling_def): New fields:
is_constructor and is_destructor.
(demangling_new): Initialize them.
(demangle_ctor_dtor_name): Set them, if we detect a constructor
or destructor.
(demangle_v3_with_details, is_gnu_v3_mangled_ctor,
is_gnu_v3_mangled_dtor): New functions.
From-SVN: r40713
Richard Kenner [Wed, 21 Mar 2001 19:49:54 +0000 (19:49 +0000)]
recog.c (push_operand): Fix error in last change that caused undefined symbol on many targets.
* recog.c (push_operand): Fix error in last change that caused
undefined symbol on many targets.
From-SVN: r40712
Richard Kenner [Wed, 21 Mar 2001 19:43:36 +0000 (14:43 -0500)]
sdbout.c: #include ggc.h.
* sdbout.c: #include ggc.h.
(sdbout_init): Move to end of file.
Call ggc_add_tree_root for anonymous_types.
(sdbout_symbol): Use DECL_NAME for local, not DECL_ASSEMBLER_NAME.
(sdbout_one_type): Use DECL_NAME for field name.
* Makefile.in (sdbout.o): Show includes ggc.h.
From-SVN: r40710
Jim Blandy [Wed, 21 Mar 2001 19:37:53 +0000 (19:37 +0000)]
demangle.h (enum gnu_v3_constructor_kinds, [...]): New declarations.
* demangle.h (enum gnu_v3_constructor_kinds,
is_gnu_v3_mangled_ctor, enum gnu_v3_destructor_kinds,
is_gnu_v3_mangled_dtor): New declarations.
From-SVN: r40709
Jan Hubicka [Wed, 21 Mar 2001 19:35:48 +0000 (20:35 +0100)]
i386.c (override_options): Default ix86_regparm to REGPARM_MAX.
* i386.c (override_options): Default ix86_regparm to REGPARM_MAX.
(override_options): Use properlimits for preferred_stack_boundary.
(ix86_valid_type_attribute_p): Disable stdcall and cdecl attributes
on x86_64.
(ext_register_operand): Accept DImode.
(load_pic_register): Abort on 64bit.
(gen_push): Use Pmode instead of SImode.
(ix86_save_reg): Pic reg is never used on 64bit.
(ix86_expand_prologue): Likewise.
(ix86_emit_save_regs): Use Pmode instead of SImode.
(legitimate_address_p): Check displacement for 64bit.
(print_operand): Avoid outputting of (%rip) on 64bit.
(print_operand_address): Output (%rip) where possible.
(split_di): Abort on 64bit registers.
(ix86_expand_branch): DImode comparison is simple for x86_64.
(memory_address_length): Recognize memory addresses formed using PRE/POST modify.
(ix86_data_alignment, ix86_local_alignment): Align arrays to 16 bytes for x86_64.
* i386.h (TARGET_USE_SAHF): Disable for 64bit.
From-SVN: r40708
Michael Chastain [Wed, 21 Mar 2001 19:34:08 +0000 (19:34 +0000)]
* Makefile.in: all-m4 depends on all-texinfo.
From-SVN: r40707
Zack Weinberg [Wed, 21 Mar 2001 19:29:33 +0000 (19:29 +0000)]
make-temp-file.c: Always default DIR_SEPARATOR to '/'.
* make-temp-file.c: Always default DIR_SEPARATOR to '/'.
Don't default P_tmpdir to anything. Try /var/tmp before
/usr/tmp.
From-SVN: r40706
Theodore Papadopoulo [Wed, 21 Mar 2001 19:26:49 +0000 (20:26 +0100)]
basic_file.h: Fix typos in comments.
2001-03-21 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* intclude/bits/basic_file.h: Fix typos in comments.
From-SVN: r40705
Tom Tromey [Wed, 21 Mar 2001 18:52:24 +0000 (18:52 +0000)]
uesc.java: New file.
* libjava.compile/uesc.java: New file.
* libjava.compile/uesc.xfail: New file.
From-SVN: r40704
Tom Tromey [Wed, 21 Mar 2001 18:50:02 +0000 (18:50 +0000)]
* lex.c (java_read_unicode): Only accept leading `u's.
From-SVN: r40702
Tom Tromey [Wed, 21 Mar 2001 18:43:03 +0000 (18:43 +0000)]
configure: Rebuilt.
* configure: Rebuilt.
* configure.in (GCJFLAGS): Subst.
* Makefile.in: Rebuilt.
* Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc.
(gij_LDFLAGS): Likewise.
(JC1FLAGS): Added GCJFLAGS and removed -g.
From-SVN: r40700
Rod Stewart [Wed, 21 Mar 2001 18:38:16 +0000 (18:38 +0000)]
gcconfig.h: Check for `__arm__', not `arm'.
2001-01-23 Rod Stewart <stewart@lab43.org>
* gcconfig.h: Check for `__arm__', not `arm'.
From-SVN: r40698
Tom Tromey [Wed, 21 Mar 2001 18:35:41 +0000 (18:35 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (gctest_LDFLAGS): new macro.
From-SVN: r40697
Jan Hubicka [Wed, 21 Mar 2001 17:54:00 +0000 (18:54 +0100)]
* recog.c (push_operand): Recognize new format of push instructions.
From-SVN: r40694
Tom Tromey [Wed, 21 Mar 2001 17:23:09 +0000 (17:23 +0000)]
re PR libgcj/2338 (RandomAccessFile does not create the file if not found)
* java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in
read/write case. Fixes PR libgcj/2338.
From-SVN: r40692
Mark Mitchell [Wed, 21 Mar 2001 17:19:54 +0000 (17:19 +0000)]
mangle.c (mangle_decl_string): Mangle the names of overloaded operators, even when they have `extern "C"' linkage.
* mangle.c (mangle_decl_string): Mangle the names of overloaded
operators, even when they have `extern "C"' linkage.
From-SVN: r40690
Jan Hubicka [Wed, 21 Mar 2001 10:12:20 +0000 (11:12 +0100)]
i386.md (pushqi1): New.
* i386.md (pushqi1): New.
* i386-protos.h (x86_64_general_operand, x86_64_szext_general_operand,
x86_64_nonmemory_operand, x86_64_szext_nonmemory_operand,
x86_64_immediate_operand, x86_64_immediate_operand,
x86_64_zext_immediate_operand): Declare.
* i386.c (x86_64_general_operand, x86_64_szext_general_operand,
x86_64_nonmemory_operand, x86_64_szext_nonmemory_operand,
x86_64_immediate_operand, x86_64_immediate_operand,
x86_64_zext_immediate_operand): define.
* i386.h (PREDICATE_CODES): Add new predicates.
From-SVN: r40689
John Wehle [Wed, 21 Mar 2001 09:46:20 +0000 (09:46 +0000)]
* encoding.c (REAL_TYPE): Define.
From-SVN: r40687
Jan Hubicka [Wed, 21 Mar 2001 09:41:11 +0000 (09:41 +0000)]
i386.md (pophi1, [...]): Remove.
* i386.md (pophi1, popqi1, pushqi1): Remove.
* expr.c (emit_single_push_insn): New function.
(move_by_pieces): Accept NULL as destination for push instructions.
(gen_push_operand): Kill.
(emit_push_insn): Pass NULL when pushing; avoid updating of
stack_pointer_delta.
* expr.h (gen_push_operand): Kill.
From-SVN: r40686
GCC Administrator [Wed, 21 Mar 2001 08:16:38 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40685
Zack Weinberg [Wed, 21 Mar 2001 07:29:37 +0000 (07:29 +0000)]
choose-temp.c: Split off make_temp_file...
* choose-temp.c: Split off make_temp_file, and the code
duplicated between it and choose_temp_base, into...
* make-temp-file.c: ... here; new file.
* Makefile.in (CFILES): Add make-temp-file.c.
(REQUIRED_OFILES): Add make-temp-file.o.
From-SVN: r40683
Loren J. Rittle [Wed, 21 Mar 2001 03:37:36 +0000 (03:37 +0000)]
* MAINTAINERS: Add myself to write after approval list.
From-SVN: r40682
Richard Kenner [Wed, 21 Mar 2001 01:14:20 +0000 (01:14 +0000)]
rtl.texi (COMPARE): Clarify documentation and reference section on comparisons.
* rtl.texi (COMPARE): Clarify documentation and reference section
on comparisons.
From-SVN: r40681
Tom Tromey [Tue, 20 Mar 2001 22:57:20 +0000 (22:57 +0000)]
* jcf-parse.c (read_class): Initialize `class'.
From-SVN: r40678
Matt Kraai [Tue, 20 Mar 2001 22:53:52 +0000 (22:53 +0000)]
jcf_parse.c (jcf_parse): Eliminate unused variable.
2001-03-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
* jcf_parse.c (jcf_parse): Eliminate unused variable.
From-SVN: r40676
Stan Shebs [Tue, 20 Mar 2001 22:01:49 +0000 (22:01 +0000)]
objc-act.c (get_static_reference): Use NULL_TREE.
* objc/objc-act.c (get_static_reference): Use NULL_TREE.
(get_object_reference): Ditto.
(error_with_ivar): Use error_with_file_and_line.
(warn_with_method): Use warning_with_file_and_line.
From-SVN: r40672
Tom Tromey [Tue, 20 Mar 2001 20:16:15 +0000 (20:16 +0000)]
* libgcc-std.ver: Added __fixunssfsi and __fixunsdfsi.
From-SVN: r40671
Richard Henderson [Tue, 20 Mar 2001 19:48:43 +0000 (11:48 -0800)]
Fix merge error.
From-SVN: r40668
Mark Mitchell [Tue, 20 Mar 2001 19:43:41 +0000 (19:43 +0000)]
tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for variables that are TREE_PUBLIC, even if not TREE_STATIC.
* tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for
variables that are TREE_PUBLIC, even if not TREE_STATIC.
From-SVN: r40667
Richard Henderson [Tue, 20 Mar 2001 19:39:45 +0000 (11:39 -0800)]
gen-num-limits.cc: Instantiate for wchar_t.
* src/gen-num-limits.cc: Instantiate for wchar_t.
* config/os/aix/bits/ctype_base.h (mask): Use unsigned int.
From-SVN: r40666
DJ Delorie [Tue, 20 Mar 2001 18:39:17 +0000 (13:39 -0500)]
fix date
From-SVN: r40665
DJ Delorie [Tue, 20 Mar 2001 18:22:38 +0000 (13:22 -0500)]
Makefile.in (install-libgcc): Pass complete list of variables.
* Makefile.in (install-libgcc): Pass complete list of variables.
(install-multilib): Ditto.
From-SVN: r40664
David Billinghurst [Tue, 20 Mar 2001 17:42:56 +0000 (17:42 +0000)]
cygwin.h: Declare ctor_section, dtor_section drectve_section, switch_to_section.
* config/i386/cygwin.h: Declare ctor_section, dtor_section drectve_section,
switch_to_section.
* winnt.c: Declare functions associated_type, gen_stdcall_suffix,
i386_pe_dllexport_p, i386_pe_dllimport_p, i386_pe_mark_dllexport,
i386_pe_mark_dllimport.
* config/i386/cygwin.h: Include <stdio.h> Declare and constify functions
i386_pe_*.
* config/i386/winnt.c: Include "tm_p.h" and "toplev.h" Constify i386_pe_*
functions with char * arguments.
From-SVN: r40661
Jason Merrill [Tue, 20 Mar 2001 16:59:44 +0000 (11:59 -0500)]
vec.cc (__cxa_vec_cleanup): New fn.
* libsupc++/vec.cc (__cxa_vec_cleanup): New fn.
(__cxa_vec_ctor, __cxa_vec_cctor, __cxa_vec_dtor): Call it.
* libsupc++/cxxabi.h: Declare it.
From-SVN: r40657
Jason Merrill [Tue, 20 Mar 2001 16:54:17 +0000 (11:54 -0500)]
* cplus-dem.c (main): Skip initial $.
From-SVN: r40655
Alexandre Oliva [Tue, 20 Mar 2001 11:00:01 +0000 (11:00 +0000)]
sh.md (movsf_ie): Fix output patterns for fpul load and store.
* config/sh/sh.md (movsf_ie): Fix output patterns for fpul load
and store.
(movsi_ie): Introduce fpul store.
From-SVN: r40653
Phil Blundell [Tue, 20 Mar 2001 10:49:38 +0000 (10:49 +0000)]
20010320-1.c: New test.
2001-03-20 Philip Blundell <philb@gnu.org>
* gcc.c-torture/compile/
20010320-1.c: New test.
From-SVN: r40651
Warren Levy [Tue, 20 Mar 2001 10:05:45 +0000 (10:05 +0000)]
TimeZone.java: Sync up with Classpath.
* java/util/TimeZone.java: Sync up with Classpath. Includes new
and corrected SimpleTimeZone's for the timezones hash table.
From-SVN: r40650
Alan Modra [Tue, 20 Mar 2001 08:54:56 +0000 (08:54 +0000)]
Makefile.in (OBJS): Remove hashtab.o (canadian cross fix)...
* Makefile.in (OBJS): Remove hashtab.o (canadian cross fix)
http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01672.html
From-SVN: r40649
GCC Administrator [Tue, 20 Mar 2001 08:16:08 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40647
Stan Shebs [Tue, 20 Mar 2001 02:57:28 +0000 (02:57 +0000)]
objc-act.c (maybe_objc_method_name): Remove, never called.
2001-03-19 Stan Shebs <shebs@apple.com>
* objc/objc-act.c (maybe_objc_method_name): Remove, never called.
* c-lang.c (maybe_objc_method_name): Ditto.
* c-tree.h (maybe_objc_method_name): Remove decl.
From-SVN: r40646
Tom Tromey [Tue, 20 Mar 2001 00:12:07 +0000 (00:12 +0000)]
* gcc.c (init_gcc_specs): Fix comment.
From-SVN: r40645
Mark Mitchell [Mon, 19 Mar 2001 23:50:04 +0000 (23:50 +0000)]
Compute DECL_ASSEMBLER_NAME lazily.
* tree.h (DECL_ASSEMBLER_NAME): Compute it lazily.
(DECL_ASSEMBLER_NAME_SET_P): New macro.
(SET_DECL_ASSEMBLER_NAME): Likewise.
(COPY_DECL_ASSEMBLER_NAME): Likewise.
(set_decl_assembler_name): Declare.
(lang_set_decl_assembler_name): Likewise.
* tree.c (lang_set_decl_assembler_name): New variab.e
(set_decl_assembler_name): New function.
(init_obstacks): Set lang_set_decl_assembler_name.
(build_decl): Don't set DECL_ASSEMBLER_NAME.
* c-decl.c (duplicate_decls): Use SET_DECL_ASSEMBLER_NAME,
COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
where it's not necessary.
(builtin_function): Likewise.
(finish_decl): Likewise.
* dbxout.c (dbxout_type_methods): Likewise.
* ggc-common.c (ggc_mark_trees): Likewise.
* profile.c (output_func_start_profiler): Likewise.
* varasm.c (make_decl_rtl): Likewise.
* class.c (get_vtable_decl): Use SET_DECL_ASSEMBLER_NAME,
COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
where it's not necessary.
(add_method): Remove optimization involving comparison of
DECL_ASSEMBLER_NAME.
(build_vtbl_or_vbase_field): Use SET_DECL_ASSEMBLER_NAME,
COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
where it's not necessary.
(check_methods): Likewise.
(build_clone): Likewise.
(built_vtt): Likewise.
* cp-tree.h (DECL_NEEDED_P): Likewise.
* decl.c (pushtag): Likewise.
(duplicate_decls): Likewise.
(pushdecl): Likewise.
(builtin_function): Likewise.
(build_library_fn_1): Set DECL_LANGUAGE for library functions.
(build_cp_library_fn): Likewise.
(maybe_commonize_var): Use SET_DECL_ASSEMBLER_NAME,
COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
where it's not necessary.
(make_rtl_for_nonlocal_decl): Likewise.
(cp_finish_decl): Likewise.
(grokfndecl): Likewise.
(grokvardecl): Likewise.
(grokdeclarator): Likewise.
(start_function): Likewise.
(cp_missing_return_ok_p): Likewise.
* decl2.c (grokclassfn): Likewise.
(check_classfn): Likewise.
(finish_static_data_member_decl): Likewise.
(grokfield): Likewise.
* error.c (GLOBAL_IORD_P): Remove.
(dump_global_iord): Improve output.
(dump_decl): Avoid using DECL_ASSEMBLER_NAME.
* except.c (nothrow_libfn_p): Summarily reject any function not in
namespace-scope.
* init.c (build_java_class_ref): Don't explicitly set
DECL_ASSEMBLER_NAME after calling mangle_decl.
* mangle.c (mangle_decl_string): Handle extern "C" functions.
(mangle_decl): Set the DECL_ASSEMBLER_NAME for the decl.
* method.c (set_mangled_name_for_decl): Don't explicitly set
DECL_ASSEMBLER_NAME after calling mangle_decl.
(make_thunk): Explicitly set the DECL_ASSEMBLER_NAME and
IDENTIFIER_GLOBAL_VALUE for the thunk.
* pt.c (set_mangled_name_for_template_decl): Remove.
(check_explicit_specialization): Don't use it.
(looup_template_class): Don't set DECL_ASSEMBLER_NAME.
(tsubst_friend_function): Likewise.
(tsubst_decl): Likewise.
(regenerate_decl_from_template): Use COPY_DECL_ASSEMBLER_NAME.
* rtti.c (get_tinfo_decl): Use SET_DECL_ASSEMBLER_NAME,
COPY_DECL_ASSEMBLER_NAME, etc. Don't set DECL_ASSEMBLER_NAME
where it's not necessary.
(tinfo_base_init): Likewise.
(create_real_tinfo_var): Likewise.
* search.c (looup_field_1): Likewise.
* semantics.c (finish_named_return_value): Likewise.
* tree.c (init_tree): Set lang_set_decl_assembler_name.
* com.c (builtin_function): Use SET_DECL_ASSEMBLER_NAME.
* class.c (build_class_ref): Use SET_DECL_ASSEMBLER_NAME.
(layout_class): Likewise.
(layout_class_method): Likewise.
(emit_register_classes): Likewise.
* decl.c (builtin_function): Likewise.
(give_name_to_locals): Likewise.
From-SVN: r40642
Per Bothner [Mon, 19 Mar 2001 23:31:14 +0000 (15:31 -0800)]
URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" "../../xxx" to "/xxx".
* java/net/URLStreamHandler.java (parseURL): Fix bug which would
"canonicalize" "../../xxx" to "/xxx".
From-SVN: r40641
Mark Wielaard [Mon, 19 Mar 2001 23:00:18 +0000 (23:00 +0000)]
ArrayList.java: Remove RCS keywords from comments
* java/util/ArrayList.java: Remove RCS keywords from comments
* java/util/BasicMapEntry.java: idem
* java/util/Dictionary.java: idem
* java/util/HashSet.java: idem
* java/util/EventObject.java: reindent
* java/util/Properties.java: idem
* java/util/SortedMap.java: idem
* java/util/Enumeration.java: Merge with Classpath
* java/util/EventListener.java: idem
* java/util/Observable.java: idem
* java/util/Observer.java: idem
* java/util/Stack.java: idem
From-SVN: r40639