http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56245
Bug #: 56245 Summary: -fsanitize=address miscompiles GCC Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer AssignedTo: unassig...@gcc.gnu.org ReportedBy: hjl.to...@gmail.com CC: do...@gcc.gnu.org, dvyu...@gcc.gnu.org, ja...@gcc.gnu.org, k...@gcc.gnu.org On hjl/asan-bad branch, bootstrapping GCC with --enable-languages=c,c++,fortran,java,lto,objc,obj-c++,go --disable-werror --with-build-config="bootstrap-asan" gave /export/build/gnu/gcc-asan/build-x86_64-linux/./prev-gcc/xg++ -B/export/build/gnu/gcc-asan/build-x86_64-linux/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/export/gnu/import/git/gcc/libstdc++-v3/libsupc++ -L/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -O2 -g -fsanitize=address -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -fsanitize=address -static-libasan -B/export/build/gnu/gcc-asan/build-x86_64-linux/prev-x86_64-unknown-linux-gnu/libsanitizer/asan/.libs -o build/gengtype \ build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o build/gengtype-state.o build/version.o .././libiberty/libiberty.a build/gengtype \ -S /export/gnu/import/git/gcc/gcc -I gtyp-input.list -w tmp-gtype.state /bin/sh /export/gnu/import/git/gcc/gcc/../move-if-change tmp-gtype.state gtype.state build/gengtype \ -r gtype.state gengtype: Internal error: abort in get_output_file_with_visibility, at gengtype.c:2183 make[5]: *** [s-gtype] Error 1 make[5]: *** Waiting for unfinished jobs.... rm gcj-dbtool.pod gcov.pod jcf-dump.pod cpp.pod jv-convert.pod gcj.pod gc-analyze.pod gfdl.pod grmic.pod gij.pod gfortran.pod gcc.pod fsf-funding.pod gccgo.pod make[5]: Leaving directory `/export/build/gnu/gcc-asan/build-x86_64-linux/gcc' make[4]: *** [all-stage2-gcc] Error 2 make[4]: Leaving directory `/export/build/gnu/gcc-asan/build-x86_64-linux' make[3]: *** [stage2-bubble] Error 2 make[3]: Leaving directory `/export/build/gnu/gcc-asan/build-x86_64-linux' make[2]: *** [bootstrap] Error 2 make[2]: Leaving directory `/export/build/gnu/gcc-asan/build-x86_64-linux' 1348.17user 91.95system 7:04.60elapsed 339%CPU (0avgtext+0avgdata 581820maxresident)k 338704inputs+4772512outputs (11984major+55486772minor)pagefaults 0swaps make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/export/build/gnu/gcc-asan'