This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: powerpc64 libstdc++
On Sat, Jul 27, 2002 at 04:14:24PM -0400, David Edelsohn wrote:
> libstdc++-v3/ChangeLog
> * configure.target (cpu_include_dir): Use cpu/powerpc for powerpc64.
> * config/cpu/powerpc/atomicity.h (__always_swap): Remove.
> (__test_and_set): Remove.
>
> Expanding the target to cover powerpc64 is fine.
>
> I'm not sure why it's worth removing the other atomic ops now that they
> are there. I thought part of the reason they were present is because of
> glibc, which shares/shared libio code with libstdc++.
I should have mentioned that I checked current glibc sources too. It's
wrong to leave these functions in without some changes as they operate
on "long", yet use "lwarx" and "stwcx.".
--
Alan Modra
IBM OzLabs - Linux Technology Centre