Commit Graph

39253 Commits

Author SHA1 Message Date
Tom Tromey d12a187337 re PR libgcj/5064 (java/lang/natClassLoader.cc doesn't compile on systems without snprintf)
Fix for PR libgcj/5064.
	* java/lang/natClassLoader.cc: Don't include stdio.h.
	(_Jv_RegisterClassHookDefault): Don't use snprintf.

From-SVN: r47861
2001-12-11 03:58:40 +00:00
Tom Tromey 3afdfae81c * check-init.c (check_init) [SWITCH_EXPR]: Use SWITCH_HAS_DEFAULT.
From-SVN: r47860
2001-12-11 03:29:12 +00:00
David Edelsohn d7a5e25326 * rs6000.c (processor_target_table): Add PPC405.
From-SVN: r47858
2001-12-10 18:53:33 -05:00
Douglas B Rupp a9657ce816 gcc.c (convert_filename): Add do_obj parameter.
* gcc.c (convert_filename): Add do_obj parameter. Don't convert
	unless do_obj true.
	(process_command): Modify calls to convert_filename.

From-SVN: r47857
2001-12-10 18:46:00 -05:00
Rainer Orth cb375790f5 * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
From-SVN: r47856
2001-12-10 23:38:50 +00:00
Jeffrey A Law 805f169411 combine.c (known_cond): Check mode of each operand to determine if COND is comparing floating point values.
* combine.c (known_cond): Check mode of each operand to determine
        if COND is comparing floating point values.

From-SVN: r47855
2001-12-10 15:52:26 -07:00
Nathan Sidwell 9aaceb4b3e re PR c++/72 (aggressive type analysis in template-class's template-member-function)
cp:
	PR g++/72
	* decl.c (add_binding): Don't reject duplicate typedefs involving
	template parameters.
testsuite:
	* g++.dg/template/typedef1.C: New test.

From-SVN: r47854
2001-12-10 22:49:13 +00:00
David Edelsohn fe7f56777e rs6000.h (processor_type): Add PPC405.
* rs6000.h (processor_type): Add PPC405.
	(RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
	* rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
	rios1, rs64, and ppc630 processors.

From-SVN: r47853
2001-12-10 17:46:15 -05:00
Richard Henderson 864962bd13 alpha.md (unaligned_extendhidi): Call gen_lowpart instead of hardcoding subregs into the _be and _le patterns.
* config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
        instead of hardcoding subregs into the _be and _le patterns.

From-SVN: r47852
2001-12-10 14:21:03 -08:00
Janis Johnson c5997381fc install.texi (Final install): Request additional information in mail about successful builds.
* doc/install.texi (Final install): Request additional information
        in mail about successful builds.

From-SVN: r47850
2001-12-10 21:35:29 +00:00
Neil Booth a23c9413df c-lex.c, [...]: Revert concatenation changes.
* c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
cp:
	* parse.y, semantics.c: Similarly.

From-SVN: r47848
2001-12-10 20:08:59 +00:00
Paolo Carlini d01f347422 basic_string.tcc (_M_replace_safe): Fix typos.
2001-12-10  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
	* include/bits/basic_string.h:  Fix typos.

From-SVN: r47847
2001-12-10 14:32:28 +00:00
Richard Kenner 6fc5dc671c i386.md (leave, [...]): Adjust pattern to match what insn does.
* config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
	what insn does.

From-SVN: r47846
2001-12-10 09:30:11 -05:00
Paolo Carlini 26c4de51c9 2001-12-10 Paolo Carlini <pcarlini@unitus.it>
* ChangeLog of the previous commit.

From-SVN: r47845
2001-12-10 13:55:22 +00:00
Paolo Carlini 78bd50313e basic_string.tcc (_M_replace_safe): New function.
2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

	* include/bits/basic_string.tcc (_M_replace_safe):  New function.
	(_M_replace(input_iterator_tag), append members):  Use it.
	(_M_replace(forward_iterator_tag)):  Remove.
	* include/bits/basic_string.h:  Adjust declarations.
	* src/string-inst.cc:  Adjust declarations.

From-SVN: r47844
2001-12-10 13:42:01 +00:00
Douglas B Rupp 96a9c44f09 Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
* Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
	* intl/Makefile.in (OUTPUT_OPTION): Add configure variable.
	(.c.o): Add $(OUTPUT_OPTION).
	* java/Make-lang.in (jvspec.o): Add $(OUTPUT_OPTION).

From-SVN: r47843
2001-12-10 07:04:24 -05:00
Joseph Myers 01342a36d3 cpp.texi: Don't condition menus on @ifinfo.
* doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
	copyright notice formerly conditioned on @ifinfo on @ifnottex
	instead.

f:
	* g77.texi: Don't condition menus on @ifinfo.

ch:
	* chill.texi: Don't condition menus on @ifinfo.

From-SVN: r47842
2001-12-10 11:27:01 +00:00
Richard Kenner c6bc7526bc * vmsdbgout.c (lookup_filename): Remove warning.
From-SVN: r47841
2001-12-10 06:22:17 -05:00
Douglas B Rupp ef057c4508 config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
* config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
	(exeext, target_alias, prefix, local_prefix): Define.
	* config/alpha/x-vms (USE_COLLECT2): Make empty.
	* config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
	file specifications. Remove ".".
	(GCC_INCLUDE_DIR): Remove redefinition (redundant).
	* fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*

From-SVN: r47840
2001-12-10 06:18:34 -05:00
Turly O'Connor 6e12e72ce2 Correct filename to "darwin-tramp.asm" in my last ChangeLog entry.
From-SVN: r47839
2001-12-10 10:58:07 +00:00
Nathan Sidwell bc524dd028 * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
From-SVN: r47838
2001-12-10 09:37:11 +00:00
Benjamin Kosnik 2a74463013 locale_facets.h (__num_base::_S_scale_hex): Add.
2001-12-09  Benjamin Kosnik  <bkoz@redhat.com>
	    Philip Martin <pmartin@uklinux.net>

	* include/bits/locale_facets.h (__num_base::_S_scale_hex): Add.
	(__num_base::_S_scale_oct): Add.
	* src/locale.cc: Add definitions.
	* testsuite/27_io/istream_extractor_arith.cc (main): Call test13.

	* testsuite/testsuite_hooks.h: Remove duplicate VERIFY define.

Co-Authored-By: Philip Martin <pmartin@uklinux.net>

From-SVN: r47837
2001-12-10 08:41:03 +00:00
GCC Administrator d4197a152d Daily bump.
From-SVN: r47836
2001-12-10 08:16:45 +00:00
Per Bothner 6cc49add9c * gnu/gcj/xlib/XImage.java (toString): Add missing initialization.
From-SVN: r47834
2001-12-09 23:59:48 -08:00
Per Bothner a5cb134d64 check-init.c (current_switch_has_default): New static field.
* check-init.c (current_switch_has_default):  New static field.
	(check_init):  Case DEFAULT_EXPR: Set current_switch_has_default.
	Case SWITCH_EXPR:  Save/restore current_switch_has_default.  If no
	DEFAULT_EXPR seen, simulate a default alternative that copies state.

From-SVN: r47833
2001-12-09 20:28:28 -08:00
Richard Kenner bf6cfc5e9d Trivial updates to last patch.
From-SVN: r47832
2001-12-09 22:27:49 -05:00
Douglas B Rupp d7c23cdcce t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS) Add rules for building [vp]crt0.o
* config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
	Add rules for building [vp]crt0.o
	* config/alpha/vms.h (START_FILE_SPEC): Define.
	* config/alpha/x-vms (VMS_EXTRA_PARTS): Define
	* config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
	* doc/invoke.texi: Document special Alpha/VMS options.

From-SVN: r47831
2001-12-09 22:07:23 -05:00
Richard Kenner 6d08665a30 hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
* hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
	* vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
	not GNUC.

From-SVN: r47828
2001-12-09 20:56:37 -05:00
Richard Kenner 0b6c426b5d tree.c (append_random_char): Conditionalize INO for VMS.
* tree.c (append_random_char): Conditionalize INO for VMS.

Co-Authored-By: Douglas B Rupp <rupp@gnat.com>

From-SVN: r47827
2001-12-09 20:28:03 -05:00
Tom Tromey 6d8b12448d resolve.cc (_Jv_PrepareClass): Verify method here...
* resolve.cc (_Jv_PrepareClass): Verify method here...
	* defineclass.cc (handleMethodsEnd): ... not here.
	* verify.cc (_Jv_BytecodeVerifier::initialize_stack): New method.
	(_Jv_BytecodeVerifier::verify_instructions_0) [op_return]: Ensure
	there are no uninitialized objects.
	(_Jv_BytecodeVerifier::state::this_type): New field.
	(_Jv_BytecodeVerifier::state::state): Initialize this_type.
	(_Jv_BytecodeVerifier::state::copy): Copy this_type.
	(_Jv_BytecodeVerifier::state::merge): Merge this_type.
	(_Jv_BytecodeVerifier::state::check_no_uninitialized_objects):
	Handle this_type.
	(_Jv_BytecodeVerifier::state::check_this_initialized): New
	method.
	(_Jv_BytecodeVerifier::state::set_initialized): Handle this_type.
	(_Jv_BytecodeVerifier::state::set_this_type): New method.
	(_Jv_BytecodeVerifier::verify_instructions_0) [op_putfield]: Allow
	assignment to fields of `this' before another initializer is run.

From-SVN: r47826
2001-12-10 01:18:30 +00:00
Richard Henderson ec10f7c703 cfgcleanup.c (label_is_jump_target_p): New function.
* cfgcleanup.c (label_is_jump_target_p): New function.
	(try_optimize_cfg): Use label_is_jump_target_p to check if label is
	target of a JUMP_INSN from the preceding block.

From-SVN: r47825
2001-12-10 01:09:42 +00:00
Tom Tromey cca9fe755e Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (gnu/gcj/runtime/VMClassLoader.h): Use `::java'.

From-SVN: r47824
2001-12-10 00:30:24 +00:00
Douglas B Rupp 5a10f3cc91 vmsdbgout.c (lookup_filename): Assign null string instead of null pointer to fnam.
* vmsdbgout.c (lookup_filename): Assign null string instead
	of null pointer to fnam.

From-SVN: r47823
2001-12-09 18:49:51 -05:00
Bryce McKinlay f13ff1ca42 re PR java/3731 (gcj should generate class init code for instanceof)
* libjava.lang/PR3731.out: Adjust output to reflect that
	"instanceof" shouldn't trigger class initialization.

From-SVN: r47822
2001-12-09 23:49:29 +00:00
Tom Tromey 1aca9b81eb check-init.c (check_init): Don't allow pre- or post- increment or decrement of final variable.
* check-init.c (check_init): Don't allow pre- or post- increment
	or decrement of final variable.
	(final_assign_error): Minor error message rewording.

From-SVN: r47821
2001-12-09 23:43:19 +00:00
Richard Henderson 11cb1475c8 alpha.c (alpha_align_insns): Suppress realignment immediately after a call; insert nops before a call.
* config/alpha/alpha.c (alpha_align_insns): Suppress realignment
        immediately after a call; insert nops before a call.

From-SVN: r47820
2001-12-09 13:54:23 -08:00
Richard Henderson 30864e1408 alpha.c (alpha_align_insns): Use align_functions, not FUNCTION_BOUNDARY.
* config/alpha/alpha.c (alpha_align_insns): Use align_functions,
        not FUNCTION_BOUNDARY.
        * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
        * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
        * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.

From-SVN: r47819
2001-12-09 13:47:49 -08:00
Hans-Peter Nilsson e41710661c mmix.c (mmix_function_block_profiler, [...]): Delete unused functions.
* config/mmix/mmix.c (mmix_function_block_profiler,
	mmix_block_profiler, mmix_function_block_profiler_exit): Delete
	unused functions.
	* config/mmix/mmix-protos.h (mmix_function_block_profiler,
	mmix_block_profiler, mmix_function_block_profiler_exit): Delete
	prototypes.

	* config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
	Delete obsoleted macros.

From-SVN: r47818
2001-12-09 21:25:03 +00:00
Zack Weinberg 39e790d53c Update my email address
From-SVN: r47817
2001-12-09 20:24:45 +00:00
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