ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
[gcc.git] / gcc / print-rtl.c
index be1d01ac6c3598338311cbd92b835528bc32abf5..4824aba3f603a7ec72773d1eaeffb3b7a2d8080d 100644 (file)
@@ -37,6 +37,13 @@ along with GCC; see the file COPYING3.  If not see
 #include "print-tree.h"
 #include "flags.h"
 #include "hard-reg-set.h"
+#include "predict.h"
+#include "vec.h"
+#include "hashtab.h"
+#include "hash-set.h"
+#include "machmode.h"
+#include "input.h"
+#include "function.h"
 #include "basic-block.h"
 #include "diagnostic.h"
 #include "tree-pretty-print.h"
@@ -392,12 +399,14 @@ print_rtx (const_rtx in_rtx)
        if (i == 4 && INSN_P (in_rtx))
          {
 #ifndef GENERATOR_FILE
+           const rtx_insn *in_insn = as_a <const rtx_insn *> (in_rtx);
+
            /*  Pretty-print insn locations.  Ignore scoping as it is mostly
                redundant with line number information and do not print anything
                when there is no location information available.  */
-           if (INSN_HAS_LOCATION (in_rtx))
+           if (INSN_HAS_LOCATION (in_insn))
              {
-               expanded_location xloc = insn_location (in_rtx);
+               expanded_location xloc = insn_location (in_insn);
                fprintf (outfile, " %s:%i", xloc.file, xloc.line);
              }
 #endif