[llvm-bugs] [Bug 47798] New: invalid reassignment of non-absolute variable 'var_ddq_add'
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Oct 11 23:41:33 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47798
Bug ID: 47798
Summary: invalid reassignment of non-absolute variable
'var_ddq_add'
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: isanbard at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 24045
--> https://bugs.llvm.org/attachment.cgi?id=24045&action=edit
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
^
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201012/0f3f7a78/attachment.html>
More information about the llvm-bugs
mailing list