[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24028] New: PPC_INT_FMT should be "ll" on Mojave.
From: |
pjb at informatimago dot com |
Subject: |
[Bug binutils/24028] New: PPC_INT_FMT should be "ll" on Mojave. |
Date: |
Sun, 23 Dec 2018 03:49:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24028
Bug ID: 24028
Summary: PPC_INT_FMT should be "ll" on Mojave.
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: pjb at informatimago dot com
Target Milestone: ---
With binutils-gdb git head, compiling on Mojave, we get errors:
```
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../include
-I./../bfd -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow
-Wstack-usage=262144 -Werror -I/usr/local/gcc/include -I/opt/local/include -MT
ppc-dis.lo -MD -MP -MF .deps/ppc-dis.Tpo -c ppc-dis.c -o ppc-dis.o
ppc-dis.c: In function 'print_insn_powerpc':
ppc-dis.c:764:43: error: format '%ld' expects argument of type 'long int', but
argument 3 has type 'int64_t' {aka 'long long int'} [-Werror=format=]
(*info->fprintf_func) (info->stream, "r%" PPC_INT_FMT "d", value);
^~~~ ~~~~~
ppc-dis.c:764:61: note: format string is defined here
(*info->fprintf_func) (info->stream, "r%" PPC_INT_FMT "d", value);
~~~~~~~~~~~~~~~~^
ppc-dis.c:766:43: error: format '%ld' expects argument of type 'long int', but
argument 3 has type 'int64_t' {aka 'long long int'} [-Werror=format=]
... etc ...
```
PPC_INT_FMT is defined to be "l" instead of "ll" because
BFD_HOST_64BIT_LONG is defined as 1 (and BFD_HOST_64BIT_LONG_LONG as 0).
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/24028] New: PPC_INT_FMT should be "ll" on Mojave.,
pjb at informatimago dot com <=