summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-13 23:43:55 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-13 23:43:55 +0000
commit39697b37ac87288175f0359861a7df57f45183b7 (patch)
tree745cfdd34f4d9f8d474635f991192d7fa316dbc2
parent908ba7ac2349718861e6aec0f805a4d7bac539e1 (diff)
downloadgcc-39697b37ac87288175f0359861a7df57f45183b7.tar.gz
* 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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31398 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog13
-rw-r--r--gcc/calls.c2
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c4
-rw-r--r--gcc/dwarf2out.c1
-rw-r--r--gcc/function.c4
-rw-r--r--gcc/reorg.c2
7 files changed, 28 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1edf3ab107a..fb4e7a253e5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/calls.c b/gcc/calls.c
index c2ccfde9b18..86ae3254e2b 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 23cc4506498..5407636a881 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 9d577c18b7b..e589f9f3a80 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 641f937a91e..f3c50995983 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 <assert.h> 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 5db558fcd42..6f631c209a9 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 ece6e962493..bb27bae71a7 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.