Fixed some 64bit warnings by using size_t instead of unsigned.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Dec 2010 02:08:57 +0000 (02:08 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Dec 2010 02:08:57 +0000 (02:08 +0000)
[r28194]

ir/be/becopyopt.c
ir/ir/irphase.c
ir/ir/irphase_t.h

index 081c499..aab8f77 100644 (file)
@@ -194,7 +194,7 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
 copy_opt_t *new_copy_opt(be_chordal_env_t *chordal_env, cost_fct_t get_costs)
 {
        const char *s1, *s2, *s3;
-       int len;
+       size_t len;
        copy_opt_t *co;
 
        FIRM_DBG_REGISTER(dbg, "ir.be.copyopt");
index 8bf3931..98c01db 100644 (file)
@@ -74,7 +74,7 @@ void phase_free(ir_phase *phase)
 
 phase_stat_t *phase_stat(const ir_phase *phase, phase_stat_t *stat)
 {
-       unsigned i, n;
+       size_t i, n;
        memset(stat, 0, sizeof(stat[0]));
 
        stat->node_map_bytes = phase->n_data_ptr * sizeof(phase->data_ptr[0]);
@@ -90,7 +90,7 @@ phase_stat_t *phase_stat(const ir_phase *phase, phase_stat_t *stat)
 
 void phase_reinit_irn_data(ir_phase *phase, phase_irn_reinit *data_reinit)
 {
-       unsigned i, n;
+       size_t i, n;
        ir_graph *irg;
 
        if (! phase->data_init)
index 5950545..9a6e463 100644 (file)
@@ -39,7 +39,7 @@ struct ir_phase {
        void           **data_ptr;      /**< Map node indexes to irn data on the obstack. */
        ir_graph        *irg;           /**< The irg this phase will we applied to. */
        phase_irn_init  *data_init;     /**< A callback that is called to initialize newly created node data. */
-       unsigned         n_data_ptr;    /**< The length of the data_ptr array. */
+       size_t           n_data_ptr;    /**< The length of the data_ptr array. */
        struct obstack   obst;          /**< The obstack where the irn phase data will be stored on. */
        void            *priv;          /**< Some pointer private to the user of the phase. */
 };
@@ -48,10 +48,10 @@ struct ir_phase {
  * For statistics: A type containing statistic data of a phase object.
  */
 typedef struct {
-       unsigned node_slots;       /**< The number of allocated node slots. */
-       unsigned node_slots_used;  /**< The number of used node slots, i.e. nodes that have node data. */
-       unsigned node_map_bytes;   /**< Number of used bytes for the node map. */
-       unsigned overall_bytes;    /**< Overall number of used bytes for the phase. */
+       size_t node_slots;       /**< The number of allocated node slots. */
+       size_t node_slots_used;  /**< The number of used node slots, i.e. nodes that have node data. */
+       size_t node_map_bytes;   /**< Number of used bytes for the node map. */
+       size_t overall_bytes;    /**< Overall number of used bytes for the phase. */
 } phase_stat_t;
 
 /**