Go patch committed: Make xx_constant_value methods non-const

0 views
Skip to first unread message

Ian Lance Taylor

unread,
Oct 23, 2023, 5:14:41 PM10/23/23
to gcc-patches, gofrontend-dev
This patch to the Go frontend changes the Expression
{numeric,string,boolean}_constant_value methods to be non-const. This
does not affect anything immediately, but will be useful for later CLs
in this series.

The only real effect is to Builtin_call_expression::do_export, which
remains const and can no longer call numeric_constant_value. But it
never needed to call it, as do_export runs after do_lower, and
do_lower replaces a constant expression with the actual constant.

Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed
to mainline.

Ian
patch.txt
Reply all
Reply to author
Forward
0 new messages