http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54639
Bug #: 54639 Summary: mn10300_expand_epilogue: signed / unsigned comparison Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: amyl...@gcc.gnu.org Blocks: 44756 Target: am33_2.0-linux g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -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/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber \ ../../../gcc/gcc/config/mn10300/mn10300.c -o mn10300.o ../../../gcc/gcc/config/mn10300/mn10300.c: In function ‘void mn10300_expand_epilogue()’: ../../../gcc/gcc/config/mn10300/mn10300.c:783:64: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] #define SIZE_ADD_SP(S) ((((S) >= (1 << 15)) || ((S) < -(1 << 15))) ? 6 \ ^ ../../../gcc/gcc/config/mn10300/mn10300.c:1080:29: note: in expansion of macro 'SIZE_ADD_SP' this_strategy_size = SIZE_ADD_SP (size + 4 * num_regs_to_save ^ cc1plus: all warnings being treated as errors make[2]: *** [mn10300.o] Error 1