diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-11-15 23:30:15 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-11-15 23:30:15 +0100 |
commit | 7a4f257ddd7903fd2553d92a4e6539d8fa6a67e5 (patch) | |
tree | 52009d637941b6371d2d19e2fbdc4a0d8ec836e9 /gcc/testsuite/gcc.c-torture/compile/pr46461.c | |
parent | ecbfe87a7b42248d14cd05f1dfa77a29854fc1a8 (diff) | |
download | gcc-7a4f257ddd7903fd2553d92a4e6539d8fa6a67e5.zip gcc-7a4f257ddd7903fd2553d92a4e6539d8fa6a67e5.tar.gz gcc-7a4f257ddd7903fd2553d92a4e6539d8fa6a67e5.tar.bz2 |
re PR tree-optimization/46461 (ICE: invalid argument to gimple call at -O with __builtin_memset())
PR tree-optimization/46461
* tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
a gimple val.
* gcc.c-torture/compile/pr46461.c: New test.
From-SVN: r166776
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr46461.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr46461.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46461.c b/gcc/testsuite/gcc.c-torture/compile/pr46461.c new file mode 100644 index 0000000..7e38598 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr46461.c @@ -0,0 +1,8 @@ +/* PR tree-optimization/46461 */ + +void +foo (char *c) +{ + c[7] = 0xff; + __builtin_memset (c + 8, 0xff, 8); +} |