unify usage of VOID
PATCH 1/1 unify usage of VOID
Also remove unneeded empty initializator of `void_pseudo'.
--- linearize.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
linearize.c +2 -2
@@ -33,7 +33,7 @@ struct access_data;static pseudo_t add_load (struct entrypoint *ep,struct access_data *);static pseudo_t linearize_initializer (struct entrypoint *ep,struct expression *initializer,struct access_data *); -struct pseudo void_pseudo = {}; +struct pseudo void_pseudo;static struct position current_pos;
@@ -1880,7 +1880,7 @@ pseudo_t linearize_statement(struct entrypoint *ep, struct statement *stmt)struct basic_block *active;pseudo_t src =linearize_expression (ep, expr); active = ep->active; -if (active && src != &void_pseudo) { +if (active && src !=VOID ) {struct instruction *phi_node =first_instruction (bb_return->insns);pseudo_t phi;if (!phi_node) {
Signature · 1 line
1.7.1
Christopher Li
maintainerHi Jan,
You are one fire with this sparse code :-)
I will take a closer look of your patch series tonight.
Thanks
Chris
Quoted 30 lines · Jan Pokorný
Also remove unneeded empty initializator of `void_pseudo'.
Signed-off-by Jan Pokorny <[email protected]>---
linearize.c | 4 ++--1 files changed, 2 insertions(+), 2 deletions(-)linearize.c +2
-3@@ -33,7 +33,7 @@ struct access_data; static pseudo_t add_load(struct entrypoint *ep, struct access_data *); static pseudo_t linearize_initializer(struct entrypoint *ep, struct expression *initializer, struct access_data *); -struct pseudo void_pseudo = {}; +struct pseudo void_pseudo; static struct position current_pos;@@ -1880,7 +1880,7 @@ pseudo_t linearize_statement(struct entrypoint *ep, struct statement *stmt) struct basic_block *active; pseudo_t src = linearize_expression(ep, expr); active = ep->active; - if (active && src != &void_pseudo) { + if (active && src != VOID) { struct instruction *phi_node = first_instruction(bb_return->insns); pseudo_t phi; if (!phi_node) { --
Quoted 6 lines
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 32 lines · Christopher Li
Hi Jan,
You are one fire with this sparse code :-)
I will take a closer look of your patch series tonight.
Thanks
Chris
Quoted 20 lines · Jan Pokorný
Also remove unneeded empty initializator of `void_pseudo'.
Signed-off-by Jan Pokorny <[email protected]>--- linearize.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)linearize.c +1
-1@@ -33,7 +33,7 @@ struct access_data;static pseudo_t add_load (struct entrypoint *ep,struct access_data *);static pseudo_t linearize_initializer (struct entrypoint *ep,struct expression *initializer,struct access_data *); -struct pseudo void_pseudo = {}; +struct pseudo void_pseudo;static struct position current_pos;
Quoted 12 lines
Quoted 10 lines
linearize.c +1
-2@@ -1880,7 +1880,7 @@ pseudo_t linearize_statement(struct entrypoint *ep, struct statement *stmt)struct basic_block *active;pseudo_t src =linearize_expression (ep, expr); active = ep->active; -if (active && src != &void_pseudo) { +if (active && src !=VOID ) {struct instruction *phi_node =first_instruction (bb_return->insns);pseudo_t phi;if (!phi_node) { --Quoted 2 lines
1.7.1
--
Hi Chris,
thank you for considering these patches, feel free to bother me with complains :-)
I think I will have some more patches to send, but it should not be tightly related to what I have already posted (if so, I'll make it explicit).
Signature · 5 lines
Jan -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html