[LLVMbugs] [Bug 14886] New: Dragonegg crashes with prototype-less sret decl, like (sret, ...)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 9 17:03:18 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14886
Bug #: 14886
Summary: Dragonegg crashes with prototype-less sret decl, like
(sret, ...)
Product: dragonegg
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
/* testcase.c */
struct R {int a[8];};
extern struct R x(/*void*/);
struct R g(void) {return x();}
gcc47 -fplugin=dragonegg.so -S testcase.c -o testcase.ll -flto
Attribute 'sret' cannot be used for vararg call arguments!
%0 = call %struct.R (...)* bitcast (void (%struct.R*, ...)* @x to %struct.R
(...)*)(%struct.R* noalias sret %agg.result) nounwind
Broken module found, compilation aborted!
clang/tools/c-index-test is affected.
FYI, dragonegg doesn't crash with "extern struct R x(void);"
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list