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]

RFC - Refactor tree.h


This patch is still WIP.  It builds stage1, but I'm getting ICEs
during stage 2.

The patch splits tree.h into three files:

- tree-core.h: All data structures, enums and typedefs from
  tree.h

- tree-api.h: All extern function definitions from tree.h

- tree-macros.h: All macro accessors, tree checks and other
  inline functions.

The intent is to ostracize tree-macros.h so that it can only be
included from tree.h.  The files tree-core.h and tree-api.h
should be usable from anywhere.  In particular, we are interested
in tree-core.h, which will be included by the gimple files to
define operand accessors.

Andrew, is this more or less what you had in mind?  I'm going to
be away for a couple of weeks.  I will pick it back up when I
return.

Thanks.  Diego.

Attachment: 0001-Re-factor-tree.h.-Move-data-structures-enums-and-typ.patch.gz
Description: Binary data


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