aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgsvelto <gsvelto@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-10 17:07:01 +0000
committergsvelto <gsvelto@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-10 17:07:01 +0000
commite446763a7a33ef04dd14dd60d30754d8aefa736b (patch)
treecefc72b5fe29a5c3da9e4823863066584e397c58
parent4952183ac48bad700662f9be363df2a485ad7999 (diff)
Quieted a few warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/st/cli-be@145929 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/config/cil32/cil-stack.h2
-rw-r--r--gcc/config/cil32/tree-simp-cil-early.c27
2 files changed, 1 insertions, 28 deletions
diff --git a/gcc/config/cil32/cil-stack.h b/gcc/config/cil32/cil-stack.h
index 93e471860c8..d560819455e 100644
--- a/gcc/config/cil32/cil-stack.h
+++ b/gcc/config/cil32/cil-stack.h
@@ -61,7 +61,7 @@ enum cil_type
CIL_FLOAT32, /* Single precision floating-point */
CIL_FLOAT64, /* Double precision floating-point */
CIL_POINTER, /* Generic pointer */
- CIL_VALUE_TYPE, /* Generic value type */
+ CIL_VALUE_TYPE /* Generic value type */
};
typedef enum cil_type cil_type_t;
diff --git a/gcc/config/cil32/tree-simp-cil-early.c b/gcc/config/cil32/tree-simp-cil-early.c
index 967a5f5d09e..fe12b771f90 100644
--- a/gcc/config/cil32/tree-simp-cil-early.c
+++ b/gcc/config/cil32/tree-simp-cil-early.c
@@ -70,7 +70,6 @@ static tree simp_cil_switch (tree);
/* Misc functionality */
static void set_statement_list_location (tree, location_t);
-static bool is_copy_required (tree);
/* Top-level functionality */
static tree simp_cil_stmt (tree);
@@ -107,32 +106,6 @@ set_statement_list_location (tree list, location_t locus)
}
}
-/* In the case of multiple uses of tree NODE, return whether
- it is required to compute NODE only once or not.
- If NODE has side effects, TRUE is obviously always returned.
- If NODE has no side effects, TRUE is still returned if
- it looks more profitable to compute NODE only once,
- FALSE otherwise (this is a heuristic decision). */
-
-static bool
-is_copy_required (tree node)
-{
- if (TREE_SIDE_EFFECTS (node))
- return TRUE;
-
- switch (TREE_CODE (node))
- {
- case INTEGER_CST:
- case REAL_CST:
- case VAR_DECL:
- case PARM_DECL:
- return FALSE;
-
- default:
- return TRUE;
- }
-}
-
/******************************************************************************
* Label manipulation functions *
******************************************************************************/