changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: [5678vq]c: fix .safe node type for *FUNC() = *FUNC() sugen

changeset 7179: b3b84087ac92
parent 7178: c15a95dfdc11
child 7180: c34b759d11c6
author: cinap_lenrek@felloff.net
date: Wed, 01 May 2019 08:55:24 +0200
files: sys/src/cmd/5c/cgen.c sys/src/cmd/6c/cgen.c sys/src/cmd/7c/cgen.c sys/src/cmd/8c/cgen.c sys/src/cmd/qc/cgen.c sys/src/cmd/vc/cgen.c
description: [5678vq]c: fix .safe node type for *FUNC() = *FUNC() sugen
     1.1--- a/sys/src/cmd/5c/cgen.c
     1.2+++ b/sys/src/cmd/5c/cgen.c
     1.3@@ -1407,7 +1407,7 @@ copy:
     1.4 		nn->type = types[TLONG];
     1.5 		regialloc(&nod1, nn, Z);
     1.6 		lcgen(nn, &nod1);
     1.7-		regsalloc(&nod2, nn);
     1.8+		regsalloc(&nod2, &nod1);
     1.9 		nn->type = t;
    1.10 
    1.11 		gopcode(OAS, &nod1, Z, &nod2);
     2.1--- a/sys/src/cmd/6c/cgen.c
     2.2+++ b/sys/src/cmd/6c/cgen.c
     2.3@@ -1599,7 +1599,7 @@ copy:
     2.4 		nn->type = types[TLONG];
     2.5 		regialloc(&nod1, nn, Z);
     2.6 		lcgen(nn, &nod1);
     2.7-		regsalloc(&nod2, nn);
     2.8+		regsalloc(&nod2, &nod1);
     2.9 		nn->type = t;
    2.10 
    2.11 		gins(AMOVQ, &nod1, &nod2);
     3.1--- a/sys/src/cmd/7c/cgen.c
     3.2+++ b/sys/src/cmd/7c/cgen.c
     3.3@@ -1068,7 +1068,7 @@ copy:
     3.4 		nn->type = types[TLONG];
     3.5 		regialloc(&nod1, nn, Z);
     3.6 		lcgen(nn, &nod1);
     3.7-		regsalloc(&nod2, nn);
     3.8+		regsalloc(&nod2, &nod1);
     3.9 		nn->type = t;
    3.10 
    3.11 		gopcode(OAS, &nod1, Z, &nod2);
     4.1--- a/sys/src/cmd/8c/cgen.c
     4.2+++ b/sys/src/cmd/8c/cgen.c
     4.3@@ -1669,7 +1669,7 @@ copy:
     4.4 		nn->type = types[TLONG];
     4.5 		regialloc(&nod1, nn, Z);
     4.6 		lcgen(nn, &nod1);
     4.7-		regsalloc(&nod2, nn);
     4.8+		regsalloc(&nod2, &nod1);
     4.9 		nn->type = t;
    4.10 
    4.11 		gins(AMOVL, &nod1, &nod2);
     5.1--- a/sys/src/cmd/qc/cgen.c
     5.2+++ b/sys/src/cmd/qc/cgen.c
     5.3@@ -1016,7 +1016,7 @@ copy:
     5.4 		nn->type = types[TLONG];
     5.5 		regialloc(&nod1, nn, Z);
     5.6 		lcgen(nn, &nod1);
     5.7-		regsalloc(&nod2, nn);
     5.8+		regsalloc(&nod2, &nod1);
     5.9 		nn->type = t;
    5.10 
    5.11 		gmove(&nod1, &nod2);
     6.1--- a/sys/src/cmd/vc/cgen.c
     6.2+++ b/sys/src/cmd/vc/cgen.c
     6.3@@ -1077,7 +1077,7 @@ copy:
     6.4 		nn->type = types[TLONG];
     6.5 		regialloc(&nod1, nn, Z);
     6.6 		lcgen(nn, &nod1);
     6.7-		regsalloc(&nod2, nn);
     6.8+		regsalloc(&nod2, &nod1);
     6.9 		nn->type = t;
    6.10 
    6.11 		gopcode(OAS, &nod1, Z, &nod2);