https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Actually, find_base_value is probably ok, it doesn't handle VALUEs and for
PLUS/MINUS it just guesses one operand on which to recurse, rather than both.

Another possibility is to add some counter and count how many VALUEs we've
processed for one toplevel call (or how many recursions we've done) and limit
that by some constant or param, and just return NULL after we hit that limit.

Reply via email to