<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - AVRAsmBackend.cpp: fails to build on an override"
href="https://bugs.llvm.org/show_bug.cgi?id=37733">37733</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>AVRAsmBackend.cpp: fails to build on an override
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: AVR
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sylvestre@debian.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>cd
"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/lib/Target/AVR/MCTargetDesc"
&& /usr/bin/g++-6 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/lib/Target/AVR/MCTargetDesc"
-I"/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc"
-I"/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR"
-I"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/lib/Target/AVR"
-I"/build/llvm-toolchain-snapshot-7~svn334179/build-llvm/include"
-I"/build/llvm-toolchain-snapshot-7~svn334179/include" -std=c++0x
-fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-ffunction-sections -fdata-sections -O2 -DNDEBUG -fno-exceptions -o
CMakeFiles/LLVMAVRDesc.dir/AVRAsmBackend.cpp.o -c
"/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp"
In file included from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:14:0:
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:43:8:
error: 'void llvm::AVRAsmBackend::applyFixup(const llvm::MCAssembler&, const
llvm::MCFixup&, const llvm::MCValue&, llvm::MutableArrayRef<char>, uint64_t,
bool) const' marked 'override', but does not override
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
^~~~~~~~~~
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:53:8:
error: 'bool llvm::AVRAsmBackend::mayNeedRelaxation(const llvm::MCInst&) const'
marked 'override', but does not override
bool mayNeedRelaxation(const MCInst &Inst) const override { return false; }
^~~~~~~~~~~~~~~~~
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:
In function 'llvm::MCAsmBackend* llvm::createAVRAsmBackend(const llvm::Target&,
const llvm::MCSubtargetInfo&, const llvm::MCRegisterInfo&, const
llvm::MCTargetOptions&)':
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:481:57:
error: invalid new-expression of abstract class type 'llvm::AVRAsmBackend'
return new AVRAsmBackend(STI.getTargetTriple().getOS());
^
In file included from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:14:0:
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:32:7:
note: because the following virtual functions are pure within
'llvm::AVRAsmBackend':
class AVRAsmBackend : public MCAsmBackend {
^~~~~~~~~~~~~
In file included from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h:21:0,
from
/build/llvm-toolchain-snapshot-7~svn334179/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp:14:
/build/llvm-toolchain-snapshot-7~svn334179/include/llvm/MC/MCAsmBackend.h:97:16:
note: virtual void llvm::MCAsmBackend::applyFixup(const llvm::MCAssembler&,
const llvm::MCFixup&, const llvm::MCValue&, llvm::MutableArrayRef<char>,
uint64_t, bool, const llvm::MCSubtargetInfo*) const
virtual void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
^~~~~~~~~~
/build/llvm-toolchain-snapshot-7~svn334179/include/llvm/MC/MCAsmBackend.h:116:16:
note: virtual bool llvm::MCAsmBackend::mayNeedRelaxation(const
llvm::MCInst&, const llvm::MCSubtargetInfo&) const
virtual bool mayNeedRelaxation(const MCInst &Inst,
^~~~~~~~~~~~~~~~~
since at least r334179</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>