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]

TRUTH_OR_EXPR vs. TRUTH_ORIF_EXPR


The code
-----------------------------------------------------------------------------
foo (int x, int y)
{
  if (x <= 0 || y <= 0)
    return;

  foo (x + 1, y - 1);
  return;
}
-----------------------------------------------------------------------------

when compiled on sparc-solaris gcc 3.1.1 using -O2 produces a syntax tree
that uses "TRUTH_OR_EXPR" rather than "TRUTH_ORIF_EXPR".  Any idea why?
It feels strange.

In any case, tree-dump.c's dequeue_and_dump does not handle TRUTH_OR_EXPR
right.  Around line 666, cases for TRUTH_AND_EXPR and TRUTH_OR_EXPR need
to be added.

Morten


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