This is the mail archive of the gcc@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]

Re: Converting tm.h macros to functions


Joseph S. Myers wrote:-

> The problem with using structures here is that we don't want to have to 
> change every back end (many more than there are front ends) when we add a 
> new function (which we want to do in the most logical place in the 
> structure), but we can't rely on C99 designated initialisers in the host 
> compiler.

Yes, lack of things like designated initialisers and varargs macros is
painful.  [Insert mumblings about wouldn't it be great if we required
a more advanced compiler, like GCC, to bootstrap...]

Hmm.  We could continue to use macros, but only use them to initialise
the structures rather than bits of conditionally compiled code
scattered all over the compiler.  It still a big improvement I think.

Neil.


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