Tuesday, June 25, 2024 12:03 PM
Tobias Burnus <tbur...@baylibre.com> wrote:
> 
> 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

Thank you, Tobias, for reporting the problem.

x86_64-gnu-linux build has been built however it looks like it is missing a 
check for unused functions.
The fix will be prepared, tested and submitted to the mailing list today.

Regards,
Evgeny

Reply via email to