search for: d62509

Displaying 2 results from an estimated 2 matches for "d62509".

2019 Dec 12
2
X86 does not follow -fuse-init-array
...c looks like it is ripe for refactoring. Patches very welcome. =( We should probably make -fuse-init-array the CC1 default and the default for Driver/ToolChains/Gnu.cpp. Very few platforms actually use .ctors/.dtors nowadays. (This caused a bug this year which was fixed by https://reviews.llvm.org/D62509) If my suggestion does not sound too stupid, I can create a patch.
2019 Dec 10
2
X86 does not follow -fuse-init-array
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.