RFD: Is there a helper function like "print_rtx_to_stdout" ?
Björn Haase
bjoern.m.haase@web.de
Fri May 6 08:33:00 GMT 2005
Hi,
I am facing a situation where a gcc_assert call that checks for some
properties of a rtx expression, say "op", triggers an ICE (see below). I'd
like to have a look the rtx that triggers this error. For this reason, I'd
like to know whether there exists a helper function for writing to stdout
which kind of rtx "op" actually is. I.e. some function like
"print_rtx_to_stdout" or "print_rtx_to_file" that could be used when
debugging the compiler.
Thank's in advance.
Björn
Sample code:
rtx
simplify_subreg (enum machine_mode outermode, rtx op,
enum machine_mode innermode, unsigned int byte)
{
/* Little bit of sanity checking. */
gcc_assert (GET_MODE (op) == innermode || GET_MODE (op) == VOIDmode);
...
More information about the Gcc
mailing list