https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71617
Bug ID: 71617 Summary: rs6000.c:8483:32: warning: comparison is always true due to limited range of data type [-Wtype-limits] Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mathieu.malaterre at gmail dot com Target Milestone: --- The following code should be cleaned up: powerpc64-linux-gnu-g++-5 -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd -I../libdecnumber -I../../src/gcc/../libbacktrace -o rs6000.o -MT rs6000.o -MMD -MP -MF ./.deps/rs6000.TPo ../../src/gcc/config/rs6000/rs6000.c ../../src/gcc/config/rs6000/rs6000.c: In function 'bool use_toc_relative_ref(rtx, machine_mode)': ../../src/gcc/config/rs6000/rs6000.c:8483:32: warning: comparison is always true due to limited range of data type [-Wtype-limits] && GET_MODE_SIZE (mode) <= POWERPC64_TOC_POINTER_ALIGNMENT)); ^