re PR sanitizer/83388 (reference statement index not found error with -fsanitize...
authorRichard Biener <rguenther@suse.de>
Fri, 15 Dec 2017 13:43:30 +0000 (13:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 15 Dec 2017 13:43:30 +0000 (13:43 +0000)
commit87a5e0e8c65c0066f497d54e88ff2c1dc6eb3a97
treea442253ccfb98e3c85928b6d9227ba0d841b55f8
parentfc47ef60c5d11d0302a4f4831080fde792430781
re PR sanitizer/83388 (reference statement index not found error with -fsanitize=null)

2017-12-15  Richard Biener  <rguenther@suse.de>

PR lto/83388
* internal-fn.def (IFN_NOP): Add.
* internal-fn.c (expand_NOP): Do nothing.
* lto-streamer-in.c (input_function): Instead of removing
sanitizer calls replace them with IFN_NOP calls.

* gcc.dg/lto/pr83388_0.c: New testcase.

From-SVN: r255694
gcc/ChangeLog
gcc/internal-fn.c
gcc/internal-fn.def
gcc/lto-streamer-in.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr83388_0.c [new file with mode: 0644]