This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/9] RFC: selftests based on RTL dumps


On 09/16/2016 11:12 PM, David Malcolm wrote:
There are some interrelated questions here:
(a) where do the dumps live? (string fragments embedded in the source
file vs external files)
(b) -fself-test vs DejaGnu tests that use a real frontend.  In the
latter case, is the frontend "rtl1", or an extension of "cc1" with an
"__RTL" marker?

I think a rtl1 frontend that gets run from a specific subdirectory in testsuite/ is probably the best option.

For (a), I'd like to do support both (in that it's clear we need
support for external files, but it seems trivial to support embedding).

If we're dealing with small snippets, I'm not sure embedding them as strings is really that much better than building them up with gen_ functions. I'm sure there's room for rtl selftests living inside the compiler like that, but anything larger probably ought to live outside.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]