Skip to content
Snippets Groups Projects
Commit 8833eab4 authored by Martin Liska's avatar Martin Liska
Browse files

Add -Wtsan.

gcc/ChangeLog:

	PR sanitizer/97868
	* common.opt: Add new warning -Wtsan.
	* doc/invoke.texi: Likewise.
	* tsan.c (instrument_builtin_call): Warn users about unsupported
	std::atomic_thread_fence.

gcc/testsuite/ChangeLog:

	PR sanitizer/97868
	* gcc.dg/tsan/atomic-fence.c: New test.
parent 5c5eb7e4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment