jit: fix segfault with autovectorization (PR tree-optimization/46805)

Programming / Compilers / GCC - dmalcolm [138bc75d-0d04-0410-961f-82ee72b054a4] - 18 August 2017 19:56 EDT

libgccjit ran into its own version of PR tree-optimization/46805 (seen with the Go frontend); this patch fixes it in the same way.

gcc/jit/ChangeLog: PR tree-optimization/46805
- dummy-frontend.c (jit_langhook_parse_file): Handle vector types.

gcc/testsuite/ChangeLog: PR tree-optimization/46805
- jit.dg/all-non-failing-tests.h: Add test-autovectorize.c.
- jit.dg/test-autovectorize.c: New test case.

dcd0fe8 jit: fix segfault with autovectorization (PR tree-optimization/46805)
gcc/jit/ChangeLog | 5 +
gcc/jit/dummy-frontend.c | 11 +
gcc/testsuite/ChangeLog | 6 +
gcc/testsuite/jit.dg/all-non-failing-tests.h | 10 +
gcc/testsuite/jit.dg/test-autovectorize.c | 375 +++++++++++++++++++++++++++
5 files changed, 407 insertions(+)

Upstream: gcc.gnu.org


  • Share