This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RFD: Is there a helper function like "print_rtx_to_stdout" ?
- From: Björn Haase <bjoern dot m dot haase at web dot de>
- To: gcc at gnu dot org
- Date: Fri, 6 May 2005 09:57:05 +0200
- Subject: RFD: Is there a helper function like "print_rtx_to_stdout" ?
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);
...