diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-14 20:41:30 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-15 12:56:50 -0800 |
commit | 8a5b8fc719f5c5bd6bd732d95646193238343f39 (patch) | |
tree | eddea22d69c0152b414957227fac616c3d41c6b0 /gcc/cse.c | |
parent | f23753c710d54fdf6f6c6cbe93c5b0fdbf209fc8 (diff) | |
download | gcc-8a5b8fc719f5c5bd6bd732d95646193238343f39.zip gcc-8a5b8fc719f5c5bd6bd732d95646193238343f39.tar.gz gcc-8a5b8fc719f5c5bd6bd732d95646193238343f39.tar.bz2 |
compiler: discard global sink variables with static initializers
This is specifically for the test fixedbugs/issue23781.go, which
builds a large static array. The code does compile and work without
this change, but it takes a long time and generates a large object
file. Discarding the unnecessary static initializer makes this test
much faster.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/278172
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions