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

Re: [tree-ssa] Gimplifying Java


On 12 Jun 2003, Andrew MacLeod wrote:
> So BB5 has 12 as a successor,  but there is no edge? Or you mean there
> is an edge, but nowhere to insert the code?

BB5 should _not_ have 12 as a successor, it can't get there.  So, there's
nowhere to insert the code, right?

      # BLOCK 5 (NameFinder.java:6).  PRED: 3.  SUCC: 12 6.
      try
        {
          # BLOCK 6 (NameFinder.java:18).  PRED: 5.  SUCC: 8 7.
          if (file.8 == 0B)
            {
              # BLOCK 7 (NameFinder.java:18).  PRED: 6.  SUCC: -2 10.
              _Jv_ThrowNullPointerException ()
            };
          # BLOCK 8 (NameFinder.java:18).  PRED: 6.  SUCC: 9 10.
          T.11 = substring.10 (file.8, T.9);
          # BLOCK 9 (NameFinder.java:18).  PRED: 8.  SUCC: 12 10.
          T.14 = parseInt.13 (T.12)
        }
      catch
        {
          # BLOCK 10 (NameFinder.java:18).  PRED: 9 8 7.  SUCC: 12 11.
          catch (struct java.lang.NumberFormatException)
            {
              # BLOCK 11 (NameFinder.java:18).  PRED: 10.  SUCC: 12.
              T.15 = <<<exception object>>> - 4;
              nfe = *T.15
            }
        }

> The edge inserter has not
> had to deal with TRY's yet, so it may not understand where to insert the
> code.

Oh, OK.  That may be part of the problem indeed.  It seemed to fail on the
BB9->BB12 edge.

> I'd actually like to see this whole section, including the PHI
> nodes and CFG info... It might be an easy fix inside the edge
> inserter...

What's the best way to include PHI nodes in the tree dump?

Jeff


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