From 57bed15271e83402b6d8d6647f6589718e70916d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 13 Jan 2000 23:43:55 +0000 Subject: [PATCH] calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in macro conditionals guarding use. * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in macro conditionals guarding use. * dwarf2out.c: Include "tm_p.h". * function.c (locate_and_pad_parm): Mark parameter with ATTRIBUTE_UNUSED. (expand_function_end): Likewise for variable `context'. * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return. cp: * call.c: If GATHER_STATISTICS, declare `n_build_method_call'. From-SVN: r31398 --- gcc/ChangeLog | 13 +++++++++++++ gcc/calls.c | 2 ++ gcc/cp/ChangeLog | 4 ++++ gcc/cp/call.c | 4 ++++ gcc/dwarf2out.c | 1 + gcc/function.c | 4 ++-- gcc/reorg.c | 2 ++ 7 files changed, 28 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1edf3ab..fb4e7a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2000-01-13 Kaveh R. Ghazi + + * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in + macro conditionals guarding use. + + * dwarf2out.c: Include "tm_p.h". + + * function.c (locate_and_pad_parm): Mark parameter with + ATTRIBUTE_UNUSED. + (expand_function_end): Likewise for variable `context'. + + * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return. + 2000-01-13 Nick Clifton * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed diff --git a/gcc/calls.c b/gcc/calls.c index c2ccfde..86ae325 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -394,7 +394,9 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size, int is_const; { rtx rounded_stack_size_rtx = GEN_INT (rounded_stack_size); +#if defined (HAVE_call) && defined (HAVE_call_value) rtx struct_value_size_rtx = GEN_INT (struct_value_size); +#endif rtx call_insn; #ifndef ACCUMULATE_OUTGOING_ARGS int already_popped = 0; diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 23cc450..5407636 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-01-13 Kaveh R. Ghazi + + * call.c: If GATHER_STATISTICS, declare `n_build_method_call'. + 2000-01-12 Mark Mitchell * decl.c (start_cleanup_fn): Call pushdecl. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 9d577c1..e589f9f 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -440,6 +440,10 @@ build_call (function, result_type, parms) `operator()()' is defined for the type of that field, then we return that result. */ +#ifdef GATHER_STATISTICS +extern int n_build_method_call; +#endif + tree build_method_call (instance, name, parms, basetype_path, flags) tree instance, name, parms, basetype_path; diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 641f937..f3c5099 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -55,6 +55,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "dyn-string.h" #include "ggc.h" +#include "tm_p.h" /* We cannot use in GCC source, since that would include GCC's assert.h, which may not be compatible with the host compiler. */ diff --git a/gcc/function.c b/gcc/function.c index 5db558f..6f631c2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4970,7 +4970,7 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl, alignment_pad) enum machine_mode passed_mode; tree type; - int in_regs; + int in_regs ATTRIBUTE_UNUSED; tree fndecl ATTRIBUTE_UNUSED; struct args_size *initial_offset_ptr; struct args_size *offset_ptr; @@ -6266,7 +6266,7 @@ expand_function_end (filename, line, end_bindings) for (link = trampoline_list; link; link = TREE_CHAIN (link)) { tree function = TREE_PURPOSE (link); - rtx context = lookup_static_chain (function); + rtx context ATTRIBUTE_UNUSED = lookup_static_chain (function); rtx tramp = RTL_EXPR_RTL (TREE_VALUE (link)); #ifdef TRAMPOLINE_TEMPLATE rtx blktramp; diff --git a/gcc/reorg.c b/gcc/reorg.c index ece6e96..bb27bae 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -222,7 +222,9 @@ static rtx fill_slots_from_thread PROTO((rtx, rtx, rtx, rtx, int, int, int, int, int *, rtx)); static void fill_eager_delay_slots PROTO((void)); static void relax_delay_slots PROTO((rtx)); +#ifdef HAVE_return static void make_return_insns PROTO((rtx)); +#endif /* Return TRUE if this insn should stop the search for insn to fill delay slots. LABELS_P indicates that labels should terminate the search. -- 2.7.4