gas: invoke md_optimize_expr() also for unary expressions
authorJan Beulich <jbeulich@suse.com>
Fri, 19 May 2023 07:16:29 +0000 (09:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 May 2023 07:16:29 +0000 (09:16 +0200)
commit6f5ee7a3e9239cf82142d7abd4b2ad687076cfc1
treebf706ecf5efd7dbbfc0907fce21f4cdc45aa6932
parent762acf217c4013bed5a4cc679e4bac78d13ce23a
gas: invoke md_optimize_expr() also for unary expressions

Give backends a chance to see these, just as they can see binary ones.
Most of those which use this hook already cope with NULL being passed
for the left operand (typically because of checking the operator first).
Adjust the two which don't.

Take the opportunity and also document the hook.
gas/config/tc-hppa.c
gas/config/tc-ppc.c
gas/doc/internals.texi
gas/expr.c