On 10/15/2021 9:27 AM, Martin Liška wrote:
On 10/14/21 16:27, Jeff Law wrote:
So what's the preferred way to handle this?  We're in the process of evaluating -frename-registers on our target right now and subject to verification of a couple issues, our inclination is to turn it on for our target at -O2.

Jeff

I think the best approach is doing that in TARGET_OPTION_OPTIMIZATION_TABLE like c6x does:

static const struct default_options c6x_option_optimization_table[] =
  {
    { OPT_LEVELS_1_PLUS, OPT_frename_registers, NULL, 1 },
...
}
ACK.  So nothing particularly special :-)

jeff

Reply via email to