diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2014-06-19 09:22:53 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@debian.org> | 2014-06-19 09:22:53 +0200 |
commit | 8a39ee361feb9bf46d728ff1ba4f07ca1d9610b1 (patch) | |
tree | 4449f2036cccf162e8417cc5841a35815b3e7ac5 /src/cmd/gc/go.y | |
parent | c8bf49ef8a92e2337b69c14b9b88396efe498600 (diff) | |
download | golang-upstream/1.3.tar.gz |
Imported Upstream version 1.3upstream/1.3
Diffstat (limited to 'src/cmd/gc/go.y')
-rw-r--r-- | src/cmd/gc/go.y | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y index 5432eca85..2f354f723 100644 --- a/src/cmd/gc/go.y +++ b/src/cmd/gc/go.y @@ -557,6 +557,7 @@ caseblock: // This is so that the stmt_list action doesn't look at // the case tokens if the stmt_list is empty. yylast = yychar; + $1->xoffset = block; } stmt_list { @@ -1730,6 +1731,7 @@ non_dcl_stmt: { // will be converted to OFALL $$ = nod(OXFALL, N, N); + $$->xoffset = block; } | LBREAK onew_name { @@ -2138,6 +2140,10 @@ hidden_literal: case CTFLT: mpnegflt($$->val.u.fval); break; + case CTCPLX: + mpnegflt(&$$->val.u.cval->real); + mpnegflt(&$$->val.u.cval->imag); + break; default: yyerror("bad negated constant"); } |