[LLVMdev] __atomic_fetch_add on ARM

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri May 10 08:21:10 PDT 2013

I think this is two bugs in one:

* In ABIs that don't use external functions for atomics (linux hard
float at least), we incorrectly decide to use function calls.
* In ABIs that do use external function calls (non hard float linux?),
we don't have code to actually generate the calls.

See the thread in
The hard float case has been in my personal todo list for some time,
but I never got to it :-(

On 9 May 2013 19:14, Renato Golin <renato.golin at linaro.org> wrote:
> Hi Benjamin,
> Several people (including me) are hitting this bug on ARM:
> http://llvm.org/bugs/show_bug.cgi?id=15429
> From my investigations it happens on Ubuntu 12.10+ but not on 12.04. From
> Tom Gail's, it happens with --enable-optimized and doesn't without. You seem
> to have a clue on what that happens, can you shed some light on the matter?
> I see this error when self-hosting Clang on Ubuntu 12.10 on ARM but hadn't
> had time to investigate with the release process running on Ubuntu 12.04. We
> can certainly help you debug this, or if you point me to the right place I
> can do some tests and send a patch as soon as possible.
> cheers,
> --renato
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list