Messages in this thread | | | From | Miguel Ojeda <> | Date | Tue, 16 Jun 2020 15:09:33 +0200 | Subject | Re: [PATCH] compiler_attributes.h: Support no_sanitize_undefined check with GCC 4 |
| |
Hi Marco,
On Tue, Jun 16, 2020 at 1:15 AM Marco Elver <elver@google.com> wrote: > > UBSAN is supported since GCC 4.9, which unfortunately did not yet have > __has_attribute(). To work around, the __GCC4_has_attribute workaround > requires defining which compiler version supports the given attribute. > > In the case of no_sanitize_undefined, it is the first version that > supports UBSAN, which is GCC 4.9. > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Marco Elver <elver@google.com> > ---
I am happy to see the `__GCC4_has_attribute` workaround is useful outside the file, too (originally the list was meant to be used inside the file itself, but I see it is good to reuse it).
Reviewed-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Cheers, Miguel
| |