cmd/go: gccgo: consistent results, fix vendoring

Pass the -fdebug-prefix-map and -gno-record-gcc-switches compiler
options to gccgo to generate consistent results.

Fix the vendoring code to look for /vendor/, not just /vendor, to
avoid being confused by something like vendor/

Tested by the cmd/go tests in a followup CL.

Change-Id: I814b38ef4d82fd0fa1bec4c1ec743ea1e717711f
Reviewed-by: Than McIntosh <>
1 file changed