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]

[PATCH 3/3] change class-key of PODs to struct and others to class (PR 61339)


The attached patch changes the class-key used in class and struct
declarations and in other declarations and expressions that refer
to them to match the class-key used in their definition.  This
part of the series lets GCC compile with just a small number of
-Wmsmatched-tags instances (down from over 3,000 without it).

I initially tried to make the changes using the same approach as
in part 2 of the series but that didn't work as well so I decided
on a brute force approach using find and sed, and tweaking the rest
by hand.  There are a small number of outstanding inconsistent
declarations that still need to be adjusted.  Most of them are
in generated code that I haven't yet figured how to change to
use the correct class-key.

Martin

Attachment: gcc-61339-tag-cleanup.diff.gz
Description: application/gzip


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