[llvm-bugs] [Bug 24649] New: r244578 broke x86 codegen for -Oz
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 1 05:29:44 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24649
Bug ID: 24649
Summary: r244578 broke x86 codegen for -Oz
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: glider at google.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
For the following testcase:
$ cat compress.c
static int zisofs_readpage() {
struct page *pages[({ (1 << (*(unsigned char *)(0xfeedface)) ); } )];
return zisofs_uncompress_block(0, 0, 0, 0, pages, 0, 0);
}
int (*readpage)() = zisofs_readpage;
Clang r244578 reports an error when compiling with -Oz and -no-integrated-as:
$ clang -target x86_64-cros-linux-gnu -no-integrated-as -Oz -w -c
compress.c
/tmp/compress-1e6ca5.s: Assembler messages:
/tmp/compress-1e6ca5.s:35: Error: operand type mismatch for `pop'
/tmp/compress-1e6ca5.s:36: Error: operand type mismatch for `pop'
clang-3.8: error: assembler command failed with exit code 1 (use -v to see
invocation)
The same testcase compiles fine with Clang r244577.
It also compiles with r244578 if either -Oz or -no-integrated-as is removed
from the command line.
--
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/20150901/c2d337a3/attachment.html>
More information about the llvm-bugs
mailing list