diff options
| author | Cherry Mui <cherryyz@google.com> | 2026-03-17 21:59:52 -0400 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2026-03-24 12:43:58 -0700 |
| commit | e20a1b603579fc36148530048c76de6938347019 (patch) | |
| tree | e20fc02f9420f4860a689ca97d3b9ef50a9c6d03 /src/runtime | |
| parent | 3390ec59af33d3c9ab431ff88a245b710b7c9e40 (diff) | |
| download | go-e20a1b603579fc36148530048c76de6938347019.tar.xz | |
cmd/compile: handle string literals in FIPS mode consistently
There are different code paths for compiling a composite literal,
e.g. small vs. large, fully static vs. partially static. Following
CL 755600, we need to apply the condition for string literals in
FIPS mode consistently in all places.
Enhance the test to check that not only does the code compile, the
same code inside and outside of FIPS mode produce the same result.
If the condition is not consistent in the compiler, it may compile
the code, but not all the fields are actually assigned.
Fixes #78173.
Change-Id: Icaf673bd4798d4312d86c39b147d7fd33b9dae2c
Reviewed-on: https://go-review.googlesource.com/c/go/+/756260
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
