On Dec 22, 2014, at 4:08 AM, Iain Sandoe <i...@codesourcery.com> wrote: > After the usual fun with tracking down a GTY(()) issue, it turned out to be > triggered by 216263 (changes in the gtfiles for cp that were not reflected in > objcp). However, it appears that the list was a bit out of sync in general. > > Probably almost an "obvious" patch, but I'd be interested in any ideas to > make this sync more automatic (it's an easy omission to make).
Yeah, it is obvious. If you want to make it more automatic, objc/c++ need to share the gt lists from c/c++ and only define new things for files the are Objective related. In C/C++, #include would be the solution. In Makefiles, include doesn’t seem unreasonable. In sh land, . exists. I don’t know if it can be used here. Trivially, in 20/20 hindsight, the way we put gtfiles into a language frontend for a sublanguage isn’t right. We need more derivation and more sharing. > OK for trunk? Ok. I think cleanups to refactor code, while dangerous, I think gcc benefits from people that are willing to do the work. For my areas, I’d accept them as obvious.