This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Java: add flag_use_atomic_builtins
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Aug 2009 16:48:56 +0000 (UTC)
- Subject: Re: Java: add flag_use_atomic_builtins
- References: <4A82E93B.5010504@redhat.com>
On Wed, 12 Aug 2009, Andrew Haley wrote:
> Some targets, particularly ARM, don't have instructions for things
> such as sync_compare_and_swap. Instead, a routine in libgcc is
> used. This patch adds a new gcj option, -fuse-atomic-builtins,
> which causes gcj to use the routines in libgcc whenever atomic
> operations are needed.
Wouldn't a target hook to allow a target to declare which operations it
provides in libgcc be better than a command-line option?
--
Joseph S. Myers
joseph@codesourcery.com