'i' is missing an ATTRIBUTE_UNUSED, or could be moved inside the #ifdef EH_RETURN_DATA_REGNO block.
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -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 -DCLOOG_PPL_BACKEND -I/usr/include/libelf ../../../gcc/gcc/haifa-sched.c -o haifa-sched.o ../../../gcc/gcc/haifa-sched.c: In function initiate_bb_reg_pressure_info: ../../../gcc/gcc/haifa-sched.c:717:16: error: unused variable i [-Werror=unused-variable] cc1: all warnings being treated as errors make[1]: *** [haifa-sched.o] Error 1 -- Summary: unused variable in initiate_bb_reg_pressure_info Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: amylaar at gcc dot gnu dot org GCC target triplet: m32r-elf OtherBugsDependingO 44756 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44770