Re: Handling of nonnull function attribute

2023-09-21 Thread Guillaume Gomez via Gcc
Hi, We were able to make it work by calling: ``` decl_attributes (&fndecl, fn_attributes, 0); ``` We used to set the attributes directly in `fndecl` using equivalents of: ``` DECL_ATTRIBUTES (fndecl) = tree_cons (ident, attribute_value, DECL_ATTRIBUTES (fndecl)); ``` We now store inside `f

Handling of nonnull function attribute

2023-09-21 Thread Antoni Boucher via Gcc
Hi. I'm working on adding the support for the nonnull attribute in libgccjit. I found out a way to make it working, but I need more help to find a proper solution. The problem is that the nonnull attribute should be added to the fn_type while we added it to the fn_decl. If we add it to the fn_type