This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: warning nits installed
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Patch: warning nits installed
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 13 Jan 2000 18:44:57 -0500 (EST)
I installed the following. The patch to cp/call.c was necessary to
allow compilation when targetted to the dsp16xx.
--Kaveh
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.5420
diff -u -p -r1.5420 ChangeLog
--- ChangeLog 2000/01/13 23:01:59 1.5420
+++ ChangeLog 2000/01/13 23:42:51
@@ -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: calls.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/calls.c,v
retrieving revision 1.76
diff -u -p -r1.76 calls.c
--- calls.c 2000/01/11 23:27:40 1.76
+++ calls.c 2000/01/13 23:42:52
@@ -394,7 +394,9 @@ emit_call_1 (funexp, fndecl, funtype, st
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: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.140
diff -u -p -r1.140 dwarf2out.c
--- dwarf2out.c 2000/01/11 21:23:49 1.140
+++ dwarf2out.c 2000/01/13 23:42:55
@@ -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: function.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/function.c,v
retrieving revision 1.148
diff -u -p -r1.148 function.c
--- function.c 2000/01/09 14:23:35 1.148
+++ function.c 2000/01/13 23:42:57
@@ -4970,7 +4970,7 @@ locate_and_pad_parm (passed_mode, type,
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
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: reorg.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/reorg.c,v
retrieving revision 1.44
diff -u -p -r1.44 reorg.c
--- reorg.c 2000/01/13 00:17:33 1.44
+++ reorg.c 2000/01/13 23:42:57
@@ -222,7 +222,9 @@ static rtx fill_slots_from_thread PROTO(
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.
Index: cp/ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/ChangeLog,v
retrieving revision 1.1513
diff -u -p -r1.1513 ChangeLog
--- ChangeLog 2000/01/13 02:04:25 1.1513
+++ ChangeLog 2000/01/13 23:43:01
@@ -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: cp/call.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/call.c,v
retrieving revision 1.186
diff -u -p -r1.186 call.c
--- call.c 2000/01/12 23:27:42 1.186
+++ call.c 2000/01/13 23:43:03
@@ -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;