Home | History | Annotate | Download | only in gcc

Lines Matching refs:pos1

300 /* Compare positions POS1 and POS2 lexicographically.  */
303 compare_positions (struct position *pos1, struct position *pos2)
307 diff = pos1->depth - pos2->depth;
311 while (pos1->depth != pos2->depth);
314 pos1 = pos1->base;
315 while (pos1->depth != pos2->depth);
316 while (pos1 != pos2)
318 diff = (int) pos1->type - (int) pos2->type;
320 diff = pos1->arg - pos2->arg;
321 pos1 = pos1->base;
328 POS1 and POS2. If the positions are from different instructions,
332 common_position (struct position *pos1, struct position *pos2)
334 if (pos1->insn_id != pos2->insn_id)
335 return pos1->insn_id < pos2->insn_id ? pos1 : pos2;
336 if (pos1->depth > pos2->depth)
337 std::swap (pos1, pos2);
338 while (pos1->depth != pos2->depth)
340 while (pos1 != pos2)
342 pos1 = pos1->base;
345 return pos1;