> It seems with Ada one can have cycles in types via pointer types > and calling variably_modified_type_p on such type recurses indefinitely. > The following is an attempt to fix that (albeit I'm not 100% sure > there's no caller of the function using TREE_VISITED itself). > > Cures c38102a.adb with LTO early debug patches for me. > > Any comments? (no further testing sofar)
See walk_type_fields for a different approach to the same isse. -- Eric Botcazou