[cross-posted to linuxppc-dev]
On 20 Feb, this message from firstname.lastname@example.org echoed through cyberspace:
> Background: analog segfaults when using a custom config file.
> The author tried debugging the program on my B50 and replied with this
> Is gcc known to be buggy for powerpc? I'm running 2.95.2-17 and the
> program has been compiled without optimizations.
No idea whether it _is_ buggy or not. However, the list of arguments to
that function below seems rather long to me, so if it is a bug in gcc,
it might not have been noticed before.
Anyway, one thing to look at might be the fact that not all function
arguments are passed the same way according to the ABI we are using. The
first few are passed in registers, the rest on the stack (IIRC).
However, I don't know exactly how many are passed in registers. But it
would seem that 22 (the arguments coming through OK below) is a bit high
Any of the gcc gurus around?
> ----- Forwarded message from Stephen Turner
> OK, I've discovered what's going on, but I have no idea WHY it's
> The problem comes at line 736 of output.c. That line calls
> printtree(outf, rep, outstyle, multibyte, tree, requests, date,
> 0, NULL, aliashead, linkhead, baseurl, totr, totp, totb,
> possrightalign, bmult, unit, sepchar, repsepchar, decpt,
> rawbytes, cols, colhead, colheadp, gender, html, monthname,
> dayname, monthlen, daylen, plainmonthlen, plaindaylen,
> But by the time we reach printtree, several of the values are wrong.
> Everything is fine up to unit. But sepchar got repsepchar's true
> repsepchar got decpt's true value ('.'), etc., until plaindaylen got
> lngstr's value (0x100e93c0 = 269390784) and lngstr got a random value.
> As I say, I don't really see how this can have happened. Have you
> encountered anything like this before?
> ----- End forwarded message -----
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email email@example.com |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/