Hi Andreas:

Hmmmmm, I should change my default gcc on Ubuntu, I didn't got this
when build with GCC 7, and can be reproduced by GCC 11,

Will summit patch once I test done.

On Fri, Sep 9, 2022 at 3:21 PM Andreas Schwab <sch...@linux-m68k.org> wrote:
>
> How did you test that?
>
> ../../gcc/common/config/riscv/riscv-common.cc: In function 'const char* 
> riscv_multi_lib_check(int, const char**)':
> ../../gcc/common/config/riscv/riscv-common.cc:1451:11: error: bare apostrophe 
> ''' in format [-Werror=format-diag]
>  1451 |       "Can't find suitable multilib set for 
> %<-march=%s%>/%<-mabi=%s%>",
>       |           ^
> ../../gcc/common/config/riscv/riscv-common.cc:1451:7: note: if avoiding the 
> apostrophe is not feasible, enclose it in a pair of '%<' and '%>' directives 
> instead
>  1451 |       "Can't find suitable multilib set for 
> %<-march=%s%>/%<-mabi=%s%>",
>       |       
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../gcc/common/config/riscv/riscv-common.cc: At global scope:
> ../../gcc/common/config/riscv/riscv-common.cc:1492:1: error: 'int 
> riscv_check_conds(const switchstr*, int, int, const 
> std::vector<std::__cxx11::basic_string<char> >&)' defined but not used 
> [-Werror=unused-function]
>  1492 | riscv_check_conds (
>       | ^~~~~~~~~~~~~~~~~
> ../../gcc/common/config/riscv/riscv-common.cc:1374:1: error: 'const char* 
> find_last_appear_switch(const switchstr*, int, const char*)' defined but not 
> used [-Werror=unused-function]
>  1374 | find_last_appear_switch (
>       | ^~~~~~~~~~~~~~~~~~~~~~~
> cc1plus: all warnings being treated as errors
> make[3]: *** [Makefile:2442: riscv-common.o] Error 1
>
> --
> Andreas Schwab, sch...@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."

Reply via email to