From b8f70831bfbd1e9bdd989010ea114967bee0f34b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 22 Jun 2017 15:42:50 +0000 Subject: compiler: fix stale comment in lexer Remove stale comment in code that accepts "go:nowritebarrier" pragma. Update comment for "go:nowritebarrierrec". Reviewed-on: https://go-review.googlesource.com/46416 From-SVN: r249564 --- gcc/go/gofrontend/lex.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/go/gofrontend/lex.cc') diff --git a/gcc/go/gofrontend/lex.cc b/gcc/go/gofrontend/lex.cc index e834c13..beb3652 100644 --- a/gcc/go/gofrontend/lex.cc +++ b/gcc/go/gofrontend/lex.cc @@ -1909,7 +1909,6 @@ Lex::skip_cpp_comment() // Applies to the next function. If the function needs to use // any write barriers, it should emit an error instead. // FIXME: Should only work when compiling the runtime package. - // FIXME: Not implemented. this->pragmas_ |= GOPRAGMA_NOWRITEBARRIER; } else if (verb == "go:nowritebarrierrec") @@ -1918,7 +1917,7 @@ Lex::skip_cpp_comment() // function that it calls, needs to use any write barriers, it // should emit an error instead. // FIXME: Should only work when compiling the runtime package. - // FIXME: Not implemented. + // FIXME: currently treated the same as go:nowritebarrier this->pragmas_ |= GOPRAGMA_NOWRITEBARRIERREC; } else if (verb == "go:cgo_unsafe_args") -- cgit v1.1