https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125470
Bug ID: 125470
Summary: Let -fdump-rtl-<pass> dump CRTL for __RTL testing
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
GCC supports testing RTL code in the testsuite by reading __RTL code embedded
in a C function, cf. "Support for testing RTL passes"
https://gcc.gnu.org/onlinedocs/gccint/RTL-Tests.html
The internals propose to get a valid CRTL input by means of
(gdb) print_rtx_function (stderr, cfun, true);
i.e. one has to start a debugger, navigate to the right place, etc.
It would be nice if -fdump-rtl-<pass>-<flags> would support a flag that prints
the print_rtx_function(stream, cfun, true) output for <pass> to the respecive
RTL pass's rtl dump file.