Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#2358 closed Bugs (fixed)

__sync_lock_test_and_set not defined for Intel ICC (used in detail/spinlock_sync.hpp)

Reported by: bangerth@… Owned by: Peter Dimov
Milestone: Boost 1.37.0 Component: smart_ptr
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

This is an issue that has apparently been noted before, see e.g.

http://thread.gmane.org/gmane.comp.lib.boost.devel/176050

What's going on is that the Intel ICC compiler on x86_64 does not know about the sync_lock_test_and_set intrinsic that GCC defines. It may be that the reason why Peter Dimov couldn't reproduce the problem lies in the ability of ICC to use GCC header files -- I don't know. Anyway, I can for a fact confirm that the patch (see attached) by Peter works.

Best

Wolfgang

Attachments (1)

patch (750 bytes ) - added by bangerth@… 14 years ago.
Patch to detail/spinlock.hpp

Download all attachments as: .zip

Change History (5)

by bangerth@…, 14 years ago

Attachment: patch added

Patch to detail/spinlock.hpp

comment:1 by Peter Dimov, 14 years ago

Cc: pdimov@… removed
Component: Nonesmart_ptr
Owner: set to Peter Dimov
Status: newassigned

comment:2 by Peter Dimov, 14 years ago

I already applied this in [48836] to the trunk.

comment:3 by Peter Dimov, 14 years ago

Resolution: fixed
Status: assignedclosed

comment:4 by anonymous, 11 years ago

It doesn't have to be integrated into gcc. I am looking for modules that I can link into my linux program.

Note: See TracTickets for help on using tickets.