• Josh Bleecher Snyder's avatar
    cmd/go, cmd/compile: always optimize when building runtime · f8b02316
    Josh Bleecher Snyder authored
    When optimizations are disabled, the compiler
    cannot eliminate enough write barriers to satisfy
    the runtime's nowritebarrier and nowritebarrierrec
    annotations.
    
    Enforce that requirement, and for convenience,
    have cmd/go elide -N when compiling the runtime.
    
    This came up in practice for me when running
    toolstash -cmp. When toolstash -cmp detected
    mismatches, it recompiled with -N, which caused
    runtime compilation failures.
    
    Change-Id: Ifcdef22c725baf2c59a09470f00124361508a8f3
    Reviewed-on: https://go-review.googlesource.com/38380
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    f8b02316
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...