[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-sparse
Subject:    Re: [PATCH v2 08/13] expression: recognize references to labels as address constants
From:       Luc Van Oostenryck <luc.vanoostenryck () gmail ! com>
Date:       2016-01-26 1:45:17
Message-ID: 20160126014516.GF46188 () macpro ! local
[Download RAW message or body]

On Mon, Jan 25, 2016 at 03:59:37PM +0100, Nicolai Stange wrote:
> As an extension, GCC allows labels to be referenced a la
>   label1:
>   ...
> 
>   void *ptr = &&label1;
> 
> Tag these label references as being address constants allowing them
> to be used as initializers for objects of static storage duration.

Would be good to add afew test case to show that.


Luc
--
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic