1. 05 Feb, 2004 1 commit
    • re PR target/13750 (Ada bootstrap failure on Tru64 UNIX: b_gnat[1b].o comparison failure) · 839ee4bc
      	PR middle-end/13750
      	Revert:
      	2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      	PR pch/13361
      	* c-typeck.c (constructor_asmspec): Delete.
      	(struct initializer_stack): Delete field 'asmspec'.
      	(start_init): Delete saving of asmspec.
      	(finish_init): Don't update constructor_asmspec.
      	* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
      	* stmt.c (expand_asm): Duplicate strings from tree.
      	(expand_asm_operands): Likewise.
      	* tree.c (tree_size): Update computation of size of STRING_CST.
      	(make_node): Don't make STRING_CST nodes.
      	(build_string): Allocate string with tree node.
      	* tree.def (STRING_CST): Update comment.
      	* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
      	(tree_string): Place contents of string in tree node.
      	* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
      	from tree.
      
      	cp:
      	PR middle-end/13750
      	Revert:
      	2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      	PR pch/13361
      	* cp/lex.c (handle_pragma_interface): Duplicate string from tree.
      	(handle_pragma_implementation): Likewise.
      
      	testsuite:
      	PR middle-end/13750
      	Revert:
      	2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      	PR pch/13361
      	* testsuite/g++.dg/pch/wchar-1.C: New.
      	* testsuite/g++.dg/pch/wchar-1.Hs: New.
      
      From-SVN: r77343
      Rainer Orth committed
  2. 02 Feb, 2004 1 commit
    • alias.c (record_set): Use hard_regno_nregs. · 66fd46b6
      	* alias.c (record_set): Use hard_regno_nregs.
      	* bt-load.c (find_btr_reference, note_btr_set): Likewise.
      	* builtins.c (apply_args_size): Likewise.
      	* caller-save.c (setup_save_areas, save_call_clobbered_regs,
      	mark_set_regs, add_stored_regs, mark_referenced_regs,
      	insert_restore, insert_save, insert_one_insn): Likewise.
      	* cfgcleanup.c: Include regs.h
      	(mark_effect, mentions_nonequal_regs): Likewise.
      	* cfgrtl.c (mark_killed_regs): Likewise
      	* combine.c (update_table_tick, record_value_for_reg,
      	record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
      	reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
      	reg_bitfield_target_p, distribute_notes): Likewise.
      	* cse.c (mention_regs, insert, invalidate, invalidate_for_call,
      	exp_equiv_p, cse_insn): Likewise.
      	* cselib.c (cselib_lookup): Likewise.
      	(cselib_invalidate_regno, cselib_record_set): Likewise.
      	* df.c (df_ref_record): Likewise.
      	* dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
      	Likewise.
      	* flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
      	count_or_remove_death_notes_bb): Likewise.
      	* function.c (aggregate_value_p, keep_stack_depressed): Likewise.
      	* gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
      	mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
      	* integrate.c (mark_stores): Likewise.
      	* jump.c (delete_prior_computation): Likewise.
      	* lcm.c (reg_dies, reg_becomes_live): Likewise.
      	* local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
      	* loop.c (LOOP_REGNO_NREGS): Likewise.
      	* postreload.c (reload_combine, reload_combine_note_store,
      	reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
      	* ra-colorize.c (combine, color_usable_p, get_free_reg,
      	calculate_dont_begin, calculate_dont_begin, colorize_one_web,
      	try_recolor_web, insert_coalesced_conflicts, check_colors,
      	break_precolored_alias): Likewise.
      	* ra-debug.c: Include regs.h
      	(ra_print_rtx_object): Likewise.
      	* ra-rewrite (choose_spill_colors): Likewise.
      	(spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
      	* ra.c (init_ra): Likewise.
      	* recog.c (reg_fits_class_p, peep2_reg_dead_p,
      	peep2_find_free_register): Likewise.
      	* reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
      	* regclass.c (hard_regno_nregs): New array.
      	(init_reg_modes_once): Initialize it.
      	(choose_hard_reg_mode): Use it.
      	(record_reg_classes): Likewise.
      	* regmove.c (mark_flags_life_zones): Likewise.
      	* regrename.c (note_sets, clear_dead_regs, regrename_optimize,
      	scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
      	copy_value, maybe_mode_change, find_oldest_value_reg,
      	copyprop_hardreg_forward_1):
      	* regs.h (hard_regno_nregs): Declare.
      	* realod.c (reload_inner_reg_of_subreg): Use it.
      	(push_reload, combine_reloads, find_dummy_reload,
      	hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
      	refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
      	reload_adjust_reg_for_mode): Likewise.
      	* reload1.c (compute_use_by_pseudos, count_pseudo,
      	count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
      	spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
      	clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
      	allocate_reload_reg, choose_reload_regs, emit_reload_insns,
      	delete_output_reload): Likewise.
      	* resource.c (update_live_status, mark_referenced_resources,
      	mark_set_resources, mark_target_live_regs): Likewise.
      	* rtlanal.c:  Include regs.h
      	(refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
      	dead_or_set_regno_p, find_regno_note, find_reg_fusage,
      	subreg_regno_offset, subreg_offset_representable_p,
      	hoist_test_store): Likewise.
      	* sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
      	* sched-rgn.c (check_live_1, update_live_1): Likewise.
      	* stmt.c: Include regs.h
      	(decl_conflicts_with_clobbers_p): Likewise.
      	* varasm.c (make_decl_rtl): Likewise.
      	* Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
      
      From-SVN: r77088
      Jan Hubicka committed
  3. 19 Jan, 2004 1 commit
  4. 18 Jan, 2004 1 commit
  5. 16 Jan, 2004 1 commit
    • Index: ChangeLog · a6dd4094
      2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      
      	PR pch/13361
      	* c-typeck.c (constructor_asmspec): Delete.
      	(struct initializer_stack): Delete field 'asmspec'.
      	(start_init): Delete saving of asmspec.
      	(finish_init): Don't update constructor_asmspec.
      	* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
      	* stmt.c (expand_asm): Duplicate strings from tree.
      	(expand_asm_operands): Likewise.
      	* tree.c (tree_size): Update computation of size of STRING_CST.
      	(make_node): Don't make STRING_CST nodes.
      	(build_string): Allocate string with tree node.
      	* tree.def (STRING_CST): Update comment.
      	* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
      	(tree_string): Place contents of string in tree node.
      	* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
      	from tree.
      
      Index: cp/ChangeLog
      2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      
      	PR pch/13361
      	* cp/lex.c (handle_pragma_interface): Duplicate string from tree.
      	(handle_pragma_implementation): Likewise.
      
      Index: testsuite/ChangeLog
      2004-01-15  Geoffrey Keating  <geoffk@apple.com>
      
      	PR pch/13361
      	* testsuite/g++.dg/pch/wchar-1.C: New.
      	* testsuite/g++.dg/pch/wchar-1.Hs: New.
      
      From-SVN: r75961
      Geoffrey Keating committed
  6. 09 Jan, 2004 1 commit
    • expr.h (expand_expr): Make it a macro, not a function. · 0fab64a3
      	* expr.h (expand_expr): Make it a macro, not a function.
      	(expand_expr_real): New function.
      	* expr.c (store_expr): Adjust logic for deciding whether or not to
      	copy the value returned by expand_expr.
      	(expand_expr): Rename to ...
      	(expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
      	calls to language hooks.
      	* c-common.h (c_expand_expr): Adjust prototype.
      	* c-common.c (c_expand_expr): Add alt_rtl parameter.
      	* langhooks-def.h (lhd_expand_expr): Change prototype.
      	* langhooks.c (lhd_expand_expr): Add all_rtl parameter.
      	* langhooks.h (lang_hooks): Change type of expand_expr.
      	* stmt.c (stmt_status): Add x_last_expr_alt_rtl.
      	(last_expr_alt_rtl): Likewise.
      	(expand_expr_stmt_value): Set last_expr_alt_rtl.
      	(clear_last_expr): Clear it.
      	(expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
      	(expand_end_bindings): Save and restor last_expr_alt_rtl.
      	* tree.def (RTL_EXPR): Give it an additional operand.
      	* tree.h (RTL_EXPR_ALT_RTL): New macro.
      
      	* misc.c (gnat_expand_expr): Add alt_rtl parameter.
      
      	* cp-tree.h (cxx_expand_expr): Change prototype.
      	* expr.c (cxx_expand_expr): Add alt_rtl parameter.
      
      	* java-tree.h (java_expand_expr): Change prototype.
      	* expr.c (java_expand_expr): Add alt_rtl parameter.
      
      From-SVN: r75594
      Mark Mitchell committed
  7. 20 Dec, 2003 1 commit
  8. 05 Dec, 2003 2 commits
  9. 29 Nov, 2003 1 commit
  10. 20 Nov, 2003 1 commit
  11. 16 Nov, 2003 1 commit
    • Makefile.in (expr.o): Depend on $(TARGET_H). · c988af2b
      	* Makefile.in (expr.o): Depend on $(TARGET_H).
      	* target.h (return_in_msb): New target hook.
      	* target-def.h (TARGET_RETURN_IN_MSB): New macro.
      	(TARGET_CALLS): Include it.
      	* calls.c (shift_returned_value): New function.
      	(expand_call): Use it.
      	* expr.c: Include target.h.
      	(copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
      	deciding what padding is needed.  Change the name of the local
      	padding variable from big_endian_correction to padding_correction.
      	* stmt.c (shift_return_value): New function.
      	(expand_return): Use it.  Adjust memory->register copy in the same
      	way as copy_blkmode_from_reg.  Only change the return register's
      	mode if it was originally BLKmode.
      	* doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
      	* config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
      	(mips_fpr_return_fields): New, split out from mips_function_value.
      	(mips_return_in_msb, mips_return_fpr_pair): New functions.
      	(mips_function_value): Rework to use the functions above.
      	* config/mips/irix6-libc-compat.c: Delete.
      	* config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
      
      From-SVN: r73652
      Richard Sandiford committed
  12. 09 Oct, 2003 1 commit
    • stmt.c (resolve_asm_operand_names): Call check_unique_operand_names here. · 1456deaf
              * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
              here.
              (expand_asm_operands): Not here.
              (parse_input_constraint): No longer static.
              * tree.h: Declare it.
      
              * coverage.c (build_ctr_info_value): Use build_decl to make a
              VAR_DECL.
              (create_coverage): Likewise.
      java/
              * parse.y (patch_assignment): Use make_node to create a BLOCK.
              * parse.h (BUILD_PTR_FROM_NAME): Use make_node to create a
              POINTER_TYPE.
      cp/
              * tree.c (build_cplus_new): Use build_decl to create a VAR_DECL.
              (build_target_expr_with_type): Likewise.
      
              * pt.c (instantiate_class_template): Sanity check that our
              enclosing class has been instantiated.
      
      From-SVN: r72255
      Jason Merrill committed
  13. 28 Sep, 2003 1 commit
    • stmt.c (expand_asm_operands): Take a location_t, instead of individual file and line. · 177560b2
              * stmt.c (expand_asm_operands): Take a location_t, instead of
              individual file and line.
              * c-typeck.c (c_expand_asm_operands): Likewise.
              * tree.h (expand_asm_operands): Update decl.
              * c-common.h (c_expand_asm_operands): Likewise.
              * c-semantics (genrtl_asm_stmt): Update call.
      cp/
              * typeck.c (c_expand_asm_operands): Take location_t, instead of
              individual file and line.
      ada/
              * trans.c (tree_transform): Update call to expand_asm_operands.
      
      From-SVN: r71884
      Richard Henderson committed
  14. 22 Sep, 2003 1 commit
  15. 21 Sep, 2003 2 commits
    • tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const. · 7e2af53a
      	* tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
      	(TREE_FILENAME, TREE_LINENO): Likewise.
      	(set_tree_locus, copy_tree_locus, set_tree_file_line): New.
      	(TREE_LOCUS_SET_P): New.
      	* c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
      	diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
      	print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
      	tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
      	config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
      
      ada/
      	* trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
      	change to const.
      
      cp/
      	* class.c, cp-tree.h, decl.c, decl2.c, error.c, init.c,
      	method.c, optimize.c, pt.c, semantics.c, tree.c: Update for
      	DECL_SOURCE_LOCATION rename and change to const.
      
      f/
      	* com.c, ste.c: Update for DECL_SOURCE_LOCATION rename and
      	change to const.
      
      java/
      	* class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y,
      	resource.c: Update for DECL_SOURCE_LOCATION rename and change to const.
      
      treelang/
      	* treetree.c: Update for DECL_SOURCE_LOCATION rename and
      	change to const.
      
      From-SVN: r71636
      Richard Henderson committed
    • c-format.c (gcc_diag_char_table): Add %J. · ddd2d57e
              * c-format.c (gcc_diag_char_table): Add %J.
              (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
              (check_format_types): Fix wanted_type name lookup.
              (init_dynamic_diag_info): Setup %J.
              * diagnostic.c (text_specifies_location): Implement %J.
              * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
              dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
              tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
              config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
              config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
      
              * tree-inline.c: Include intl.h
              (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
              * Makefile.in (tree-inline.o): Update.
      cp/
              * decl.c, decl2.c, pt.c: Use %J in diagnostics.
      java/
              * check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics.
      testsuite/
              * gcc.dg/format/gcc_diag-1.c: Add tests for %J.
      
      From-SVN: r71619
      Richard Henderson committed
  16. 18 Sep, 2003 1 commit
    • re PR target/11184 ([ia64 hpux] ICE on __builtin_apply building libobjc) · 5ae6cd0d
      	PR target/11184
      	* builtins.c (expand_builtin_apply): Use convert_memory_address
      	before returning the value.
      
      	* alias.c (find_base_value): Simplify use of
      	convert_memory_address.
      	(find_base_term): Likewise.
      	* builtins.c (expand_builtin_stejmp_setup): Likewise.
      	(expand_builtin_longjmp): Likewise.
      	(expand_builtin_prefetch): Likewise.
      	(get_memory_rtx): Likewise.
      	(expand_builtin_return): Likewise.
      	(expand_builtin_memcpy): Likewise.
      	(expand_builtin_strncpy): Likewise.
      	(expand_builtin_memset): Likewise.
      	(expand_builtin_va_arg): Likewise.
      	(expand_builtin_va_copy): Likewise.
      	(expand_builtin_alloca): Likewise.
      	* calls.c (expand_call): Likewise.
      	* except.c (expand_builtin_extract_return_addr): Likewise.
      	(expand_builtin_eh_return): Likewise.
      	* explow.c (convert_memory_address): Define even when
      	POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
      	is already in the right mode.
      	* explow.c (memory_address): Simplify use of convert_memory_address.
      	(probe_stack_range): Likewise.
      	* expmed.c (make_tree): Likewise.
      	* expr.c (emit_block_move_in_libcall): Likewise.
      	(expand_assignment): Likewise.
      	(expand_expr): Likewise.
      	* function.c (assign_parms): Likewise.
      	(expand_function_end): Likewise.
      	* integrate.c (copy_rtx_and_substitute): Likewise.
      	* stmt.c (expand_computed_goto): Likewise.
      
      	PR target/11184
      	* gcc.dg/builtin-apply1.c: New test.
      
      From-SVN: r71539
      Mark Mitchell committed
  17. 04 Sep, 2003 1 commit
    • targhooks.c: New file. · 61f71b34
      	* targhooks.c: New file.
      	* targhooks.h: New file.
      	* Makefile.in: Add targhooks.o support.
      	(function.o): Depend on$(TARGET_H).
      	(stmt.o): Likewise.
      	(combine.o): Depend on $(TREE_H) and $(TARGET_H).
      	* builtins.c (apply_args_size, expand_builtin_apply_args_1,
      	expand_builtin_apply): Convert to calls.struct_value_rtx hook.
      	(expand_builtin_saveregs): Convert to
      	calls.expand_builtin_saveregs hook.
      	* c-decl.c (start_decl): Handle new calls.promote_prototypes hook
      	here, instead of ...
      	(get_parm_info) ... here.
      	(store_parm_decls_oldstyle): Convert to calls.promote_prototypes
      	hook.
      	(finish_function): Handle calls.promote_prototypes hook here too.
      	* c-typeck.c (convert_arguments): Convert to
      	calls.promote_prototypes hook.
      	(c_convert_parm_for_inlining): Likewise.
      	* calls.c (initialize_argument_information): Convert to
      	calls.promote_function_args hook.
      	(expand_call): Convert to calls.struct_value_rtx,
      	calls.strict_argument_naming,
      	calls.pretend_outgoing_varargs_named, and
      	calls.promote_function_return hooks.  Pass fndecl to
      	aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
      	hooks, so they can use that.
      	(emit_library_call_value_1): Likewise.
      	* combine.c (setup_incoming_promotions): Convert to
      	calls.promote_function_args hook.
      	* emit-rtl.c: Convert to calls.struct_value_rtx hook.
      	* expr.c (expand_assignment): Pass call to aggregate_value_p.
      	(expand_expr): Likewise.
      	* expr.h: Remove support for SETUP_INCOMING_VARARGS,
      	STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
      	RETURN_IN_MEMORY macro defaults.
      	* final.c (profile_function): Convert to calls.struct_value_rtx
      	hook.
      	* function.c (aggregate_value_p): Accept function type tree as
      	second parameter; try to deduce fntype from it.  Convert to
      	calls.return_in_memory hook.
      	(assign_parms): Convert to calls.setup_incoming_varargs,
      	calls.strict_argument_naming, calls.promote_function_args,
      	calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
      	aggregate_value_p.
      	(expand_function_start): Likewise.  Convert to
      	calls.struct_value_rtx hook.
      	(expand_function_end): Convert to calls.promote_function_return hook.
      	(allocate_struct_function): Pass fndecl to aggregate_value_p.
      	* hard-reg-set.h: Update comments to new hook names.
      	* integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
      	* reg-stack.c (stack_result): Likewise.
      	* rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
      	* stmt.c (expand_value_return): Convert to
      	calls.promote_function_return hook.
      	* target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
      	TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
      	TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
      	TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
      	TARGET_STRICT_ARGUMENT_NAMING,
      	TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
      	* target.h: Likewise.
      	* tree.h (aggregate_value_p): Also takes a tree to deduce function
      	attributes from (for target hooks).
      	* doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
      	PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
      	STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
      	EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
      	STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
      	to hooks.
      
      	* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
      	to aggregate_value_p.
      	* config/arm/arm.c (arm_init_cumulative_args,
      	arm_output_mi_thunk): Likewise.
      	* config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
      	Likewise.
      	* config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
      	mips_can_use_return_insn): Likewise.
      	* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
      	* config/s390/s390.c (s390_output_mi_thunk): Likewise.
      	* config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
      	aggregate_value_p.
      	* config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
      	function to aggregate_value_p.
      	* objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
      	aggregate_value_p.
      
      	* config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
      	(sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
      	sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
      	(sh_handle_renesas_attribute, sh_promote_prototypes,
      	sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
      	sh_setup_incoming_varargs, sh_strict_argument_naming,
      	sh_pretend_outgoing_varargs_named): New decls.
      	(targetm): Add new hooks.
      	(calc_live_regs): Save MACL and MACH if the function has the
      	renesas attribute.
      	(sh_expand_prologue): Support renesas attribute.
      	(sh_builtin_saveregs): Make static.
      	(sh_build_va_list): Support renesas attribute.
      	(sh_va_start): Likewise.
      	(sh_va_arg): Likewise.
      	(sh_promote_prototypes): New.
      	(sh_function_arg): New, moved from sh.h.  Support renesas
      	attribute.
      	(sh_function_arg_advance): Likewise.
      	(sh_return_in_memory): Likewise.
      	(sh_strict_argument_naming): Likewise.
      	(sh_pretend_outgoing_varargs_named): Likewise.
      	(sh_struct_value_rtx): New.
      	(sh_attribute): Add renesas attribute.
      	(sh_handle_renesas_attribute): New.
      	(sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
      	(sh_ms_bitfield_layout_p): Support renesas attribute also.
      	(sh_output_mi_thunk): Pass function to aggregate_value_p.  *
      	config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
      	-mhitachi.
      	(STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
      	target hooks.
      	(sh_args): Add renesas_abi flag.
      	(INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
      	(FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
      	(PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
      	stack for the renesas abi.
      	(STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
      	SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
      	PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
      	call cookie to indicate renesas calls.
      
      	* decl.c (finish_function): Pass fndecl to aggregate_value_p.
      
      	* misc.c (default_pass_by_ref): Convert to calls.return_in_memory
      	hook.
      
      From-SVN: r71048
      DJ Delorie committed
  18. 31 Aug, 2003 1 commit
  19. 29 Aug, 2003 1 commit
  20. 16 Aug, 2003 1 commit
    • re PR c++/11512 (Spurious warning for comma-operator in templates) · e895113a
      	PR c++/11512
      	* stmt.c (expand_expr_stmt_value): Don't warn about any void
      	typed expression.
      cp:
      	PR c++/11512
      	* cvt.c (convert_to_void): Indicate which side of conditional has
      	no effects, and rhs of comma operator. Test for no sideeffect
      	expressions here and always build a convert expr.
      	* init.c (expand_default_init): Convert the init to void.
      	* typeck.c (build_x_compound_expr): Do not check for side effects
      	here.
      	(build_compound_expr): Do not convert lhs when building a
      	template.
      testsuite:
      	PR C++/11512
      	* g++.dg/template/warn1.C: New.
      
      From-SVN: r70505
      Nathan Sidwell committed
  21. 01 Aug, 2003 1 commit
  22. 25 Jul, 2003 1 commit
    • Remove pedwarn_with_decl, warning_with_decl and error_with_decl from GCC. · b6fe0bb8
              Remove pedwarn_with_decl, warning_with_decl and error_with_decl
              from GCC.
              * calls.c (try_to_integrate): Don't use xxx_with_decl.
              (expand_call): Likewise.
              * dwarfout.c (output_reg_number): Likewise.
              * expr.c (expand_expr): Likewise.
              * function.c (assign_temp): Likewise.
              (uninitialized_vars_warning): Likewise.
              (setjmp_args_warning): Likewise.
              (expand_function_end): Likewise.
              * stmt.c (fixup_gotos): Likewise.
              (warn_about_unused_variables): Likewise.
              (expand_end_bindings): Likewise.
              * stor-layout.c (layout_decl): Likewise.
              (place_field): Likewise.
              * toplev.c (check_global_declarations): Likewise.
              (rest_of_handle_inlining): Likewise.
              (default_tree_printer): New function.
              (general_init): Initialize diagnostic machinery before routing
              signals to the ICE machinery.  Set default tree printer.
              * toplev.h (pedwarn_with_decl): Remove declaration.
              (warning_with_decl): Likewise.
              (error_with_decl): Likewise.
              (pedwarn): Remove attribute for the time being.
              * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
              * varasm.c (named_section): Likewise.
              (make_decl_rtl): Likewise.
              (assemble_variable): Likewise.
              (merge_weak): Likewise.
              (declare_weak): Likewise.
      
              * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
              * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
              (format_with_decl): Remove.
              (diagnostic_for_decl): Likewise.
              (pedwarn_with_decl): Likewise.
              (warning_with_decl): Likewise.
              (error_with_decl): Likewise.
              (diagnostic_initialize): Adjust.
              (diagnostic_count_diagnostic): Likewise.
              (announce_function): Likewise.
              (lhd_print_error_function): Likewise.
              (diagnostic_report_current_module): Likewise.
              (default_diagnostic_starter): Likewise.
              (diagnostic_report_diagnostic): Likewise.
              (default_diagnostic_finalizer): Likewise.
              (verbatim): Likewise.
              (error): Likewise.
              (warning): Likewise.
              * opts.c (common_handle_option): Likewise.
              * pretty-print.c: New file.
              * c-pretty-print.h (pp_base): Override.
              * c-pretty-print.c: Adjust use of macros throughout.
              (pp_buffer): New macro.
              (pp_newline): Likewise.
              * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
              * Makefile.in (DIAGNOSTIC_H): New variable.
              (c-errors.o): Use it.
              (c-objc-common.o): Likewise.
              (c-common.o): Likewise.
              (c-opts.o): Likewise.
              (c-format.o): Likewise.
              (diagnostic.o): Likewise.
              (opts.o): Likewise.
              (toplev.o): Likewise.
              (rtl-error.o): Likewise.
              (dwarf2out.o): Likewise.
              (jump.o): Likewise.
              (pretty-print.o): New rule.
      
      cp/
              * Make-lang.in (cp/error.o): Depend on DIAGNOSTIC_H.
              * error.c: Use the new pretty-printer fraamework.
      
      From-SVN: r69773
      Gabriel Dos Reis committed
  23. 19 Jul, 2003 1 commit
    • alias.c [...]: Remove unnecessary casts. · 703ad42b
      	* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
      	c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
      	c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
      	collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
      	cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
      	cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
      	dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
      	fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
      	gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
      	genemit.c genextract.c genoutput.c genrecog.c gensupport.c
      	ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
      	integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
      	loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
      	postreload.c prefix.c print-tree.c protoize.c ra-build.c
      	ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
      	regmove.c regrename.c reload.c reload1.c reorg.c resource.c
      	sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
      	simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
      	tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
      	varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
      	casts.
      
      From-SVN: r69587
      Kaveh R. Ghazi committed
  24. 17 Jul, 2003 1 commit
    • c-common.c (c_estimate_num_insns_1): Don't handle METHOD_CALL_EXPR. · d944c82d
      2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* c-common.c (c_estimate_num_insns_1): Don't handle
      	METHOD_CALL_EXPR.
      	* expr.c (safe_from_p): Likewise.
      	* gengtype.c (adjust_field_tree_exp): Likewise.
      	* stmt.c (warn_if_unused_value): Likewise
      	* tree.c (first_rtl_op): Likewise.
      	* tree.def: Don't define METHOD_CALL_EXPR.
      	* java/lang.c (java_estimate_num_insns_1): Don't handle
      	METHOD_CALL_EXPR.
      
      From-SVN: r69511
      Steven Bosscher committed
  25. 15 Jul, 2003 1 commit
  26. 14 Jul, 2003 1 commit
    • tm.texi (BLOCK_REG_PADDING): Describe. · 6e985040
      	* doc/tm.texi (BLOCK_REG_PADDING): Describe.
      	* expr.h (struct locate_and_pad_arg_data): Add where_pad.
      	(emit_group_load, emit_group_store): Adjust declarations.
      	Remove most occurrences of #ifdef TREE_CODE.
      	* expr.c (emit_group_load): Add "type" param, and use
      	BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
      	aligned accesses if !SLOW_UNALIGNED_ACCESS.
      	(emit_group_store): Likewise.
      	(emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
      	emit_group_load and emit_group_store calls.
      	* calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
      	BLOCK_REG_PADDING to determine whether we need endian_correction.
      	(load_register_parameters): Localize vars.  Handle shifting of
      	small values to the correct end of regs.  Adjust emit_group_load
      	call.
      	(expand_call, emit_library_call_value_1): Adjust emit_group_load
      	and emit_group_store calls.
      	* function.c (assign_parms): Set mem alignment for stack slots.
      	Adjust emit_group_store call.  Store values at the "wrong" end
      	of regs to the stack.  Use BLOCK_REG_PADDING.
      	(locate_and_pad_parm): Save where_pad.
      	(expand_function_end): Adjust emit_group_load call.
      	* stmt.c (expand_value_return): Adjust emit_group_load call.
      	* Makefile.in (calls.o): Depend on $(OPTABS_H).
      	* config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
      	(AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
      	(MUST_PASS_IN_STACK): Define.
      	(BLOCK_REG_PADDING): Define.
      	* config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
      	(PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
      	* config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
      	(function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
      	Act on AGGREGATES_PAD_UPWARD_ALWAYS.
      
      From-SVN: r69318
      Alan Modra committed
  27. 07 Jul, 2003 1 commit
    • rtl.h (emit_line_note): Take a location_t. · 0cea056b
      	* rtl.h (emit_line_note): Take a location_t.
      	(emit_line_note_force): Remove.
      	(set_file_and_line_for_statement): Take a location_t.
      	* tree.g (emit_line_note): Take a location_t.
      	* emit-rtl.c (emit_line_note): Take a location_t.
      	(emit_line_note_force): Remove.
      	* function.c (init_function_start): Adjust emit_line_note call.
      	(expand_function_end): Use force_next_line_note, not
      	emit_line_note_force.
      	* c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
      	* c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
      	genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
      	genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
      	genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
      	genrtl_continue_stmt, genrtl_switch_stmt,
      	genrtl_asm_stmt): Likewise.
      	* expr.c (expand_expr): Likewise.
      	* integrate.c (expand_inline_function): Likewise.
      	* stmt.c (set_file_and_line_for_stmt): Take a location_t.
      	(expand_decl_init): Adjust emit_line_note call.
      
      	* ada/trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
      	calls.
      
      	* cp/semantics.c: (genrtl_try_block) Adjust emit_line_note
      	calls.
      
      	* f/com.c (bison_rule_pushlevel_, bison_rule_compstmt_): Adjust
      	emit_line_note calls.
      	* f/ste.c (ffeste_emit_line_note_): Likewise.
      
      	* java/expr.c (expand_byte_code):
      
      	* treelang/treetree.c (tree_code_if_start, tree_code_if_else,
      	tree_code_if_end, tree_code_create_function_initial,
      	tree_code_create_function_wrapup, tree_code_generate_return,
      	tree_code_output_expression_statement): Adjust emit_line_note
      	calls.
      
      From-SVN: r69047
      Nathan Sidwell committed
  28. 06 Jul, 2003 2 commits
    • stmt.c: Convert remaining prototypes to ISO C90. · 7e51717c
      	* stmt.c: Convert remaining prototypes to ISO C90.
      	* cfglayout.c: Likewise.
      	* dbxout.c: Likewise.
      	* gcc.c: Likewise.
      	* genemit.c: Likewise.
      
      From-SVN: r69015
      Andreas Jaeger committed
    • sbitmap.c: Convert prototypes to ISO C90. · 46c5ad27
      	* sbitmap.c: Convert prototypes to ISO C90.
      	* sbitmap.h: Likewise.
      	* scan-decls.c: Likewise.
      	* scan.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-int.h: Likewise.
      	* sched-rgn.c: Likewise.
      	* sched-vis.c: Likewise.
      	* sibcall.c: Likewise.
      	* simplify-rtx.c: Likewise.
      	* sreal.c: Likewise.
      	* sreal.h: Likewise.
      	* ssa-ccp.c: Likewise.
      	* ssa-dce.c: Likewise.
      	* ssa.c: Likewise.
      	* ssa.h: Likewise.
      	* stack.h: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* stringpool.c: Likewise.
      	* target.h: Likewise.
      	* timevar.c: Likewise.
      	* timevar.h: Likewise.
      	* tlink.c: Likewise.
      	* tracer.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-inline.h: Likewise.
      	* tree.c: Likewise.
      	* tree.h: Likewise.
      
      From-SVN: r69002
      Andreas Jaeger committed
  29. 01 Jul, 2003 2 commits
  30. 29 Jun, 2003 2 commits
    • alloc-pool.c: Fix comment formatting. · f9da5064
      	* alloc-pool.c: Fix comment formatting.
      	* bitmap.c: Likewise.
      	* bitmap.h: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* caller-save.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* collect2.c: Likewise.
      	* cse.c: Likewise.
      	* df.c: Likewise.
      	* diagnostic.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* expmed.c: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* libgcov.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* optabs.c: Likewise.
      	* prefix.c: Likewise.
      	* rtlanal.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* toplev.c: Likewise.
      	* varasm.c: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r68672
      Kazu Hirata committed
    • dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X, -1) with ggc_strdup. · 485bad26
      	* dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
      	-1) with ggc_strdup.
      	* stmt.c (expand_asm_operands): Likewise.
      	* config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
      
      From-SVN: r68659
      Kazu Hirata committed
  31. 27 Jun, 2003 2 commits
    • rtl.h (emit_note): Remove FILE parameter. · 2e040219
      	* rtl.h (emit_note): Remove FILE parameter.
      	* emit-rtl.c (emit_line_note): Adjust emit_note call.
      	(emit_note): Remove FILE parameter. Adjust.
      	* builtins.c (expand_builtin_expect): Adjust emit_note call.
      	* c-semantics.c (genrtl_scope_stmt): Likewise.
      	(expand_stmt): Likewise.
      	* cfglayout.c (reemit_insn_block_notes): Likewise.
      	(duplicate_insn_chain): Likewise.
      	* except.c (expand_eh_region_start, expand_eh_region_end,
      	sjlj_emit_function_enter): Likewise.
      	* explow.c (probe_stack_range): Likewise.
      	* expr.c (emit_block_move_via_loop): Likewise.
      	* function.c (init_function_start, expand_function_start,
      	expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
      	* integrate.c (expand_inline_function, copy_insn_list): Likewise.
      	* reg-stack.c (compensate_edge): Likewise.
      	* reload1.c (reload): Likewise.
      	* rtlanal.c (hoist_insn_to_edge): Likewise.
      	* stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
      	expand_loop_continue_here, expand_end_loop, expand_continue_loop,
      	expand_exit_loop_top_cond, expand_value_return,
      	expand_start_bindings_and_block, expand_end_bindings,
      	expand_decl_cleanup, expand_start_case): Likewise.
      	* unroll.c (copy_loop_body
      	* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
      	* config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
      	* config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
      	rs6000_emit_allocate_stack, rs6000_output_function_prologue,
      	rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
      	* config/sh/sh.c (sh_output_mi_thunk): Likewise.
      	* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
      
      	* ada/misc.c (record_code_position): Likewise.
      
      From-SVN: r68561
      Nathan Sidwell committed
    • stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and OP2 are known to be not equivalent. · d51d146f
      	* stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
      	OP2 are known to be not equivalent.
      
      From-SVN: r68557
      Kazu Hirata committed
  32. 25 Jun, 2003 1 commit
    • re PR c/10178 (ICE in tree_low_cst) · 2896d056
      	PR 10178
      	* langhooks.h (struct lang_hooks): Add no_body_blocks bool.
      	* langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
      	* c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
      	to true.
      	* stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
      	return 0.
      
      From-SVN: r68483
      Zack Weinberg committed
  33. 16 Jun, 2003 1 commit
  34. 12 Jun, 2003 1 commit
    • ChangeLog: Follow spelling conventions. · 6356f892
      	* ChangeLog: Follow spelling conventions.
      	* ChangeLog.2: Likewise.
      	* c-decl.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cgraph.c: Likewise.
      	* coverage.c: Likewise.
      	* cppcharset.c: Likewise.
      	* cpphash.h: Likewise.
      	* cpplex.c: Likewise.
      	* cpplib.c: Likewise.
      	* dbxout.c: Likewise.
      	* df.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gengtype.c: Likewise.
      	* ggc.h: Likewise.
      	* opts.c: Likewise.
      	* real.c: Likewise.
      	* reload.c: Likewise.
      	* stmt.c: Likewise.
      
      From-SVN: r67849
      Kazu Hirata committed