public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jbglaw@lug-owl.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/100841] xtensa-linux: dwarf2cfi.c:291:12: error: comparison of integer expressions of different signedness: 'const unsigned int' and 'int'
Date: Tue, 01 Jun 2021 14:11:41 +0000	[thread overview]
Message-ID: <bug-100841-4-3TAbwtSSmT@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-100841-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Jan-Benedict Glaw <jbglaw@lug-owl.de> ---
(In reply to Jakub Jelinek from comment #1)
> Guess following could fix it
> --- gcc/config/xtensa/xtensa.h.jj	2021-01-04 10:25:45.570157539 +0100
> +++ gcc/config/xtensa/xtensa.h	2021-06-01 10:39:19.848827041 +0200
[...]

It does, though uncovers the next signedness fun:

[all 2021-06-01 14:06:13] /usr/lib/gcc-snapshot/bin/g++  -fno-PIE -c   -g -O2
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -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../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o function.o -MT
function.o -MMD -MP -MF ./.deps/function.TPo ../../gcc/gcc/function.c
[all 2021-06-01 14:06:14] ../../gcc/gcc/function.c: In function 'void
gen_call_used_regs_seq(rtx_insn*, unsigned int)':
[all 2021-06-01 14:06:14] ../../gcc/gcc/function.c:5897:63: error: comparison
of unsigned expression in '< 0' is always false [-Werror=type-limits]
[all 2021-06-01 14:06:14]  5897 |       if (crtl->uses_only_leaf_regs &&
LEAF_REG_REMAP (regno) < 0)
[all 2021-06-01 14:06:22] cc1plus: all warnings being treated as errors
[all 2021-06-01 14:06:22] make[1]: *** [Makefile:1141: function.o] Error 1
[all 2021-06-01 14:06:22] make[1]: Leaving directory
'/var/lib/laminar/run/gcc-xtensa-linux/4/toolchain-build/gcc'
[all 2021-06-01 14:06:22] make: *** [Makefile:4414: all-gcc] Error 2

  parent reply	other threads:[~2021-06-01 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31  8:04 [Bug target/100841] New: " jbglaw@lug-owl.de
2021-06-01  8:40 ` [Bug target/100841] " jakub at gcc dot gnu.org
2021-06-01 14:11 ` jbglaw@lug-owl.de [this message]
2021-06-02 20:10 ` cvs-commit at gcc dot gnu.org
2021-06-03 20:25 ` jbglaw@lug-owl.de
2021-06-03 20:25 ` jbglaw@lug-owl.de
2021-09-17  6:45 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-100841-4-3TAbwtSSmT@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).