[llvm-bugs] [Bug 25015] Add a mode to clang to allow it to automatically test external layout

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 1 14:46:31 PDT 2015


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

Zachary Turner <zturner at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #2 from Zachary Turner <zturner at google.com> ---
Looked into this some more, adn it is caused by the fact that
-fdump-record-layouts-simple is fundamentally unable to guarantee idempotency
with -foverride-record-layout.  This is because in cc1 mode,
-fdump-record-layouts-simple doesn't dump any information about whether a class
has virtual functions or virtual bases or for that matter anything else that
might affect record layout.

A better solution is to add a flag to clang that will conceptually do what
these two operations do, but without goign through the intermediate step of
writing the file and reading it back in.  This would allow us to run the entire
suite of record layout tests with an external layout with just trivial changes
to the record layout tests, potentially leading to the discovery of many other
bugs with external layout.

-- 
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/20151001/22344491/attachment-0001.html>


More information about the llvm-bugs mailing list