re PR sanitizer/64981 (-fsanitize=address cant expand __builtin_ia32_rdtsc)
authorJakub Jelinek <jakub@redhat.com>
Mon, 9 Feb 2015 21:23:58 +0000 (22:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 9 Feb 2015 21:23:58 +0000 (22:23 +0100)
commitd51151b2f4284ee26ceca0944a34b7763335eee4
tree1ca21e0d206ad1ed93a5fbce4c51308411f4589d
parentc3e38a03df5f6074fd83d06c2c8d7393b0446026
re PR sanitizer/64981 (-fsanitize=address cant expand __builtin_ia32_rdtsc)

PR sanitizer/64981
* builtins.c (expand_builtin): Call targetm.expand_builtin
for BUILT_IN_MD builtins regardless of asan_intercepted_p.

* gcc.dg/asan/pr64981.c: New test.

From-SVN: r220551
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr64981.c [new file with mode: 0644]