Commit Graph

39214 Commits

Author SHA1 Message Date
Joseph Myers c21cd8b1a1 cpp.texi, [...]: Use American spelling.
* doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
	doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.

From-SVN: r47816
2001-12-09 20:21:57 +00:00
Joseph Myers d6a7951f20 ChangeLog.2, [...]: Fix spelling errors.
* ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
	cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
	function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
	config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
	config/i370/i370.c, config/i386/i386.c,
	config/i386/i386-interix.h, config/i386/i386.md,
	config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
	config/m32r/m32r-protos.h, config/mcore/mcore.h,
	config/rs6000/rs6000.h, config/sparc/linux64.h,
	config/sparc/sparc.c, config/v850/v850-protos.h,
	config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
	spelling errors.

From-SVN: r47815
2001-12-09 20:13:19 +00:00
Daniel Berlin 617e0e1d12 rs6000.h (enum rs6000_builtins): Add remaining altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
2001-12-09  Daniel Berlin  <dan@cgsoftware.com>

	* config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
	altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).

	* config/rs6000/rs6000.c: Ditto.

	* config/rs6000/rs6000.md: Ditto.

From-SVN: r47814
2001-12-09 18:49:30 +00:00
Nathan Sidwell 271e6f02a1 re PR c++/87 (member template assignment operator)
cp:
	PR g++/87
	* cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
	(copy_args_p): Rename to ...
	(copy_fn_p): ... here.
	(grok_special_member_properties): New function.
	(grok_op_properties): Lose VIRTUALP parameter.
	(copy_assignment_arg_p): Remove.
	* call.c (build_over_call): Use copy_fn_p.
	* decl.c (grokfndecl): Reformat. Adjust call to
	grok_op_properties.
	(copy_args_p): Rename to ...
	(copy_fn_p): ... here. Reject template functions. Check for pass
	by value.
	(grok_special_member_properties): Remember special functions.
	(grok_ctor_properties): Don't remember them here, just check.
	(grok_op_properties): Likewise.
	(start_method): Call grok_special_member_properties.
	* decl2.c (grokfield): Likewise.
	(copy_assignment_arg_p): Remove.
	(grok_function_init): Don't remember abstract assignment here.
	* pt.c (instantiate_class_template): Call
	grok_special_member_properties.
	(tsubst_decl): Adjust grok_op_properties call.
testsuite:
	* g++.dg/other/copy1.C: New test.

From-SVN: r47813
2001-12-09 16:33:44 +00:00
Kaveh R. Ghazi b365613798 1750a.md: Add default case in switch.
* 1750a.md: Add default case in switch.
	* alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
	if-else statement.
	* dsp16xx.c (print_operand_address): Likewise.
	* i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
	* ia64.md: Add missing braces.
	* rs6000-protos.h (s8bit_cint_operand): Prototype.
	* s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
        if-else statement.
	* stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
	* v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
	* dbxout.c (dbxout_source_file): Move a variable into the scope
	where it is used.
	* final.c (profile_function): Mark parameter with
	ATTRIBUTE_UNUSED.
	* genemit.c (gen_expand): Likewise for generated file.
	* insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.

