compiler: Check for EOF in malformed signatures.
commita6b7f00f04169dde8f350268fe4b1e34dcbab9d5
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Aug 2015 23:11:36 +0000 (11 23:11 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Aug 2015 23:11:36 +0000 (11 23:11 +0000)
tree7ecec73827de5c2657b2d50e39d8e48c9007b588
parent39867fd3687167749dc96212cf89bce0ab55ce9a
compiler: Check for EOF in malformed signatures.

    When parsing a malformed function declaration with invalid parameters,
    gccgo would infinitely loop looking for the end of the function
    declaration.

    Fixes golang/go#11530, golang/go#11531.

    Reviewed-on: https://go-review.googlesource.com/13065

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226795 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc