https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432
--- Comment #28 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Bootstrapping with the patch in comment 26 fails with /opt/gcc/build_w/./prev-gcc/xg++ -B/opt/gcc/build_w/./prev-gcc/ -B/opt/gcc/gcc4.10w/x86_64-apple-darwin14.1.0/bin/ -nostdinc++ -B/opt/gcc/build_w/prev-x86_64-apple-darwin14.1.0/libstdc++-v3/src/.libs -B/opt/gcc/build_w/prev-x86_64-apple-darwin14.1.0/libstdc++-v3/libsupc++/.libs -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.1.0/libstdc++-v3/include/x86_64-apple-darwin14.1.0 -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.1.0/libstdc++-v3/include -I/opt/gcc/work/libstdc++-v3/libsupc++ -L/opt/gcc/build_w/prev-x86_64-apple-darwin14.1.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/prev-x86_64-apple-darwin14.1.0/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Ifortran -I../../work/gcc -I../../work/gcc/fortran -I../../work/gcc/../include -I./../intl -I../../work/gcc/../libcpp/include -I/opt/mp-new/include -I../../work/gcc/../libdecnumber -I../../work/gcc/../libdecnumber/dpd -I../libdecnumber -I../../work/gcc/../libbacktrace -I/opt/mp-new/include -o fortran/trans-intrinsic.o -MT fortran/trans-intrinsic.o -MMD -MP -MF fortran/.deps/trans-intrinsic.TPo ../../work/gcc/fortran/trans-intrinsic.c ../../work/gcc/fortran/trans-intrinsic.c: In function 'tree_node* conv_intrinsic_system_clock(gfc_code*)': ../../work/gcc/fortran/trans-intrinsic.c:2675:8: error: variable 'type' set but not used [-Werror=unused-but-set-variable] tree type, tmp; ^ cc1plus: all warnings being treated as errors ../../work/gcc/fortran/trans-intrinsic.c: In function 'tree_node* conv_intrinsic_system_clock(gfc_code*)': ../../work/gcc/fortran/trans-intrinsic.c:2676:7: error: variable 'kind' set but not used [-Werror=unused-but-set-variable] int kind, least, most; ^ cc1plus: all warnings being treated as errors The following patch (code commented) fixes bootstrap --- ../_clean/gcc/fortran/trans-intrinsic.c 2015-01-17 21:48:17.000000000 +0100 +++ gcc/fortran/trans-intrinsic.c 2015-02-22 11:48:14.000000000 +0100 @@ -2670,9 +2670,10 @@ conv_intrinsic_system_clock (gfc_code *c { stmtblock_t block; gfc_se count_se, count_rate_se, count_max_se; - tree arg1 = NULL_TREE, arg2 = NULL_TREE, arg3 = NULL_TREE; - tree type, tmp; - int kind; + tree arg1 = NULL_TREE, arg2 = NULL_TREE, arg3 = NULL_TREE, + arg4 = NULL_TREE; + tree tmp; + int least, most; gfc_expr *count = code->ext.actual->expr; gfc_expr *count_rate = code->ext.actual->next->expr; @@ -2680,12 +2681,12 @@ conv_intrinsic_system_clock (gfc_code *c /* The INTEGER(8) version has higher precision, it is used if both COUNT and COUNT_MAX can hold 64-bit values, or are absent. */ - if ((!count || count->ts.kind >= 8) + /* if ((!count || count->ts.kind >= 8) && (!count_max || count_max->ts.kind >= 8)) kind = 8; else - kind = gfc_default_integer_kind; - type = gfc_get_int_type (kind); + kind = gfc_default_integer_kind; */ + /* type = gfc_get_int_type (kind); */ /* Evaluate our arguments. */ if (count)