From-SVN: r47812
2001-12-09 16:31:53 +00:00
Kaveh R. Ghazi cadf4f299d vmsdbg.h: Delete spurious close-comment.
* vmsdbg.h: Delete spurious close-comment.
	(DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
	* vmsdbgout.c (write_modbeg): Define return type.

From-SVN: r47811
2001-12-09 15:57:48 +00:00
Kaveh R. Ghazi 046b71ed34 3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
* m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
	* m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
	* m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
	* m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
	* m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
	* m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
	* m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.

From-SVN: r47810
2001-12-09 15:50:13 +00:00
GCC Administrator e922107006 Daily bump.
From-SVN: r47809
2001-12-09 08:17:23 +00:00
Aldy Hernandez bdd8737fee lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.
2001-12-08  Aldy Hernandez  <aldyh@redhat.com>

        * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
        RID_TYPES_COMPATIBLE_P.

From-SVN: r47807
2001-12-09 07:52:12 +00:00
Tom Rix 09a625f76b Fix rs6000 -maix64 -mstring
From-SVN: r47806
2001-12-09 07:23:05 +00:00
Tom Tromey 0854b1c4ba * java-tree.h: Fixed typo.
From-SVN: r47805
2001-12-09 06:03:42 +00:00
Tom Tromey 5fcab23524 gjavah.c (decompile_method): Don't decompile to `return this' for static methods.
* gjavah.c (decompile_method): Don't decompile to `return this'
	for static methods.

From-SVN: r47804
2001-12-09 05:14:19 +00:00
Tom Tromey 7b35f6c94f gjavah.c (cxx_keywords): Re-sorted.
* gjavah.c (cxx_keywords): Re-sorted.
	* lex.c (cxx_keywords): Re-sorted.

From-SVN: r47803
2001-12-09 05:06:45 +00:00
Tom Tromey 897c9e66de gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
	else.

From-SVN: r47802
2001-12-09 01:30:00 +00:00
Tom Tromey 4440ffc4a5 gjavah.c (print_namelet): Clear subnamelets.
* gjavah.c (print_namelet): Clear subnamelets.
	(HANDLE_METHOD): Set `method_printed' earlier.

From-SVN: r47801
2001-12-09 01:26:30 +00:00
Tom Tromey 91c6dda6c7 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (java/lang/reflect/Method.h): ObjectInputStream now
	a friend.
	* java/lang/natClass.cc (getSignature): Only look at elements of
	non-null parameters.
	(getPrivateMethod): Removed old FIXME comment.
	* java/io/natObjectInputStream.cc (allocateObject): Removed old
	FIXME comment.
	(callConstructor): Simply use `NULL' for value of parameters.
	(ObjectClass): Removed.
	(ClassClass): Likewise.
	* java/io/ObjectInputStream.java (readObject): Fixed typo.

From-SVN: r47800
2001-12-09 00:17:07 +00:00
Tom Tromey 3297bb4667 verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): Handle case of array whose component type is not prepared.
* verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow):
	Handle case of array whose component type is not prepared.

From-SVN: r47799
2001-12-09 00:14:00 +00:00
Aldy Hernandez ecbcf7b319 c-common.h (rid): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.
* c-common.h (rid): Add RID_CHOOSE_EXPR and
        RID_TYPES_COMPATIBLE_P.

        * c-parse.in (reswords): Add __builtin_choose_expr.
        Add __builtin_types_compatible_p.
        Add CHOOSE_EXPR token.
	Add TYPES_COMPATIBLE_P token.
        Add production for CHOOSE_EXPR.
        Add production for TYPES_COMPATIBLE_P.

        * doc/extend.texi (__builtin_choose_expr): Add documentation.
        (__builtin_types_compatible_p): Likewise.

From-SVN: r47798
2001-12-08 22:34:54 +00:00
Aldy Hernandez 1ec9bf8aa0 builtin-types-compatible-p.c: New.
2001-10-08  Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.c-torture/execute/builtin-types-compatible-p.c: New.

        * testsuite/gcc.c-torture/gcc.dg/builtin-choose-expr.c: New.

From-SVN: r47797
2001-12-08 22:29:03 +00:00
David Edelsohn 79dc3d44fb stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to unions.
* stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
        to unions.

From-SVN: r47796
2001-12-08 14:43:07 -05:00
Neil Booth 78e7853794 c-parse.in: Take string literals in assembler constructs, not expressions.
* c-parse.in: Take string literals in assembler constructs,
	not expressions.
	* c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
	check the strings are STRING_CSTs.

From-SVN: r47795
2001-12-08 19:13:04 +00:00
John David Anglin 46af705afa semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in call to build_aggr_init.
* semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
	call to build_aggr_init.
	* cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.

