This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc for i386-solaris doesn't expand builtin functions for atomic memory access


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]