This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
TRUTH_OR_EXPR vs. TRUTH_ORIF_EXPR
- From: Morten Welinder <terra at diku dot dk>
- To: gcc at gcc dot gnu dot org
- Date: 12 Feb 2003 18:06:38 -0000
- Subject: 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