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

--- Comment #8 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 59072
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59072&action=edit
Proposed fix for location_t and tree -Wodr warnings

This patch fixes the -Wodr warning for m2tree_Tree vs tree and
m2linemap_location_t vs location_t.   The m2 front end uses tree and location_t
and the bootstrap tool has been modified to include gcc headers for these data
types.

After this patch has been applied, the lto -Wodr build finds 33 warnings
related to char *, void * and const char *.  I'm hopeful that these are the
last remaining set of -Wodr violations and suspect they can be solved by
introducing a module CFamily which will export CharStar, ConstCharStar and the
bootstrap tool will cast between these and the type ADDRESS as required.

Reply via email to