This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/86856] New: Warning: unknown conversion type for ASM_OUTPUT_REG_PUSH and ASM_OUTPUT_REG_POP


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));
     ^~~~~~~~~~~~~~~~~~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]