xtensa: Reflect the 32-bit Integer Divide Option
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Fri, 6 May 2022 10:34:19 +0000 (19:34 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 13 May 2022 09:31:26 +0000 (02:31 -0700)
commit112447f8564c0307c5da99a4094a3a99f204239f
tree332296f50b54c389d1fe179f9e7e6382de6795ff
parentd543bac1631700f0da30d5ca555296f4938a82c6
xtensa: Reflect the 32-bit Integer Divide Option

On Espressif's ESP8266 (based on Tensilica LX106, no hardware divider),
this patch reduces the size of each:

  __moddi3() @ libgcc.a :  969 -> 301 (saves 668)
  __divmoddi4()         : 1111 -> 426 (saves 685)
  __udivmoddi4()        : 1043 -> 319 (saves 724)

in bytes, respectively.

gcc/ChangeLog:

* config/xtensa/xtensa.h (TARGET_HAS_NO_HW_DIVIDE): New macro
definition.
gcc/config/xtensa/xtensa.h