<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 - -Woverloaded-virtual and -Wdefaulted-function-deleted when building M68k backend with clang"
href="https://bugs.llvm.org/show_bug.cgi?id=50071">50071</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Woverloaded-virtual and -Wdefaulted-function-deleted when building M68k backend with clang
</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>All
</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: M68k
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ndesaulniers@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>glaubitz@physik.fu-berlin.de, llvm-bugs@lists.llvm.org, minyihh@uci.edu
</td>
</tr></table>
<p>
<div>
<pre>Unless you use Cmake configuration variables -DCMAKE_C_COMPILER=, and
-DCMAKE_CXX_COMPILER= and point them to existing clang binaries, or have a
system default compiler of clang, your build is probably using GCC. When I use
clang, I observe the following warnings when building with
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="M68k":
../lib/Target/M68k/M68kFrameLowering.h:60:8: warning:
'llvm::M68kFrameLowering::emitCalleeSavedFrameMoves' hides overloaded virtual
functions [-Woverloaded-virtual]
void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
^
../include/llvm/CodeGen/TargetFrameLowering.h:215:3: note: hidden overloaded
virtual function 'llvm::TargetFrameLowering::emitCalleeSavedFrameMoves'
declared here: different number of parameters (2 vs 3)
emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
^
../include/llvm/CodeGen/TargetFrameLowering.h:218:16: note: hidden overloaded
virtual function 'llvm::TargetFrameLowering::emitCalleeSavedFrameMoves'
declared here: different number of parameters (4 vs 3)
virtual void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
^
../lib/Target/M68k/M68kMachineFunction.h:71:3: warning: explicitly defaulted
default constructor is implicitly deleted [-Wdefaulted-function-deleted]
M68kMachineFunctionInfo() = default;
^
../lib/Target/M68k/M68kMachineFunction.h:24:20: note: default constructor of
'M68kMachineFunctionInfo' is implicitly deleted because field 'MF' of reference
type 'llvm::MachineFunction &' would not be initialized
MachineFunction &MF;
^</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>