This is the mail archive of the gcc@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]

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);

  ...


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