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: unassignedclangb...@nondot.org
          Reporter: s...@list.ru
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to