Commit Graph

34235 Commits

Author SHA1 Message Date
Nick Clifton cdd90341d6 Replace occurrences of #elif with #if...#endif.
From-SVN: r46489
2001-10-25 13:20:59 +00:00
Kaveh R. Ghazi 1ec586aeed * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
From-SVN: r46488
2001-10-25 13:08:45 +00:00
Richard Kenner 10b76d7395 alias.c (can_address_p): No longer static.
* alias.c (can_address_p): No longer static.
	* emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
	Return 0 if all parameters are default values.
	(set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
	(adjust_address_1): Try harder to compute a size.
	* expr.c (expand_assignment, store_constructor): If can't address,
	set MEM_KEEP_ALIAS_SET_P.
	(store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
	(store_field): Likewise.
	(store_constructor): Simplify call to store_constructor_field.
	* expr.h (can_address_p): New declaration.
	* gensupport.c (gen_rtx_CONST_INT): New function.
	* rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
	(MEM_SIZE): Get size from mode, if not set and not BLKmode.
	(MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.

From-SVN: r46487
2001-10-25 08:55:16 -04:00
Richard Kenner 9fb60a0d1a * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
From-SVN: r46486
2001-10-25 08:42:15 -04:00
Jakub Jelinek 2ea792c2fb Restore ChangeLog entries which vanished with last commit.
From-SVN: r46485
2001-10-25 10:40:40 +02:00
GCC Administrator a878adf697 Daily bump.
From-SVN: r46484
2001-10-25 07:16:42 +00:00
GCC Administrator 5fc3b6e9c4 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r46483.2
2001-10-25 07:16:41 +00:00
Christopher Faylor cf521102eb * config/i386/cygwin.h: Use proper path for mingw crt files when -mno-cygwin.
From-SVN: r46481
2001-10-25 03:14:05 +00:00
Richard Kenner 356b069880 * dwarf2out.c (file_info_cmp): Always return consistent results.
From-SVN: r46480
2001-10-24 18:44:47 -04:00
Geert Bosch e23381dfb4 gcc.texi (G++ and GCC): Mention Ada front end.
* doc/gcc.texi (G++ and GCC): Mention Ada front end.
	(Standards): Refer to GNAT Reference Manual.

	* doc/install.texi (Configuration): Mention Ada front end.
	(Building): Add build instructions for the Ada front end.

	* doc/invoke.texi (Overall Options): Document Ada file types.
	Add "ada" to "-x LANGUAGE" option parameters.

From-SVN: r46479
2001-10-25 00:31:17 +02:00
Roger Sayle 1ff37128ae stmt.c (expand_end_case): Index jumptables from zero for suitably small values of minval.
* stmt.c (expand_end_case): Index jumptables from zero for
        suitably small values of minval.

From-SVN: r46478
2001-10-24 15:11:40 -07:00
Jakub Jelinek c163d21d79 stor-layout.c (place_union_field): If any field was aligned with attribute aligned, set record type's TYPE_USER_ALIGN.
* stor-layout.c (place_union_field): If any field was aligned with
	attribute aligned, set record type's TYPE_USER_ALIGN.
	(place_field): Likewise.
	(finalize_record_size): Don't clear TYPE_USER_ALIGN.
	(layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.

From-SVN: r46475
2001-10-24 23:47:23 +02:00
Toon Moene e1cb83c580 com.c (ffecom_check_size_overflow_): Only check for TREE_OVERFLOW.
2001-10-24  Toon Moene  <toon@moene.indiv.nluug.nl>

	* com.c (ffecom_check_size_overflow_): Only check for TREE_OVERFLOW.

From-SVN: r46473
2001-10-24 20:32:34 +00:00
Zack Weinberg b621a4ddc7 c-common.h (struct c_common_identifier): Remove rid_code field.
* c-common.h (struct c_common_identifier): Remove rid_code field.
	(C_RID_CODE): Use ->node.rid_code instead of ->rid_code.

	* c-typeck.c (constructor_designated): New local flag.
	(struct constructor_stack): Add "designated" field to match.
	(start_init): Clear it.
	(really_start_incremental_init, push_init_level): Push and
	clear it.
	(pop_init_level): Pop it.
	(set_designator): Set it.

	(pop_init_level): Suppress "missing initializer" warnings if
	constructor_designated is true.
	(process_init_element): Suppress warning about union
	initialization under traditional C, if constructor_designated
	is true.

	* intl/loadmsgcat.c (INTTYPE_SIGNED, INTTYPE_MINIMUM,
	INTTYPE_MAXIMUM): Clone from system.h.
	(_nl_load_domain): Use them when testing for overflow of size_t.
	Cast result of sizeof to off_t to compare to st_size value.
	Move side effects out of conditional for comprehensibility.

	* testsuite/gcc.dg/20011021-1.c: New test.

From-SVN: r46472
2001-10-24 20:10:53 +00:00
Richard Kenner 724035826b integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last change.
* integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
	change.

From-SVN: r46471
2001-10-24 15:36:36 -04:00
Jeffrey A Law 173a000e30 * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
From-SVN: r46469
2001-10-24 13:24:44 -06:00
Dan Nicolaescu 83c66c1e7a ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if the node was already a set to a constant.
* ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
	the node was already a set to a constant.

From-SVN: r46468
2001-10-24 12:58:15 -06:00
Richard Kenner 80965c18cc emit-rtl.c (set_mem_attributes): Fix typo in last change.
* emit-rtl.c (set_mem_attributes): Fix typo in last change.
	* print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.

From-SVN: r46465
2001-10-24 12:38:51 -04:00
Kaveh R. Ghazi 4cc30a9ea2 linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
* s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
	(ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
	(ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
	* s390.c (s390_final_chunkify): Don't use string concatenation.
	(s390_function_prologue, s390_function_epilogue): Const-ify.
	* s390.h (FUNCTION_PROFILER): Remove unused variable.

From-SVN: r46464
2001-10-24 16:12:36 +00:00
Jakub Jelinek c0a4369a23 c-decl.c (finish_decl): Don't add DECL_STMTs for nested function prototypes.
* c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
	prototypes.

	* gcc.c-torture/compile/20011023-1.c: New test.

From-SVN: r46463
2001-10-24 16:46:44 +02:00
GCC Administrator b8c815e548 Daily bump.
From-SVN: r46461
2001-10-24 07:16:53 +00:00
GCC Administrator b3059ce940 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r46460.2
2001-10-24 07:16:46 +00:00
Stan Shebs b000e64f52 x-darwin: Use -no-cpp-precomp instead of -traditional-cpp in first-stage compilation.
* config/rs6000/x-darwin: Use -no-cpp-precomp instead of
        -traditional-cpp in first-stage compilation.

From-SVN: r46457
2001-10-24 03:43:02 +00:00
Richard Kenner c8cf201f95 * gensupport.c (target_flags): Add.
From-SVN: r46454
2001-10-23 21:46:50 -04:00
Richard Kenner 75c09e7d3c misc.c (gnat_init, [...]): Now static.
* misc.c (gnat_init, gnat_init_options, gnat_decode_option):
	Now static.
	(LANG_HOOKS_GET_ALIAS_SET): New macro.
	(gnat_expand_expr, case NULL_EXPR): Always call set_mem_attributes.
	(gnat_get_alias_set): Renamed from lang_get_alias_set.
	* gigi.h (gnat_decode_option, gnat_init_option, gnat_init):
	Delete declarations.
	(gnat_get_alias_set): Likewise.

From-SVN: r46449
2001-10-23 18:59:52 -04:00
Richard Kenner 4b6c167260 builtins.c (expand_builtin_setjmp): Only call convert_memory_address if needed.
* builtins.c (expand_builtin_setjmp): Only call convert_memory_address
	if needed.
	(expand_builtin_longjmp, expand_builtin_alloca): Likewise.
	* except.c (expand_builtin_frob_return_addr): Likewise.
	(expand_builtin_eh_return): Likewise.
	* stmt.c (expand_computed_goto): Likewise.
	* explow.c (memory_address): Likewise.
	(allocate_dynamic_stack_space): Clean up predicate testing.
	(probe_stack_range): Convert SIZE to Pmode.
	* calls.c (rtx_for_function_call): Only call convert_memory_address
	if needed.
	Pass function call operand as ptr_mode, not Pmode.
	* expr.c (expand_assignment): Clean up calls to convert_memory
	address by only doing so when needed and making offsets Pmode.
	(store_constructor, expand_expr, expand_expr_unaligned): Likewise.
	* function.c (assign_parms): Ensure address in MEM for RESULT_DECL
	is in Pmode, not ptr_mode.

From-SVN: r46448
2001-10-23 18:59:15 -04:00
Kaveh R. Ghazi 91dc3130bf darwin-protos.h (constructor_section, [...]): Prototype.
* darwin-protos.h (constructor_section, destructor_section,
	mod_init_section, mod_term_section): Prototype.
	* darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
	Const-ify.
	* darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
	Likewise.
	(SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
	objc_section_init declaration.
	(EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
	(objc_section_init, try_section_alias): Make static.
	(alias_section): Make static and hide unused function.
	(ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.

From-SVN: r46447
2001-10-23 22:39:06 +00:00
Richard Kenner ee701fade7 whitespace changes
From-SVN: r46446
2001-10-23 17:50:37 -04:00
Geoffrey Keating 91dc81f990 * lib/g77.exp: Rewrite based on lib/g++.exp.
From-SVN: r46444
2001-10-23 21:39:47 +00:00
Richard Kenner e686d142b3 alias.c (can_address_p): Compnonents are not addressable if the containing type has alias set 0.
* alias.c (can_address_p): Compnonents are not addressable if
	the containing type has alias set 0.
	(get_alias_set): Rework to use STRIP_NOPS.
	Only call front-end routine on object, type, or object with
	NOPs stripped, not inner values.
	Use language hook to call front-end routine.
	* builtins.c (get_memory_rtx): Always call set_mem_attributes.
	(expand_builtin_apply): Call set_mem_align on MEMs we make.
	Don't pass alignment to emit_block_move.
	(expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
	(expand_builtin_memset): Likewise, but for clear_storage.
	* c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
	and remove C++ specific parts.
	* c-common.h (c_common_get_alias_set): Add declaration.
	* c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
	* calls.c (emit_call_1): Fix typo in sibcall_pop case.
	(save_fixed_argument_area): Call set_mem_align.
	Remove alignment in call to emit_block_move.
	(emit_library_call_value_1, store_one_arg): Likewise.
	(target_for_arg): Remove; disabled long ago.
	* emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
	once and similar cleanups.
	(offset_address): Use proper introductory comment.
	* expr.c (emit_block_move): Use alignment from that of MEM args, not
	from explicit operand; all callers changed.
	(clear_storage): Likewise.
	(expand_assignment): Don't call set_mem_alias_set on to_rtx.
	(store_field): Remove kludge on alias set used for to_rtx.
	(highest_pow2_factor, case *_DIV_EXPR): Never return 0.
	(expand_expr_unaligned): Call set_mem_attributes instead of
	set_mem_alias_set.
	* expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
	* function.c (assign_stack_temp_for_type): Set MEM alignment.
	(expand_function_end): Track MEM attributes of trampolines.
	* ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
	* integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
	attributes from original.
	* langhooks.c (lang_hook_default_get_alias_set): New function.
	(hook_get_alias_set_0): New function.
	* langhooks.h (hook_get_alias_set_0): New declaration.
	(lang_hook_default_get_alias_set): Likewise.
	(LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
	* reload1.c (alter_reg): Use adjust_address_nv.
	* rtl.c (get_mode_alignment): Moved to here.
	* rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
	change default if unknown from 1 to BITS_PER_UNIT.
	* stor-layout.c (get_mode_alignment): Remove from here.
	* toplev.h (struct lang_hoks): Add get_alias_set field.
	* tree.h (lang_get_alias_set): Delete declaration.
	* config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
	* config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
	(ix86_va_arg): Likewise.
	* config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
	* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
	* config/sparc/sparc.c (sparc_va_arg): Likewise.
	* config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
	(expand_block_move_mem): Remove dead code.
	* cp/cp-lang.c (cxx_get_alias_set): New function.
	Point LANG_HOOKS_GET_ALIAS_SET to it.
	* f/com.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
	(lang_get_alias_set): Delete.
	* java/lang.c (lang_get_alias_set): Deleted.

From-SVN: r46443
2001-10-23 16:46:41 -04:00
Richard Kenner 74e2819c70 alias.c (can_address_p): Compnonents are not addressable if the containing type has alias set 0.
* alias.c (can_address_p): Compnonents are not addressable if
	the containing type has alias set 0.
	(get_alias_set): Rework to use STRIP_NOPS.
	Only call front-end routine on object, type, or object with
	NOPs stripped, not inner values.
	Use language hook to call front-end routine.
	* builtins.c (get_memory_rtx): Always call set_mem_attributes.
	(expand_builtin_apply): Call set_mem_align on MEMs we make.
	Don't pass alignment to emit_block_move.
	(expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
	(expand_builtin_memset): Likewise, but for clear_storage.
	* c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
	and remove C++ specific parts.
	* c-common.h (c_common_get_alias_set): Add declaration.
	* c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
	* calls.c (emit_call_1): Fix typo in sibcall_pop case.
	(save_fixed_argument_area): Call set_mem_align.
	Remove alignment in call to emit_block_move.
	(emit_library_call_value_1, store_one_arg): Likewise.
	(target_for_arg): Remove; disabled long ago.
	* emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
	once and similar cleanups.
	(offset_address): Use proper introductory comment.
	* expr.c (emit_block_move): Use alignment from that of MEM args, not
	from explicit operand; all callers changed.
	(clear_storage): Likewise.
	(expand_assignment): Don't call set_mem_alias_set on to_rtx.
	(store_field): Remove kludge on alias set used for to_rtx.
	(highest_pow2_factor, case *_DIV_EXPR): Never return 0.
	(expand_expr_unaligned): Call set_mem_attributes instead of
	set_mem_alias_set.
	* expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
	* function.c (assign_stack_temp_for_type): Set MEM alignment.
	(expand_function_end): Track MEM attributes of trampolines.
	* ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
	* integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
	attributes from original.
	* langhooks.c (lang_hook_default_get_alias_set): New function.
	(hook_get_alias_set_0): New function.
	* langhooks.h (hook_get_alias_set_0): New declaration.
	(lang_hook_default_get_alias_set): Likewise.
	(LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
	* reload1.c (alter_reg): Use adjust_address_nv.
	* rtl.c (get_mode_alignment): Moved to here.
	* rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
	change default if unknown from 1 to BITS_PER_UNIT.
	* stor-layout.c (get_mode_alignment): Remove from here.
	* toplev.h (struct lang_hoks): Add get_alias_set field.
	* tree.h (lang_get_alias_set): Delete declaration.
	* config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
	* config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
	(ix86_va_arg): Likewise.
	* config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
	* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
	* config/sparc/sparc.c (sparc_va_arg): Likewise.
	* config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
	(expand_block_move_mem): Remove dead code.
	* cp/cp-lang.c (cxx_get_alias_set): New function.
	Point LANG_HOOKS_GET_ALIAS_SET to it.
	* f/com.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
	(lang_get_alias_set): Delete.
	* java/lang.c (lang_get_alias_set): Deleted.

From-SVN: r46442
2001-10-23 16:41:59 -04:00
Richard Kenner 711062347e Correct typo in last change
From-SVN: r46441
2001-10-23 15:11:48 -04:00
Richard Kenner 8ac61af705 alias.c (can_address_p): Compnonents are not addressable if the containing type has alias set 0.
* alias.c (can_address_p): Compnonents are not addressable if
	the containing type has alias set 0.
	(get_alias_set): Rework to use STRIP_NOPS.
	Only call front-end routine on object, type, or object with
	NOPs stripped, not inner values.
	Use language hook to call front-end routine.
	* builtins.c (get_memory_rtx): Always call set_mem_attributes.
	(expand_builtin_apply): Call set_mem_align on MEMs we make.
	Don't pass alignment to emit_block_move.
	(expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
	(expand_builtin_memset): Likewise, but for clear_storage.
	* c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
	and remove C++ specific parts.
	* c-common.h (c_common_get_alias_set): Add declaration.
	* c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
	* calls.c (emit_call_1): Fix typo in sibcall_pop case.
	(save_fixed_argument_area): Call set_mem_align.
	Remove alignment in call to emit_block_move.
	(emit_library_call_value_1, store_one_arg): Likewise.
	(target_for_arg): Remove; disabled long ago.
	* emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
	once and similar cleanups.
	(offset_address): Use proper introductory comment.
	* expr.c (emit_block_move): Use alignment from that of MEM args, not
	from explicit operand; all callers changed.
	(clear_storage): Likewise.
	(expand_assignment): Don't call set_mem_alias_set on to_rtx.
	(store_field): Remove kludge on alias set used for to_rtx.
	(highest_pow2_factor, case *_DIV_EXPR): Never return 0.
	(expand_expr_unaligned): Call set_mem_attributes instead of
	set_mem_alias_set.
	* expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
	* function.c (assign_stack_temp_for_type): Set MEM alignment.
	(expand_function_end): Track MEM attributes of trampolines.
	* ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
	* integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
	attributes from original.
	* langhooks.c (lang_hook_default_get_alias_set): New function.
	(hook_get_alias_set_0): New function.
	* langhooks.h (hook_get_alias_set_0): New declaration.
	(lang_hook_default_get_alias_set): Likewise.
	(LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
	* reload1.c (alter_reg): Use adjust_address_nv.
	* rtl.c (get_mode_alignment): Moved to here.
	* rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
	change default if unknown from 1 to BITS_PER_UNIT.
	* stor-layout.c (get_mode_alignment): Remove from here.
	* toplev.h (struct lang_hoks): Add get_alias_set field.
	* tree.h (lang_get_alias_set): Delete declaration.
	* config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
	* config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
	(ix86_va_arg): Likewise.
	* config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
	* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
	* config/sparc/sparc.c (sparc_va_arg): Likewise.
	* config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
	(expand_block_move_mem): Remove dead code.
	* cp/cp-lang.c (cxx_get_alias_set): New function.
	Point LANG_HOOKS_GET_ALIAS_SET to it.
	* f/com.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
	(lang_get_alias_set): Delete.
	* java/lang.c (lang_get_alias_set): Deleted.

From-SVN: r46440
2001-10-23 14:51:18 -04:00
Neil Booth 6c36d76bf6 c-common.c (warn_div_by_zero): New.
* c-common.c (warn_div_by_zero): New.
	* c-common.h (warn_div_by_zero): New.
	* c-decl.c (c_decode_option): Take it on the command line.
 	* c-typeck.c (build_binary_op): Warn about division by zero.
	* doc/invoke.texi: Document the new command line option, fix
	documentation of -Wmultichar.
 	* testsuite/gcc.dg/divbyzero.c: New tests.
 	* testsuite/gcc.dg/noncompile/20010524-1.c: Update.

From-SVN: r46439
2001-10-23 18:14:31 +00:00
Jan Hubicka 635559ab2e i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
* i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.

	* toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
	to avoid update_life_info call.
	* basic-block.h (CLEANUP_UPATE_LIFE): Define.
	* cfgcleanup.c (bb_flags): New enum.
	(BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
	(notice_new_block, update_forwarder_flag): New functions.
	(try_simplify_condjump): Use FORWARDER_BLOCK_P.
	(try_forward_edges): Likewise; update flags.
	(merge_blocks): Likewise.
	(outgoing_edges_match): Likewise.
	(try_crossjump_to_edge): Likewise.
	(try_optimize_cfg): Likewise; initialize and clear the flags;
	recompute life info if needed.
	(cleanup_cfg): No need to clear aux pointers.

From-SVN: r46434
2001-10-23 13:34:33 +00:00
Alexandre Oliva fbb83b4330 i386.c (override_options): Default to minimum stack alignment when optimizing for code size.
* config/i386/i386.c (override_options): Default to minimum
stack alignment when optimizing for code size.
* doc/invoke.texi (-mpreferred-stack-boundary): Document the
change.

From-SVN: r46433
2001-10-23 11:50:50 +00:00
Alexandre Oliva c6257c5d97 i386.c (override_options): Set upper limit of -mpreferred-stack-boundary to 12.
* config/i386/i386.c (override_options): Set upper limit of
-mpreferred-stack-boundary to 12.

From-SVN: r46432
2001-10-23 11:47:23 +00:00
Kriang Lerdsuwanakij f1e09fa253 Fix date in ChangeLog
From-SVN: r46431
2001-10-23 09:20:55 +00:00
Kriang Lerdsuwanakij b8c6534b88 cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
* cp-tree.def (UNBOUND_CLASS_TEMPLATE): New tree node.
	* cp-tree.h (make_unbound_class_template): Prototype new function.
	* decl.c (make_unbound_class_template): New function.
	* decl2.c (arg_assoc_template_arg): Handle UNBOUND_CLASS_TEMPLATE.
	* error.c (dump_type): Likewise.
	* mangle.c (write_type): Likewise.
	* parse.y (template_parm): Likewise.
	(template_argument): Use make_unbound_class_template.
	* pt.c (convert_template_argument): Handle UNBOUND_CLASS_TEMPLATE.
	(tsubst): Likewise.
	(tsubst_copy): Likewise.
	(unify): Likewise.
	* tree.c (walk_tree): Likewise.
	* typeck.c (comptypes): Likewise.

From-SVN: r46430
2001-10-23 09:14:15 +00:00
GCC Administrator 69f75f9daa Daily bump.
From-SVN: r46428
2001-10-23 07:18:01 +00:00
Zack Weinberg 001d274051 * recog.c (peephole2_optimize): Add default case to switch.
From-SVN: r46422
2001-10-23 04:09:05 +00:00
Joseph Myers b45bc005dc gcc.texi (Sending Patches): Remove.
* doc/gcc.texi (Sending Patches): Remove.

f:
	* g77.texi (Sending Patches): Remove.

From-SVN: r46418
2001-10-23 01:18:25 +01:00
Jason Merrill f20a609feb tweak
From-SVN: r46416
2001-10-22 17:56:40 -04:00
Geert Bosch d2740a69f9 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
From-SVN: r46415
2001-10-22 22:39:56 +02:00
Hans-Peter Nilsson 2f9ec5e5cc unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin fields when comparing.
* unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
	fields when comparing.

From-SVN: r46414
2001-10-22 20:33:13 +00:00
Kaveh R. Ghazi 30cf489670 arm.h (HOST_INT, HOST_UINT): Delete.
* arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
	* arm.c (HOST_INT, HOST_UINT): Likewise.

From-SVN: r46413
2001-10-22 19:36:24 +00:00
Stan Shebs 3be131bee8 darwin-protos.h (darwin_exception_section): Declare.
* config/darwin-protos.h (darwin_exception_section): Declare.
        (darwin_eh_frame_section): Declare.

From-SVN: r46412
2001-10-22 19:11:55 +00:00
Jan Hubicka 92b7812215 * i386.md (movti_rex64): Fix mode.
From-SVN: r46411
2001-10-22 16:22:31 +00:00
Zack Weinberg 6fa3d7b2cc * Make-lang.in (f/intdoc): Depend on safe-ctype.o.
From-SVN: r46410
2001-10-22 15:49:40 +00:00
Stan Shebs 07c9d2eb2e target.h (struct gcc_target): Add asm_out.exception_section, asm_out.eh_frame_section.
* target.h (struct gcc_target): Add asm_out.exception_section,
        asm_out.eh_frame_section.
        * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
        (TARGET_ASM_EH_FRAME_SECTION): New.
        (TARGET_INITIALIZER): Update.
        * output.h (default_exception_section): Declare.
        (default_eh_frame_section): Declare.
        * dwarf2out.c: Include target.h.
        (output_call_frame_info): Call target hook for eh frames.
        (default_eh_frame_section): New function.
        * except.c: Include target.h.
        (output_function_exception_table): Call target hook for exception
        section.
        * varasm.c (default_exception_section): Rename from
        exception_section, remove EXCEPTION_SECTION macro.

        * config/darwin.h (darwin_eh_frame_section): New function.
        (EXCEPTION_SECTION): Remove.
        (TARGET_ASM_EXCEPTION_SECTION): Define.
        * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
        (nextstep_exception_section): New function.
        (nextstep_eh_frame_section): New function.
        (TARGET_ASM_EXCEPTION_SECTION): Define.
        (TARGET_ASM_EH_FRAME_SECTION): Define.

        * config/pa/som.h (EXCEPTION_SECTION): Remove.
        (TARGET_ASM_EXCEPTION_SECTION): Define.
        * config/rs6000/sysv4.h, config/rs6000/xcoff.h
        (EXCEPTION_SECTION): Remove.
        (TARGET_ASM_EXCEPTION_SECTION): Define.
        * config/stormy16/stormy16.h: Remove comments referencing
        EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.

        * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
        TARGET_ASM_EH_FRAME_SECTION.

From-SVN: r46409
2001-10-22 14:43:31 +00:00
Nick Clifton bbea0391f0 Fix precedence of conditional terms
From-SVN: r46408
2001-10-22 09:18:19 +00:00
Nick Clifton 857236af62 fix spelling typo in comment
From-SVN: r46407
2001-10-22 09:10:04 +00:00
Nick Clifton f2d40127e2 Fix typo
From-SVN: r46406
2001-10-22 09:06:34 +00:00
Craig Rodrigues 92989aed09 re PR debug/4252 (cc1: Invalid option `-fdump-translation-unit')
PR debug/4252
	* doc/invoke.texi: Remove references to -fdump-translation-unit.

From-SVN: r46405
2001-10-22 07:42:23 +00:00
Richard Henderson a8bac9ab24 i386.c (ix86_expand_clear): New.
* config/i386/i386.c (ix86_expand_clear): New.
        * config/i386/i386-protos.h: Declare it.
        * config/i386/i386.md (setcc peep2s): Use it.
        (movsi_xor): Unexport.

From-SVN: r46404
2001-10-22 00:19:01 -07:00
GCC Administrator 8356429f83 Daily bump.
From-SVN: r46403
2001-10-22 07:18:17 +00:00
Richard Henderson e9cf0934ea flow.c (clear_log_links): Use free_INSN_LIST_list, not free_EXPR_LIST_list for LOG_LINKS.
* flow.c (clear_log_links): Use free_INSN_LIST_list, not
        free_EXPR_LIST_list for LOG_LINKS.

From-SVN: r46401
2001-10-22 00:09:53 -07:00
Kaveh R. Ghazi 299b5f9ee9 * gjavah.c (jni_print_char): Fix thinko in last change.
From-SVN: r46399
2001-10-22 03:58:19 +00:00
Robert Lipe e56feed63f i386.c (sco_asm_named_section): Delete.
* config/i386/i386.c (sco_asm_named_section): Delete.
	(sco_asm_out_constructor): Delete.
	* config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
	(ASM_OUTPUT_DOUBLE_INT): Likewise.
	(TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
	(TARGET_ASM_NAMED_SECTION): Use default for ELF.
	(EXCEPTION_SECTION): Delete EH scn renaming hack.

From-SVN: r46398
2001-10-21 21:55:40 +00:00
Kaveh R. Ghazi 0df6c2c74e c-format.c (maybe_read_dollar_number): Use safe-ctype macros and/or fold extra calls into fewer ones.
* c-format.c (maybe_read_dollar_number): Use safe-ctype macros
	and/or fold extra calls into fewer ones.
	* collect2.c (dump_file): Likewise.
	* cppexp.c (parse_number): Likewise.
	* cpplex.c (_cpp_lex_direct): Likewise.
	* final.c (output_asm_insn, asm_fprintf): Likewise.
	* fix-header.c (inf_scan_ident, main): Likewise.
	* fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
	Likewise.
	* fold-const.c (real_hex_to_f): Likewise.
	* gen-protos.c (parse_fn_proto): Likewise.
	* genattrtab.c (check_attr_test, check_attr_value): Likewise.
	* genrecog.c (change_state, write_action): Likewise.
	* gensupport.c (shift_output_template): Likewise.
	* local-alloc.c (requires_inout): Likewise.
	* mips-tfile.c (IS_ASM_IDENT): Likewise.
	* protoize.c (is_id_char, main): Likewise.
	* real.c (asctoeg): Likewise.
	* recog.c (asm_operand_ok): Likewise.
	* reload.c (find_reloads): Likewise.
	* scan.c (scan_identget_token): Likewise.
	* sched-vis.c (print_value): Likewise.
	* stringpool.c (ggc_alloc_string): Likewise.
	* toplev.c (read_integral_parameter, decode_g_option): Likewise.
	* tradcif.y (parse_number, yylex, parse_escape): Likewise.
	* tradcpp.c (rescan): Likewise.
	* tree.c (clean_symbol_name): Likewise.
	* varasm.c (decode_reg_name): Likewise.

	* alpha.h (ASM_OUTPUT_ASCII): Likewise.
	* darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
	* dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
	* m88k.c (output_ascii): Likewise.
	* m88k.h (OVERRIDE_OPTIONS): Likewise.
	* mcore.h (REG_CLASS_FROM_LETTER): Likewise.
	* ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
	* sh.h (REG_CLASS_FROM_LETTER): Likewise.

cp:
	* xref.c (GNU_xref_member): Use safe-ctype macros and/or fold
	extra calls into fewer ones.

f:
	* bad.c (ffebad_finish): Use safe-ctype macros and/or fold extra
	calls into fewer ones.
	* implic.c (ffeimplic_lookup_): Likewise.
	* intdoc.c (dumpimp): Likewise.
	* intrin.c (ffeintrin_init_0): Likewise.
	* lex.c (ffelex_backslash_, ffelex_cfebackslash_, ffelex_hash_):
	Likewise.
	* lex.h (ffelex_is_firstnamechar): Likewise.
	* target.c (ffetarget_integerhex): Likewise.

java:
	* gjavah.c (jni_print_char, decode_signature_piece): Use
	safe-ctype macros and/or fold extra calls into fewer ones.
	* lex.c (java_read_unicode, java_lex): Likewise.
	* lex.h (JAVA_START_CHAR_P, JAVA_PART_CHAR_P, JAVA_ASCII_DIGIT,
	JAVA_ASCII_HEXDIGIT, JAVA_ASCII_LETTER): Likewise.
	* mangle_name.c (append_unicode_mangled_name,
	unicode_mangling_length): Likewise.

From-SVN: r46397
2001-10-21 21:32:15 +00:00
Neil Booth 77b1a9217b langhooks.c (lang_hook_default_do_nothing, [...]): New defaults.
* langhooks.c (lang_hook_default_do_nothing,
	lang_hook_default_decode_option): New defaults.
	* langhooks.h: Make hooks unconditional and non-NULL.
	* toplev.c (compile_file, toplev_main): Update.
	* toplev.h: Update comments.
	* objc/objc-act.c (lang_hooks): Update to new paradigm.

From-SVN: r46396
2001-10-21 21:03:48 +00:00
Kaveh R. Ghazi 5297e08564 arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
* arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.

	* system.h (IN_RANGE): New macro.

From-SVN: r46395
2001-10-21 19:44:08 +00:00
Zack Weinberg 77c068446e aclocal.m4 (AM_WITH_NLS): Also create and substitute INTLDEPS variable, which does not include $LIBICONV.
* aclocal.m4 (AM_WITH_NLS): Also create and substitute
	INTLDEPS variable, which does not include $LIBICONV.
	* Makefile.in: Use INTLDEPS in LIBDEPS.
	* configure: Regenerate.

intl:
	* dcigettext.c: Don't use #elif.
	* gettextP.h: Prototype nls_uint32 and locale_charset here.
	Always define ZERO to 1 to avoid warnings (ZERO is used in
	flexible-array-member declarations).
	* loadmsgcat.c: Apply __extension__ to structure definitions
	using C99 designated initializer syntax.
	Do not prototype locale_charset here.
	* localcharset.c: Prototype get_charset_aliases before use.
	Get rid of STATIC nonsense.

From-SVN: r46394
2001-10-21 16:29:13 +00:00
Craig Prescott 957569499b target.h (FFETARGET_32bit_longs): Don't define for 64-bit hppa.
2001-10-21  Craig Prescott  <prescott@phys.ufl.edu>

	* target.h (FFETARGET_32bit_longs): Don't define
	for 64-bit hppa.

From-SVN: r46393
2001-10-21 14:55:10 +00:00
Neil Booth 480709cc6c cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
* cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
	* cpplex.c (lex_percent, lex_dot): Remove.
	(get_effective_char, skip_block_comment, skip_line_comment,
	parse_identifier_slow, parse_number, parse_string, save_comment,
	_cpp_lex_direct): Update to do lookback freely.
	(IF_NEXT_IS, BACKUP): New macros.
	* cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
	* cppmacro.c (paste_tokens): Update.

From-SVN: r46392
2001-10-21 14:04:42 +00:00
GCC Administrator 28d8dc3a10 Daily bump.
From-SVN: r46390
2001-10-21 07:16:09 +00:00
Zack Weinberg d7aa3e1e9a Remove stray conflict marker
From-SVN: r46386
2001-10-20 18:16:32 +00:00
Nick Clifton acb0aa657c fix spelling typo
From-SVN: r46382
2001-10-20 15:33:59 +00:00
Hans-Peter Nilsson 129c089988 reload1.c (reload): Check CONSTANT_P before calling LEGITIMATE_PIC_OPERAND_P.
* reload1.c (reload): Check CONSTANT_P before calling
	LEGITIMATE_PIC_OPERAND_P.
	* config/cris/cris.c (cris_legitimate_pic_operand): Revert
	workaround of 2001-10-13.

From-SVN: r46381
2001-10-20 15:10:11 +00:00
Jan Hubicka 38ca929b57 * i386.c (split_di): Handle splitting of DFmode.
From-SVN: r46380
2001-10-20 13:16:55 +00:00
Richard Kenner 56f1f5ae6a emit-rtl.c (set_mem_attributes): Alignment is in bits.
* emit-rtl.c (set_mem_attributes): Alignment is in bits.
	(adjust_address_1, offset_address): Likewise.

From-SVN: r46379
2001-10-20 09:15:52 -04:00
Richard Kenner d022d93eed emit-rtl.c (set_mem_attributes): Alignment is in bits.
* emit-rtl.c (set_mem_attributes): Alignment is in bits.
	(adjust_address_1, offset_address): Likewise.

From-SVN: r46378
2001-10-20 08:30:26 -04:00
Richard Kenner 4f9b402946 final.c (output_asm_operand_names): New fcn, from output_asm_insn.
* final.c (output_asm_operand_names): New fcn, from output_asm_insn.
	(output_asm_insn): Call it for each line output.
	Don't record an operand more than once.

From-SVN: r46377
2001-10-20 07:30:07 -04:00
Richard Kenner 107c13a132 toplev.h (struct lang_hooks): HONOR_READONLY now bool.
* toplev.h (struct lang_hooks): HONOR_READONLY now bool.
	* main.c: Include config.h and system.h, but not ansidecl.h.
	* Makefile.in (main.o): Update accordingly.

From-SVN: r46376
2001-10-20 07:24:36 -04:00
Jan Hubicka df4e780e4b * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
From-SVN: r46375
2001-10-20 10:09:07 +00:00
Jan Hubicka b932f770f7 basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
* basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
	* cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
	Break out from ...
	(find_sub_basic_blocks): ... here;
	(find_many_sub_basic_blocks): New.
	* recog.c (split_all_insns): Update find_sub_basic_blocks call.

	* i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.

	* i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:

	* i386.c (split_di, split_ti): Revamp to use simplify_subreg.

	* timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
	* flow.c (update_life_info): Measure time.
	* c-decl.c: Include timevar.h
	(c_expand_body): Measure time.
	* toplev.c (rest_of_compilation): Measure time of mode switching
	separately.
	* Makefile.in (c-decl.o, cfgcleanup.o): Add dependancy.

	* toplev.c (flag_asynchronous_unwind_tables): New global variable.
	(lang_independent_options): Add asynchronous-unwind-tables
	(toplev_main): flag_asynchronous_unwind_tables implies
	flag_unwind_tables.
	* flags.h (flag_asynchronous_unwind_tables): Declare.
	* dwarf2out.c (dwarf2out_stack_adjust): Take into account
	flag_asynchronous_unwind_tables.
	(output_call_frame_info): Likewise.
	* invoke.texi (-fasynchronous-unwind-tables): Document.
	* i386.c (optimization_options): Enable
	flag_asynchronous_unwind_tables.

	* i386.c (ix86_expand_setcc):  Always expect target to be QImode.
	* i386.md (s* expanders): Destination is QImode.

	* toplev.c (rest_of_compilation): Do not call clear_log_links.
	* rtl.h (clear_log_links): Kill.
	* flow.c (clear_log_links): Make static; accept blocks parameter;
	do no clear life info.
	(update_life_info): Call clear_log_links.

	* cfganal.c (forwarder_block_p): Avoid active_insn_p calls.

From-SVN: r46374
2001-10-20 10:04:00 +00:00
Neil Booth 870628131c cpplex.c (handle_newline, [...]): Update to do more stepping back.
* cpplex.c (handle_newline, skip_escaped_newlines,
	get_effective_char, skip_block_comment, skip_line_comment,
	parse_identifier_slow, parse_number, parse_string,
	_cpp_lex_direct): Update to do more stepping back.
	(trigraph_ok): Similarly.  Rename trigraph_p.
	(SAVE_STATE, RESTORE_STATE): Remove.
	(BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.

	* cpplib.c (destringize): Rename destringize_and_run, and
	call run_directive directly.
	(_cpp_do__Pragma): Simplify.

From-SVN: r46373
2001-10-20 09:00:53 +00:00
GCC Administrator 3c1ef3c102 Daily bump.
From-SVN: r46372
2001-10-20 07:16:39 +00:00
Kaveh R. Ghazi adf97f5809 pe.c (arm_pe_unique_section): Const-ify.
* pe.c (arm_pe_unique_section): Const-ify.
	* pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
	(switch_to_section): Add static prototype.

	* output.h (drectve_section): Prototype.

From-SVN: r46368
2001-10-20 00:24:14 +00:00
Franz Sirl 32fb7c9d6c config.gcc (i[34567]86-*-gnu*, [...]): Delete superflous ${cpu_type} setting.
2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
	fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
	parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
	i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
	i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
	i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
	i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
	i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
	i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
	i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
	i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
	i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
	ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
	mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
	powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
	powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
	powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
	powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
	powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
	powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
	rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
	sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
	v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
	cris-*-none, cris-*-linux*: Update ${tmfile} list.
	(c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
	i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
	mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
	powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
	v850-*-*): Delete superflous ${cpu_type} setting.
	* config/linux.h: Delete svr4.h include.
	(SET_ASM_OP): Delete.
	* config/netware.h (INT_ASM_OP): Undef before define.
	* config/ptx4.h: Delete elfos.h include.
	(PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
	* config/svr4.h: Delete elfos.h include. Update commentary.
	* config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
	config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
	config/mn10200/mn10300.h, config/stormy16/stormy16.h,
	config/v850/v850.h: Delete svr4.h include.
	* config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
	config/m68k/m68kv4.h, config/m88k/sysv4.h,
	config/sparc/sysv4.h: Update includes.
	* config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
	config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
	config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
	config/m88k/dguxbcs.h: Delete includes.
	* config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
	(PREFERRED_DEBUGGING_TYPE): Undef before defining it.
	* config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
	it.
	* config/m88k/dgux.h: Delete include.
	(SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
	defining it.
	* config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
	ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
	* config/sh/elf.h: Update include.
	(SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
	DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.

From-SVN: r46366
2001-10-19 22:27:41 +00:00
Catherine Moore cf4c092e87 stormy-abi: Updates to varargs descriptions.
* config/stormy16/stormy-abi:  Updates to varargs descriptions.
        * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
        base and count fields.
        (stormy16_expand_builtin_va_start):  last_reg_count changed to
        size_of_reg_args.  Use count + size in first comparison.

From-SVN: r46365
2001-10-19 17:23:29 -04:00
Richard Kenner 03bf2c237c langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
* langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
	* toplev.h (struct lang_hooks): New field HONOR_READONLY.
	* emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
	TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
	Set alignment from type if INDIRECT_REF.
	(adjust_address_1, offset_address): Simplify alignment compuitation.
	* expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
	here; done by set_mem_attributes.

From-SVN: r46361
2001-10-19 15:54:06 -04:00
Kaveh R. Ghazi 91ea4f8ddf Makefile.in (rtlanal.o): Depend on $(TM_P_H).
* Makefile.in (rtlanal.o): Depend on $(TM_P_H).
	* arm-protos.h (rdata_section, zero_init_section, common_section):
	Prototype.
	* arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
	* avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
	traditional mode stringification.
	* function.c (thread_prologue_and_epilogue_insns): Wrap variable
	in macros controling its use.
	* rtlanal.c: Include tm_p.h.
	* varasm.c (asm_output_aligned_bss): Mark parameter with
	ATTRIBUTE_UNUSED.
	(assemble_constant_align, assemble_start_function, assemble_align,
	assemble_variable, assemble_trampoline_template,
	output_constant_def_contents): Wrap potentially empty if-stmt body
	in brackets.

From-SVN: r46360
2001-10-19 19:42:46 +00:00
Kaveh R. Ghazi acf9cc0f52 a29k-protos.h (literal_section): Prototype.
* a29k-protos.h (literal_section): Prototype.
	* a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
	* a29k.md: Ensure function pointers are prototyped.
	* genattrtab.c (write_eligible_delay): Mark parameter with
	ATTRIBUTE_UNUSED.

From-SVN: r46359
2001-10-19 19:39:57 +00:00
Kaveh R. Ghazi 6894579f14 calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
* calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
	* 1750a.c (print_operand): Fix format specifier warning.
	* 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
	* 1750a.md: Likewise.
	* gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
	* genemit.c (output_add_clobbers): Mark parameter with
	ATTRIBUTE_UNUSED.
	* genrecog.c (write_subroutine): Likewise.
	* integrate.c (expand_inline_function): Delete unused variable.
	* varasm.c (remove_from_pending_weak_list): Wrap with
	ASM_WEAKEN_LABEL.

From-SVN: r46358
2001-10-19 19:37:09 +00:00
Jakub Jelinek 368a164799 alpha.c (summarize_insn): Don't abort on ASM_INPUT.
* config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.

	* gcc.dg/20011018-1.c: New test.

From-SVN: r46357
2001-10-19 21:34:44 +02:00
Jakub Jelinek 4768dbddcd simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg field is different to previous argument's neg field.
* simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
	field is different to previous argument's neg field.

	* gcc.c-torture/execute/20011019-1.c: New test.

From-SVN: r46356
2001-10-19 21:28:03 +02:00
Richard Kenner c5adc06afa final.c (get_decl_from_op): New function.
* final.c (get_decl_from_op): New function.
	(output_asm_insn): Call it; write "*" when item with decl is address.

From-SVN: r46355
2001-10-19 15:22:20 -04:00
Geert Bosch d7ac9bdd42 * Makefile.in (tools, gnattools): Remove gnatmem.
From-SVN: r46352
2001-10-19 20:29:51 +02:00
NIIBE Yutaka 48d4b9f0cf * gcc.c-torture/execute/ieee/ieee.exp: Change sh-*-* to sh*-*-*.
From-SVN: r46351
2001-10-19 10:45:51 -07:00
Janis Johnson 03b272d2c2 * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
about 64-bit support from the 3.0_branch version.

From-SVN: r46350
2001-10-19 16:52:31 +00:00
Janis Johnson f223b20263 * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
about 64-bit support from the 3.0_branch version.

From-SVN: r46349
2001-10-19 16:51:17 +00:00
Zack Weinberg 191bf46407 aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and USE_INCLUDED_LIBINTL when appropriate.
* aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
	USE_INCLUDED_LIBINTL when appropriate.
	* configure, config.in: Regenerate.
	* Makefile.in (datadir): Set to @datadir@.
	(intl.o): Also depend on $(CONFIG_H) and system.h.

	* intl.c: Factor out common gettext initialization sequence.
	(gcc_init_libintl):  New function.
	* intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
	otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
	off NLS.  Add multiple include guard.  No need to #ifdef-guard
	an #undef.  Prototype gcc_init_libintl here.

	* collect2.c (main), cppmain.c (general_init), gcc.c (main),
	gcov.c (main), protoize.c (main), toplev.c (toplev_main):
	Use gcc_init_libintl.

intl:
	* Makefile.in: Don't copy libgnuintl.h anywhere.

From-SVN: r46348
2001-10-19 15:17:39 +00:00
Catherine Moore 7c87e9f921 stormy16.h (ASM_COMMENT_START): Define.
* config/stormy16/stormy16.h (ASM_COMMENT_START): Define.

        * config/stormy16/stormy16.c (stormy16_split_move):  Make
        sure that REG_INC notes are present for auto_inc operands.

From-SVN: r46347
2001-10-19 10:03:29 -04:00
GCC Administrator f08d20cd2e Daily bump.
From-SVN: r46344
2001-10-19 07:16:27 +00:00
Andreas Jaeger c307e6ddbe configure: Regenerated.
* configure: Regenerated.
	* configure.in: Add x86_64 to switch statements.

From-SVN: r46341
2001-10-19 08:29:18 +02:00
Richard Henderson b2c9c37eb6 alpha.md (sibcall_osf_1): Load destination address into $27 explicitly.
* config/alpha/alpha.md (sibcall_osf_1): Load destination
        address into $27 explicitly.
        (sibcall_value_osf_1): Likewise.

From-SVN: r46340
2001-10-18 22:04:54 -07:00
Richard Kenner 616051acab Install correct version of file
From-SVN: r46339
2001-10-18 21:07:52 -04:00
Richard Kenner 0d4903b81e emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
* emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
	(offset_address): New function.
	(free_emit_status): Free regno_decl.
	(init_emit): Pass proper number of elements to xcalloc.
	Allocate regno_decl.
	(mark_emit_status): Mark regno_decl values.
	* expr.c (highest_pow2_factor): New function.
	(expand_assigment): Use it and offset_address.
	Properly handle ptr_mode vs. Pmode in offset calculation.
	(store_constructor, expand_expr_unaligned): Likewise.
	(expand_expr, case COMPONENT_EXPR): Likewise.
	* expr.h (offset_address): New decl.
	* function.h (struct emit_status): Add regno_decl.
	(REGNO_DECL): New macro.
	* final.c (output_asm_name): Move in file and don't conditionalize
	on flag_print_asm_name.
	(output_asm_insn): Only call output_asm_name if flag_print_asm_name.
	Output names of operands, if known.
	* function.c (assign_parms): Set REGNO_DECL.
	* integrate.c (integrate_decl_tree): Likewise.
	* stmt.c (expand_decl): Likewise.
	* regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.

From-SVN: r46337
2001-10-18 17:34:14 -04:00
Alexandre Oliva eacecf9665 Fix the typo for real now.
From-SVN: r46336
2001-10-18 18:43:20 +00:00
Alexandre Oliva c8202d4cbe attr-noinline.c, [...]: New tests.
* gcc.dg/attr-noinline.c, gcc.dg/attr-used.c: New tests.
* gcc.dg/attr-invalid.c: Likewise.

From-SVN: r46335
2001-10-18 18:29:25 +00:00
Alexandre Oliva 9162542e3d attribs.c (handle_noinline_attribute): New function.
* attribs.c (handle_noinline_attribute): New function.
(handle_used_attribute): Likewise.
(c_common_attribute_table): Added noinline and used.
* doc/extend.texi (Function Attributes): Document them.
* c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
Warn when merging inline with attribute noinline.
(start_decl, start_function): Warn if inline and attribute
noinline appear in the same declaration.

From-SVN: r46334
2001-10-18 18:29:02 +00:00
Alexandre Oliva 97055d5c4e decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
* decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
Warn when merging inline with attribute noinline.
(start_decl, start_function): Warn if inline and attribute
noinline appear in the same declaration.

From-SVN: r46333
2001-10-18 18:27:48 +00:00
Jakub Jelinek bf911a9a73 * testsuite/gcc.dg/20011015-1.c: New test.
From-SVN: r46331
2001-10-18 10:28:33 +02:00
GCC Administrator 87992ab6da Daily bump.
From-SVN: r46329
2001-10-18 07:16:22 +00:00
Richard Henderson bf0dde96f5 std.c (ffestd_labeldef_format): Fix variable/stmt ordering.
* std.c (ffestd_labeldef_format): Fix variable/stmt ordering.
        (ffestd_R737A): Likewise.

From-SVN: r46328
2001-10-17 20:57:51 -07:00
Richard Henderson 516b69ff81 com.h: Remove FFECOM_targetCURRENT...
* com.h: Remove FFECOM_targetCURRENT, FFECOM_ONEPASS, BUILT_FOR_270,
        BUILT_FOR_280, FFECOM_GCC_INCLUDE, all derivitive defines, and all
        related conditional compilation directives.
        * bad.c, bld.c, bld.h, com.c, equiv.c, equiv.h, global.h, intdoc.c,
        intrin.c, intrin.h, lex.c, parse.c, sta.c, std.c, ste.c, ste.h, stt.c,
        stt.h, stw.h, symbol.c, symbol.h, target.h, top.c: Likewise.

From-SVN: r46324
2001-10-17 15:34:54 -07:00
Neil Booth 51fabca55a config.gcc: Update c4x and i370 for C front end-specific dependencies.
* config.gcc: Update c4x and i370 for C front end-specific
	dependencies.
	* config/c4x/c4x-c.c: New.
	* config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
	(code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
	New declarations.
	* config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
	(code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
	Make extern.
	(c4x_init_pragma): Remove.
	(c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
	c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
	c4x_pr_ignored): Move to c4x-c.c.
	* config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
	* config/c4x/t-c4x: Update.
	* config/i370/i370-c.c: New.
	* config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
	(i370_pr_map): Move to i370-c.c.
	* config/i370/t-i370: New.

	* doc/tm.texi: Update.

From-SVN: r46322
2001-10-17 20:39:13 +00:00
Stan Shebs a4f6c31268 rs6000.c: Make assorted mechanical formatting and typo fixes throughout.
* config/rs6000/rs6000.c: Make assorted mechanical formatting and
        typo fixes throughout.
        (machopic_output_stub): Remove some dead code.

From-SVN: r46320
2001-10-17 18:08:39 +00:00
Richard Henderson 17ed6335dd Makefile.in (misc.o): Depend on langhooks.h.
ada/
        * Makefile.in (misc.o): Depend on langhooks.h.
        * misc.c: Include it.
        (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
        (LANG_HOOKS_DECODE_OPTION): New.
        (lang_hooks): Use LANG_HOOKS_INITIALIZER.
f/
        * Make-lang.in (f/com.o): Depend on langhooks.h.
        * com.c: Include it.
        (LANG_HOOKS_INIT, LANG_HOOKS_FINISH): New.
        (LANG_HOOKS_INIT_OPTIONS, LANG_HOOKS_DECODE_OPTION): New.
        (lang_hooks): Use LANG_HOOKS_INITIALIZER.
java/
        * Make-lang.in (java/lang.o): Depend on langhooks.h.

From-SVN: r46318
2001-10-17 10:19:18 -07:00
Richard Earnshaw 34f5271ddd cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory leak.
* cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
leak.

From-SVN: r46317
2001-10-17 16:20:04 +00:00
Richard Kenner 3c5ad1ffc6 Makefile.in (print-rtl.o): Depend on TREE_H.
* Makefile.in (print-rtl.o): Depend on TREE_H.
	* alias.c (get_alias_set): Make two passes over objects to first
	see if inner object is access via restricted pointer.
	Defer allocating alias set for restricted pointer until here.
	Call find_placeholder with second arg nonzero.
	Minor cleanups.
	* c-common.c (c_apply_type_quals_to_decl): Defer getting alias
	set for restricted pointer types.
	* emit-rtl.c (set_mem_attributes): Set more attributes.
	(set_mem_align, change_address, adjust_address_1): New functions.
	(change_address_1): Now static.
	(adjust_address, adjust_address_nv): Deleted.
	(replace_equiv_address): Call change_address_1.
	* expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
	(find_placeholder): Get starting point from PLIST arg.
	(expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
	* expr.h (set_mem_align, change_address, adjust_address_1): New decls.
	(adjust_address, adjust_address_nv): New macros.
	* print-rtl.c (tree.h): New include.
	(print_rtx, case MEM): Print all memory attributes.

From-SVN: r46314
2001-10-17 05:40:21 -04:00
Richard Kenner 738cc47245 Makefile.in (print-rtl.o): Depend on TREE_H.
* Makefile.in (print-rtl.o): Depend on TREE_H.
	* alias.c (get_alias_set): Make two passes over objects to first
	see if inner object is access via restricted pointer.
	Defer allocating alias set for restricted pointer until here.
	Call find_placeholder with second arg nonzero.
	Minor cleanups.
	* emit-rtl.c (set_mem_attributes): Set more attributes.
	(set_mem_align, change_address, adjust_address_1): New functions.
	(change_address_1): Now static.
	(adjust_address, adjust_address_nv): Deleted.
	(replace_equiv_address): Call change_address_1.
	* expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
	(find_placeholder): Get starting point from PLIST arg.
	(expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
	* expr.h (set_mem_align, change_address, adjust_address_1): New decls.
	(adjust_address, adjust_address_nv): New macros.
	* print-rtl.c (tree.h): New include.
	(print_rtx, case MEM): Print all memory attributes.

From-SVN: r46313
2001-10-17 05:31:36 -04:00
Richard Henderson 4d8f669f94 * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
From-SVN: r46311
2001-10-17 02:05:18 -07:00
Matt Kraai 14976c58e9 c-tree.texi: Eliminate duplicated word.
* c-tree.texi: Eliminate duplicated word.
	* cpp.texi: Likewise.
	* install.texi: Likewise.
	* invoke.texi: Likewise.
	* tm.texi: Likewise.

From-SVN: r46310
2001-10-17 08:44:09 +00:00
GCC Administrator e0a1c10724 Daily bump.
From-SVN: r46309
2001-10-17 07:16:59 +00:00
Michael Collison 808dbdd51b Add ChangeLog entry for dsp16xx/dsp16xx.c change.
From-SVN: r46306
2001-10-17 04:38:50 +00:00
Michael Collison 6b0880cb4e dsp16xx.c: Fix comment formatting to match GNU standards.
* dsp16xx.c: Fix comment formatting to match GNU standards.
(dsp16xx_output_function_prologue): Change type of 'size'
parameter from 'int' to HOST_WIDE_INT.
(dsp16xx_output_function_epilogue): Change type of 'size'
parameter from 'int' to HOST_WIDE_INT.

From-SVN: r46305
2001-10-17 04:36:18 +00:00
Richard Henderson f88c65f7e3 configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
* configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
        * configure, config.in: Rebuild.

        * config/i386/i386.c (ix86_output_addr_vec_elt): New.
        (ix86_output_addr_diff_elt): New.
        * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
        (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
        (JUMP_TABLES_IN_TEXT_SECTION): New.
        * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
        * config/i386/i386-protos.h: Update.

        * config/i386/386bsd.h, config/i386/beos-elf.h,
        config/i386/freebsd-aout.h, config/i386/freebsd.h,
        config/i386/i386-interix.h, config/i386/i386elf.h,
        config/i386/linux.h, config/i386/netbsd-elf.h,
        config/i386/netbsd.h, config/i386/openbsd.h,
        config/i386/ptx4-i.h, config/i386/rtemself.h,
        config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
        (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.

From-SVN: r46303
2001-10-16 18:39:47 -07:00
H.J. Lu b5823a4422 cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined for tree checking disabled.
* cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
        for tree checking disabled.

From-SVN: r46302
2001-10-16 18:00:40 -07:00
Florian Weimer 2ec3713609 * stmt.c (expand_asm_operands): Update commentary.
From-SVN: r46301
2001-10-16 17:32:56 -07:00
Stan Shebs abe72dd8aa darwin.h (GCC_NAME): Remove, no longer used.
* config/darwin.h (GCC_NAME): Remove, no longer used.
        (NO_MATH_LIBRARY): Ditto.
        (MATH_LIBRARY): Define to emptiness.
        (DWARF2_DEBUGGING_INFO): Define.
        (PREFERRED_DEBUGGING_TYPE): Define.
        (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
        (EXCEPTION_SECTION): Define.
        (ASM_PREFERRED_EH_DATA_FORMAT): Define.
        * config/darwin.c (darwin_encode_section_info): Handle case of
        DECL_INITIAL being error_mark_node.

From-SVN: r46300
2001-10-16 23:22:27 +00:00
Richard Henderson 1afec8ade9 alpha.c (current_file_function_operand): Don't fail for profiling.
* alpha.c (current_file_function_operand): Don't fail for profiling.
        (direct_call_operand): New.
        * alpha-protos.h: Declare it.
        * alpha.h (EXTRA_CONSTRAINT): Use it.
        (PREDICATE_CODES): Add it.
        (ASM_OUTPUT_MI_THUNK): Remove.
        * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
        * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.

From-SVN: r46299
2001-10-16 15:44:39 -07:00
Krister Walfridsson 087772344c netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
* config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
        (JUMP_TABLES_IN_TEXT_SECTION): Define.

From-SVN: r46298
2001-10-16 15:38:40 -07:00
Jan Hubicka d39ac0fdc0 cfg.c (free_edge): Break out from ....
* cfg.c (free_edge): Break out from ....
	(remove_edge): ... here.
	(clear_edges): Use free_edge.

	* att.h (ASM_QUAD): Add comment.
	* bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.

From-SVN: r46297
2001-10-16 22:24:16 +00:00
Jan Hubicka 44cf5b6a71 i386.c (split_ti): New function.
* i386.c (split_ti): New function.
	(ix86_split_to_parts): Support TImodes.
	* i386.h (VALID_INT_MODE_P): Add TImode.
	* i386.md (movdi splitter): Fix.
	(movti): Support 64bit integer registers.
	(movti_rex64): New function and splitter.

	* i386.c (*_cost): Add movsx/movzx cost.
	* i386.h (struct processor_costs): Add movsx/movzx fields.
	(RTX_COSTS): Handle zero/sign extend + avoid believing that
	64bit operations require split on 64bit machine.
	(CONST_COST): Make large 64bit constants expensive on 64bit compilation.

	* i386.c (ix86_setup_incomming_varargs): Fix mode of PLUS.
	(ix86_expand_move): Avoid pushes of memory if size does not match;
	move long constants to register.
	(x86_initialize_trampoline): Fix mode.
	* i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
	Use ASM_QUAD on 64bit.
	* i386.md (test pattern): Disallow impossible constants.
	(tablejump PIC expander): Fix emitting of sum.
	(movdicc_rex64): Rename to movdicc.
	* linux64.h (LINK_SPEC): Add missing '%'.

From-SVN: r46296
2001-10-16 22:04:20 +00:00
Hans-Peter Nilsson dc8ad2989f cp-tree.h (VFIELD_NAME_FORMAT): Adjust to match VFIELD_NAME.
* cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
	NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.

From-SVN: r46293
2001-10-16 21:19:34 +00:00
Alexandre Oliva e95301f52e tree-inline.c (inlinable_function_p): Leave it up to the front-end to turn -finline-functions into DECL_INLINE set...
* tree-inline.c (inlinable_function_p): Leave it up to the
front-end to turn -finline-functions into DECL_INLINE set for all
functions.

From-SVN: r46292
2001-10-16 21:17:59 +00:00
Stan Shebs deb5bfcc15 * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
From-SVN: r46291
2001-10-16 20:16:45 +00:00
Florian Weimer f2436274a5 trans.c (tree_transform): Adjust to recent change in expand_asm_operands to implement named asm operands.
* trans.c (tree_transform): Adjust to recent change in
	expand_asm_operands to implement named asm operands.

From-SVN: r46289
2001-10-16 21:12:53 +02:00
Richard Sandiford 756b2d5ef5 * g++.dg/template/unify2.C: New test.
From-SVN: r46288
2001-10-16 13:09:17 +00:00
Richard Sandiford d9f818d95c pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
* pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
	(unify): Only handle MINUS_EXPR specially if the above flag is set
	and the subtracted constant is 1.  Clear the flag on recursive calls.
	Set it when unifying the maximum value in an INTEGER_TYPE's range.

From-SVN: r46287
2001-10-16 13:07:29 +00:00
Richard Sandiford 2d1245b8c8 * g++.dg/other/exception-specification.C: New test
From-SVN: r46286
2001-10-16 13:02:39 +00:00
Richard Sandiford e1be26f4f2 decl.c (bad_specifiers): Don't allow exception specifications on any typedefs.
* decl.c (bad_specifiers): Don't allow exception specifications
	on any typedefs.

From-SVN: r46285
2001-10-16 13:01:44 +00:00
GCC Administrator d3a1246b2d Daily bump.
From-SVN: r46278
2001-10-16 07:16:11 +00:00
Alan Modra ffb5e2e21f * recog.c: Formatting and comment typo fixes.
From-SVN: r46276
2001-10-16 13:49:26 +09:30
Alan Modra 0936a455f3 configure.in (gcc_cv_as_bfd_srcdir): New.
* configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
	version in single tree build.
	* configure: Regenerate.

From-SVN: r46275
2001-10-16 13:03:48 +09:30
David Edelsohn 2d4368e6cd rs6000.md (cr_logical): Swap order of CODE and MODE arguments to
gen_rtx and compare operand with const0_rtx.

From-SVN: r46273
2001-10-15 20:43:21 -04:00
Alexandre Petit-Bianco c83303d8a4 lang.c (langhooks.h): Included.
2001-10-15  Alexandre Petit-Bianco  <apbianco@redhat.com>

        * lang.c (langhooks.h): Included.
        (LANG_HOOKS_INIT): Redefined.
        (LANG_HOOKS_INIT_OPTIONS): Likewise.
        (LANG_HOOKS_DECODE_OPTION): Likewise.
        (struct lang_hooks lang_hooks): New initialization.

( http://gcc.gnu.org/ml/gcc-patches/2001-10/msg00692.html )

From-SVN: r46270
2001-10-15 15:10:56 -07:00
Neil Booth 41441dc7ff system.h: Poison old unused target macros.
* system.h: Poison old unused target macros.
	* config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
	* config/stormy16/stormy16.c: Update references to obsolete macros.
	* config/stormy16/stormy16.h: Similarly.
	* config/stormy16/stormy16.md: Similarly.
	* config/cris/cris.h: Similarly.

From-SVN: r46269
2001-10-15 20:10:13 +00:00
GCC Administrator 7c4f13fd46 Daily bump.
From-SVN: r46264
2001-10-15 07:16:13 +00:00
Neil Booth 4b115ff0ea cpplib.c (struct pragma_entry): Store the name as a hashnode.
* cpplib.c (struct pragma_entry): Store the name as a hashnode.
	(lookup_pragma_entry, insert_pragma_entry, do_pragma,
	cpp_register_pragma): Update accordingly.

From-SVN: r46255
2001-10-14 23:04:13 +00:00
Neil Booth a5da89c6a8 c-pragma.h (cpp_register_pragma_space): Remove.
* c-pragma.h (cpp_register_pragma_space): Remove.
	* cpplib.h (cpp_register_pragma_space): Remove.
	* cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
	(cpp_register_pragma_space): Remove.
	(cpp_register_pragma): Simplify using lookup_pragma_entry,
	add sanity checks.
	(do_pragma): Similarly.
	(_cpp_init_internal_pragmas): Don't register namespaces.

	* config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
	Don't register namespaces.
	* cp/lex.c (init_cp_pragma): Similarly.
	* doc/tm.texi: Update.

From-SVN: r46254
2001-10-14 17:44:00 +00:00
GCC Administrator 7c3e4ebb84 Daily bump.
From-SVN: r46252
2001-10-14 07:16:41 +00:00
Craig Rodrigues 0cb13cd21c re PR c/4157 (space missing in gcc-3.0.1/gcc/config/i386/cygwin.h)
PR c/4157
* config/i386/cygwin.h: Add missing space to MINGW_INCLUDES

From-SVN: r46250
2001-10-14 04:24:26 +00:00
Michael Collison c54db4c997 Added changes for dsp16xx port.
From-SVN: r46249
2001-10-14 02:16:53 +00:00
Michael Collison dff06f62c9 dsp16xx.md: Rewrite for more efficient code and add scheduling support.
* config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
	add scheduling support.
	* config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
	* config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
	* config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.

From-SVN: r46248
2001-10-14 02:14:28 +00:00
Kriang Lerdsuwanakij 4f96ff63b3 pt.c (lookup_template_class): Build complete template arguments for BOUND_TEMPLATE_TEMPLATE_PARM.
* pt.c (lookup_template_class): Build complete template arguments
	for BOUND_TEMPLATE_TEMPLATE_PARM.

From-SVN: r46245
2001-10-13 15:00:44 +00:00
Kriang Lerdsuwanakij 11e74ea6c6 cp-tree.h (TYPE_BINFO): Update comment.
* cp-tree.h (TYPE_BINFO): Update comment.
	(BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
	(TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
	(TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
	(copy_type): Prototype new function.
	* lex.c (copy_lang_decl): Gather tree node statistics.
	(copy_lang_type): New function.
	(copy_type): Likewise.
	(cp_make_lang_type): Create lang_type for
	BOUND_TEMPLATE_TEMPLATE_PARM.  Set TYPE_BINFO for TYPENAME_TYPE
	and BOUND_TEMPLATE_TEMPLATE_PARM.
	* pt.c (tsubst): Use copy_type instead of copy_node.
	* search.c (lookup_field_1): Ignore TYPENAME_TYPE.

From-SVN: r46244
2001-10-13 13:24:34 +00:00
Kriang Lerdsuwanakij f5d47abdf7 pt.c (determine_specialization): Ignore functions without DECL_TEMPLATE_INFO.
* pt.c (determine_specialization): Ignore functions without
	DECL_TEMPLATE_INFO.

From-SVN: r46243
2001-10-13 13:11:09 +00:00
GCC Administrator 45701819ce Daily bump.
From-SVN: r46242
2001-10-13 07:17:10 +00:00
Tom Rix e2ccde7b44 XFAIL these tests on AIX when using -msoft-float
From-SVN: r46240
2001-10-13 06:16:29 +00:00
Hans-Peter Nilsson 5e3db92d6b cris.c (cris_legitimate_pic_operand): Kludge around missing CONSTANT_P test in core GCC.
* config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
	missing CONSTANT_P test in core GCC.

From-SVN: r46239
2001-10-13 01:54:37 +00:00
Neil Booth 0c34509f6d cppmain.c (struct printer): New member source.
* cppmain.c (struct printer): New member source.
	(scan_translation_unit): Fix spacing at start of lines.
	(cb_line_change): Update.

	* gcc.dg/cpp/spacing2.c: New test.

From-SVN: r46237
2001-10-12 22:31:04 +00:00
Hans-Peter Nilsson 44a4ca5e4f arit.c: Use __builtin_labs, not abs.
* config/cris/arit.c: Use __builtin_labs, not abs.

	* config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.

	* config/cris/cris.c (cris_target_asm_function_epilogue): Move
	misplaced sprintf and fprintf argument.

From-SVN: r46234
2001-10-12 19:44:38 +00:00
Zack Weinberg 71a9457763 ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
top:
	* ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
	* configure.in, Makefile.in: Take out obsolete check-po logic.
	* configure, config.in: Regenerate.
intl:
	* Update entire directory from gettext 0.10.40.
	* cat-compat.c, linux-msg.sed, po2tbl.sed.in, xopen-msg.sed:
	Removed.
	* config.charset, dcigettext.c, dcngettext.c, libgnuintl.h,
	localcharset.c, locale.alias, ngettext.c, plural.c, plural.y,
	ref-add.sin, ref-del.sin: New.
po:
	* Makefile.in.in: Upgrade to gettext-0.10.40.
	* cat-id-tbl.c: Remove file.
	* stamp-cat-id: Remove file.

From-SVN: r46233
2001-10-12 17:24:30 +00:00
Ziemowit Laski 7e21622e0e objc-act.c (finish_objc): Correct precondition for emitting symtab declarations.
2001-10-12  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (finish_objc): Correct precondition for emitting
        symtab declarations.

From-SVN: r46232
2001-10-12 16:01:16 +00:00
Stan Shebs 592696ddc8 rs6000.c: Remove uses of "register" specifier in declarations of arguments and local...
* config/rs6000/rs6000.c: Remove uses of "register" specifier in
        declarations of arguments and local variables.

From-SVN: r46231
2001-10-12 13:46:50 +00:00
Christopher Faylor 4717f6c17c cygwin.h: Revert erroneous checkin of crtbegin and ENDFILE_SPEC definition.
* config/i386/cygwin.h: Revert erroneous checkin of crtbegin and ENDFILE_SPEC
definition.

From-SVN: r46230
2001-10-12 13:15:34 +00:00
Kazu Hirata 71287280a2 gthr-dce.h: Fix comment formatting.
* gthr-dce.h: Fix comment formatting.
	* gthr-posix.h: Likewise.
	* gthr-single.h: Likewise.
	* gthr-solaris.h: Likewise.
	* gthr-vxworks.h: Likewise.
	* gthr-win32.h: Likewise.

From-SVN: r46229
2001-10-12 13:10:33 +00:00
Jakub Jelinek 8554d9a464 final.c (output_asm_insn): Make sure assembly dialects are terminated, not nested.
* final.c (output_asm_insn): Make sure assembly dialects are
	terminated, not nested.  Output `|' and `}' characters if they
	don't appear inside assembly dialect selection.
	* config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
	rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
	rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
	strsetsi_rex_1): Add {} braces.

	* testsuite/gcc.dg/20011009-1.c: New test.

From-SVN: r46227
2001-10-12 12:51:17 +02:00
Nathan Sidwell e60505a59d re PR c++/4476 (g++ does not parse the definition of friend function within a class properly)
cp:
	PR g++/4476
	* typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
testsuite:
	PR g++/4476
	* g++.dg/other/friend1.C: New test.

From-SVN: r46226
2001-10-12 09:06:32 +00:00
GCC Administrator a77776205c Daily bump.
From-SVN: r46224
2001-10-12 07:41:11 +00:00
Zack Weinberg 7cb4ff28b1 toplev.c (compile_file): Ignore return value from yyparse.
* toplev.c (compile_file): Ignore return value from yyparse.
	Always pop any nested binding levels after yyparse returns.

From-SVN: r46223
2001-10-12 03:34:39 +00:00
Ed Schonberg b14127e691 exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in renaming of discriminant for mutable record type.
* exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
	renaming of discriminant for mutable record type.

From-SVN: r46222
2001-10-12 03:11:33 +02:00
Robert Dewar e70ee92a44 * validsw.adb: Properly save -gnatVn status.
From-SVN: r46221
2001-10-12 02:59:14 +02:00
Robert Dewar 9a5621d73c usage.adb: Add lines for V switch.
* usage.adb: Add lines for V switch.

	* gnatcmd.adb (COMPILE): Revise translations for -gnatV
	(/VALIDITY_CHECKING).

From-SVN: r46219
2001-10-12 02:46:56 +02:00
Richard Henderson bcb913fb97 * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
From-SVN: r46218
2001-10-11 17:38:08 -07:00
Ed Schonberg 45667f04a0 sem_type.adb (Add_One_Interp): an operator for a type declared in an extension of System is known to be visible.
* sem_type.adb (Add_One_Interp): an operator for a type declared in
	an extension of System is known to be visible.

From-SVN: r46217
2001-10-12 02:35:43 +02:00
Ed Schonberg c3de5c4c1b sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal properly.
* sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
	properly. Fixes regression on ACATS C34005G.

From-SVN: r46216
2001-10-12 02:32:42 +02:00
Robert Dewar 4fa964a692 sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null loop in generic instance...
* sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
	loop in generic instance, since this is likely not very useful.

From-SVN: r46215
2001-10-12 02:28:21 +02:00
Robert Dewar 0868e09caa restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize the error message for high integrity mode.
* restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
	the error message for high integrity mode.

	* rtsfind.adb (RTE): Give message if we try to find an entity that
	is not available in high integrity mode.

	* rtsfind.ads:
	(OK_To_Use_In_HIE_Mode): New array.
	(RTE): May return Empty in high integrity mode.

	* rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
	OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.

	* sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
	unit if not inlined always and in no runtime mode. Fixes problem
	caused by new Rtsfind changes.

	* sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
	body is deleted.

	* rtsfind.adb (RTE): Make sure we do not try to load unit after
	giving message for entity not available in high integrity mode.

From-SVN: r46214
2001-10-12 02:21:40 +02:00
Pascal Obry 934abf9c1f * impunit.adb: Add GNAT.CRC32.
From-SVN: r46213
2001-10-12 02:11:48 +02:00
Richard Henderson 794e24e7a5 New.
From-SVN: r46212
2001-10-11 17:10:34 -07:00
Ed Schonberg 3c72bea4b1 exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle properly the case where one universal operand in a non-static...
* exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
	properly the case where one universal operand in a non-static
	exponentiation of a real literal.

From-SVN: r46211
2001-10-12 02:05:45 +02:00
Ed Schonberg 44d8d2bb3b exp_ch7.adb (Find_Final_List): for a type appearing in a with_type clause...
* exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
	clause, return the gobal finalization list, for lack of anthing else.

From-SVN: r46210
2001-10-12 01:54:52 +02:00
Per Bothner 89b894e19b parse.y (patch_synchronized_statement): Use a TRY_FINALLY_EXPR rather than a CLEANUP_POINT_EXPR/WITH_CLEANUP_EXPR pair.
* parse.y (patch_synchronized_statement):  Use a TRY_FINALLY_EXPR
	rather than a CLEANUP_POINT_EXPR/WITH_CLEANUP_EXPR pair.
	The former is simpler, and jcf-write.c handles it better.
	(java_complete_lhs):  No longer need to handle CLEANUP_POINT_EXPR
	or WITH_CLEANUP_EXPR.
	* jcf-write.c:  Revert Alex's change from 2000-10-18.  It is no
	longer needed, as we already handle empty TRY_FINALLY_EXPR bodies fine.

From-SVN: r46209
2001-10-11 16:50:49 -07:00
Ed Schonberg 9e2b96271d exp_ch7.adb (Make_Transient_Block): if statement is within exception handler...
* exp_ch7.adb (Make_Transient_Block): if statement is within
	exception handler, always use new transient scope to place Clean
	procedure.

From-SVN: r46208
2001-10-12 01:50:31 +02:00
Per Bothner be98560f31 parse.y (patch_if_else_statement): If the condition is constant, optimize away the test.
* parse.y (patch_if_else_statement):  If the condition is constant,
	optimize away the test.

From-SVN: r46207
2001-10-11 16:34:03 -07:00
Pascal Obry cfac6e9fb4 * Makefile.in:
(GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
	(GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
	(GNATLS_RTL_OBJS): add g-crc32.o
	(GNATMAKE_RTL_OBJS): add g-crc32.o

	* ali-util.adb:
	(CRC_Match): new function.
	(Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
	instead of the previous simple checksum algorithm.
	(Time_Stamp_Mismatch): use CRC_Match for comparison.
	(Set_Source_Table): idem.

	* ali-util.ads:
	(Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
	instead of simple checksum.
	(CRC_Match): new function.
	(CRC_Error): new constant.

	* ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
	a CRC now and not a simple checksum. A CRC uses lower-case hex
	letters, fixes ambiguity in parsing.

	* ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
	is what this variable will store.

	* bcheck.adb: Change reference to chechsum in comments by CRC.
	(Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
	rename All_Checksum_Match to All_CRC_Match. Change due to API
	renaming since now GNAT does not use a simple checksum but a
	CRC using GNAT.CRC32.

	* gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
	now and not anymore a simple checksum.

	* lib-load.adb: Use Source_CRC instead of Source_Checksum in many
	places.

	* lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.

	* scans.adb:
	(Restore_Scan_State): rename Checksum to CRC.
	(Save_Scan_State): idem.

	* scans.ads:
	With GNAT.CRC32.
	(Checksum): rename to CRC.
	(Saved_Scan_State): Save_Checksum field renamed to Save_CRC

	* scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
	GNAT.CRC32).  Update copyright notice.

	* scn-slit.adb: Rename many Accumulate_Checksum to Update (from
	GNAT.CRC32).  Update copyright notice.

	* scn.adb:
	(Accumulate_Checksum): removed.
	(Update): new procedure. Add a wide-character into the CRC.

	* sinput-l.adb:
	(Complete_Source_File_Entry): use CRC32 instead of simple checksum.
	(Load_File): fix initialization of S (change Source_Checksum to
	Source_CRC)

	* sinput-p.adb (Load_Project_File): rename Source_Checksum to
	Source_CRC in S initialization.

	* sinput.adb (Source_Checksum): renamed to Source_CRC.

	* sinput.ads (Source_Checksum): renamed to Source_CRC.
	Update comments for the CRC.

	* types.adb (Hex): Use lowercase for the letter part.

	* types.ads (Get_Hex_String): Returns the hexadecimal representation
	for a word. This is currently used only for CRC. In previous version,
	the checksum was using a representation with all letter being
	upper-case. With the new implementation (using CRC) we do not remove
	the 32th bit of the CRC, so we can have an upper-case starting letter
	in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
	It is ambigous since the CRC was optional and could be followed by
	options like EB, EE. So now this routines uses lower-case letter for
	the hexadecimal representation. Strange enough only lower case letters
	where checked in Scan_ALI (even if this was not a possible case).

	* gnatvsn.ads (Library_Version): changed to 3.15a.

	* s-crc32.ads: Initial version from GNAT.CRC32. This is the version
	for the compiler.

	* s-crc32.adb: Initial version from GNAT.CRC32. This is the version
	for the compiler.

	* ali-util.adb: Redo previous change to avoid using word CRC everywhere
	Add 2001 to copyright notice
	(Accumulate_Checksum): Modify to use System.CRC32.

	* ali-util.ads: Redo changes of previous revision to continue to use
	the word Checksum. Add 2001 to copyright notice.

	* ali.adb: Undo some of previous changes, not needed.
	Keep the change for lower case letters in the checksum.

	* ali.ads: Undo previous change not needed.

	* bcheck.adb: Undo most of previous change, not needed.
	But do use Checksums_Match for checksum comparison.

	* gnatls.adb: Undo most of previous change, not needed.
	But do use Checksums_Match for comparing checksums.

	* lib-load.adb: Undo previous change, not needed.

	* lib-writ.adb: Undo previous change, not needed.

	* lib-writ.ads: Document that checksums use lower case,
	not upper case letters.

	* scans.adb: Undo previous change, not needed

	* scans.ads: Undo previous change, not needed.

	* scn-nlit.adb: Undo previous changes, not needed.

	* scn-slit.adb: Undo previous change, not needed.  Fix header format.

	* scn.adb:
	(Accumulate_Checksum): Use System.CRC32.
	(Initialize_Checksum): New procedure.
	Remove other changes of previous revision.

	* sinput-p.adb: Undo previous change, not needed.

	* sinput.adb: Undo previous change, not needed.

	* sinput-l.adb: Undo previous change, not needed.

	* sinput.ads: Undo previous change, not needed.  Keep only comment
	on new checksum algorithm

	* Makefile.in: Add s-crc32 as needed, remove g-crc32.
	Also remove a-tags and a-stream from GNAT sources.

	* ali.adb (Scan_ALI): fix typo introduce in latest check-in.

	* Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.

From-SVN: r46206
2001-10-12 01:28:47 +02:00
Richard Henderson 3d7a191ffc Tidy last change.
From-SVN: r46205
2001-10-11 16:26:08 -07:00
Richard Henderson 5929a2f013 dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT, fall back to add_AT_long_long for large CONST_INT.
* dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
        fall back to add_AT_long_long for large CONST_INT.

From-SVN: r46204
2001-10-11 16:20:54 -07:00
Richard Henderson 1097820739 i386.md (setcc splitters): Add four splitters to simplify compound compares that simplify_comparison can't...
* config/i386/i386.md (setcc splitters): Add four splitters to
        simplify compound compares that simplify_comparison can't handle.

From-SVN: r46203
2001-10-11 14:49:36 -07:00
Jason Merrill 6f32162af6 typeck2.c (store_init_value): Don't re-digest a bracketed initializer.
* typeck2.c (store_init_value): Don't re-digest a bracketed
        initializer.

        * class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
        ANON_AGGR_TYPE_P.

From-SVN: r46202
2001-10-11 17:33:09 -04:00
Zack Weinberg 8206c799f2 * cpplex.c (digraph_spellings, token_spellings): Make static.
From-SVN: r46201
2001-10-11 21:21:57 +00:00
Geert Bosch 4d6d06a5c7 einfo.h: Regenerate.
* einfo.h: Regenerate.

	* nmake.ads: Regenerate.

	* nmake.adb: Regenerate.

	* sinfo.h: Regenerate.

	* treeprs.adb: Regenerate.

From-SVN: r46200
2001-10-11 22:56:56 +02:00
Geert Bosch c97412e2c8 * gnat-style.texi: New file describing coding guidelines for Ada.
From-SVN: r46198
2001-10-11 22:01:11 +02:00
Franz Sirl a185c30264 unroll.c (loop_iterations): Fixup last patch.
2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* unroll.c (loop_iterations): Fixup last patch.

From-SVN: r46197
2001-10-11 19:43:39 +00:00
Richard Henderson 4a8d0c9c68 rtl.h (REG_VTABLE_REF): New.
* rtl.h (REG_VTABLE_REF): New.
        * rtl.c (reg_note_name): Add it.
        * combine.c (distribute_notes): Handle it.
        * final.c (final_scan_insn): Handle it.
        * tree.def (VTABLE_REF): New.
        * expr.c (expand_expr): Handle it.
        * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
        * output.h: Declare them.
cp/
        * class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
        of an asm statement.
        (build_vtbl_ref_1): Split out from build_vtbl_ref.
        (build_vfn_ref): Use it to handle vtable descriptors before
        calling build_vtable_entry_ref.
        * decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
testsuite/
        * g++.old-deja/g++.other/crash18.C: Add -S to options.

From-SVN: r46195
2001-10-11 11:48:42 -07:00
Richard Henderson 8063ddcf23 dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look for a DECL_INITIAL.
* dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
        for a DECL_INITIAL.

From-SVN: r46193
2001-10-11 10:46:53 -07:00
David Edelsohn 0faae2f522 xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only available in 64-bit mode.
* config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
        available in 64-bit mode.

From-SVN: r46192
2001-10-11 13:37:21 -04:00
Hans-Peter Nilsson 0b85d8165e config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none, cris-*-linux* cases.
* config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
	cris-*-linux* cases.
	* config/cris/cris-protos.h: New file.
	* config/cris/cris.c: New file.
	* config/cris/cris.h: New file.
	* config/cris/cris.md: New file.
	* config/cris/linux.h: New file.
	* config/cris/aout.h: New file.
	* config/cris/arit.c: New file.
	* config/cris/cris_abi_symbol.c: New file.
	* config/cris/mulsi3.asm: New file.
	* config/cris/t-aout: New file.
	* config/cris/t-cris: New file.
	* config/cris/t-elfmulti: New file.
	* config/cris/t-linux: New file.
	* doc/invoke.texi: Add CRIS options.
	* doc/install.texi (Specific): Add blurb for CRIS.

From-SVN: r46191
2001-10-11 17:02:36 +00:00
Hartmut Schirmer 6462eafacb float-i128.h: Make sure __STDC__VERSION__ is defined before using it.
* config/float-i128.h: Make sure __STDC__VERSION__ is defined
	before using it.
	* config/float/i32.h: Likewise.
	* config/float-i386.h: Likewise.
	* config/float-i64.h: Likewise.
	* config/float-m68k.h: Likewise.
	* config/float-sh.h: Likewise.
	* config/float-sparc.h: Likewise.

From-SVN: r46187
2001-10-11 15:53:57 +00:00
Hans-Peter Nilsson 8647444e59 * doc/contrib.texi: Add note about CRIS port to my entry.
From-SVN: r46184
2001-10-11 13:06:44 +00:00
Kazu Hirata eebedaa523 calls.c: Fix formatting.
* calls.c: Fix formatting.
	* c-decl.c: Likewise.
	* cfgcleanup.c: Likewise.
	* combine.c: Likewise.
	* cppfiles.c: Likewise.
	* cpplib.c: Likewise.
	* cppmacro.c: Likewise.
	* crtstuff.c: Likewise.
	* cse.c: Likewise.
	* dwarf2out.c: Likewise.
	* expmed.c: Likewise.
	* expr.c: Likewise.
	* fold-const.c: Likewise.
	* function.c: Likewise.
	* gcse.c: Likewise.
	* genattrtab.c: Likewise.
	* ggc-page.c: Likewise.
	* integrate.c: Likewise.
	* libgcc2.c: Likewise.
	* loop.c: Likewise.
	* optabs.c: Likewise.
	* profile.c: Likewise.
	* protoize.c: Likewise.
	* real.c: Likewise.
	* recog.c: Likewise.
	* reload1.c: Likewise.
	* reload.c: Likewise.
	* reorg.c: Likewise.
	* resource.c: Likewise.
	* sched-rgn.c: Likewise.
	* sdbout.c: Likewise.
	* stmt.c: Likewise.
	* toplev.c: Likewise.
	* varasm.c: Likewise.

From-SVN: r46182
2001-10-11 12:43:43 +00:00
GCC Administrator fd079ba91c Daily bump.
From-SVN: r46180
2001-10-11 07:16:20 +00:00
Richard Henderson 84b7230235 c-parse.in (asm_operand): Allow named operands.
* c-parse.in (asm_operand): Allow named operands.
        * genconfig.c (max_recog_operands): Set to 29.
        * local-alloc.c (requires_inout): Skip multiple digits.
        * recog.c (asm_operand_ok): Likewise.
        (preprocess_constraints): Use strtoul for matching constraints.
        (constrain_operands): Likewise.
        * regmove.c (find_matches): Likewise.
        * reload.c (find_reloads): Likewise.
        * stmt.c (parse_output_constraint): Don't reject in-out
        constraint on operands > 9.  Reject '[' in constraint.
        (expand_asm_operands): Handle named operands.  Use strtoul
        for matching constraints.
        (check_operand_nalternatives): Split out from expand_asm_operands.
        (check_unique_operand_names): New.
        (resolve_operand_names, resolve_operand_name_1): New.

        * doc/extend.texi (Extended Asm): Document named operands.
        * doc/md.texi (Simple Constraints): Document matching constraints
        on operands > 9.

        * parse.y (asm_operand): Allow named operands.
        * semantics.c (finish_asm_stmt): Tweek for changed location
        of the operand constrant.

From-SVN: r46179
2001-10-11 00:07:30 -07:00
Richard Henderson 592188a538 i386.c (test splitter): Narrow tests vs paradoxical subregs.
* i386.c (test splitter): Narrow tests vs paradoxical subregs.
        (jcc splitters): Add two splitters to simplify compound compares
        that simplify_comparison can't handle.

From-SVN: r46178
2001-10-10 23:56:22 -07:00
Richard Henderson 7f16eed442 * combine.c (try_combine): Handle a SEQUENCE of one insn.
From-SVN: r46177
2001-10-10 23:55:16 -07:00
Richard Henderson 59bee412cc langhooks.c: Include langhooks.h.
* langhooks.c: Include langhooks.h.
        * Makefile.in (langhooks.o): Depend on it.

From-SVN: r46176
2001-10-10 23:50:50 -07:00