This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch installed for warning nits


Installed:

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.5742
diff -u -p -r1.5742 ChangeLog
--- ChangeLog	2000/02/21 23:04:42	1.5742
+++ ChangeLog	2000/02/21 23:24:09
@@ -1,3 +1,22 @@
+2000-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
+
+	* flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
+	fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
+	(life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
+
+	* haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
+
+	* integrate.c (compare_blocks, find_block): Likewise.
+
+	* rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
+
+	* rtl.h (set_file_and_line_for_stmt): Constify a char*.
+
+	* stmt.c (stmt_status, set_file_and_line_for_stmt,
+	expand_asm_operands): Likewise.
+
 Mon Feb 21 17:06:27 2000  Jason Eckhardt  <jle@cygnus.com>
 
 	* predict.c (estimate_probability): Added the pointer heuristic to
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/defaults.h,v
retrieving revision 1.18
diff -u -p -r1.18 defaults.h
--- defaults.h	2000/01/15 03:00:11	1.18
+++ defaults.h	2000/02/21 23:24:10
@@ -66,11 +66,11 @@ do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNA
 #define ASM_OUTPUT_ASCII(MYFILE, MYSTRING, MYLENGTH) \
   do {									      \
     FILE *_hide_asm_out_file = (MYFILE);				      \
-    unsigned char *_hide_p = (unsigned char *) (MYSTRING);		      \
+    const unsigned char *_hide_p = (const unsigned char *) (MYSTRING);	      \
     int _hide_thissize = (MYLENGTH);					      \
     {									      \
       FILE *asm_out_file = _hide_asm_out_file;				      \
-      unsigned char *p = _hide_p;					      \
+      const unsigned char *p = _hide_p;					      \
       int thissize = _hide_thissize;					      \
       int i;								      \
       fprintf (asm_out_file, "\t.ascii \"");				      \
Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.224
diff -u -p -r1.224 flow.c
--- flow.c	2000/02/19 01:26:59	1.224
+++ flow.c	2000/02/21 23:24:16
@@ -351,6 +351,10 @@ static void flow_loop_tree_node_add	PARA
 static void flow_loops_tree_build	PARAMS ((struct loops *));
 static int flow_loop_level_compute	PARAMS ((struct loop *, int));
 static int flow_loops_level_compute	PARAMS ((struct loops *));
+static basic_block get_common_dest	PARAMS ((basic_block, basic_block));
+static basic_block chain_reorder_blocks	PARAMS ((edge, basic_block));
+static void make_reorder_chain		PARAMS ((basic_block));
+static void fixup_reorder_chain		PARAMS ((void));
 
 /* This function is always defined so it can be called from the
    debugger, and it is declared extern so we don't get warnings about
@@ -2454,8 +2458,8 @@ life_analysis (f, nregs, file, remove_de
      FILE *file;
      int remove_dead_code;
 {
-  register int i;
 #ifdef ELIMINABLE_REGS
+  register int i;
   static struct {int from, to; } eliminables[] = ELIMINABLE_REGS;
 #endif
   int flags;
@@ -7074,6 +7078,9 @@ static basic_block reorder_last_visited;
 
 enum reorder_skip_type {REORDER_SKIP_BEFORE, REORDER_SKIP_AFTER,
 			REORDER_SKIP_BLOCK_END};
+
+static rtx skip_insns_between_block	PARAMS ((basic_block,
+						 enum reorder_skip_type));
 
 /* Skip over insns BEFORE or AFTER BB which are typically associated with
    basic block BB.  */
Index: haifa-sched.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/haifa-sched.c,v
retrieving revision 1.142
diff -u -p -r1.142 haifa-sched.c
--- haifa-sched.c	2000/02/11 19:27:00	1.142
+++ haifa-sched.c	2000/02/21 23:24:23
@@ -3978,8 +3978,8 @@ rank_for_schedule (x, y)
      const PTR x;
      const PTR y;
 {
-  rtx tmp = *(rtx *)y;
-  rtx tmp2 = *(rtx *)x;
+  rtx tmp = *(const rtx *)y;
+  rtx tmp2 = *(const rtx *)x;
   rtx link;
   int tmp_class, tmp2_class, depend_count1, depend_count2;
   int val, priority_val, spec_val, prob_val, weight_val;
Index: integrate.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/integrate.c,v
retrieving revision 1.92
diff -u -p -r1.92 integrate.c
--- integrate.c	2000/02/10 17:43:54	1.92
+++ integrate.c	2000/02/21 23:24:28
@@ -521,8 +521,8 @@ compare_blocks (v1, v2)
      const PTR v1;
      const PTR v2;
 {
-  tree b1 = *((tree *) v1);
-  tree b2 = *((tree *) v2);
+  tree b1 = *((const tree *) v1);
+  tree b2 = *((const tree *) v2);
 
   return ((char *) BLOCK_ABSTRACT_ORIGIN (b1) 
 	  - (char *) BLOCK_ABSTRACT_ORIGIN (b2));
@@ -536,10 +536,10 @@ find_block (v1, v2)
      const PTR v1;
      const PTR v2;
 {
-  tree b1 = (tree) v1;
-  tree b2 = *((tree *) v2);
+  const union tree_node *b1 = (const union tree_node *) v1;
+  tree b2 = *((const tree *) v2);
 
-  return ((char *) b1 - (char *) BLOCK_ABSTRACT_ORIGIN (b2));
+  return ((const char *) b1 - (char *) BLOCK_ABSTRACT_ORIGIN (b2));
 }
 
 /* Integrate the procedure defined by FNDECL.  Note that this function
Index: rtl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtl.c,v
retrieving revision 1.60
diff -u -p -r1.60 rtl.c
--- rtl.c	2000/02/18 12:26:48	1.60
+++ rtl.c	2000/02/21 23:24:30
@@ -258,7 +258,7 @@ const char * const reg_note_name[] = { "
 			  "REG_EH_RETHROW", "REG_SAVE_NOTE" };
 
 static void fatal_with_file_and_line PARAMS ((FILE *, const char *, ...))
-  ATTRIBUTE_NORETURN;
+  ATTRIBUTE_PRINTF_2 ATTRIBUTE_NORETURN;
 static void fatal_expected_char PARAMS ((FILE *, int, int)) ATTRIBUTE_NORETURN;
 static void read_name		PARAMS ((char *, FILE *));
 static const char *trim_filename PARAMS ((const char *));
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/rtl.h,v
retrieving revision 1.167
diff -u -p -r1.167 rtl.h
--- rtl.h	2000/02/10 22:05:39	1.167
+++ rtl.h	2000/02/21 23:24:32
@@ -1517,7 +1517,7 @@ extern int operands_match_p		PARAMS ((rt
 extern int safe_from_earlyclobber	PARAMS ((rtx, rtx));
 
 /* In stmt.c */
-extern void set_file_and_line_for_stmt	PARAMS ((char *, int));
+extern void set_file_and_line_for_stmt	PARAMS ((const char *, int));
 extern void expand_null_return		PARAMS ((void));
 extern void emit_jump			PARAMS ((rtx));
 extern int preserve_subexpressions_p	PARAMS ((void));
Index: stmt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stmt.c,v
retrieving revision 1.123
diff -u -p -r1.123 stmt.c
--- stmt.c	2000/02/20 03:49:14	1.123
+++ stmt.c	2000/02/21 23:24:49
@@ -373,7 +373,7 @@ struct stmt_status
 
   /* Filename and line number of last line-number note,
      whether we actually emitted it or not.  */
-  char *x_emit_filename;
+  const char *x_emit_filename;
   int x_emit_lineno;
 
   struct goto_fixup *x_goto_fixup_chain;
@@ -639,7 +639,7 @@ in_control_zone_p ()
 /* Record the current file and line.  Called from emit_line_note.  */
 void
 set_file_and_line_for_stmt (file, line)
-     char *file;
+     const char *file;
      int line;
 {
   /* If we're outputting an inline function, and we add a line note,
@@ -1351,7 +1351,7 @@ expand_asm_operands (string, outputs, in
   nclobbers = 0;
   for (tail = clobbers; tail; tail = TREE_CHAIN (tail))
     {
-      char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
+      const char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
 
       i = decode_reg_name (regname);
       if (i >= 0 || i == -4)
@@ -1379,7 +1379,7 @@ expand_asm_operands (string, outputs, in
       tmp = outputs;
       while (tmp)
 	{
-	  char *constraint = TREE_STRING_POINTER (TREE_PURPOSE (tmp));
+	  const char *constraint = TREE_STRING_POINTER (TREE_PURPOSE (tmp));
 
 	  if (n_occurrences (',', constraint) != nalternatives)
 	    {
@@ -1797,7 +1797,7 @@ expand_asm_operands (string, outputs, in
 
       for (tail = clobbers; tail; tail = TREE_CHAIN (tail))
 	{
-	  char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
+	  const char *regname = TREE_STRING_POINTER (TREE_VALUE (tail));
 	  int j = decode_reg_name (regname);
 
 	  if (j < 0)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]