[llvm-bugs] [Bug 24487] New: clang fails to compile linux "ALTERNATIVE" (integrated-as)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 18 09:25:04 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24487
Bug ID: 24487
Summary: clang fails to compile linux "ALTERNATIVE"
(integrated-as)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: dl9pf at gmx.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 14738
--> https://llvm.org/bugs/attachment.cgi?id=14738&action=edit
original .S
Clang does not compile the linux "ALTERNATIVE" construct on x86 when
integrated-as (on by default) is used.
Environment: clang built from git HEAD, Linux 4.2-rc7+
Example error:
clang -Wp,-MD,arch/x86/entry/.entry_64.o.d -nostdinc -isystem
/home/dl9pf/user/git/LF/llvmlinux/toolchain/clang/head/install/bin/../lib/clang/3.8.0/include
-I./arch/x86/include -Iarch/x86/include/generated/uapi
-Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi
-Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi
-include ./include/linux/kconfig.h -D__KERNEL__ -D__ASSEMBLY__ -m64
-DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1
-DCONFIG_AS_AVX2=1 -c -o arch/x86/entry/entry_64.o
arch/x86/entry/entry_64.S
<instantiation>:4:8: error: expected absolute expression
.skip -(((144f-143f)-(141b-140b)) > 0) * ((144f-143f)-(141b-140b)),0x90
^
arch/x86/entry/entry_64.S:599:2: note: while in macro instantiation
ALTERNATIVE "", ".byte 0x0f,0x01,0xca", ( 9*32+20)
^
<instantiation>:4:8: error: expected absolute expression
.skip -(((144f-143f)-(141b-140b)) > 0) * ((144f-143f)-(141b-140b)),0x90
^
<instantiation>:2:2: note: while in macro instantiation
ALTERNATIVE "", ".byte 0x0f,0x01,0xca", ( 9*32+20)
^
arch/x86/entry/entry_64.S:774:1: note: while in macro instantiation
apicinterrupt3 0x20 irq_move_cleanup_interrupt smp_irq_move_cleanup_interrupt
^
<instantiation>:4:8: error: expected absolute expression
.skip -(((144f-143f)-(141b-140b)) > 0) * ((144f-143f)-(141b-140b)),0x90
^
<instantiation>:2:2: note: while in macro instantiation
ALTERNATIVE "", ".byte 0x0f,0x01,0xca", ( 9*32+20)
The entry_64.S and preprocessed .i is attached.
This blocks the meta-bug 4068.
--
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/20150818/4f2149c0/attachment.html>
More information about the llvm-bugs
mailing list