compiler: remove "DIR/../" when joining relative import path
commit382819b34f2ee486e3b5a587f06de09e4f67f04c
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jun 2017 13:37:48 +0000 (14 13:37 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jun 2017 13:37:48 +0000 (14 13:37 +0000)
tree284721011965de05fde468a68fead07b9739d32e
parentc4389cf3f952c85f58053877ab3471f57d362fc6
compiler: remove "DIR/../" when joining relative import path

    Otherwise if DIR does not exist, the path does not work. This matches
    what the gc cmd/compile tool does, because it calls path.Join.

    The test for this is the cmd/go tests, to be added in a follow-up CL.

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

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