]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/5g, cmd/8g: make 'out of registers' a fatal error
authorRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 17:16:43 +0000 (13:16 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 16 Sep 2014 17:16:43 +0000 (13:16 -0400)
There's no point in continuing. We will only get confused.
6g already makes this fatal.

LGTM=dave, minux, iant
R=iant, dave, minux
CC=golang-codereviews
https://golang.org/cl/140660043

src/cmd/5g/gsubr.c
src/cmd/8g/gsubr.c

index 93bfafef66fcde4560251eafb3c41f2240fd5157..06e274e14da4e61cd0e7bf6346d867b3622a7c38 100644 (file)
@@ -361,7 +361,7 @@ regalloc(Node *n, Type *t, Node *o)
                print("registers allocated at\n");
                for(i=REGALLOC_R0; i<=REGALLOC_RMAX; i++)
                        print("%d %p\n", i, regpc[i]);
-               yyerror("out of fixed registers");
+               fatal("out of fixed registers");
                goto err;
 
        case TFLOAT32:
@@ -374,7 +374,7 @@ regalloc(Node *n, Type *t, Node *o)
                for(i=REGALLOC_F0; i<=REGALLOC_FMAX; i++)
                        if(reg[i] == 0)
                                goto out;
-               yyerror("out of floating point registers");
+               fatal("out of floating point registers");
                goto err;
 
        case TCOMPLEX64:
index a83d048f40c1ae48b8d7cdfe74dde7002acc1187..3077e0ad9c4aa254de7b7265441f0b5de424d377 100644 (file)
@@ -938,7 +938,7 @@ regalloc(Node *n, Type *t, Node *o)
                fprint(2, "registers allocated at\n");
                for(i=D_AX; i<=D_DI; i++)
                        fprint(2, "\t%R\t%#lux\n", i, regpc[i]);
-               yyerror("out of fixed registers");
+               fatal("out of fixed registers");
                goto err;
 
        case TFLOAT32: