This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCHv2] Don't expand string/memory builtins if ASan is enabled.
- From: Yury Gribov <y dot gribov at samsung dot com>
- To: Maxim Ostapenko <m dot ostapenko at partner dot samsung dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Slava Garbuzov <v dot garbuzov at samsung dot com>, Maxim Ostapenko <chefmax7 at gmail dot com>
- Date: Thu, 23 Oct 2014 12:26:48 +0400
- Subject: Re: [PATCHv2] Don't expand string/memory builtins if ASan is enabled.
- Authentication-results: sourceware.org; auth=none
- References: <5441008A dot 2010706 at partner dot samsung dot com> <54410170 dot 9030100 at partner dot samsung dot com> <20141017122420 dot GR10376 at tucnak dot redhat dot com> <5441132D dot 8000500 at samsung dot com> <20141017130340 dot GW10376 at tucnak dot redhat dot com> <54465EF3 dot 5060601 at partner dot samsung dot com>
On 10/21/2014 05:26 PM, Maxim Ostapenko wrote:
Hi,
this is the second version of the patch. Here the major changes from the
previous one:
[snip]
case BUILT_IN_BCMP:
+ *intercepted_p = false;
The code which identifies interceptors seems to be duplicated in
expand_builtin. What about factoring this out to some
is_asan_intercepted() in asan.h?
-Y