This works around the problem on GCC 9 branch. The problem is fixed
in a better way on trunk; see https://golang.org/issue/34577.
Fixes https://golang.org/issue/35154
From-SVN: r277461
int
do_inlining_cost() const
- { return 1; }
+ {
+ if (this->type_ != NULL && this->type_->named_type() != NULL)
+ return 0x100000;
+ return 1;
+ }
void
do_export(Export_function_body*) const;
int
do_inlining_cost() const
- { return 1; }
+ {
+ if (this->type_ != NULL && this->type_->named_type() != NULL)
+ return 0x100000;
+ return 1;
+ }
void
do_export(Export_function_body*) const;
int
do_inlining_cost() const
- { return 2; }
+ {
+ if (this->type_ != NULL && this->type_->named_type() != NULL)
+ return 0x100000;
+ return 2;
+ }
void
do_export(Export_function_body*) const;