]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
basic-block.h (struct edge_prediction): Remove forward declaration.
authorLaurynas Biveinis <laurynas.biveinis@gmail.com>
Fri, 3 Dec 2010 04:58:47 +0000 (04:58 +0000)
committerLaurynas Biveinis <lauras@gcc.gnu.org>
Fri, 3 Dec 2010 04:58:47 +0000 (04:58 +0000)
2010-12-01  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

* basic-block.h (struct edge_prediction): Remove forward
declaration.
* tree-flow.h (struct edge_prediction): Move from here...
* predict.c (struct edge_prediction): ...to here.
* cselib.h (struct elt_list): Move from here...
* cselib.c (struct elt_list): ...to here.

From-SVN: r167409

gcc/ChangeLog
gcc/basic-block.h
gcc/cselib.c
gcc/cselib.h
gcc/predict.c
gcc/tree-flow.h

index 0c23273457cadee82c3de7ccccc4a0428e1da414..0ba07ac7b6d43ea7d05d66dd58dcb9395e1650a7 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
+
+       * basic-block.h (struct edge_prediction): Remove forward
+       declaration.
+       * tree-flow.h (struct edge_prediction): Move from here...
+       * predict.c (struct edge_prediction): ...to here.
+       * cselib.h (struct elt_list): Move from here...
+       * cselib.c (struct elt_list): ...to here.
+
 2010-12-02  Ian Lance Taylor  <iant@google.com>
 
        * gcc.c (default_compilers): Add entry for ".go".
index 022dc9f952511d60ce0e9bc4280b1eb2b37a1b1a..be0a1d17c69ef0fb4ea3a56d9db924ccda1686c0 100644 (file)
@@ -99,7 +99,6 @@ extern const struct gcov_ctr_summary *profile_info;
 struct loop;
 
 /* Declared in tree-flow.h.  */
-struct edge_prediction;
 struct rtl_bb_info;
 
 /* A basic block is a sequence of instructions with only entry and
index 600930159fcfc00ee5db8ef104c64dd6494d8cc0..8f5e45b08d2648efb5e9d16f65511e1662f31ac5 100644 (file)
@@ -44,6 +44,12 @@ along with GCC; see the file COPYING3.  If not see
 #include "target.h"
 #include "bitmap.h"
 
+/* A list of cselib_val structures.  */
+struct elt_list {
+    struct elt_list *next;
+    cselib_val *elt;
+};
+
 static bool cselib_record_memory;
 static bool cselib_preserve_constants;
 static int entry_and_rtx_equal_p (const void *, const void *);
index 5964a4487ceb6f8acd7c580959bf0c8a4e5abb9b..d07c8330d47fd48d87a662c05768a95114531457 100644 (file)
@@ -51,12 +51,6 @@ struct elt_loc_list {
   rtx setting_insn;
 };
 
-/* A list of cselib_val structures.  */
-struct elt_list {
-  struct elt_list *next;
-  cselib_val *elt;
-};
-
 /* Describe a single set that is part of an insn.  */
 struct cselib_set
 {
index dbef3595c45060d8902ad09e2c11289c5d07eef2..c69199083161a45c3a9f8af2631b6b322351f930 100644 (file)
@@ -387,6 +387,15 @@ rtl_predicted_by_p (const_basic_block bb, enum br_predictor predictor)
 
 static struct pointer_map_t *bb_predictions;
 
+/*  Structure representing predictions in tree level. */
+
+struct edge_prediction {
+    struct edge_prediction *ep_next;
+    edge ep_edge;
+    enum br_predictor ep_predictor;
+    int ep_probability;
+};
+
 /* Return true if the one of outgoing edges is already predicted by
    PREDICTOR.  */
 
index 1486e33aeba30068352dde7e8de1f8b17f47ee3a..682907c2f9dc1e6402111e2e4653b513b5ab4217 100644 (file)
@@ -286,16 +286,6 @@ static inline var_ann_t get_var_ann (tree);
 static inline void update_stmt (gimple);
 static inline int get_lineno (const_gimple);
 
-/*---------------------------------------------------------------------------
-                  Structure representing predictions in tree level.
----------------------------------------------------------------------------*/
-struct edge_prediction {
-  struct edge_prediction *ep_next;
-  edge ep_edge;
-  enum br_predictor ep_predictor;
-  int ep_probability;
-};
-
 /* Accessors for basic block annotations.  */
 static inline gimple_seq phi_nodes (const_basic_block);
 static inline void set_phi_nodes (basic_block, gimple_seq);