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: C++ bootstrap (part 11/n): Add casts from void *



On Jul 25, 2004, at 6:12 PM, Bernardo Innocenti wrote:


| -      if (op == SIZEOF_EXPR)
| +      if (op == (enum tree_code) SIZEOF_EXPR)

Why this?

SIZEOF_EXPR is really of type enum c_tree_code in the C frontend.

I'm afraid I have many similar casts for enum correctness
in my patch backlog... I know they suck, but we can't do
much about it :-(

If this is true then there is no way to use C++ to bootstrap
as this will cause an old of range value from the enum which
is undefined in C++ unless you change the definition of the
current enum because it only goes one past the end of the
generic trees.

Andrew Pinski


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