Date: Sun, 18 Feb 2018 13:03:44 +0200 From: "Jukka A. Ukkonen" <jau789@gmail.com> To: FreeBSD PowerPC ML <freebsd-ppc@FreeBSD.org> Subject: "make buildworld" failures in FreeBSD-10.4-stable on ppc Message-ID: <f5245677-c5de-79a0-9892-275a67d932d0@gmail.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------357B9A704DC706A211CF3CC8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit For a while I had problems with freebsd-10.4-stable builds on ppc. Both kernel-toolchain and buildkernel worked just fine but buildworld persistently failed while the old gcc was compiling SemaInit.cpp. Apparently the old gcc did not like using auto variables like this... if (auto *D = Entity.getDecl()) when I changed that to read... if (Decl *D = Entity.getDecl()) buildworld completed just fine again. There is a proper patch attached. It would be nice if someone with the proper commit bit merged the change to the common code base. --jau --------------357B9A704DC706A211CF3CC8 Content-Type: text/x-patch; name="Clang_SemaInit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Clang_SemaInit.patch" Index: contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp =================================================================== --- contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp (revision 329366) +++ contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp (working copy) @@ -6316,7 +6316,7 @@ QualType T = DestType->getAs<ReferenceType>()->getPointeeType(); diagnoseListInit(S, InitializedEntity::InitializeTemporary(T), InitList); SourceLocation Loc = InitList->getLocStart(); - if (auto *D = Entity.getDecl()) + if (Decl *D = Entity.getDecl()) Loc = D->getLocation(); S.Diag(Loc, diag::note_in_reference_temporary_list_initializer) << T; return; --------------357B9A704DC706A211CF3CC8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f5245677-c5de-79a0-9892-275a67d932d0>