1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:14:42 -07:00

5l: handle jump to middle of floating point sequence

R=ken2
CC=golang-dev
https://golang.org/cl/2473042
This commit is contained in:
Russ Cox 2010-10-18 13:44:39 -04:00
parent 2012604002
commit 71c4244430

View File

@ -19,8 +19,11 @@ softfloat(void)
if(symsfloat->type == STEXT)
psfloat = symsfloat->text;
wasfloat = 0;
for(cursym = textp; cursym != nil; cursym = cursym->next) {
wasfloat = 0;
for(p = cursym->text; p != P; p = p->link)
if(p->cond != P)
p->cond->mark |= LABEL;
for(p = cursym->text; p != P; p = p->link) {
switch(p->as) {
case AMOVWD:
@ -43,7 +46,7 @@ softfloat(void)
case ADIVD:
if (psfloat == P)
diag("floats used with _sfloat not defined");
if (!wasfloat) {
if (!wasfloat || (p->mark&LABEL)) {
next = prg();
*next = *p;