public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c
@ 2021-01-26 15:19 seurer at gcc dot gnu.org
  2021-01-26 15:21 ` [Bug bootstrap/98839] " seurer at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: seurer at gcc dot gnu.org @ 2021-01-26 15:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98839
           Summary: [11 regression] compilation failure for dwarf2asm.c
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

I am seeing this on all varieties of powerpc64.  I am still narrowing down when
it started.



make[3]: Entering directory
`/home/seurer/gcc/git/build/gcc-trunk-bootstrap/gcc'
/home/seurer/gcc/git/build/gcc-trunk-bootstrap/./prev-gcc/xg++
-B/home/seurer/gcc/git/build/gcc-trunk-bootstrap/./prev-gcc/
-B/home/seurer/gcc/git/install/gcc-trunk-bootstrap/powerpc64-unknown-linux-gnu/bin/
-nostdinc++
-B/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu

-I/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64-unknown-linux-gnu/libstdc++-v3/include
 -I/home/seurer/gcc/git/gcc-trunk-bootstrap/libstdc++-v3/libsupc++
-L/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/seurer/gcc/git/build/gcc-trunk-bootstrap/prev-powerpc64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -g -O2 -fno-checking -gtoggle -DIN_GCC     -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/.
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/../include
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/../libcpp/include
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/../libcody
-I/home/seurer/gcc/git/build/gcc-trunk-bootstrap/./gmp
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gmp
-I/home/seurer/gcc/git/build/gcc-trunk-bootstrap/./mpfr/src
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/mpfr/src
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/mpc/src 
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/../libdecnumber
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/../libdecnumber/dpd
-I../libdecnumber
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/../libbacktrace
-I/home/seurer/gcc/git/build/gcc-trunk-bootstrap/./isl/include
-I/home/seurer/gcc/git/gcc-trunk-bootstrap/isl/include  -o dwarf2asm.o -MT
dwarf2asm.o -MMD -MP -MF ./.deps/dwarf2asm.TPo
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/dwarf2asm.c
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/dwarf2asm.c: In function 'void
dw2_assemble_integer(int, rtx)':
/home/seurer/gcc/git/gcc-trunk-bootstrap/gcc/dwarf2asm.c:49:12: error:
comparison of integer expressions of different signedness: 'int' and 'unsigned
int' [-Werror=sign-compare]
   49 |   if (size == 2 * DWARF2_ADDR_SIZE && !CONST_SCALAR_INT_P (x))
cc1plus: all warnings being treated as errors
make[3]: *** [dwarf2asm.o] Error 1
make[3]: Leaving directory `/home/seurer/gcc/git/build/gcc-trunk-bootstrap/gcc'

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/98839] [11 regression] compilation failure for dwarf2asm.c
  2021-01-26 15:19 [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c seurer at gcc dot gnu.org
@ 2021-01-26 15:21 ` seurer at gcc dot gnu.org
  2021-01-26 15:38 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: seurer at gcc dot gnu.org @ 2021-01-26 15:21 UTC (permalink / raw)
  To: gcc-bugs

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

seurer at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from seurer at gcc dot gnu.org ---
Probably this one:

commit 7423731691e898b0581532cf277b1e08a510323a
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jan 26 09:20:23 2021 +0100

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/98839] [11 regression] compilation failure for dwarf2asm.c
  2021-01-26 15:19 [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c seurer at gcc dot gnu.org
  2021-01-26 15:21 ` [Bug bootstrap/98839] " seurer at gcc dot gnu.org
@ 2021-01-26 15:38 ` jakub at gcc dot gnu.org
  2021-01-26 16:46 ` seurer at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-01-26 15:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is because most targets define POINTER_SIZE as (condition ? 64 : 32) or
constant while rs6000 as a variable holding it, therefore whether it chooses
unsigned or signed type for it then matters in these cases.
Does:
2021-01-26  Jakub Jelinek  <jakub@redhat.com>

        PR bootstrap/98839
        * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
        in comparison.

--- gcc/dwarf2asm.c.jj  2021-01-26 09:20:19.242499512 +0100
+++ gcc/dwarf2asm.c     2021-01-26 16:33:20.320710684 +0100
@@ -46,7 +46,7 @@ along with GCC; see the file COPYING3.
 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
fix this?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/98839] [11 regression] compilation failure for dwarf2asm.c
  2021-01-26 15:19 [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c seurer at gcc dot gnu.org
  2021-01-26 15:21 ` [Bug bootstrap/98839] " seurer at gcc dot gnu.org
  2021-01-26 15:38 ` jakub at gcc dot gnu.org
@ 2021-01-26 16:46 ` seurer at gcc dot gnu.org
  2021-01-26 17:14 ` cvs-commit at gcc dot gnu.org
  2021-01-27  7:39 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: seurer at gcc dot gnu.org @ 2021-01-26 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from seurer at gcc dot gnu.org ---
I tried that and it now compiles ok.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/98839] [11 regression] compilation failure for dwarf2asm.c
  2021-01-26 15:19 [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c seurer at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-01-26 16:46 ` seurer at gcc dot gnu.org
@ 2021-01-26 17:14 ` cvs-commit at gcc dot gnu.org
  2021-01-27  7:39 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-26 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/98839] [11 regression] compilation failure for dwarf2asm.c
  2021-01-26 15:19 [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c seurer at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-01-26 17:14 ` cvs-commit at gcc dot gnu.org
@ 2021-01-27  7:39 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-27  7:39 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |11.0
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-27  7:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 15:19 [Bug bootstrap/98839] New: [11 regression] compilation failure for dwarf2asm.c seurer at gcc dot gnu.org
2021-01-26 15:21 ` [Bug bootstrap/98839] " seurer at gcc dot gnu.org
2021-01-26 15:38 ` jakub at gcc dot gnu.org
2021-01-26 16:46 ` seurer at gcc dot gnu.org
2021-01-26 17:14 ` cvs-commit at gcc dot gnu.org
2021-01-27  7:39 ` rguenth at gcc dot gnu.org

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).