diff options
author | Richard Biener <rguenther@suse.de> | 2017-12-15 13:43:30 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-12-15 13:43:30 +0000 |
commit | 87a5e0e8c65c0066f497d54e88ff2c1dc6eb3a97 (patch) | |
tree | a442253ccfb98e3c85928b6d9227ba0d841b55f8 /gcc/internal-fn.c | |
parent | fc47ef60c5d11d0302a4f4831080fde792430781 (diff) | |
download | gcc-87a5e0e8c65c0066f497d54e88ff2c1dc6eb3a97.zip gcc-87a5e0e8c65c0066f497d54e88ff2c1dc6eb3a97.tar.gz gcc-87a5e0e8c65c0066f497d54e88ff2c1dc6eb3a97.tar.bz2 |
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
Diffstat (limited to 'gcc/internal-fn.c')
-rw-r--r-- | gcc/internal-fn.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index 7ddc524..21e7b10 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -2722,6 +2722,14 @@ expand_DIVMOD (internal_fn, gcall *call_stmt) target, VOIDmode, EXPAND_NORMAL); } +/* Expand a NOP. */ + +static void +expand_NOP (internal_fn, gcall *) +{ + /* Nothing. But it shouldn't really prevail. */ +} + /* Expand a call to FN using the operands in STMT. FN has a single output operand and NARGS input operands. */ |