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
016f70d0
Commit
016f70d0
authored
Nov 04, 2013
by
yb9976
Browse files
Fixed some warning for optimize build.
parent
a770a271
Changes
4
Hide whitespace changes
Inline
Side-by-side
ir/be/bessadestr.c
View file @
016f70d0
...
...
@@ -248,7 +248,9 @@ static void ssa_destruction_check_walker(ir_node *block, void *data)
if
(
!
arch_irn_consider_in_reg_alloc
(
cls
,
phi
))
continue
;
#ifndef NDEBUG
const
arch_register_t
*
phi_reg
=
arch_get_irn_register
(
phi
);
#endif
/* iterate over all args of phi */
for
(
int
i
=
0
,
max
=
get_irn_arity
(
phi
);
i
<
max
;
++
i
)
{
ir_node
*
arg
=
get_irn_n
(
phi
,
i
);
...
...
@@ -256,8 +258,10 @@ static void ssa_destruction_check_walker(ir_node *block, void *data)
if
(
arch_register_req_is
(
req
,
ignore
))
continue
;
#ifndef NDEBUG
const
arch_register_t
*
arg_reg
=
arch_get_irn_register
(
arg
);
assert
(
phi_reg
==
arg_reg
&&
"Error: Registers of phi and arg differ"
);
#endif
}
}
}
...
...
ir/ir/ircons_t.h
View file @
016f70d0
...
...
@@ -30,6 +30,9 @@ static inline void verify_new_node(ir_graph *irg, ir_node *node)
#ifdef DEBUG_libfirm
if
(
UNLIKELY
(
!
irn_verify_irg
(
node
,
irg
)))
abort
();
#else
(
void
)
irg
;
(
void
)
node
;
#endif
}
...
...
ir/ir/irverify.c
View file @
016f70d0
...
...
@@ -933,6 +933,7 @@ static bool check_dominance_for_node(const ir_node *use)
return
fine
;
}
#ifdef DEBUG_libfirm
/**
* Check if node is stored on the obstack belonging to the ir graph
*/
...
...
@@ -944,6 +945,7 @@ static bool check_irn_storage(ir_graph *irg, const ir_node *node)
}
return
true
;
}
#endif
int
irn_verify_irg
(
const
ir_node
*
n
,
ir_graph
*
irg
)
{
...
...
ir/tv/fltcalc.c
View file @
016f70d0
...
...
@@ -1246,12 +1246,11 @@ void init_fltcalc(int precision)
calc_buffer
=
(
fp_value
*
)
xmalloc
(
calc_buffer_size
);
memset
(
calc_buffer
,
0
,
calc_buffer_size
);
const
size_t
long_double_size
=
sizeof
(
long
double
);
#if LDBL_MANT_DIG == 64
assert
(
long
_
double
_size
==
12
||
long
_
double
_size
==
16
);
assert
(
sizeof
(
long
double
)
==
12
||
sizeof
(
long
double
)
==
16
);
long_double_desc
=
(
float_descriptor_t
)
{
15
,
63
,
1
};
#elif LDBL_MANT_DIG == 53
assert
(
long
_
double
_size
==
8
);
assert
(
sizeof
(
long
double
)
==
8
);
long_double_desc
=
(
float_descriptor_t
)
{
11
,
52
,
0
};
#else
#error "Unsupported long double format"
...
...
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