http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53145

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-29 16:29:27 
UTC ---
/* Return a heap allocated producer string including command line options
   if -grecord-gcc-switches.  */

static char *
gen_producer_string (void)
{
  size_t j;
  VEC(dchar_p, heap) *switches = NULL;
  const char *language_string = lang_hooks.name;
  char *producer, *tail;
  const char *p;
  size_t len = dwarf_record_gcc_switches ? 0 : 3;
  size_t plen = strlen (language_string) + 1 + strlen (version_string);

  for (j = 1; dwarf_record_gcc_switches && j < save_decoded_options_count; j++)

Will heap allocation affect PCH?  Should we add -gno-record-gcc-switches
to gcc.dg/pch/save-temps-1.c?

Reply via email to