From patchwork Tue Oct 18 09:39:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 4055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1861909wrs; Tue, 18 Oct 2022 02:40:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7I36KbZ+GGqM0HhdSHFcwUOUHvdUboLL4ydyGLCCYQWwifg00pMn//cFuNaafVpBkt3J+0 X-Received: by 2002:a17:907:161f:b0:78e:11b3:8962 with SMTP id hb31-20020a170907161f00b0078e11b38962mr1698642ejc.0.1666086019396; Tue, 18 Oct 2022 02:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666086019; cv=none; d=google.com; s=arc-20160816; b=YABbin2gOkvUR9lLMcA5Tfm/Xm1hCtEoYHfxclw8vw2Yo3g/TK8LnatIY7vgMA3ahc YH19FGnmLjaN7RDtA3A5udO/rcfwo2veyR6tXvqjF7UZZYsgX0JNbKk1hdJjT4DplkPY e1kl85n31neqRMtm1MIvYN2aZERPamRFPo3m0p92lVlp1hUPkyC9aKWwGJt/NIZLLree VXV+asNSwYFx9KqJnJ+NHV6QxcrZdoyB97VHhqp4+eDCUEt6fv3shZGSZTSP1Tic4qRC YmrUxyPuwR7eNXnArmX58/oqtcFFhV20C4o8an/8uPgzW0Jp/SJvrbyhTPcwECN5dUGz dMYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=s21FrG7uLsrGw7mKSZQIrESERLKOW0Ke0QxLtZQT4sw=; b=jqw3d7jAl4lJ/jQYm6DpDSc/gd/hts59qEo2hJo3/BwLSR5Wl8lyvGVRm7JOmGuDfJ nXkNEAykMd3ZWHjGsCFUVlEyfNocCbEvcYEEwRvobUXvSGBR9p7QL7nhTx2V6zaOeqB0 XfCoV8SglEeFXesgSsgWorLVtRN8NRSUSYq3obDTNwhoq6v1chS9E2R7LjI8GB22eZAV qCvJCyJ9A9PpjJFCuUvBppTWf0/iv5XA4uOWBNUG3hYULodN03yFeN/58lVFlw8oy3uk Fm7w0EqHgXkSJBj0wz/NL3X6qXtGusJPmPclxh2HRgqN/NI4IJiccZ3k2cjWKkMl1Ym1 /Nzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=AoZBDcvG; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id m3-20020a1709061ec300b0078c25fb3842si11061417ejj.370.2022.10.18.02.40.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 02:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=AoZBDcvG; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 37720385800F for ; Tue, 18 Oct 2022 09:40:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37720385800F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666086018; bh=s21FrG7uLsrGw7mKSZQIrESERLKOW0Ke0QxLtZQT4sw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=AoZBDcvGpnRdo5+vISQSay9rgENvR42WzUwq6YVFCuxJ6gRn7qPyx/imP2B2dju4w wDne9GMdpq22sEWAhAGtOl8Qi3Kh8mAlgKO98W+gs6LH4QVhnoh7RKVBpZ+KQppi8J WCH/9odSwoOKr/FbtBjE//grgqOsFuchDpVJPYIQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 3B1393858C83 for ; Tue, 18 Oct 2022 09:39:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B1393858C83 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-182-PPxkT6GvPxWiVbIOENos0g-1; Tue, 18 Oct 2022 05:39:28 -0400 X-MC-Unique: PPxkT6GvPxWiVbIOENos0g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 66A1C185A7AB for ; Tue, 18 Oct 2022 09:39:28 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C6FE340C6F75 for ; Tue, 18 Oct 2022 09:39:27 +0000 (UTC) To: gcc-patches@gcc.gnu.org Subject: [PATCH] libsanitizer: Avoid implicit function declaration in configure test Date: Tue, 18 Oct 2022 11:39:25 +0200 Message-ID: <87r0z5jws2.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Gcc-patches From: Florian Weimer Reply-To: Florian Weimer Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747017813567512634?= X-GMAIL-MSGID: =?utf-8?q?1747017813567512634?= libsanitizer/ * configure.ac (check for necessary platform features): Include for syscall prototype. * configure: Regenerate. --- libsanitizer/configure | 5 +++-- libsanitizer/configure.ac | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) base-commit: acdb24166d13d87c374e578d2ad5d58249171930 diff --git a/libsanitizer/configure b/libsanitizer/configure index 3a0c47513e7..cb99faf6100 100755 --- a/libsanitizer/configure +++ b/libsanitizer/configure @@ -12383,7 +12383,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12386 "configure" +#line 12398 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12489,7 +12489,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12492 "configure" +#line 12504 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16072,6 +16072,7 @@ case "$target" in cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include +#include int main () { diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac index 7f1ef3979c4..ad49f29db7e 100644 --- a/libsanitizer/configure.ac +++ b/libsanitizer/configure.ac @@ -161,7 +161,8 @@ case "$target" in *-*-linux*) # Some old Linux distributions miss required syscalls. sanitizer_supported=no - AC_TRY_COMPILE([#include ],[ + AC_TRY_COMPILE([#include +#include ],[ syscall (__NR_gettid); syscall (__NR_futex); syscall (__NR_exit_group);