This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the EGCS project.
Re: Genrecog bugfix version 2
- To: Jan Hubicka <hubicka@atrey.karlin.mff.cuni.cz>
- Subject: Re: Genrecog bugfix version 2
- From: Richard Henderson <rth@cygnus.com>
- Date: Sun, 25 Jul 1999 10:52:43 -0700
- Cc: egcs-patches@egcs.cygnus.com
- References: <19990725031225.23705@atrey.karlin.mff.cuni.cz>
On Sun, Jul 25, 1999 at 03:12:25AM +0200, Jan Hubicka wrote:
> + int cmp = strcmp (d1->position, d2->position);
...
> + /* Try to find corresponding position in the second. */
> + if (cmp < 0)
I don't understand the use of strcmp to determine which
of d1 or d2 to back out and test. Perhaps you were looking
for the longer of two strings? Or perhaps we always know
that one is a prefix of the longer?
r~