On 5/10/20 9:03 AM, Liu Hao wrote: > 在 2020/5/10 12:27, JonY via Gcc-help 写道: >> >> I think option #3 is the simplest approach in the short term, though I >> prefer option #2. >> > > This patch has been accepted by MSYS2 [1], tested for bootstrapping on > both i686 and x86_64. > > So here comes a 4th option: Disable `-Werror` if `--disable-werror` is > specified to the top-level configure. > > EGREP'ing for `(format|__format__)\s*\(\s*(__printf__|printf)` in GCC > source reveals ~30 matches (excluding testsuites). Probably they should > all be fixed similarly, or we ignore such warnings for simplicity. > libgomp doesn't build despite `--disable-werror` at top level, which > seems a bug in this case. > > > [1] > https://github.com/msys2/MINGW-packages/blob/9501ee2afc8d01dc7d85383e4b22e91c30d93ca7/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch > > Any thoughts on the libgomp printf attribute changes?
Attachment:
signature.asc
Description: OpenPGP digital signature