This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/86856] New: Warning: unknown conversion type for ASM_OUTPUT_REG_PUSH and ASM_OUTPUT_REG_POP
- From: "nightstrike at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 04 Aug 2018 19:15:43 +0000
- Subject: [Bug target/86856] New: Warning: unknown conversion type for ASM_OUTPUT_REG_PUSH and ASM_OUTPUT_REG_POP
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86856
Bug ID: 86856
Summary: Warning: unknown conversion type for
ASM_OUTPUT_REG_PUSH and ASM_OUTPUT_REG_POP
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: nightstrike at gmail dot com
Target Milestone: ---
When building the compiler to target x86_64-w64-mingw32, the warnings listed
below appear. I tried making them be %zu instead of %z, but that didn't help.
Maybe it has something to do with the special printf / mingw_printf on windows
targets?
Anyway, I leave this here for smarter people to look at.
In file included from ./tm.h:20:0,
from ../../../gccsvn/gcc/backend.h:28,
from ../../../gccsvn/gcc/final.c:49:
../../../gccsvn/gcc/final.c: In function 'void profile_function(FILE*)':
../../../gccsvn/gcc/config/i386/i386.h:2161:51: warning: unknown conversion
type character 'z' in format [-Wformat=]
asm_fprintf ((FILE), "\tpush%z\t%%%r\n", (REGNO))
^
../../../gccsvn/gcc/final.c:1856:5: note: in expansion of macro
'ASM_OUTPUT_REG_PUSH'
ASM_OUTPUT_REG_PUSH (file, REGNO (sval));
^~~~~~~~~~~~~~~~~~~
../../../gccsvn/gcc/config/i386/i386.h:2161:51: warning: unknown conversion
type character 'z' in format [-Wformat=]
asm_fprintf ((FILE), "\tpush%z\t%%%r\n", (REGNO))
^
../../../gccsvn/gcc/final.c:1858:5: note: in expansion of macro
'ASM_OUTPUT_REG_PUSH'
ASM_OUTPUT_REG_PUSH (file, REGNO (chain));
^~~~~~~~~~~~~~~~~~~
../../../gccsvn/gcc/config/i386/i386.h:2166:50: warning: unknown conversion
type character 'z' in format [-Wformat=]
asm_fprintf ((FILE), "\tpop%z\t%%%r\n", (REGNO))
^
../../../gccsvn/gcc/final.c:1865:5: note: in expansion of macro
'ASM_OUTPUT_REG_POP'
ASM_OUTPUT_REG_POP (file, REGNO (chain));
^~~~~~~~~~~~~~~~~~
../../../gccsvn/gcc/config/i386/i386.h:2166:50: warning: unknown conversion
type character 'z' in format [-Wformat=]
asm_fprintf ((FILE), "\tpop%z\t%%%r\n", (REGNO))
^
../../../gccsvn/gcc/final.c:1867:5: note: in expansion of macro
'ASM_OUTPUT_REG_POP'
ASM_OUTPUT_REG_POP (file, REGNO (sval));
^~~~~~~~~~~~~~~~~~