This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/71175] New: trunk/gcc/config/arm/arm.c: 2 * minor printf problems ?
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 May 2016 15:22:37 +0000
- Subject: [Bug target/71175] New: trunk/gcc/config/arm/arm.c: 2 * minor printf problems ?
- Auto-submitted: auto-generated
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;