[Bug other/115958] New: varasm.cc:8546:27: error: comparison of integer expressions of different signedness
danglin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 16 18:29:57 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115958
Bug ID: 115958
Summary: varasm.cc:8546:27: error: comparison of integer
expressions of different signedness
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
Host: hppa*-*-linux*
Target: hppa*-*-linux*
Build: hppa*-*-linux*
/home/dave/gnu/gcc/objdir/./prev-gcc/xg++
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-15/hppa-linux-gnu/bin/ -nostdinc++
-B/home/dave/g
nu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/ob
jdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu
-I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include
-I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE -c -g -O2 -fno-checking -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -DHAVE_CONFIG_H -fno-PIE -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 varasm.o -MT varasm.o
-MMD -MP -MF ./.deps/varasm.TPo ../../gcc/gcc/varasm.cc
../../gcc/gcc/varasm.cc: In function ‘void default_elf_asm_output_ascii(FILE*,
const char*, unsigned int)’:
../../gcc/gcc/varasm.cc:8546:27: error: comparison of integer expressions of
different signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
8546 | if (cnt <= (t - s + 1 + 2) / 3 * 4
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../../gcc/gcc/varasm.cc:8572:19: error: comparison of integer expressions of
different signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
8572 | if (cnt > (t - s + 2) / 3 * 4 && (t - s) >= 3)
| ~~~~^~~~~~~~~~~~~~~~~~~~~
This is for commit 5e1d530da87a6d2aa7e719744cb278e7e54a6623.
More information about the Gcc-bugs
mailing list