From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 3E583385782A for ; Wed, 2 Nov 2022 14:56:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3E583385782A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ot1-x330.google.com with SMTP id a13-20020a9d6e8d000000b00668d65fc44fso10410500otr.9 for ; Wed, 02 Nov 2022 07:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=lUjO3hVpbC0OIoRHy1nAQt1zI4GHPdtrzBee4KK7zmQ=; b=MGLo890sBfmVC/LtLmQHzDx9nS/Sb8C3G1wDnAqnYZRmLY+MYsJ61mli3Dzh3qTfhv +pKjNGtDewryPHSvtG+L8Rs56lHiD3Tbrl3s6rhODaowHBWDxZ4E2Hu9TBaF59ZA31Qc hIP24EHjm1+zCk8y5fJyQyBgj2Df2B89VL/VS1cW8oNRz77XBspy8sVAQuKesWp9gbqa +TPb8lsmsgdMLi5QqyzPMtzNGGeDporLSsLvlP8GGltBNl0he93NpgCKALOfJxRwxgu6 D9cx5Ur0sAkzEHFvFZY2MY7OwFxXkFkaalW0Dd9Ujd18oDYAHnTwml0QFkaLJIZL0gps plag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lUjO3hVpbC0OIoRHy1nAQt1zI4GHPdtrzBee4KK7zmQ=; b=wF/ncLYKwMxil/oy6YDRslpGAdrH8r3A+vaKH5NWR6jFOu21NBSznVHsmwS9LAUv0w 3alCWIvK+TQz+Q7qckBetB2nkIPzk1vxrt+Cd+Lh1cQx69jUultUA6H6HkgZv7JstX2T rUdNRJTFg/SYvbddu84K8nhLH+QaxPvoQV221jP+qTguklm4HfEHbjNPCz7yovQrS4Hl RtEpYXxsMxuOu1elGWtR6aM68QiiXg3gAfgWGJzo5PGzjbJVkLdAIg4f1oX3ELRw+pxc VkPvUNEicKfDlPt1L+v25vP8rOPkVzZTYRcwfSg1lFWbhu+fGglPOgq5aO+KYHEfhSCV eL1g== X-Gm-Message-State: ACrzQf0RdQxJbMWXvNvFSsQDW++x7p7md9tNqdZByQvv2CArjFftGX8k JnfXeA8oI70WUa3w0DV3G/u03vH5HTM22cyC X-Google-Smtp-Source: AMsMyM6eqhw8kQRQnvPQ6pN5QW2Unh7L1EPbN1IpoD4hDeT7Gqt06UyGUE1NkoQOXedosHZMUQeVhA== X-Received: by 2002:a05:6830:368e:b0:660:d53a:1e95 with SMTP id bk14-20020a056830368e00b00660d53a1e95mr12565407otb.120.1667400972380; Wed, 02 Nov 2022 07:56:12 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:a9f4:967f:f7c:c187:85d7]) by smtp.gmail.com with ESMTPSA id 37-20020a9d0328000000b00661af2f9a1asm5205767otv.49.2022.11.02.07.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 07:56:11 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Fangrui Song Subject: [PATCH v2 1/4] Disable __USE_EXTERN_INLINES for clang Date: Wed, 2 Nov 2022 11:55:56 -0300 Message-Id: <20221102145559.1962008-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221102145559.1962008-1-adhemerval.zanella@linaro.org> References: <20221102145559.1962008-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 List-Id: From: Fangrui Song clang does not allow to redefine attributes after function declaration. Although it work for external usage, its breaks the build for internal symbol that glibc provides as optimization (for instance bsearch with stdlib-bsearch.h or __cmsg_nxthdr). Disable such optimization for clang while building glibc. --- include/features.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/features.h b/include/features.h index 123de9fd47..4a3fe34267 100644 --- a/include/features.h +++ b/include/features.h @@ -502,7 +502,7 @@ /* Decide whether we can define 'extern inline' functions in headers. */ #if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \ && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \ - && defined __extern_inline + && defined __extern_inline && !(defined __clang__ && defined _LIBC) # define __USE_EXTERN_INLINES 1 #endif -- 2.34.1