* [PATCH] unify usage of VOID
@ 2011-04-10 16:24 Jan Pokorný
2011-04-10 22:20 ` Christopher Li
0 siblings, 1 reply; 3+ messages in thread
From: Jan Pokorný @ 2011-04-10 16:24 UTC (permalink / raw)
To: sparse; +Cc: linux-sparse
Also remove unneeded empty initializator of `void_pseudo'.
Signed-off-by: Jan Pokorny <pokorny_jan@seznam.cz>
---
linearize.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linearize.c b/linearize.c
index f2034ce..46c9726 100644
--- a/linearize.c
+++ b/linearize.c
@@ -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) {
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] unify usage of VOID
2011-04-10 16:24 [PATCH] unify usage of VOID Jan Pokorný
@ 2011-04-10 22:20 ` Christopher Li
2011-04-10 23:34 ` Jan Pokorný
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Li @ 2011-04-10 22:20 UTC (permalink / raw)
To: Jan Pokorný; +Cc: linux-sparse
Hi Jan,
You are one fire with this sparse code :-)
I will take a closer look of your patch series tonight.
Thanks
Chris
On Sun, Apr 10, 2011 at 9:24 AM, Jan Pokorný <pokorny_jan@seznam.cz> wrote:
> Also remove unneeded empty initializator of `void_pseudo'.
>
> Signed-off-by: Jan Pokorny <pokorny_jan@seznam.cz>
> ---
> linearize.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/linearize.c b/linearize.c
> index f2034ce..46c9726 100644
> --- a/linearize.c
> +++ b/linearize.c
> @@ -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) {
> --
> 1.7.1
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
> the body of a message to majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] unify usage of VOID
2011-04-10 22:20 ` Christopher Li
@ 2011-04-10 23:34 ` Jan Pokorný
0 siblings, 0 replies; 3+ messages in thread
From: Jan Pokorný @ 2011-04-10 23:34 UTC (permalink / raw)
To: Christopher Li; +Cc: linux-sparse
On 04/11/2011 12:20 AM, Christopher Li wrote:
> Hi Jan,
>
> You are one fire with this sparse code :-)
>
> I will take a closer look of your patch series tonight.
>
> Thanks
>
> Chris
>
>
> On Sun, Apr 10, 2011 at 9:24 AM, Jan Pokorný <pokorny_jan@seznam.cz> wrote:
>> Also remove unneeded empty initializator of `void_pseudo'.
>>
>> Signed-off-by: Jan Pokorny <pokorny_jan@seznam.cz>
>> ---
>> linearize.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/linearize.c b/linearize.c
>> index f2034ce..46c9726 100644
>> --- a/linearize.c
>> +++ b/linearize.c
>> @@ -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) {
>> --
>> 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).
--
Jan
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-10 23:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10 16:24 [PATCH] unify usage of VOID Jan Pokorný
2011-04-10 22:20 ` Christopher Li
2011-04-10 23:34 ` Jan Pokorný
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.