From 34efdaf078b01a7387007c4e6bde6db86384c4b7 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 2 May 2017 14:43:35 +0000 Subject: gcc-7.1.0 --- gcc/cppbuiltin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/cppbuiltin.c') diff --git a/gcc/cppbuiltin.c b/gcc/cppbuiltin.c index 6d494add73..720e231da5 100644 --- a/gcc/cppbuiltin.c +++ b/gcc/cppbuiltin.c @@ -1,5 +1,5 @@ /* Define builtin-in macros for all front ends that perform preprocessing - Copyright (C) 2010-2016 Free Software Foundation, Inc. + Copyright (C) 2010-2017 Free Software Foundation, Inc. This file is part of GCC. @@ -20,6 +20,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "memmodel.h" #include "target.h" #include "tree.h" #include "version.h" @@ -92,6 +93,9 @@ define_builtin_macros_for_compilation_flags (cpp_reader *pfile) if (flag_sanitize & SANITIZE_ADDRESS) cpp_define (pfile, "__SANITIZE_ADDRESS__"); + if (flag_sanitize & SANITIZE_THREAD) + cpp_define (pfile, "__SANITIZE_THREAD__"); + if (optimize_size) cpp_define (pfile, "__OPTIMIZE_SIZE__"); if (optimize) -- cgit v1.2.1