This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc for i386-solaris doesn't expand builtin functions for atomic memory access
- From: Ian Lance Taylor <iant at google dot com>
- To: Lijuan Hai <hailijuan at gmail dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Tue, 16 Jun 2009 21:05:18 -0700
- Subject: Re: gcc for i386-solaris doesn't expand builtin functions for atomic memory access
- References: <48353bf60906161945q4f0943b8qa7c83ca062603693@mail.gmail.com>
Lijuan Hai <hailijuan@gmail.com> writes:
> As we see from gcc doc, the builtins are intended to be compatible
> with those described in the Intel Itanium Processor-specific
> Application Binary Interface, section 7.4. Why did gcc for x86 miss
> expanding such built-ins, just generating a call to an external
> function? Is it on purpose or TODO work?
As written, this question would be better suited for the
gcc-help@gcc.gnu.org mailing list rather than the gcc@gcc.gnu.org
mailing list.
You neglected to mention which builtin you were using. As the gcc
documentation describes, the builtins are only open coded on processors
which support them. The i386 does not support many atomic operations.
Try using -march=i686 or some other -march option.
Ian