[gcc-in-cxx] Get past stage1 on darwin

Ian Lance Taylor iant@google.com
Wed Mar 11 18:29:00 GMT 2009


Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de> writes:

> Current failure mode:
> /Users/tobi/src/gcc-in-cxx/build/./prev-gcc/g++
> -B/Users/tobi/src/gcc-in-cxx/build/./prev-gcc/
> -B/usr/local/i386-apple-darwin8.11.1/bin/ -nostdinc++
> -I/Users/tobi/src/gcc-in-cxx/build/prev-i386-apple-darwin8.11.1/libstdc++-v3/include/i386-apple-darwin8.11.1
> -I/Users/tobi/src/gcc-in-cxx/build/prev-i386-apple-darwin8.11.1/libstdc++-v3/include
> -I/Users/tobi/src/gcc-in-cxx/build/../libstdc++-v3/libsupc++
> -L/Users/tobi/src/gcc-in-cxx/build/prev-i386-apple-darwin8.11.1/libstdc++-v3/src/.libs
> -c  -g -O2 -fomit-frame-pointer -g -O2 -fomit-frame-pointer -DIN_GCC
> -W -Wall -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
> -I../../gcc/. -I../../gcc/../include -I./../intl
> -I../../gcc/../libcpp/include -I/sw/include
> -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd
> -I../libdecnumber    \
>         ../../gcc/config/i386/i386.c -o i386.o
> cc1plus: warnings being treated as errors
> ../../gcc/config/i386/i386.c: In function 'void
> ix86_function_specific_save(cl_target_option*)':
> ../../gcc/config/i386/i386.c:3282: error: comparison is always true
> due to limited range of data type
> ../../gcc/config/i386/i386.c:3283: error: comparison is always true
> due to limited range of data type
> ../../gcc/config/i386/i386.c:3284: error: comparison is always true
> due to limited range of data type
> ../../gcc/config/i386/i386.c:3285: error: comparison is always true
> due to limited range of data type

Interesting.  This makes it look like the compiler is using
-fshort-enums.  Can you check whether flag_short_enums is non-zero in
the finish_enum function?  If it is, then how did it get set?

Ian



More information about the Gcc-patches mailing list