Hi Evgeny,
I am not sure whether I have chosen the right email in the thread but:
a x86-64 GNU Linux build currently fails as follows.
At a glance, it seems to be sufficient to remove the prototype
declaration in i386.cc.
Namely:
gcc/config/i386/i386.cc:107:12: error: 'rtx_def*
legitimize_dllimport_symbol(rtx, bool)' declared 'static' but never
defined [-Werror=unused-function]
107 | static rtx legitimize_dllimport_symbol (rtx, bool);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc/gcc/config/i386/i386.cc:108:12: error: 'rtx_def*
legitimize_pe_coff_extern_decl(rtx, bool)' declared 'static' but never
defined [-Werror=unused-function]
108 | static rtx legitimize_pe_coff_extern_decl (rtx, bool);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^Cmake[3]: *** [Makefile:2556: i386.o] Interrupt
There is:
config/i386/i386.cc:static rtx legitimize_dllimport_symbol (rtx, bool);
config/mingw/winnt-dll.cc:legitimize_dllimport_symbol (rtx symbol, bool
want_reg)
config/mingw/winnt-dll.cc: return legitimize_dllimport_symbol
(addr, inreg);
config/mingw/winnt-dll.cc: rtx t = legitimize_dllimport_symbol
(XEXP (XEXP (addr, 0), 0), inreg);
And:
config/i386/i386.cc:static rtx legitimize_pe_coff_extern_decl (rtx, bool);
config/mingw/winnt-dll.cc:legitimize_pe_coff_extern_decl (rtx symbol,
bool want_reg)
config/mingw/winnt-dll.cc: return legitimize_pe_coff_extern_decl
(addr, inreg);
config/mingw/winnt-dll.cc: rtx t = legitimize_pe_coff_extern_decl
(XEXP (XEXP (addr, 0), 0), inreg);
Tobias