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][LTO] Re-set boolean_type_node in free_lang_data


> It is done properly in lto1.

Then why doing it in non-LTO mode as well?

> Can you expand on why this will break Ada in subtle ways?  Note that after
> free_lang_data the frontend isn't involved in anything anymore.

This changes the precision of boolean_type_node, which is 8 in Ada with the 
corresponding TYPE_MAX_VALUE because of invalid values so that tests like

  if (x > 1)

are not optimized away.

-- 
Eric Botcazou


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