Gabriel and I have been tracking down an include path issue for GCC 6 Advance Toolchain builds (ie, --with-advance-toolchain=...). The solution that fixes the problem for us is to configure with --with-local-prefix=... and removing the following hunk from config.gcc. Gabriel has confirmed this fixes his AT builds (native and cross) and I've verified that this patch bootstraps with no regressions.
Is this ok for trunk and the GCC 6 branch? Peter * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of INCLUDE_EXTRA_SPEC for Advance Toolchain builds. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 241917) +++ gcc/config.gcc (working copy) @@ -4137,16 +4137,6 @@ case "${target}" in (at="/opt/$with_advance_toolchain" echo "/* Use Advance Toolchain $at */" echo - echo "#ifndef USE_AT_INCLUDE_FILES" - echo "#define USE_AT_INCLUDE_FILES 1" - echo "#endif" - echo - echo "#if USE_AT_INCLUDE_FILES" - echo "#undef INCLUDE_EXTRA_SPEC" - echo "#define INCLUDE_EXTRA_SPEC" \ - "\"-isystem $at/include\"" - echo "#endif" - echo echo "#undef LINK_OS_EXTRA_SPEC32" echo "#define LINK_OS_EXTRA_SPEC32" \ "\"%(link_os_new_dtags)" \