On Thu, Jul 14, 2011 at 12:26:41PM -0400, Jason Merrill wrote: > On 07/14/2011 05:41 AM, Jakub Jelinek wrote: > >Here is a PCH friendly variant of the patch which tries to set right > >producer from the start, but early in dwarf2out_finish double checks > >if PCH hasn't changed it and if it did, updates it back to the expected > >string. > > Why not just wait until then to set it?
Because the same routine that sets it is used both to create the single compilation unit early and to create CUs late (for -feliminate-dwarf2-dups already during dwarf2out_finish). Jakub