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: config-lang.in fragments


On Jun 20, 2003, Nathanael Nerode <neroden@twcny.rr.com> wrote:

> #2 looks like the way to go, but it demands some cleanup of the variable
> usage in config-lang.in fragments so that they never clobber anything
> at either level.

I think it's the other way round.  config-lang.in implicitly defines
an interface, that front-ends that are not part of the GCC tree have
come to rely on.  Changing the variable names in config-lang.in and
expecting such different names in the top-level will gratuitously
break such front-ends.  The right approach would be to make sure names
defined in config-lang.in do not conflict with code in the top level.
Should conflicts arise, rename variables in the top level, but don't
change the interface unless you really have to.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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