From-SVN: r47793
2001-12-08 15:44:23 +00:00
Neil Booth cb97d97dee c-lex.c (c_lex): Peek a token ahead for a string to concatenate...
* c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
	using combine_strings to do the concatenation.
	* c-parse.in: Replace uses of the string non-terminal with STRING.
	Don't attempt string concatenation.
	(OBJC_STRING): New terminal.
	(string): Remove non-terminal.
	(_yylex): Call combine_strings on function names.  Generate
	OBJC_STRING terminals; don't pass '@' on to yacc.
	* c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
	(build_asm_stmt): Similarly.
cp:
	* parse.y: Replace uses of the string non-terminal with STRING.
	Don't perform string concatentaion here.
	(string): Remove non-terminal.
	* semantics.c (finish_asm_stmt): Don't concatenate strings here.

From-SVN: r47792
2001-12-08 12:01:59 +00:00
Kaveh R. Ghazi 18d6067bcd * rtlanal.c (get_jump_table_offset): Delete unused variable.
From-SVN: r47791
2001-12-08 11:22:57 +00:00
Richard Earnshaw fa980e6b68 arm.md (VUNSPEC_PREFETCH): Delete constant definition.
* arm.md (VUNSPEC_PREFETCH): Delete constant definition.
(prefetch): Rewrite using PREFETCH RTL primitive.
* arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
* arm.c (arm_init_builtins): Don't initialize a builtin for
__builtin_prefetch here.
(arm_expand_builtin): Dont expand __builtin_prefetch here.

From-SVN: r47790
2001-12-08 11:16:59 +00:00
Richard Earnshaw fd9245b7ec Oops, this didn't get commited with final.c patch.
From-SVN: r47789
2001-12-08 11:05:46 +00:00
Richard Earnshaw 9f4524f299 final.c (cleanup_subreg_operands): Use recog_data.operand_loc in test for a subreg.
* final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
in test for a subreg.

From-SVN: r47788
2001-12-08 10:49:49 +00:00
GCC Administrator da8c84e8df Daily bump.
From-SVN: r47787
2001-12-08 08:16:41 +00:00
John David Anglin be0063829a rtl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.
* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
	strings.

