calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in macro conditionals...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 13 Jan 2000 23:43:55 +0000 (23:43 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 13 Jan 2000 23:43:55 +0000 (23:43 +0000)
        * 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
gcc/calls.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/dwarf2out.c
gcc/function.c
gcc/reorg.c

index 1edf3ab..fb4e7a2 100644 (file)
@@ -1,3 +1,16 @@
+2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * 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  <nickc@cygnus.com>
 
        * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
index c2ccfde..86ae325 100644 (file)
@@ -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;
index 23cc450..5407636 100644 (file)
@@ -1,3 +1,7 @@
+2000-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * call.c: If GATHER_STATISTICS, declare `n_build_method_call'.
+
 2000-01-12  Mark Mitchell  <mark@codesourcery.com>
 
        * decl.c (start_cleanup_fn): Call pushdecl.
index 9d577c1..e589f9f 100644 (file)
@@ -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;
index 641f937..f3c5099 100644 (file)
@@ -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 <assert.h> in GCC source, since that would include
    GCC's assert.h, which may not be compatible with the host compiler.  */
index 5db558f..6f631c2 100644 (file)
@@ -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;
index ece6e96..bb27bae 100644 (file)
@@ -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
 \f
 /* Return TRUE if this insn should stop the search for insn to fill delay
    slots.  LABELS_P indicates that labels should terminate the search.