Commit 07704a9a by Richard Earnshaw Committed by Richard Earnshaw

genextract.c (print_path): Handle zero-length path as a special case.

From-SVN: r19947
parent 27fafc8d
Fri May 22 03:42:05 1998 Richard Earnshaw (rearnsha@arm.com)
* genextract.c (print_path): Handle zero-length path as a special
case.
Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
* cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
......
......@@ -318,6 +318,14 @@ print_path (path)
register int len = strlen (path);
register int i;
if (len == 0)
{
/* Don't emit "pat", since we may try to take the address of it,
which isn't what is intended. */
printf("PATTERN (insn)");
return;
}
/* We first write out the operations (XEXP or XVECEXP) in reverse
order, then write "insn", then the indices in forward order. */
......
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