<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 - invalid reassignment of non-absolute variable 'var_ddq_add'"
href="https://bugs.llvm.org/show_bug.cgi?id=47798">47798</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>invalid reassignment of non-absolute variable 'var_ddq_add'
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>isanbard@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24045" name="attach_24045" title="Example file.">attachment 24045</a> <a href="attachment.cgi?id=24045&action=edit" title="Example file.">[details]</a></span>
Example file.
This is another example of clang's integrated assembler not being able to
assemble .S files in the Linux code base. bug.S is a reduced example. Here's
the compilation line:
$ clang -Qunused-arguments --target=x86_64-grtev5-linux-gnu -fno-PIE -m64
-Wa,-gdwarf-2 -mfentry -c -o /dev/null bad.S -v
clang version google3-trunk (cf5df40c4cf1a53a02ab1d56a488642e3dda8f6d)
Target: x86_64-grtev4-linux-gnu
Thread model: posix
InstalledDir:
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/generic/wrappers/../../../toolchain/bin
Configuration file:
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/generic/wrappers/cfg/x86_64-grtev5-linux-gnu.cfg
Found candidate GCC installation:
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/generic/wrappers/../../../toolchain/bin/../lib/gcc/x86_64-grtev4-linux-gnu/4.9.x-google
Selected GCC installation:
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/generic/wrappers/../../../toolchain/bin/../lib/gcc/x86_64-grtev4-linux-gnu/4.9.x-google
Candidate multilib: .;@m64
Selected multilib: .;@m64
"/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/llvm/bin/clang"
-cc1 -triple x86_64-grtev4-linux-gnu -E -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name bad.S -mrelocation-model static
-mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -fno-split-dwarf-inlining
-debugger-tuning=gdb -v -resource-dir
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/llvm/lib/clang/google3-trunk
-isysroot
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5
-internal-isystem
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5/usr/local/include
-internal-isystem
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/llvm/lib/clang/google3-trunk/include
-internal-externc-isystem
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5/include
-internal-externc-isystem
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5/usr/include
-Wno-unused-command-line-argument -fdebug-compilation-dir
/usr/local/google/home/morbo/prodkernel-gcc -ferror-limit 19 -mfentry -pthread
-fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o /tmp/bad-0cac60.s -x
assembler-with-cpp bad.S
clang -cc1 version google3-trunk based upon LLVM google3-trunk default target
x86_64-grtev4-linux-gnu
ignoring nonexistent directory
"/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5/usr/local/include"
ignoring nonexistent directory
"/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/llvm/lib/clang/google3-trunk/include
/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/grte/v5_x86/release/usr/grte/v5/include
End of search list.
"/usr/local/google/gbuild/tools/google/src/files/327060796/depot/google3/third_party/crosstool/v18/stable/installs/llvm/bin/clang"
-cc1as -triple x86_64-grtev4-linux-gnu -filetype obj -main-file-name bad.S
-target-cpu x86-64 -fdebug-compilation-dir
/usr/local/google/home/morbo/prodkernel-gcc -dwarf-debug-producer "clang
version google3-trunk (cf5df40c4cf1a53a02ab1d56a488642e3dda8f6d)"
-dwarf-version=4 -mrelocation-model static -debug-info-kind=limited
-dwarf-version=2 --mrelax-relocations -o /dev/null /tmp/bad-0cac60.s
<instantiation>:1:15: error: invalid reassignment of non-absolute variable
'var_ddq_add'
var_ddq_add = ddq_add_2
^
<instantiation>:3:4: note: while in macro instantiation
setddq %i
^
<instantiation>:11:2: note: while in macro instantiation
club 0, i
^
<instantiation>:10:2: note: while in macro instantiation
.rept (by - 1)
^
<instantiation>:1:1: note: while in macro instantiation
do_aes 8, 0, 1
^
<instantiation>:5:3: note: while in macro instantiation
do_aes_noload 8, 1
^
bad.S:63:2: note: while in macro instantiation
do_aes_ctrmain 1
^
<instantiation>:1:15: error: invalid reassignment of non-absolute variable
'var_ddq_add'
var_ddq_add = ddq_add_3
^
<instantiation>:3:4: note: while in macro instantiation
setddq %i
^
<instantiation>:21:2: note: while in macro instantiation
club 0, i
^
<instantiation>:10:2: note: while in macro instantiation
.rept (by - 1)
^
<instantiation>:1:1: note: while in macro instantiation
do_aes 8, 0, 1
^
<instantiation>:5:3: note: while in macro instantiation
do_aes_noload 8, 1
^
bad.S:63:2: note: while in macro instantiation
do_aes_ctrmain 1
^
<instantiation>:1:15: error: invalid reassignment of non-absolute variable
'var_ddq_add'
var_ddq_add = ddq_add_4
^
<instantiation>:3:4: note: while in macro instantiation
setddq %i
^
<instantiation>:31:2: note: while in macro instantiation
club 0, i
^
<instantiation>:10:2: note: while in macro instantiation
.rept (by - 1)
^
<instantiation>:1:1: note: while in macro instantiation
do_aes 8, 0, 1
^
<instantiation>:5:3: note: while in macro instantiation
do_aes_noload 8, 1
^
bad.S:63:2: note: while in macro instantiation
do_aes_ctrmain 1
^
<instantiation>:1:15: error: invalid reassignment of non-absolute variable
'var_ddq_add'
var_ddq_add = ddq_add_5
^
<instantiation>:3:4: note: while in macro instantiation
setddq %i
^
<instantiation>:41:2: note: while in macro instantiation
club 0, i
^
<instantiation>:10:2: note: while in macro instantiation
.rept (by - 1)
^
<instantiation>:1:1: note: while in macro instantiation
do_aes 8, 0, 1
^
<instantiation>:5:3: note: while in macro instantiation
do_aes_noload 8, 1
^
bad.S:63:2: note: while in macro instantiation
do_aes_ctrmain 1
^
<instantiation>:1:15: error: invalid reassignment of non-absolute variable
'var_ddq_add'
var_ddq_add = ddq_add_6
^
<instantiation>:3:4: note: while in macro instantiation
setddq %i
^
<instantiation>:51:2: note: while in macro instantiation
club 0, i
^
<instantiation>:10:2: note: while in macro instantiation
.rept (by - 1)
^
<instantiation>:1:1: note: while in macro instantiation
do_aes 8, 0, 1
^
<instantiation>:5:3: note: while in macro instantiation
do_aes_noload 8, 1
^
bad.S:63:2: note: while in macro instantiation
do_aes_ctrmain 1
^
<instantiation>:1:15: error: invalid reassignment of non-absolute variable
'var_ddq_add'
var_ddq_add = ddq_add_7
^
<instantiation>:3:4: note: while in macro instantiation
setddq %i
^
<instantiation>:61:2: note: while in macro instantiation
club 0, i
^
<instantiation>:10:2: note: while in macro instantiation
.rept (by - 1)
^
<instantiation>:1:1: note: while in macro instantiation
do_aes 8, 0, 1
^
<instantiation>:5:3: note: while in macro instantiation
do_aes_noload 8, 1
^
bad.S:63:2: note: while in macro instantiation
do_aes_ctrmain 1
^</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>