]> Cypherpunks repositories - gostls13.git/commit
cmd/8g: don't call gc.Fatal during initalisation
authorDave Cheney <dave@cheney.net>
Fri, 1 May 2015 00:15:33 +0000 (10:15 +1000)
committerDave Cheney <dave@cheney.net>
Fri, 1 May 2015 01:33:55 +0000 (01:33 +0000)
commit443a32e707d247be219a5e230bfb53167dba2560
treec652b09c6e7457d0c0c78f9c04bb884986684602
parent042200145fbf994e3fcbfa87e75b10d042867b3a
cmd/8g: don't call gc.Fatal during initalisation

Fixes #10592

Calling gc.Fatal before gc.Main has been called ends up flushing gc.bstdout before
it is properly set up. Ideally obj.Bflush would handle this case, but that type
and its callers are rather convoluted, so take the simpler route and avoid calling
gc.Fatal altogether.

Change-Id: I338b469e86edba558b6bedff35bb904bfc3d6990
Reviewed-on: https://go-review.googlesource.com/9525
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
Run-TryBot: Dave Cheney <dave@cheney.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/8g/galign.go