[llvm-dev] X86 does not follow -fuse-init-array
kamlesh kumar via llvm-dev
llvm-dev at lists.llvm.org
Tue Dec 10 03:10:04 PST 2019
Hi Devs,
consider below testcases,
$cat test.cc
class B {
public:
B(int t) {
j=t;
}
int j;
};
B b(1);
==============
$clang test.cc -target -i386 -c -fuse-init-array
$llvm-objdump -h test.o |grep ctors
7 .ctors 00000004 00000000 DATA
8 .rel.ctors 00000008 00000000
As you can see it ignores the -fuse-init-array options.It happens for
x86,Other target like aarch64 is doing fine.
like to community thoughts on this, before going after fix?
./kamlesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191210/ac1a823b/attachment-0001.html>
More information about the llvm-dev
mailing list