compiler: fix stale comment in lexer
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 22 Jun 2017 15:42:50 +0000 (15:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 22 Jun 2017 15:42:50 +0000 (15:42 +0000)
    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/MERGE
gcc/go/gofrontend/lex.cc

index 296cd0f28901a14874e96f16cc82d82d8a21957d..dbff708d9323730c1fca27e987b5416b4082f775 100644 (file)
@@ -1,4 +1,4 @@
-8804c912363320e0c229c5a471fb6f4b9e5965e6
+54d83c2d67c35ad4f622936d2fbf81c17354fff9
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index e834c13aaf9739c886f30e0884537ee4af8a4ef8..beb365297fe152c409422f4aa8ef3c1e0eb24332 100644 (file)
@@ -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")