[parisc-linux] gcc (g++) problem
John David Anglin
dave@hiauly1.hia.nrc.ca
Mon, 25 Feb 2002 23:25:34 -0500 (EST)
> Here's the problem. This program segfaults when compiled with -fPIC, as
> required to build a .so. It is fine when compiled without -fPIC. It is
> also fine on intel platform with both. Is there something wrong with the
> code that I'm not seeing, or is this a compiler bug? I have tried this
> with gcc-3 on an intel box, and it is fine, so I assume it is this port?
It's probably a compiler bug. The code works ok with my 3.1 test version.
I think the problem may be the restoration of the pic offset table register
after function calls.
Suggest trying the debian 3.1 prerelease build. Search the list to find
how to get it.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)