[LLVMbugs] [Bug 21173] New: stack protector generating sse3 instructions in unoptimized 32-bit build
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 6 10:36:54 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21173
Bug ID: 21173
Summary: stack protector generating sse3 instructions in
unoptimized 32-bit build
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: phantall+llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
clang --version
echo 'void test() { char blah[127] = {}; }' | clang++ -g -m32 -xc++ -c -o
/tmp/blah1.o
echo 'void test() { char blah[127] = {}; }' | clang++ -g -fstack-protector-all
-Wstack-protector -m32 -xc++ -c -o /tmp/blah2.o
If you look at the disassembly for /tmp/blah{1,2}.o, the former generates some
instructions that are valid for any of the Pentium processors, whereas the
latter uses %xmm0 & movaps instructions to initialize `blah`.
Without really digging into it I can only speculate, but my best guess is stack
protector is potentially enabling one or more optimizations that would
otherwise not be enabled in a typical debug build w/out optimizations.
--
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/20141006/5dc13af1/attachment.html>
More information about the llvm-bugs
mailing list