Convert set_block_for_insn from a macro to an inline function
gcc/ChangeLog: 2014-09-05 David Malcolm <dmalcolm@redhat.com> * basic-block.h (set_block_for_insn): Eliminate this macro in favor of... * rtl.h (set_block_for_insn): New inline function, imposing the requirement that the "insn" param is an rtx_insn *. From-SVN: r214963
This commit is contained in:
parent
86bf2d46b6
commit
345b82befb
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2014-09-05 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
|
* basic-block.h (set_block_for_insn): Eliminate this macro in
|
||||||
|
favor of...
|
||||||
|
* rtl.h (set_block_for_insn): New inline function, imposing the
|
||||||
|
requirement that the "insn" param is an rtx_insn *.
|
||||||
|
|
||||||
2014-09-05 David Malcolm <dmalcolm@redhat.com>
|
2014-09-05 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
* caller-save.c (setup_save_areas): Strengthen local "insn" from
|
* caller-save.c (setup_save_areas): Strengthen local "insn" from
|
||||||
|
|
|
@ -385,8 +385,6 @@ struct GTY(()) control_flow_graph {
|
||||||
/* The two blocks that are always in the cfg. */
|
/* The two blocks that are always in the cfg. */
|
||||||
#define NUM_FIXED_BLOCKS (2)
|
#define NUM_FIXED_BLOCKS (2)
|
||||||
|
|
||||||
#define set_block_for_insn(INSN, BB) (BLOCK_FOR_INSN (INSN) = BB)
|
|
||||||
|
|
||||||
extern void compute_bb_for_insn (void);
|
extern void compute_bb_for_insn (void);
|
||||||
extern unsigned int free_bb_for_insn (void);
|
extern unsigned int free_bb_for_insn (void);
|
||||||
extern void update_bb_for_insn (basic_block);
|
extern void update_bb_for_insn (basic_block);
|
||||||
|
|
|
@ -1353,6 +1353,11 @@ inline basic_block& BLOCK_FOR_INSN (rtx insn)
|
||||||
return XBBDEF (insn, 2);
|
return XBBDEF (insn, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void set_block_for_insn (rtx_insn *insn, basic_block bb)
|
||||||
|
{
|
||||||
|
BLOCK_FOR_INSN (insn) = bb;
|
||||||
|
}
|
||||||
|
|
||||||
/* The body of an insn. */
|
/* The body of an insn. */
|
||||||
inline rtx PATTERN (const_rtx insn)
|
inline rtx PATTERN (const_rtx insn)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue