PR jit/63969: Fix segfault in error-handling when driver isn't found
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 1 Dec 2014 15:58:11 +0000 (15:58 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 1 Dec 2014 15:58:11 +0000 (15:58 +0000)
commitc985705ae91243bdabd4d828365017ef264bbd91
treeb68a1a2418f0312b0d2fcf8079fb1e32fefd48aa
parent81f263694d6451a17f7d6d3753fae85a01243619
PR jit/63969: Fix segfault in error-handling when driver isn't found

gcc/jit/ChangeLog:
PR jit/63969
* jit-playback.c: Ensure that ctxt_progname is non-NULL.

gcc/testsuite/ChangeLog:
PR jit/63969
* jit.dg/harness.h (CHECK_STRING_STARTS_WITH): New.
(check_string_starts_with): New.
* jit.dg/test-error-pr63969-missing-driver.c: New.

From-SVN: r218226
gcc/jit/ChangeLog
gcc/jit/jit-playback.c
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/harness.h
gcc/testsuite/jit.dg/test-error-pr63969-missing-driver.c [new file with mode: 0644]