From patchwork Wed Feb 8 11:07:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 725596 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vJJMd38hGz9s2G for ; Wed, 8 Feb 2017 22:07:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="QgtJQJeM"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version :content-transfer-encoding:content-type; q=dns; s=default; b=qbV pXXk7mjLlcYYMFwcf31Kk/ra6Pby6q+rF9iJMDam8VF+qzTgpip3tcNOqeGzqDiZ 6eYGGQKoZDOtsQ+l+7aZzkxU8b3G2RDWRoI7V5DzJMPchbumgx0HqEQzXvP+jFRN eafi8c356ICpMr44GfRlhw+9AAiZOg6RFrtvtsko= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=default; bh=3+kVF+9zw QgVfbr5mqPdsZgkTlI=; b=QgtJQJeMfqqSLFuKWvodXiajBwblIXZvCC4xhzm7z W0iGKcSDPeChtbmF5dhjZKEJdchBTciDGleywTezoq0UUAmENURt4qmRXEr9ITzH 7HQgAA6dpLtZScs+MtjMoegJFfR1B+lKwRPgdHp/wl/72YaPpk5ofRRPj3dizDiY Zo= Received: (qmail 56350 invoked by alias); 8 Feb 2017 11:07:30 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 55511 invoked by uid 89); 8 Feb 2017 11:07:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Stand, Heike, heike, uns X-HELO: mx1.emlix.com Received: from mx1.emlix.com (HELO mx1.emlix.com) (46.4.235.150) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Feb 2017 11:07:19 +0000 Received: from mailer.emlix.com (unknown [80.150.94.234]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 62478140618 for ; Wed, 8 Feb 2017 12:07:16 +0100 (CET) Received: by mailer.emlix.com id 1cbQ6f-00033O-Ov; Wed, 08 Feb 2017 12:08:13 +0100 From: Rolf Eike Beer To: gcc-patches@gcc.gnu.org Subject: [PATCH] asan: fix missing include of signal.h Date: Wed, 08 Feb 2017 12:07:16 +0100 Message-ID: <6824253.3U2boEivI2@devpool21> MIME-Version: 1.0 From 205aa8e97bab553e5e6fe45896325e97962de704 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 8 Feb 2017 11:42:52 +0100 Subject: [PATCH] asan: fix missing include of signal.h This breaks when building gcc 5.4.0 with target_platform=powerpc-unknown-linux-gnu with glibc 2.25: ../../../../gcc-host/libsanitizer/asan/asan_linux.cc: In function 'bool __asan::AsanInterceptsSignal(int)': ../../../../gcc-host/libsanitizer/asan/asan_linux.cc:222:20: error: 'SIGSEGV' was not declared in this scope return signum == SIGSEGV && common_flags()->handle_segv; This applies only to gcc-5-branch, the code has been reworked for gcc 6. --- libsanitizer/asan/asan_linux.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libsanitizer/asan/asan_linux.cc b/libsanitizer/asan/asan_linux.cc index c504168..59087b9 100644 --- a/libsanitizer/asan/asan_linux.cc +++ b/libsanitizer/asan/asan_linux.cc @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include