This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][PR sanitizer/78887] Don't emit ODR indicators if -fsanitize=kernel-address is present.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Maxim Ostapenko <m dot ostapenko at samsung dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Jan 2017 10:03:31 +0100
- Subject: Re: [PATCH][PR sanitizer/78887] Don't emit ODR indicators if -fsanitize=kernel-address is present.
- Authentication-results: sourceware.org; auth=none
- References: <CGME20170113081926eucas1p2182a7b44313074dab4efc7d75d2362e2@eucas1p2.samsung.com> <58788D87.7040104@samsung.com> <20170113082439.GH21933@tucnak> <58789782.1050809@samsung.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jan 13, 2017 at 12:01:54PM +0300, Maxim Ostapenko wrote:
> + of symbols they are emmitted for, these assumptions would be broken for
emitted rather than emmitted.
> + ODR indicator symbols. */
> + return (!(flag_sanitize & SANITIZE_KERNEL_ADDRESS)
> + && !DECL_ARTIFICIAL (decl)
> + && !DECL_WEAK (decl)
> + && TREE_PUBLIC (decl));
> }
>
> /* Append description of a single global DECL into vector V.
Jakub