From-SVN: r47785
2001-12-08 06:11:25 +00:00
Richard Henderson e9d7407e3a * gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
From-SVN: r47784
2001-12-07 17:51:04 -08:00
Nathan Myers 7814a308e4 atomicity.h (struct __Atomicity_lock<__inst>): Add.
libstdc++/5037
        * config/cpu/sparc/sparc32/bits/atomicity.h
        (struct __Atomicity_lock<__inst>): Add.
        (__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
        (__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
        instead of lock local to static function.
        (__atomic_add): Likewise.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>

From-SVN: r47782
2001-12-08 00:59:11 +00:00
Tom Tromey 941a878b35 ClassLoader.java (defineClass): Rethrow any LinkageError.
* java/lang/ClassLoader.java (defineClass): Rethrow any
	LinkageError.

From-SVN: r47780
2001-12-07 23:34:12 +00:00
Tom Tromey cb47fb054c ThreadGroup.java (uncaughtException): Print message to System.err.
* java/lang/ThreadGroup.java (uncaughtException): Print message to
	System.err.  Required by spec.

From-SVN: r47779
2001-12-07 23:32:24 +00:00
Phil Edwards d0c250155a globals.cc: Remove __GTHREADS guard.
2001-12-07  Phil Edwards  <pme@gcc.gnu.org>

	* src/globals.cc:  Remove __GTHREADS guard.

From-SVN: r47778
2001-12-07 23:13:23 +00:00
Richard Henderson ad706f5437 * doc/extend.texi: Fix typo last change.
From-SVN: r47777
2001-12-07 15:00:16 -08:00
Richard Henderson 4b7b9007a3 * c-decl.c (c_language): Remove duplicate.
From-SVN: r47776
2001-12-07 14:19:47 -08:00
Dale Johannesen c859cda607 darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
* config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
        * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
        specific codegen, eliminate a register copy.
        (print_operand_address): Add support for Darwin's lo16(constant)
        syntax.
        (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
        generation of addresses within very large data objects.
        (s8bit_cint_operand):  New.
        * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
        Move "mtjmpr" to correct functional unit for 750/7400/7450.
        Add imul2 and imul3 insn types for multiplication by 16- and
        8-bit constants.
        Change tablejump patterns to strongly discourage using LR
        rather than CTR.
        Add %lo16 patterns for Darwin loads and stores.

From-SVN: r47775
2001-12-07 22:17:02 +00:00
Kaveh R. Ghazi 6246471c45 * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
From-SVN: r47774
2001-12-07 22:14:44 +00:00
Stephane Carrez ecd7009474 sparc-ret.c: New file, test return corruption bug for ultrasparc.
* gcc.dg/sparc-ret.c: New file, test return corruption bug for
	ultrasparc.

From-SVN: r47773
2001-12-07 22:51:04 +01:00
Stephane Carrez 09ebda1bc4 sparc.c (epilogue_renumber): Do not replace %fp with %sp because it can cause the delayed instruction to...
* config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
	with %sp because it can cause the delayed instruction to load
	below the stack.

From-SVN: r47772
2001-12-07 22:47:53 +01:00
Kaveh R. Ghazi 595b6314cf alpha.c (alpha_expand_unaligned_store, [...]): Use constm1_rtx in place of call to immed_double_const.
* alpha.c (alpha_expand_unaligned_store,
	alpha_expand_unaligned_store_words): Use constm1_rtx in place of
	call to immed_double_const.

From-SVN: r47770
2001-12-07 20:13:34 +00:00
Tom Tromey 286f759e56 verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC earlier, for error handling.
* verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC
	earlier, for error handling.
	(_Jv_BytecodeVerifier::note_branch_target): Fixed branch target
	check.

From-SVN: r47769
2001-12-07 19:53:34 +00:00
Tom Tromey 8f25dc2806 lang.c (lang_f_options): Added optimize-static-class-initialization.
* lang.c (lang_f_options): Added
	optimize-static-class-initialization.
	(java_decode_option): Removed special case.

From-SVN: r47768
2001-12-07 19:01:19 +00:00
Paolo Carlini 46d360629c locale_facets.tcc (num_put::_M_convert_float): Extend comment, reduce __cs_size for non-fixed outputs.
2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (num_put::_M_convert_float):
	Extend comment, reduce __cs_size for non-fixed outputs.

From-SVN: r47767
2001-12-07 19:00:07 +00:00
Aldy Hernandez 9975c6d428 committed wrong rev. oops. fixing.
From-SVN: r47766
2001-12-07 18:59:27 +00:00
Aldy Hernandez a73073aa6e new
From-SVN: r47765
2001-12-07 18:52:06 +00:00
Aldy Hernandez 1b9191d275 extend.texi (Variable Attributes): Document vector_size.
2001-12-07  Aldy Hernandez  <aldyh@redhat.com>

	* doc/extend.texi (Variable Attributes): Document vector_size.

        * attribs.c (c_common_attribute_table): Add vector_size.
	(handle_vector_size_attribute): New.
        (vector_size_helper): New.
	(decl_attributes): Relayout the decl after calculating attribs.

From-SVN: r47764
2001-12-07 18:49:16 +00:00
Per Bothner a9040c7798 * check-init.c (check_init): Fix typo freeing memory twice.
From-SVN: r47763
2001-12-07 10:16:21 -08:00
Turly O'Connor 4519d6a340 MAINTAINERS (Write After Approval): Add myself.
* MAINTAINERS (Write After Approval): Add myself.
	* rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
	(rs6000_initialize_trampoline): Call __trampoline_setup for
	ABI_DARWIN too.
	* darwin-tramp.asm: New file, implements __trampoline_setup.
	* t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.

From-SVN: r47762
2001-12-07 17:41:40 +00:00
Turly O'Connor 84b256bb9c * t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.
From-SVN: r47761
2001-12-07 17:36:56 +00:00