From 0d568ddf1378b6b0d26c74ee489598eb1a923168 Mon Sep 17 00:00:00 2001 From: echristo Date: Wed, 14 Jul 2004 23:50:30 +0000 Subject: [PATCH] 2004-07-14 Eric Christopher * calls.c (expand_call): Fix typo in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84719 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 26 +++++++++++++++----------- gcc/calls.c | 26 +++++++++++++------------- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c57568f..6f4c6c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-07-14 Eric Christopher + + * calls.c (expand_call): Fix typo in comment. + 2004-07-14 Steve Ellcey * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED @@ -340,7 +344,7 @@ * tree-data-ref.h: New file. * tree.c (int_cst_value, tree_fold_gcd): New functions. * tree.h (int_cst_value, tree_fold_gcd): Declared here. - + 2004-07-13 Eric Botcazou PR target/13926 @@ -404,7 +408,7 @@ * tree.h (must_pass_in_stack_var_size): Declare. (must_pass_in_stack_var_size_or_pad): Declare. * calls.c (must_pass_in_stack_var_size): New. - (must_pass_in_stack_var_size_or_pad): Rename from + (must_pass_in_stack_var_size_or_pad): Rename from default_must_pass_in_stack. * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New. (TARGET_MUST_PASS_IN_STACK): New. @@ -501,7 +505,7 @@ (NM_FOR_TARGET): Use $(NM) not nm for native. * configure.ac: Add AC_CHECK_PROG calls for NM and AR. * configure: Regenerate. - + 2004-07-12 David S. Miller * config/sparc/sparc.md (ashlsi3): Eliminate const 1 @@ -523,7 +527,7 @@ 2004-07-12 Devang Patel * doc/invoke.texi (Darwin Options): Document -gused and -gfull. - + 2004-07-12 Steve Ellcey * function.c (expand_function_start): Ensure r_save is in Pmode. @@ -555,11 +559,11 @@ 2004-07-12 Sebastian Pop * cfgloop.h (struct loop): Add nb_iterations field. - (current_loops): Declare. + (current_loops): Declare. * tree-chrec.c (chrec_not_analyzed_yet, chrec_dont_know, chrec_known, count_ev_in_wider_type, chrec_contains_symbols_defined_in_loop): Remove the temporary - hooks. + hooks. * tree-flow-inline.h (loop_containing_stmt): New function. * tree-scalar-evolution.c: Add implementation. * tree-scalar-evolution.h: Add declarations. @@ -568,7 +572,7 @@ PR rtl-optimization/15921 * Makefile.in (global.o): Add recog.h. - + * global.c (recog.h): Add the include-clause. (bb_info): New member earlyclobber. (allocate_bb_info, free_bb_info): Initialize/finish the new @@ -580,7 +584,7 @@ New functions. (calculate_local_reg_bb_info): Calculate value of earlyclobber. (make_accurate_live_analysis): Modify pavin. - + 2004-07-12 Diego Novillo * tree-cfg.c (find_taken_edge): Statically compute the truth @@ -714,7 +718,7 @@ 2004-07-11 Ulrich Weigand - * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and + * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and SIGBUS signal frames, the PSW address points *to* the faulting instruction, not after it. @@ -725,7 +729,7 @@ 2004-07-11 Richard Henderson - * expmed.c (init_expmed): Use stack-local structures for + * expmed.c (init_expmed): Use stack-local structures for temporary rtl. Don't recognize shifts. 2004-07-11 Richard Henderson @@ -960,7 +964,7 @@ (sparc_override_options): Set sparc_costs as appropriate. (sparc_rtx_costs): Use sparc_costs instead of messy conditionals. - + 2004-07-09 Steven Bosscher * doc/md.texi (Processor pipeline description): Mention that diff --git a/gcc/calls.c b/gcc/calls.c index d348321..231d69b 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -479,7 +479,7 @@ special_function_p (tree fndecl, int flags) hacky imitation of DECL_ASSEMBLER_NAME. It's (also) wrong because you can declare fork() inside a function if you wish. */ - && (DECL_CONTEXT (fndecl) == NULL_TREE + && (DECL_CONTEXT (fndecl) == NULL_TREE || TREE_CODE (DECL_CONTEXT (fndecl)) == TRANSLATION_UNIT_DECL) && TREE_PUBLIC (fndecl)) { @@ -887,7 +887,7 @@ store_unaligned_arguments_into_pseudos (struct arg_data *args, int num_actuals) and may be modified by this routine. OLD_PENDING_ADJ, MUST_PREALLOCATE and FLAGS are pointers to integer - flags which may may be modified by this routine. + flags which may may be modified by this routine. MAY_TAILCALL is cleared if we encounter an invisible pass-by-reference that requires allocation of stack space. @@ -1241,7 +1241,7 @@ precompute_arguments (int flags, int num_actuals, struct arg_data *args) get extraneous instructions emitted as part of the libcall sequence. */ if ((flags & ECF_LIBCALL_BLOCK) == 0) return; - + for (i = 0; i < num_actuals; i++) { enum machine_mode mode; @@ -2117,7 +2117,7 @@ expand_call (tree exp, rtx target, int ignore) || (ACCUMULATE_OUTGOING_ARGS && stack_arg_under_construction && structure_value_addr == virtual_outgoing_args_rtx) - ? copy_addr_to_reg (convert_memory_address + ? copy_addr_to_reg (convert_memory_address (Pmode, structure_value_addr)) : structure_value_addr); @@ -2223,7 +2223,7 @@ expand_call (tree exp, rtx target, int ignore) || (!ACCUMULATE_OUTGOING_ARGS && args_size.constant))) structure_value_addr = copy_to_reg (structure_value_addr); - /* Tail calls can make things harder to debug, and we're traditionally + /* Tail calls can make things harder to debug, and we've traditionally pushed these optimizations into -O2. Don't try if we're already expanding a call, as that means we're an argument. Don't try if there's cleanups, as we know there's code to follow the call. @@ -2342,7 +2342,7 @@ expand_call (tree exp, rtx target, int ignore) int sibcall_failure = 0; /* We want to emit any pending stack adjustments before the tail recursion "call". That way we know any adjustment after the tail - recursion call can be ignored if we indeed use the tail + recursion call can be ignored if we indeed use the tail call expansion. */ int save_pending_stack_adjust = 0; int save_stack_pointer_delta = 0; @@ -2755,7 +2755,7 @@ expand_call (tree exp, rtx target, int ignore) structure value. */ if (pass != 0 && structure_value_addr && ! structure_value_addr_parm) { - structure_value_addr + structure_value_addr = convert_memory_address (Pmode, structure_value_addr); emit_move_insn (struct_value, force_reg (Pmode, @@ -2840,8 +2840,8 @@ expand_call (tree exp, rtx target, int ignore) && (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_SQRT || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_SQRTF || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_SQRTL)) - note = gen_rtx_fmt_e (SQRT, - GET_MODE (temp), + note = gen_rtx_fmt_e (SQRT, + GET_MODE (temp), args[0].initial_value); else { @@ -2852,7 +2852,7 @@ expand_call (tree exp, rtx target, int ignore) note = gen_rtx_EXPR_LIST (VOIDmode, args[i].initial_value, note); note = gen_rtx_EXPR_LIST (VOIDmode, funexp, note); - + if (flags & ECF_PURE) note = gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_USE (VOIDmode, @@ -3940,7 +3940,7 @@ emit_library_call_value_1 (int retval, rtx orgfun, rtx value, if (GET_CODE (valreg) == PARALLEL) { temp = gen_reg_rtx (outmode); - emit_group_store (temp, valreg, NULL_TREE, + emit_group_store (temp, valreg, NULL_TREE, GET_MODE_SIZE (outmode)); valreg = temp; } @@ -4317,7 +4317,7 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags, excess = (arg->locate.size.constant - int_size_in_bytes (TREE_TYPE (pval)) + partial * GET_MODE_SIZE (GET_MODE (elt))); - } + } else excess = (arg->locate.size.constant - int_size_in_bytes (TREE_TYPE (pval)) @@ -4434,7 +4434,7 @@ must_pass_in_stack_var_size (enum machine_mode mode ATTRIBUTE_UNUSED, return false; } -/* Another version of the TARGET_MUST_PASS_IN_STACK hook. This one +/* Another version of the TARGET_MUST_PASS_IN_STACK hook. This one takes trailing padding of a structure into account. */ /* ??? Should be able to merge these two by examining BLOCK_REG_PADDING. */ -- 2.7.4