Closed Bug 881163 Opened 8 years ago Closed 7 years ago

C++11 atomics fail to link with gcc 4.5.1

Categories

(Core :: MFBT, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: derf, Assigned: derf)

References

Details

Attachments

(1 file)

This produces many messages of the form

TestAtomics.o: In function `mozilla::detail::IntrinsicMemoryOps<int*, (mozilla::MemoryOrdering)2>::store(std::atomic<int*>&, int*)':
/home/derf/src/mozilla/mozilla-central/objdir-x86_64-unknown-linux-gnu/mfbt/tests/../../dist/include/mozilla/Atomics.h:222: undefined reference to `std::atomic<int*>::store(int*, std::memory_order)'

The upstream bug is <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45398>.

I can confirm linking succeeds on my machine with 4.5.2, but not on my machine with 4.5.1.
Assignee: nobody → tterribe
Status: NEW → ASSIGNED
Attachment #760281 - Flags: review?(jwalden+bmo)
Comment on attachment 760281 [details] [diff] [review]
Require gcc 4.5.2 for C++11 atomics

I don't think Waldo will object if I r+ this.
Attachment #760281 - Flags: review?(jwalden+bmo) → review+
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.