diff options
| -rw-r--r-- | ident-list.h | 1 | ||||
| -rw-r--r-- | parse.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ident-list.h b/ident-list.h index 4381a4bd..95bb96ac 100644 --- a/ident-list.h +++ b/ident-list.h @@ -54,6 +54,7 @@ IDENT(noinline); IDENT(deprecated); IDENT(__const); IDENT(__const__); IDENT(noreturn); IDENT(__noreturn__); IDENT(regparm); IDENT(weak); IDENT(__weak__); +IDENT(__no_instrument_function__); IDENT(no_instrument_function); IDENT(__sentinel__); IDENT(sentinel); IDENT(alias); IDENT(pure); IDENT(always_inline); IDENT(syscall_linkage); IDENT(visibility); @@ -517,6 +517,9 @@ static const char * handle_attribute(struct ctype *ctype, struct ident *attribut if (attribute == &noreturn_ident || attribute == &__noreturn___ident) return NULL; + if (attribute == &no_instrument_function_ident || + attribute == &__no_instrument_function___ident) + return NULL; if (attribute == &sentinel_ident || attribute == &__sentinel___ident) return NULL; |
