Skip to content

Provide error on gcc < 4.1 when THREADSAFE#4135

Merged
carlosmn merged 1 commit intomasterfrom
ethomson/ancient_gcc_not_threadsafe
Feb 22, 2017
Merged

Provide error on gcc < 4.1 when THREADSAFE#4135
carlosmn merged 1 commit intomasterfrom
ethomson/ancient_gcc_not_threadsafe

Conversation

@ethomson
Copy link
Copy Markdown
Member

@ethomson ethomson commented Feb 22, 2017

Provide a descriptive error message when compiling THREADSAFE on gcc versions < 4.1. We require the atomic primitives (eg __sync_synchronize) that were introduced in that version.

(Note, clang setes __GNUC__ but appears to set its version > 4.1.)

@carlosmn
Copy link
Copy Markdown
Member

(Note, lldb setes GNUC but appears to set its version > 4.1.)

Do you mean llvm/clang? The debugger surely isn't setting the defines.

Provide a descriptive error message when compiling THREADSAFE on gcc
versions < 4.1.  We require the atomic primitives (eg
`__sync_synchronize`) that were introduced in that version.

(Note, clang setes `__GNUC__` but appears to set its version > 4.1.)
@ethomson ethomson force-pushed the ethomson/ancient_gcc_not_threadsafe branch from 57ac11c to aa5ea47 Compare February 22, 2017 11:22
@ethomson
Copy link
Copy Markdown
Member Author

Do you mean llvm/clang? The debugger surely isn't setting the defines.

Yes, clearly. I've updated the commit message to reflect this.

@carlosmn
Copy link
Copy Markdown
Member

The Travis build finished after 25m but it looks like it never sent out the notification.

@carlosmn carlosmn merged commit 86201b9 into master Feb 22, 2017
@ethomson ethomson deleted the ethomson/ancient_gcc_not_threadsafe branch January 9, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants