This is the mail archive of the
mailing list for the GCC project.
Re: PATCH (libstdc++-v3 mainline): Re-enable i386/atomicity.h
- From: martin at v dot loewis dot de (Martin v. Löwis)
- To: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Cc: rittle at labs dot mot dot com, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: 05 May 2003 22:53:25 +0200
- Subject: Re: PATCH (libstdc++-v3 mainline): Re-enable i386/atomicity.h
- References: <200304292202.h3TM2i96031935@latour.rsch.comm.mot.com><firstname.lastname@example.org><3EB668EE.A30BE7E6@OARcorp.com>
Joel Sherrill <joel.sherrill@OARcorp.com> writes:
> There may not be many i386 configured Linux distributions out there but
> all embedded i386 targets are broken because i386-elf and i386-rtems
> are used.
What do you mean with "are broken"? That they currently don't work
with gcc 3.2 because it uses the lock instruction that isn't supported
on that processor? If so, this would just supports my point: Since you
there can't be any working binaries for these targets at the moment,
binary compatibility would not be an issue.
Or did you mean something else by "are broken"?
> Can we have an i386/atomicity.h which works in parallel with the
What do you mean with "work in parallel"? That gcc has supports both
configurations, in a single gcc source tree? Certainly.
That you can use, in the same executable, both the i386 and the i486
way of locking? No way.
> Right. And embedded i386 targets aren't going away in the foreseeable
> future. So gcc can't abandon them.
I'm not proposing anything like that.
> This is why I was arguing for this code being NOT in a .h but in a
> C/C++ file which can be properly compiled for the target.
That also gives a 50% performance slowdown. In addition, it breaks
binary compatibility with i486 gcc 3.2.
> This does beg the question of how much performance is lost with the
> subroutine call.
> For gcc 3.3, I would be extremely pleased if there were simply
> i386 and i486 atomicity.h files so that all x86 targets work.
It looks like it is right now, no?