This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Turn check macros into functions. (issue6188088)


On 05/18/12 05:06, Richard Guenther wrote:
> Can you locate those?  I mean, most uses look like
> 
> #define DECL_NONSHAREABLE(NODE) \
>   (TREE_CHECK2 (NODE, VAR_DECL, \
>                 RESULT_DECL)->decl_common.decl_nonshareable_flag)
> 
> thus they only dereference the result, not assign it anywhere.

const_tree vs tree for NODE is the difference between the
entire expression being writable, or read-only.

  DECL_NONSHARABLE (d) = true;



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]