Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
9c359401
Commit
9c359401
authored
Jan 24, 2011
by
Michael Beck
Browse files
Fixed some size_t related warnings.
[r28266]
parent
9e62b7a1
Changes
6
Hide whitespace changes
Inline
Side-by-side
ir/be/bepeephole.c
View file @
9c359401
/*
* Copyright (C) 1995-20
08
University of Karlsruhe. All right reserved.
* Copyright (C) 1995-20
11
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
...
...
@@ -264,7 +264,7 @@ static void skip_barrier(ir_node *block, ir_graph *irg)
sched_foreach_reverse
(
block
,
irn
)
{
int
arity
;
unsigned
*
used
;
unsigned
n_used
;
size_t
n_used
;
const
ir_edge_t
*
edge
,
*
next
;
if
(
!
be_is_Barrier
(
irn
))
...
...
@@ -295,7 +295,7 @@ static void skip_barrier(ir_node *block, ir_graph *irg)
/* the barrier also had the effect of a Keep for unused inputs.
* we now have to create an explicit Keep for them */
n_used
=
rbitset_popcount
(
used
,
arity
);
if
(
n_used
<
(
unsigned
)
arity
)
{
if
(
n_used
<
(
size_t
)
arity
)
{
int
n_in
=
arity
-
(
int
)
n_used
;
ir_node
**
in
=
ALLOCAN
(
ir_node
*
,
n_in
);
int
i
=
0
;
...
...
ir/be/beschedtrace.c
View file @
9c359401
/*
* Copyright (C) 1995-20
08
University of Karlsruhe. All right reserved.
* Copyright (C) 1995-20
11
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
...
...
@@ -597,7 +597,7 @@ static ir_node *muchnik_select(void *block_env, ir_nodeset_t *ready_set, ir_node
DB
((
env
->
dbg
,
LEVEL_3
,
"
\t
irn = %+F, mcand = 1, max_delay = %u
\n
"
,
irn
,
max_delay
));
}
else
{
in
t
cnt
=
ir_nodeset_size
(
&
ecands
);
size_
t
cnt
=
ir_nodeset_size
(
&
ecands
);
if
(
cnt
==
1
)
{
irn
=
get_nodeset_node
(
&
ecands
);
...
...
@@ -608,7 +608,7 @@ static ir_node *muchnik_select(void *block_env, ir_nodeset_t *ready_set, ir_node
DB
((
env
->
dbg
,
LEVEL_3
,
"
\t
irn = %+F, ecand = 1, max_delay = %u
\n
"
,
irn
,
max_delay
));
}
else
if
(
cnt
>
1
)
{
DB
((
env
->
dbg
,
LEVEL_3
,
"
\t
ecand = %
d
, max_delay = %u
\n
"
,
cnt
,
max_delay
));
DB
((
env
->
dbg
,
LEVEL_3
,
"
\t
ecand = %
zu
, max_delay = %u
\n
"
,
cnt
,
max_delay
));
irn
=
basic_selection
(
&
ecands
);
}
else
{
...
...
ir/ir/iropt.c
View file @
9c359401
/*
* Copyright (C) 1995-201
0
University of Karlsruhe. All right reserved.
* Copyright (C) 1995-201
1
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
...
...
@@ -6689,7 +6689,7 @@ ir_node *optimize_node(ir_node *n)
tv
=
computed_value
(
n
);
if
(
tv
!=
tarval_bad
)
{
ir_node
*
nw
;
in
t
node_size
;
size_
t
node_size
;
/*
* we MUST copy the node here temporary, because it's still
...
...
ir/libcore/lc_appendable.c
View file @
9c359401
...
...
@@ -33,7 +33,7 @@ int lc_appendable_snwadd(lc_appendable_t *app, const char *str, size_t len,
{
int
res
=
0
;
int
i
;
in
t
to_pad
=
width
-
len
;
size_
t
to_pad
=
width
>
len
?
width
-
len
:
0
;
/* If not left justified, pad left */
for
(
i
=
0
;
!
left_just
&&
i
<
to_pad
;
++
i
)
...
...
ir/libcore/lc_opts.c
View file @
9c359401
...
...
@@ -725,8 +725,8 @@ int lc_opt_from_single_arg(const lc_opt_entry_t *root,
const
char
*
arg
,
lc_opt_error_handler_t
*
handler
)
{
const
lc_opt_entry_t
*
grp
=
root
;
int
n
=
strlen
(
arg
);
in
t
n_prefix
=
opt_prefix
?
strlen
(
opt_prefix
)
:
0
;
size_t
n
=
strlen
(
arg
);
size_
t
n_prefix
=
opt_prefix
?
strlen
(
opt_prefix
)
:
0
;
int
error
=
0
;
int
ret
=
0
;
...
...
ir/opt/scalar_replace.c
View file @
9c359401
/*
* Copyright (C) 1995-20
08
University of Karlsruhe. All right reserved.
* Copyright (C) 1995-20
11
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
...
...
@@ -66,7 +66,7 @@ typedef union {
*/
typedef
struct
path_t
{
unsigned
vnum
;
/**< The value number. */
unsigned
path_len
;
/**< The length of the access path. */
size_t
path_len
;
/**< The length of the access path. */
path_elem_t
path
[
1
];
/**< The path. */
}
path_t
;
...
...
@@ -436,9 +436,10 @@ static int find_possible_replacements(ir_graph *irg)
* @param sel the Sel node
* @param len the length of the path so far
*/
static
path_t
*
find_path
(
ir_node
*
sel
,
unsigned
len
)
static
path_t
*
find_path
(
ir_node
*
sel
,
size_t
len
)
{
int
pos
,
i
,
n
;
size_t
pos
;
int
i
,
n
;
path_t
*
res
;
ir_node
*
pred
=
get_Sel_ptr
(
sel
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment