arc: Don't use millicode thunks unless asked for.
authorClaudiu Zissulescu <claziss@gmail.com>
Wed, 1 Feb 2023 11:02:17 +0000 (13:02 +0200)
committerClaudiu Zissulescu <claziss@gmail.com>
Mon, 13 Feb 2023 09:35:15 +0000 (11:35 +0200)
commitbc5581fe327388fea5af875c028ccb8cfb0b6a1c
tree7475ea09578601df921a0f4f5e9363f379316b8f
parent9847c7531e8cab740264ac32e752e825c66f23e0
arc: Don't use millicode thunks unless asked for.

ARC has enter_s/leave_s instructions which can save/restore the entire
function context. It is not needed the millicode thunks anylonger when
compiling for size, thus, make their usage optional.

gcc/

* common/config/arc/arc-common.cc (arc_option_optimization_table):
Remove millicode from list.

gcc/testsuite/

* gcc.target/arc/milli-1.c: Update test.
gcc/common/config/arc/arc-common.cc
gcc/testsuite/gcc.target/arc/milli-1.c