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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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
[-- Attachment #2 --]
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;
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f5245677-c5de-79a0-9892-275a67d932d0>
