From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by sourceware.org (Postfix) with ESMTPS id 9A4523858025 for ; Mon, 14 Mar 2022 10:06:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A4523858025 Received: by mail-ua1-x931.google.com with SMTP id i26so6378960uap.6 for ; Mon, 14 Mar 2022 03:06:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zhrLLjauTAW1eqaAOuVN21mhxxL5WT/2Xn4894PDHsM=; b=Fcb6OXsCpaJLTHtbx7rQPZ0hwMM9N9zdB0hnnO+3erQ2Z+kGlVxJaFnayveBtoo7g1 tvP1zj7+VnsURmwaQJq9yCNJPyW55d8GdczP6+FeOumIUWAaO75rO61mhaiQ32l4nCCm Za/DxPgMJmlOOK2e+I1ClAzBACXsBqhw0Ae+nWJzltOhR4rt1d0dXVLp9jRhK3gI2Lm9 oyyAP8nhe7hGPMn/4Mi4VyymSVxRxD/ataB0BI3SCIAB1RnbD9v7VZg48vlx6I6wtJMK wPadyLkwcq3Iikq40jmXq/3FynM+N2iDlaaymZh74WXrA7qQTrbIWBxcqTKm+wX69nvV Ds/A== X-Gm-Message-State: AOAM532i0MgygtlhUWiArYWGqaIsdnydPf7aFC0gJQBqREIZhVou6ZzH lxuHndVghHL2MdfoxL1ZiQswcwWrLxzNrPCx/w0Dy5exNiiwg2ZnGruHpd0xB3jJvGO4NH1pVOH UKONPwLdRPX8FRDR+0jwE6+gNcfuHZCPirBHWO3a4fVMmAbBpiGQ6JH7kpnzFLiYbuvnl/CN4lN S42H+agZt6ZirKO4MGV2zFb28mCvPoqAjXJIULzzxie3E= X-Google-Smtp-Source: ABdhPJxCHiTnzmvXxOHjkGp5eD2H6ojgCZoP5h4/XKpH3XpCqfnTveZSD4WjOS1ZpmRvUqJhdDOC+L9MX21ZCLwXMww= X-Received: by 2002:ab0:2351:0:b0:347:2121:547a with SMTP id h17-20020ab02351000000b003472121547amr8612443uao.15.1647252368846; Mon, 14 Mar 2022 03:06:08 -0700 (PDT) MIME-Version: 1.0 References: <43782800-80df-c4ce-9379-c4bb3c6c60a4@foss.arm.com> In-Reply-To: <43782800-80df-c4ce-9379-c4bb3c6c60a4@foss.arm.com> From: Gabriele Favalessa Date: Mon, 14 Mar 2022 11:05:58 +0100 Message-ID: Subject: Re: ARM: code size increase starting from gcc 10 To: Richard Earnshaw Cc: gcc-help@gcc.gnu.org X-CLOUD-SEC-AV-Sent: true X-CLOUD-SEC-AV-Info: rzerosystems,google_mail,monitor X-Gm-Spam: 0 X-Gm-Phishy: 0 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2022 10:06:12 -0000 On Fri, Mar 11, 2022 at 4:20 PM Richard Earnshaw < Richard.Earnshaw@foss.arm.com> wrote: > > 1) why newer gcc versions don't generate the smallest possible size in > > spite of -Os? > > The compiler is trying to identify opportunities to generate even better > code for more common cases. > > > 2) is there a way to get the smaller code with newer gcc versions? > > Unfortunately, no. At least not at present. Thanks, the info you provided was very helpful in understanding my options. Gabriele