[llvm-bugs] [Bug 40694] New: [RFE] add -fno-lifetime-dse option

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 11 09:28:19 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40694

            Bug ID: 40694
           Summary: [RFE] add -fno-lifetime-dse option
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: stsp at list.ru
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

g++ has the -fno-lifetime-dse option to support the code that
expects the value in memory not affected by placement new, when
creating PODs. That is, you can initialize some array with the
needed values, and then use placement new to create POD objects
on that array, and they will be initialized from the pre-existing
values.
This is a useful extension and it would be nice if clang to
also support it.

-- 
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/20190211/8fc2901d/attachment.html>


More information about the llvm-bugs mailing list