public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6915] dwarf2asm: Fix bootstrap on powerpc*-*-* [PR98839]
@ 2021-01-26 17:14 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-01-26 17:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6e44c09b2df7282e0b519f241cf54438ab183b5e
commit r11-6915-g6e44c09b2df7282e0b519f241cf54438ab183b5e
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Jan 26 18:13:07 2021 +0100
dwarf2asm: Fix bootstrap on powerpc*-*-* [PR98839]
My recent dwarf2asm.c patch broke powerpc*-*-* bootstrap, while most target
define POINTER_SIZE to (cond ? cst1 : cst2) or constant, rs6000 defines
it to a variable, and the arbitrarily chosen type of that variable determines
whether we get warnings on comparison of that against signed or unsigned
ints.
Fixed by adding a cast.
2021-01-26 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/98839
* dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
in comparison.
Diff:
---
gcc/dwarf2asm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index 8e08d4d24d8..161c0ad3825 100644
--- a/gcc/dwarf2asm.c
+++ b/gcc/dwarf2asm.c
@@ -46,7 +46,7 @@ along with GCC; see the file COPYING3. If not see
void
dw2_assemble_integer (int size, rtx x)
{
- if (size == 2 * DWARF2_ADDR_SIZE && !CONST_SCALAR_INT_P (x))
+ if (size == 2 * (int) DWARF2_ADDR_SIZE && !CONST_SCALAR_INT_P (x))
{
/* On 32-bit targets with -gdwarf64, DImode values with
relocations usually result in assembler errors. Assume
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-26 17:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 17:14 [gcc r11-6915] dwarf2asm: Fix bootstrap on powerpc*-*-* [PR98839] Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).