Commit 71c42444 authored by Russ Cox's avatar Russ Cox

5l: handle jump to middle of floating point sequence

R=ken2
CC=golang-dev
https://golang.org/cl/2473042
parent 20126040
...@@ -19,8 +19,11 @@ softfloat(void) ...@@ -19,8 +19,11 @@ softfloat(void)
if(symsfloat->type == STEXT) if(symsfloat->type == STEXT)
psfloat = symsfloat->text; psfloat = symsfloat->text;
wasfloat = 0;
for(cursym = textp; cursym != nil; cursym = cursym->next) { 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) { for(p = cursym->text; p != P; p = p->link) {
switch(p->as) { switch(p->as) {
case AMOVWD: case AMOVWD:
...@@ -43,7 +46,7 @@ softfloat(void) ...@@ -43,7 +46,7 @@ softfloat(void)
case ADIVD: case ADIVD:
if (psfloat == P) if (psfloat == P)
diag("floats used with _sfloat not defined"); diag("floats used with _sfloat not defined");
if (!wasfloat) { if (!wasfloat || (p->mark&LABEL)) {
next = prg(); next = prg();
*next = *p; *next = *p;
......
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