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/71175] New: trunk/gcc/config/arm/arm.c: 2 * minor printf problems ?


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71175

            Bug ID: 71175
           Summary: trunk/gcc/config/arm/arm.c: 2 * minor printf problems
                    ?
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

1.

[trunk/gcc/config/arm/arm.c:22753]: (warning) %u in format string (no. 2)
requires 'unsigned int' but the argument type is 'int'.

Source code is

     sprintf (buf, "%s.%.5u",
           is_ctor ? ".init_array" : ".fini_array",
           priority);

but

arm_elf_asm_cdtor (rtx symbol, int priority, bool is_ctor)

2.

[trunk/gcc/config/arm/arm.c:26983]: (warning) %d in format string (no. 1)
requires 'int' but the argument type is 'unsigned int'.

Source code is 

    fprintf (asm_out_file, "\t.pad #%d\n", padfirst);

but

  unsigned padfirst = 0, padlast = 0;

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