]> sourceware.org Git - newlib-cygwin.git/commit
gcc: quiet Wattribute for no_sanitize("address")
authorrlibby <rlibby@FreeBSD.org>
Sat, 21 Dec 2019 02:43:20 +0000 (02:43 +0000)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 26 Oct 2020 13:18:46 +0000 (14:18 +0100)
commitb9af5041bd5662748e060d7b716c18a224d91254
tree85ff8c44f56620b0d1ca52d434c0e492c5347aaf
parentb9967c3f9040c25efe0a67b59dbd05ee79d0a97d
gcc: quiet Wattribute for no_sanitize("address")

This is an unfortunate instance where the __has_attribute check does
not function usefully.  Gcc does have the attribute, but for gcc it only
applies to functions, not variables, and trying to apply it to a
variable generates Wattribute.  So far we only apply the attribute to
variables.  Only enable the attribute for clang, for now.

Reviewed by: Anton Rang <rang at acm.org>
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D22875
newlib/libc/include/sys/cdefs.h
This page took 0.030125 seconds and 5 git commands to generate.