<div dir="ltr">Fixed in r287683.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 11:30 AM, Meador Inge via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Nov 22, 2016 at 05:49:14PM +0000, Eugene Leviant via llvm-commits wrote:<br>
<br>
> +// This is a MIPS specific section to hold a space within the data segment<br>
> +// of executable file which is pointed to by the DT_MIPS_RLD_MAP entry.<br>
> +// See "Dynamic section" in Chapter 5 in the following document:<br>
> +// <a href="ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf" rel="noreferrer" target="_blank">ftp://www.linux-mips.org/pub/<wbr>linux/mips/doc/ABI/mipsabi.pdf</a><br>
> +template <class ELFT> class MipsRldMap : public SyntheticSection<ELFT> {<br>
> +public:<br>
> +  MipsRldMap();<br>
> +  size_t getSize() const override { return sizeof(typename ELFT::uint); }<br>
> +  void writeTo(uint8_t *Buf) override;<br>
> +};<br>
> +<br>
>  template <class ELFT> InputSection<ELFT> *createCommonSection();<br>
>  template <class ELFT> InputSection<ELFT> *createInterpSection();<br>
>  template <class ELFT> MergeInputSection<ELFT> *createCommentSection();<br>
> @@ -618,6 +629,7 @@ template <class ELFT> struct In {<br>
>    static GotPltSection<ELFT> *GotPlt;<br>
>    static HashTableSection<ELFT> *HashTab;<br>
>    static InputSection<ELFT> *Interp;<br>
> +  static MipsRldMap<ELFT> *MipsRldMap;<br>
<br>
</span>This seems to break my build (GCC 5.2.0) b/c the static variable is named<br>
the same as its class:<br>
<br>
In file included from<br>
/scratch/meadori/llvm-<wbr>mainline/src/llvm/tools/lld/<wbr>ELF/InputSection.cpp:18:0:<br>
/scratch/meadori/llvm-<wbr>mainline/src/llvm/tools/lld/<wbr>ELF/SyntheticSections.h:632:<wbr>28:<br>
error: declaration of 'lld::elf::MipsRldMap<ELFT>*<br>
lld::elf::In<ELFT>::<wbr>MipsRldMap' [-fpermissive]<br>
   static MipsRldMap<ELFT> *MipsRldMap;<br>
                            ^<br>
/scratch/meadori/llvm-<wbr>mainline/src/llvm/tools/lld/<wbr>ELF/SyntheticSections.h:606:<wbr>29:<br>
error: changes meaning of 'MipsRldMap' from 'class<br>
lld::elf::MipsRldMap<ELFT>' [-fpermissive]<br>
<span class=""> template <class ELFT> class MipsRldMap : public SyntheticSection<ELFT> {<br>
</span>                             ^<br>
tools/lld/ELF/CMakeFiles/<wbr>lldELF.dir/build.make:230: recipe for target<br>
'tools/lld/ELF/CMakeFiles/<wbr>lldELF.dir/InputSection.cpp.o' failed<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Meador Inge<br>
<a href="mailto:meadori@codesourcery.com">meadori@codesourcery.com</a><br>
CodeSourcery / Mentor Embedded<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>