http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52808
Bug #: 52808 Summary: [4.8 Regression] LTO bootstrap failed with bootstrap-profiled Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: hjl.to...@gmail.com CC: areg.melikadam...@gmail.com On Linux/x86-64, revision 186029 failed to LTO bootstrap with bootstrap-profiled, configured with --prefix=/usr/local --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld --with-build-config=bootstrap-lto --with-fpmath=sse --enable-languages=c,c++,fortran,java,lto,objc and build with "make profiledbootstrap -j8". Stage3 gcc failed to configure test in libiberty: configure:4471: /export/gnu/import/git/gcc-test-profile/bld/./prev-gcc/xgcc -B/export/gnu/import/git/gcc-test-profile/bld/./prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -o conftest -g -O2 -flto=jobserver -frandom-seed=1 -fprofile-use -static-libstdc++ -static-libgcc conftest.c >&5 conftest.c: In function 'main': conftest.c:29:1: note: file /export/gnu/import/git/gcc-test-profile/bld/libiberty/conftest.gcda not found, execution counts estimated conftest.c:21:1: internal compiler error: in get_loop_body, at cfgloop.c:831 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. configure:4471: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ctype.h> | #include <stdlib.h> | #if ((' ' & 0x0FF) == 0x020) | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | #else | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') || ('j' <= (c) && (c) <= 'r') || ('s' <= (c) && (c) <= 'z')) | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | #endif | | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | int | main () | { | int i; | for (i = 0; i < 256; i++) | if (XOR (islower (i), ISLOWER (i)) | || toupper (i) != TOUPPER (i)) | return 2; | return 0; | } Revision 185898 is OK.