Closed
Bug 881163
Opened 11 years ago
Closed 11 years ago
C++11 atomics fail to link with gcc 4.5.1
Categories
(Core :: MFBT, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: derf, Assigned: derf)
References
Details
Attachments
(1 file)
869 bytes,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
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+
Assignee | ||
Comment 3•11 years ago
|
||
Thanks! https://hg.mozilla.org/mozilla-central/rev/7f45910089be
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•