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

From-SVN: r19947
This commit is contained in:
Richard Earnshaw 1998-05-22 03:44:58 +00:00 committed by Richard Earnshaw
parent 27fafc8de1
commit 07704a9adb
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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. */