# Re: \[PATCH 1/2\] compiler\_attributes.h: define \_\_no\_profile, add to noinstr

- From: Nick Desaulniers \<ndesaulniers@google.com\>
- Date: 2021-06-21 18:21:23 
- List: linux-toolchains
- Page: https://ratatoskr.run/linux-toolchains/2021/06/1421652
- Thread: https://ratatoskr.run/linux-doc/2021/06/1419755/t.md

```text
On Sat, Jun 19, 2021 at 4:32 AM Miguel Ojeda
[ref] wrote:
>
> On Sat, Jun 19, 2021 at 1:26 PM Miguel Ojeda
> [ref] wrote:
> >
> > I am not sure if it is best or not to have the GCC link in order to be
> > consistent with the rest of the links (they are for the docs only). Do
> > we know if GCC going to implement it soon?
>
> i.e. if GCC does not implement it yet we use elsewhere this kind of
> marker instead:
>
>      * Optional: not supported by gcc
>
> The first of its kind, normally it is clang/icc there ;-)

:^) GCC does have an attribute since GCC 7.1 for this.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223#c11
I'm moving Clang over to use that in
https://reviews.llvm.org/D104658
Once that lands, I'll send a v2 (without carrying any reviewed by tags).

>
> We could nevertheless have the link there, something like:
>
>     * Optional: not supported by GCC
>                 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223

-- 
Thanks,
~Nick Desaulniers
```
