On 11/22/2017 08:59 AM, Richard Biener wrote:
Anything else can be done as followup and need not be done as part of
this patch. An enum for
this would work I guess.
I've added this to https://gcc.gnu.org/wiki/ImprovementProjects:
Compress DECL flags
tree-core defines a number of bit flags (DECL_IS_MALLOC,
DECL_IS_OPERATOR_NEW, DECL_CONSTRUCTOR, DECL_STATIC_CONSTRUCTOR, etc)
that are mutually exclusive. It would be better to use some kind of
enumeration, rather than individual flags. (We've run out of bits).
(Suggested by Richard Biener & Nathan Sidwell)
[The reason I put names on these things, is so there's someone to
contact if the intent isn't clear]
nathan
--
Nathan Sidwell