diff options
Diffstat (limited to 'gcc/go/gofrontend/go.cc')
-rw-r--r-- | gcc/go/gofrontend/go.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/go.cc b/gcc/go/gofrontend/go.cc index 5106e8d..23acaa5 100644 --- a/gcc/go/gofrontend/go.cc +++ b/gcc/go/gofrontend/go.cc @@ -142,6 +142,9 @@ go_parse_input_files(const char** filenames, unsigned int filename_count, if (only_check_syntax) return; + // Do simple deadcode elimination. + ::gogo->remove_deadcode(); + // Make implicit type conversions explicit. ::gogo->add_conversions(); |