[Bug target/56444] mn10300.c:3228:16: error: unused variable ‘loops’

law at redhat dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 25 16:29:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56444

--- Comment #1 from Jeffrey A. Law <law at redhat dot com> 2013-02-25 16:29:13 UTC ---
This makes no sense:

static void
mn10300_scan_for_setlb_lcc (void)
{
  struct loops loops;
  loop_iterator liter;
  loop_p loop;

  DUMP ("Looking for loops that can use the SETLB insn", NULL_RTX);

  df_analyze ();
  compute_bb_for_insn ();

  /* Find the loops.  */
  if (flow_loops_find (& loops) < 1)
    DUMP ("No loops found", NULL_RTX);
  current_loops = & loops;

Note the uses of "loops".

Joern, I think you need to look at this a little deeper to see what's really
happening.



More information about the Gcc-bugs mailing list