Re: [PATCH] linearize.h: sanitize header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 6, 2009 at 11:02, Kamil Dudka<kdudka@xxxxxxxxxx> wrote:
> It's unfortunate to use 'true' and 'false' as identifiers in a system
> header. It clashes with corresponding macros from <stdbool.h> when
> included before <sparse/linearize.h>.
>
> Signed-off-by: Kamil Dudka <kdudka@xxxxxxxxxx>
> ---
>  linearize.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/linearize.h b/linearize.h
> index 2205082..50b3601 100644
> --- a/linearize.h
> +++ b/linearize.h
> @@ -328,7 +328,7 @@ struct entrypoint {
>         struct instruction *entry;
>  };
>
> -extern void insert_select(struct basic_block *bb, struct instruction *br, struct instruction *phi, pseudo_t true, pseudo_t false);
> +extern void insert_select(struct basic_block *bb, struct instruction *br, struct instruction *phi, pseudo_t if_true, pseudo_t if_false);

I guess it is wise to change this in linearize.c as well.  Mind sending a patch?

>  extern void insert_branch(struct basic_block *bb, struct instruction *br, struct basic_block *target);
>
>  pseudo_t alloc_phi(struct basic_block *source, pseudo_t pseudo, int size);


Cheers,
-Hannes
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux