Commit aea9bbeb by Steven Bosscher

sched-vis.c (print_pattern): Handle NULL patterns.

	* sched-vis.c (print_pattern): Handle NULL patterns.

From-SVN: r193455
parent 33521509
2012-11-12 Steven Bosscher <steven@gcc.gnu.org> 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
* sched-vis.c (print_pattern): Handle NULL patterns.
2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/51447 PR rtl-optimization/51447
...@@ -568,6 +568,12 @@ print_pattern (char *buf, const_rtx x, int verbose) ...@@ -568,6 +568,12 @@ print_pattern (char *buf, const_rtx x, int verbose)
{ {
char t1[BUF_LEN], t2[BUF_LEN], t3[BUF_LEN]; char t1[BUF_LEN], t2[BUF_LEN], t3[BUF_LEN];
if (! x)
{
sprintf (buf, "(nil)");
return;
}
switch (GET_CODE (x)) switch (GET_CODE (x))
{ {
case SET: case SET:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment