r245991 - in /trunk/gcc: ChangeLog asan.c tests...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Thu Mar 9 09:20:00 GMT 2017


Author: jakub
Date: Thu Mar  9 09:20:23 2017
New Revision: 245991

URL: https://gcc.gnu.org/viewcvs?rev=245991&root=gcc&view=rev
Log:
	PR sanitizer/79944
	* asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
	BUILT_IN_SYNC*, determine the access type from the size suffix and
	always build a MEM_REF with that type.  Handle forgotten
	BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.

	* c-c++-common/asan/pr79944.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/asan/pr79944.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/asan.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list