]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Change enum value to not to clash with a MSP430 private enum
authorMartin Liska <mliska@suse.cz>
Mon, 13 Jun 2016 10:00:17 +0000 (12:00 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 13 Jun 2016 10:00:17 +0000 (10:00 +0000)
* predict.c (enum predictor_reason): Prefix enum with REASON_.
(combine_predictions_for_insn): Likewise.
(prune_predictions_for_bb): Likewise.
(combine_predictions_for_bb): Likewise.

From-SVN: r237370

gcc/ChangeLog
gcc/predict.c

index fbd985b01b399469abe041877265968fbe63056e..88506a587ebf5a66ad2e99db6df49a65494f1d92 100644 (file)
@@ -1,3 +1,10 @@
+2016-06-13  Martin Liska  <mliska@suse.cz>
+
+       * predict.c (enum predictor_reason): Prefix enum with REASON_.
+       (combine_predictions_for_insn): Likewise.
+       (prune_predictions_for_bb): Likewise.
+       (combine_predictions_for_bb): Likewise.
+
 2016-06-13  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/71505
index 7a3398427e488dc9d8f1f5d819c1e96fcb1e3521..7d55ff7c71c7822a0b1dab4b14d51f50fa62751e 100644 (file)
@@ -59,10 +59,10 @@ along with GCC; see the file COPYING3.  If not see
 
 enum predictor_reason
 {
-  NONE,
-  IGNORED,
-  SINGLE_EDGE_DUPLICATE,
-  EDGE_PAIR_DUPLICATE
+  REASON_NONE,
+  REASON_IGNORED,
+  REASON_SINGLE_EDGE_DUPLICATE,
+  REASON_EDGE_PAIR_DUPLICATE
 };
 
 /* String messages for the aforementioned enum.  */
@@ -739,7 +739,7 @@ invert_br_probabilities (rtx insn)
 
 static void
 dump_prediction (FILE *file, enum br_predictor predictor, int probability,
-                basic_block bb, enum predictor_reason reason = NONE,
+                basic_block bb, enum predictor_reason reason = REASON_NONE,
                 edge ep_edge = NULL)
 {
   edge e = ep_edge;
@@ -864,9 +864,9 @@ combine_predictions_for_insn (rtx_insn *insn, basic_block bb)
   else
     {
       dump_prediction (dump_file, PRED_DS_THEORY, combined_probability,
-                      bb, !first_match ? NONE : IGNORED);
+                      bb, !first_match ? REASON_NONE : REASON_IGNORED);
       dump_prediction (dump_file, PRED_FIRST_MATCH, best_probability,
-                      bb, first_match ? NONE: IGNORED);
+                      bb, first_match ? REASON_NONE : REASON_IGNORED);
     }
 
   if (first_match)
@@ -883,7 +883,7 @@ combine_predictions_for_insn (rtx_insn *insn, basic_block bb)
 
          dump_prediction (dump_file, predictor, probability, bb,
                           (!first_match || best_predictor == predictor)
-                          ? NONE : IGNORED);
+                          ? REASON_NONE : REASON_IGNORED);
          *pnote = XEXP (*pnote, 1);
        }
       else
@@ -996,7 +996,7 @@ prune_predictions_for_bb (basic_block bb)
                  /* Remove a duplicate predictor.  */
                  dump_prediction (dump_file, pred->ep_predictor,
                                   pred->ep_probability, bb,
-                                  SINGLE_EDGE_DUPLICATE, pred->ep_edge);
+                                  REASON_SINGLE_EDGE_DUPLICATE, pred->ep_edge);
 
                  remove.add (pred);
                }
@@ -1008,11 +1008,11 @@ prune_predictions_for_bb (basic_block bb)
                     for both edges.  */
                  dump_prediction (dump_file, existing->ep_predictor,
                                   pred->ep_probability, bb,
-                                  EDGE_PAIR_DUPLICATE,
+                                  REASON_EDGE_PAIR_DUPLICATE,
                                   existing->ep_edge);
                  dump_prediction (dump_file, pred->ep_predictor,
                                   pred->ep_probability, bb,
-                                  EDGE_PAIR_DUPLICATE,
+                                  REASON_EDGE_PAIR_DUPLICATE,
                                   pred->ep_edge);
 
                  remove.add (existing);
@@ -1150,9 +1150,9 @@ combine_predictions_for_bb (basic_block bb, bool dry_run)
   else
     {
       dump_prediction (dump_file, PRED_DS_THEORY, combined_probability, bb,
-                      !first_match ? NONE : IGNORED);
+                      !first_match ? REASON_NONE : REASON_IGNORED);
       dump_prediction (dump_file, PRED_FIRST_MATCH, best_probability, bb,
-                      first_match ? NONE : IGNORED);
+                      first_match ? REASON_NONE : REASON_IGNORED);
     }
 
   if (first_match)
@@ -1168,7 +1168,7 @@ combine_predictions_for_bb (basic_block bb, bool dry_run)
 
          dump_prediction (dump_file, predictor, probability, bb,
                           (!first_match || best_predictor == predictor)
-                          ? NONE : IGNORED, pred->ep_edge);
+                          ? REASON_NONE : REASON_IGNORED, pred->ep_edge);
        }
     }
   clear_bb_predictions (bb);