From patchwork Sun Apr 2 21:33:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 78306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1926107vqo; Sun, 2 Apr 2023 14:34:40 -0700 (PDT) X-Google-Smtp-Source: AKy350bEUJViCS0tnXI2geT6AIwUMuULlnDbffNDPvWkhJsqmWeyXzAOMeJ25Hu33BMx6OQq/SIB X-Received: by 2002:a17:906:bc4c:b0:947:d3f0:8328 with SMTP id s12-20020a170906bc4c00b00947d3f08328mr6951923ejv.1.1680471280028; Sun, 02 Apr 2023 14:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680471280; cv=none; d=google.com; s=arc-20160816; b=ciowVpET7fEKAjv7HgqhVgTwV2HW5rWUy1I6Sq0VfRFr3JconiGim3CPtlKVEx/RCS 6/B1XpS8XLwhy4em4JjsPBy6VPu/tbjkFKTIk9p17l4rwYxIRIzOfXNUzqNqYVo60ARL A6WVNVRRAYAAHaqt671rB6hpFjwmr4+IkkY0MCwj3duNSSvU+uR5ZLYiwJ0VVFYQLDGo fgzWXpynGpNptgG6Xg7b6RyDKl/oDK2rEiYB7GdEdiALWVdBSAMCwBYCc2W8UB+zZDGS 3LGMn5hKIPQqk/pyo4HmovsGe5VuRGlM1vHMx9y8N8zfhvj+V+JsN9qw/ZPgvvJSpzJw qvMA== 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 :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=hGVAMBX/essXS+fQTmYypxRxSHyUnqs2tlbz0e0phCg=; b=LEJM/udY3ioJtq6bNp54dE1o8DexVyOmLBJm7zBXdHBbxRIoL2HY0NMJXRvXEVxpkK eNzy9P9ey5YPp9TbklzOjxwbQ3OD+VCFpueggSF41fFxdUBKzd9K7ADhWUkqKGHcSrD2 qHoim4ID/jhNDhgXLhWg/0kFaVK1InotZz7Vd9PXSzwDIt3jwOMoiivZusFmkTcr7Cia s8gMiwfmVuyOchiSuuF3zxGkzTs7QkBj9CxYEIOlJrSSZw84+giv4ldxb8N54LHvvs7V VBADzsoqk9B+fXq4kwNHz2JJ51JZAJXIEU2aJjHiBcjBY03p6n5EPAcVttaQUoO3ajCm tpXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=QpLG6HdO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id b20-20020aa7c6d4000000b004acdd3b83d2si3980619eds.14.2023.04.02.14.34.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 14:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=QpLG6HdO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 F31EB3858C52 for ; Sun, 2 Apr 2023 21:34:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F31EB3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680471279; bh=hGVAMBX/essXS+fQTmYypxRxSHyUnqs2tlbz0e0phCg=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=QpLG6HdOD3DGt+YFRzYiCbBc0JTc+dxRxnvIl7G+W9qQ4OWPMBLx52CDWEhhvercR 0gIJwRVMTA1L4LeX6LhJszZ7XMvSCu+YEhaBg26tqW9PTIEcA/np9dXLIAMJqVNiKO FIHCnrfIgIPjvO0gr0k5UNajFPaMPv3VZ2UWhljw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 312D73858CDB for ; Sun, 2 Apr 2023 21:33:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 312D73858CDB To: gcc-patches@gcc.gnu.org Cc: Kito Cheng , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Ju-Zhe Zhong , Jeff Law , Sam James Subject: [PATCH v5] gcc: Drop obsolete INCLUDE_PTHREAD_H Date: Sun, 2 Apr 2023 22:33:45 +0100 Message-Id: <20230402213345.632989-1-sam@gentoo.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, 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: Sam James via Gcc-patches From: Sam James Reply-To: Sam James 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?1762101852895961801?= X-GMAIL-MSGID: =?utf-8?q?1762101852895961801?= INCLUDE_PTHREAD_H was added for r13-1350-g49d508065bdd36 for a calloc poisoning issue like r13-6662-g0e6f87835ccabf. When working on r13-6662-g0e6f87835ccabf, we realised that INCLUDE_PTHREAD_H became unused as of r13-4164-g0a62889c7a155f (which was originally added for r13-1350-g49d508065bdd36 for a similar musl issue). I originally tried to use INCLUDE_PTHREAD_H in r13-6662-g0e6f87835ccabf even though it was the wrong solution, so let's drop it given it's both: 1. now obsolete; 2. a bit confusing. Nothing is using this to guard inclusion of pthread.h and it only ever had one consumer in the tree which is now gone. gcc/ChangeLog: * system.h: Drop unused INCLUDE_PTHREAD_H. Thanks-to: Andrew Pinski Signed-off-by: Sam James --- gcc/system.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/system.h b/gcc/system.h index cf45db3f97e..3fdad7abf1e 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -761,10 +761,6 @@ extern int vsnprintf (char *, size_t, const char *, va_list); #endif #endif -#ifdef INCLUDE_PTHREAD_H -#include -#endif - #ifdef INCLUDE_ISL #ifdef HAVE_isl #include