Commit 7c8fb356 by Martin Liska Committed by Martin Liska

Replace ENABLE_CHECKING with CHECKING_P in dwarf2out

	* dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
	CHECKING_P.
	(resolve_args_picking_1): Likewise.
	* dwarf2out.h (struct GTY): Likewise.

From-SVN: r233737
parent ac400631
2016-02-26 Martin Liska <mliska@suse.cz> 2016-02-26 Martin Liska <mliska@suse.cz>
* dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
CHECKING_P.
(resolve_args_picking_1): Likewise.
* dwarf2out.h (struct GTY): Likewise.
2016-02-26 Martin Liska <mliska@suse.cz>
* hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
with flag_checking. with flag_checking.
* hsa-regalloc.c (linear_scan_regalloc): Likewise. * hsa-regalloc.c (linear_scan_regalloc): Likewise.
......
...@@ -1325,7 +1325,7 @@ new_loc_descr (enum dwarf_location_atom op, unsigned HOST_WIDE_INT oprnd1, ...@@ -1325,7 +1325,7 @@ new_loc_descr (enum dwarf_location_atom op, unsigned HOST_WIDE_INT oprnd1,
dw_loc_descr_ref descr = ggc_cleared_alloc<dw_loc_descr_node> (); dw_loc_descr_ref descr = ggc_cleared_alloc<dw_loc_descr_node> ();
descr->dw_loc_opc = op; descr->dw_loc_opc = op;
#if ENABLE_CHECKING #if CHECKING_P
descr->dw_loc_frame_offset = -1; descr->dw_loc_frame_offset = -1;
#endif #endif
descr->dw_loc_oprnd1.val_class = dw_val_class_unsigned_const; descr->dw_loc_oprnd1.val_class = dw_val_class_unsigned_const;
...@@ -15369,14 +15369,14 @@ resolve_args_picking_1 (dw_loc_descr_ref loc, unsigned initial_frame_offset, ...@@ -15369,14 +15369,14 @@ resolve_args_picking_1 (dw_loc_descr_ref loc, unsigned initial_frame_offset,
/* If we already met this node, there is nothing to compute anymore. */ /* If we already met this node, there is nothing to compute anymore. */
if (visited.add (l)) if (visited.add (l))
{ {
#if ENABLE_CHECKING #if CHECKING_P
/* Make sure that the stack size is consistent wherever the execution /* Make sure that the stack size is consistent wherever the execution
flow comes from. */ flow comes from. */
gcc_assert ((unsigned) l->dw_loc_frame_offset == frame_offset_); gcc_assert ((unsigned) l->dw_loc_frame_offset == frame_offset_);
#endif #endif
break; break;
} }
#if ENABLE_CHECKING #if CHECKING_P
l->dw_loc_frame_offset = frame_offset_; l->dw_loc_frame_offset = frame_offset_;
#endif #endif
......
...@@ -239,7 +239,7 @@ struct GTY((chain_next ("%h.dw_loc_next"))) dw_loc_descr_node { ...@@ -239,7 +239,7 @@ struct GTY((chain_next ("%h.dw_loc_next"))) dw_loc_descr_node {
frame offset. */ frame offset. */
unsigned int frame_offset_rel : 1; unsigned int frame_offset_rel : 1;
int dw_loc_addr; int dw_loc_addr;
#if ENABLE_CHECKING #if CHECKING_P
/* When translating a function into a DWARF procedure, contains the frame /* When translating a function into a DWARF procedure, contains the frame
offset *before* evaluating this operation. It is -1 when not yet offset *before* evaluating this operation. It is -1 when not yet
initialized. */ initialized. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment