This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Cannot build egcs-1.1.1 on i386-sni-sysv4
- To: "Andrej Borsenkow" <borsenkow dot msk at sni dot de>
- Subject: Re: Cannot build egcs-1.1.1 on i386-sni-sysv4
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 17 Jan 1999 01:32:18 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
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