This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Harden variably_modified_type_p


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]