]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: generate offsets for P structure
authorRuss Cox <rsc@golang.org>
Fri, 19 Jul 2013 19:40:32 +0000 (15:40 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 19 Jul 2013 19:40:32 +0000 (15:40 -0400)
So far no checked-in assembly needs these,
but it matches having them for M and G.
I needed these for some manual testing.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/11595043

src/cmd/dist/buildruntime.c

index a9c341c93ad36aaa06fc206a255075997c327c01..675ef2f58f78f26cae761e89bf653d3dd5416e00 100644 (file)
@@ -248,6 +248,8 @@ ok:
                                aggr = "g";
                        else if(streq(fields.p[1], "M"))
                                aggr = "m";
+                       else if(streq(fields.p[1], "P"))
+                               aggr = "p";
                        else if(streq(fields.p[1], "Gobuf"))
                                aggr = "gobuf";
                        else if(streq(fields.p[1], "WinCall"))