]> Cypherpunks repositories - gostls13.git/commitdiff
5l: document -F, force it on old ARMs
authorRuss Cox <rsc@golang.org>
Thu, 20 Jan 2011 17:50:10 +0000 (12:50 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 20 Jan 2011 17:50:10 +0000 (12:50 -0500)
Fixes #1341.

R=ken2, r
CC=golang-dev
https://golang.org/cl/4006045

src/cmd/5l/doc.go
src/cmd/5l/obj.c

index 6f7408116b95596f762ccff61f62a673a06f5c52..72b5c339257d62dee01fcc2df1b43e14c9331497 100644 (file)
@@ -20,6 +20,9 @@ Original options are listed in the link above.
 
 Options new in this version:
 
+-F
+       Force use of software floating point.
+       Also implied by setting GOARM=5 in the environment.
 -L dir1 -L dir2
        Search for libraries (package files) in dir1, dir2, etc.
        The default is the single location $GOROOT/pkg/$GOOS_arm.
index cb9ad9805e7ff1824516671788c139ba77e4edba..b3e20fbd8179bdca22d7dd8cc57226983c48ea69 100644 (file)
@@ -69,6 +69,7 @@ void
 main(int argc, char *argv[])
 {
        int c, i;
+       char *p;
 
        Binit(&bso, 1, OWRITE);
        cout = -1;
@@ -80,6 +81,10 @@ main(int argc, char *argv[])
        INITDAT = -1;
        INITRND = -1;
        INITENTRY = 0;
+       
+       p = getenv("GOARM");
+       if(p != nil && strcmp(p, "5") == 0)
+               debug['F'] = 1;
 
        ARGBEGIN {
        default: