This is the mail archive of the gcc-bugs@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: Cannot build egcs-1.1.1 on i386-sni-sysv4




  In message <001c01be2f29$576f0210$21c9ca95@mowp.siemens.ru>you write:
  > 3. The reason for these errors is, traditonal variable is clobbered. It
  > happens in cpp in the _first_ call to xmalloc.
  > 
  >   char **pend_files = (char **) xmalloc (argc * sizeof (char *));
  > 
  > The value traditional gets, is argument to xmalloc + 1 (I can provide gdb
  > session to prove it :-) Before call to malloc() traditional is zero, after
  > return from malloc() traditional is clobbered.
'traditional' is a global variable.  If it is being clobbered by a call to
malloc then something is seriously wrong.    If your system supports hardware
watchpoints, then I would recommend you place a watchpoint on traditional to
see how it is being clobbered.

jeff


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