Commit 3064b942 by David Malcolm Committed by David Malcolm

Make INSN_HAS_LOCATION require an rtx_insn

gcc/
2014-08-28  David Malcolm  <dmalcolm@redhat.com>

	* rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
	const rtx_insn *.

	* print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
	in invocation of INSN_HAS_LOCATION.

From-SVN: r214700
parent 2ccdda19
2014-08-28 David Malcolm <dmalcolm@redhat.com>
* rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
const rtx_insn *.
* print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
in invocation of INSN_HAS_LOCATION.
2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* config/rs6000/altivec.h (vec_xl): New #define. * config/rs6000/altivec.h (vec_xl): New #define.
...@@ -395,7 +395,7 @@ print_rtx (const_rtx in_rtx) ...@@ -395,7 +395,7 @@ print_rtx (const_rtx in_rtx)
/* Pretty-print insn locations. Ignore scoping as it is mostly /* Pretty-print insn locations. Ignore scoping as it is mostly
redundant with line number information and do not print anything redundant with line number information and do not print anything
when there is no location information available. */ when there is no location information available. */
if (INSN_HAS_LOCATION (in_rtx)) if (INSN_HAS_LOCATION (as_a <const rtx_insn *> (in_rtx)))
{ {
expanded_location xloc = insn_location (in_rtx); expanded_location xloc = insn_location (in_rtx);
fprintf (outfile, " %s:%i", xloc.file, xloc.line); fprintf (outfile, " %s:%i", xloc.file, xloc.line);
......
...@@ -1374,7 +1374,7 @@ inline unsigned int& INSN_LOCATION (rtx insn) ...@@ -1374,7 +1374,7 @@ inline unsigned int& INSN_LOCATION (rtx insn)
return XUINT (insn, 4); return XUINT (insn, 4);
} }
inline bool INSN_HAS_LOCATION (const_rtx insn) inline bool INSN_HAS_LOCATION (const rtx_insn *insn)
{ {
return LOCATION_LOCUS (INSN_LOCATION (insn)) != UNKNOWN_LOCATION; return LOCATION_LOCUS (INSN_LOCATION (insn)) != UNKNOWN_LOCATION;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment