From patchwork Mon Oct 9 18:53:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 115294 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2881612qgn; Mon, 9 Oct 2017 11:53:36 -0700 (PDT) X-Received: by 10.99.43.150 with SMTP id r144mr2672287pgr.380.1507575216135; Mon, 09 Oct 2017 11:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507575216; cv=none; d=google.com; s=arc-20160816; b=HIVHNA6QELdZ2y9QbY9hXEYFebbPw3hwbrgU8KHSIWUrxvNOHQNdnd9FLFxuPLabkH FgwkTxNXJ6OV4DiuUYjDzrBVME/BeiINRKpOhvkmKUmwLykigDpf9subCHrYr34G7ePe xE18HzKROSyfr6hTgDm5dpL/JIcE7rryVV3PhA2mmZs1A+QwD7PL5FeOLYp2Fr9ne+U+ Pojt+WmmBiglUnK5pVV5xYmC3WKOVLclINulkBngSBMj+QRJbYz+nzg76J2Nw4yltfYL gP/bU4c+XcWDbLlycXSlc8+d4Q2I7XsWpZiJfihoSVUsPtv1PTcf147M4cOOMrSCN9o5 064w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=+4D/Q2zwR55SUrGUN2SyyyxBAS4VOR3FI8qXtvtWrCE=; b=mG5FPwRUc5puJCn3hjyqQM1UykdDUZvjXLt3MYwPLaWf7lD/696C5nrkn7Ss/wvpdH uYtGqr7fmSEznaUYBtj5flcqjH6lQGkaUZR39mP4Pnee2qvEPQOfRsOOP96dhkxOHnGx eTF23e/EmexQGbClzzB7nelwgSqxSUKbqmfPuhZVIbpgz/dd7vYRh8HTv70GRmamyvvn Gl5FBL11MKTL5L/lmS5wtXi2Uc9fSAKxerVfNldWEmvyaA50dtjplRThXvcz2YaZBoVe ccdtVSVk/nLODqQV0ZWlKTtQetMsOVoB9z0bzq0rNM59WdB+Aa5SGcgRnTrnctskSr8v Pfdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bRLJLtzN; spf=pass (google.com: domain of gcc-patches-return-463797-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-463797-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 185si7437653pfb.265.2017.10.09.11.53.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 11:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-463797-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bRLJLtzN; spf=pass (google.com: domain of gcc-patches-return-463797-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-463797-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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; q=dns; s=default; b=rnyXi0v/mseZvrN tCpkYWUGL+GdZ9FYjht7/yBYtlz8qmcMfVvgO30XoL6EEW8R+uuvYFarmfflLINM vchRFalTmTZyjL992FCImjn4jN+wg9A4tfmKGngMS7vRFCKWn7+9nhYSx9XxW0J5 jOK/3udbEEdmzDkcKeYVEqkF6QtQ= 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; s=default; bh=E1lmsvBZa/iKXSk6Jl8Ar cRbwgM=; b=bRLJLtzN0Je2SmNcCTf7Ubtd2t+I6e4mDf24eFW4kKz8T963sHbRq 7IrK7t+hX2WsX5PjbR+wY09KGpgg28fNHAP/r3Lo4x0arn0AoCe3pvyClk9m6My6 IUnH9IzQ0UUN4x2oRYV+ClcfR9MOan/eWsAn8FMT45mQpaGXAElfhM= Received: (qmail 29193 invoked by alias); 9 Oct 2017 18:53:24 -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 29176 invoked by uid 89); 9 Oct 2017 18:53:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1241 X-HELO: mail-qk0-f169.google.com Received: from mail-qk0-f169.google.com (HELO mail-qk0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Oct 2017 18:53:21 +0000 Received: by mail-qk0-f169.google.com with SMTP id w63so24518035qkd.10 for ; Mon, 09 Oct 2017 11:53:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=+4D/Q2zwR55SUrGUN2SyyyxBAS4VOR3FI8qXtvtWrCE=; b=tvMqsuc6jiC1liQMVQcjS2BeqkG9HqYCoPz5L1weglsFULpcvtheOup+PjfJ/OT6dg prf2zGTrLvyqvUmlzD4zizwst/C5jdyQDKv9LEMMrXuXfTRbWLMk0+3iRVfsjRbiENu6 rMbSbLn6TWSTaV+Yt8ugcAVfeWNZweHstP5UsYKO2aASGjquRYF2OXF1/vbCqEgrstBG CCChkVPE1xhUPIB2rnlzMysWXC/xEjltx0gYlLmNpHTywxSmUFO/HrbZJHea/IXt6Du3 TEJLs2XHd2pSOGzSNonPh6JVeaqaOGE/DE1qwdoSHaatr96ldiDeYu7Nkd0JodZrPu0+ el1Q== X-Gm-Message-State: AMCzsaVXflTjgns/cK3+JnFfFeEVdLVvCQaAnHNDpN9va5nG5tQEpsGm XlnmdjAQNXurR43KMdh8kUl6HGrpbw4= X-Google-Smtp-Source: AOwi7QBsEdmHxRlbvz8N69rQKhUHBtIZZbLB2T3woZ6bfQMbFVFmEG3FtUWu+UhnfSRCSigNvnwT8g== X-Received: by 10.55.44.67 with SMTP id s64mr10333088qkh.284.1507575199163; Mon, 09 Oct 2017 11:53:19 -0700 (PDT) Received: from localhost.localdomain ([177.194.124.3]) by smtp.googlemail.com with ESMTPSA id a6sm5306652qth.53.2017.10.09.11.53.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Oct 2017 11:53:18 -0700 (PDT) From: Adhemerval Zanella To: gcc-patches@gcc.gnu.org Subject: [PATCH] Enable ifunc attribute by default for ARM GNU/Linux Date: Mon, 9 Oct 2017 15:53:12 -0300 Message-Id: <1507575192-12814-1-git-send-email-adhemerval.zanella@linaro.org> X-IsSubscribed: yes Similar to other architectures with IFUNC binutils/glibc support, this patch enables the ifunc attribute for ARM GNU/Linux. Although not required for build master GLIBC, the intention is to allow refactor its assembly implementation to C [1]. Tested compilation of glibc (in conjunction with a glibc patch to support using the attribute on ARM) with build-many-glibcs.py (with a patch to add a armv7 variant which enables multiarch). I have not run the GCC tests for ARM. Adhemerval Zanella * config.gcc (default_gnu_indirect_function): Default to yes for arm*-*-linux* with glibc. [1] https://sourceware.org/ml/libc-alpha/2017-10/msg00334.html --- gcc/ChangeLog | 5 +++++ gcc/config.gcc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/gcc/config.gcc b/gcc/config.gcc index 91a55e8..26aa8f6 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3104,7 +3104,7 @@ case ${target} in ;; *-*-linux*) case ${target} in - aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-*) + aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-* | arm*-*) default_gnu_indirect_function=yes ;; esac