From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by sourceware.org (Postfix) with ESMTPS id 6757E3858422 for ; Thu, 22 Sep 2022 10:56:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6757E3858422 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-3450990b0aeso93998527b3.12 for ; Thu, 22 Sep 2022 03:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=05oSGpIiEYDM3F7mUCFvIahgbxhspdVw+SQ8MDDrJxc=; b=SPagMjqC1yTeH1XaDpvVZmHu1c+lmUNs+RAeVHef8qkM6FbbIYZfA8TtMdqiYTitZs Ho0cV4wVhFW6jsdkGVNc+RPgCbBGBmZzA/r1Sigd6EqTRdbeK9y86fUrVWuj+jktbA8B fn0r1F/MSSQknislWDWZWdgrMF+z5KSu3oJLTxwgKAG2C+B/+kVQ+Ef6WKdDtz7KHDDK D2nYTR/Yt4t/LCTRjE59s1DVopNVXCBmU4u3Ve1G4PaSLXVS6o5Np/AXt5TnGJ5cnNJu 2T33oGd1Njtn8xWCwfWp5OikrZpEiEqjR5aKW1DOSUBvPkxkul0HPRzQiNmKWRrDFhzd LBfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=05oSGpIiEYDM3F7mUCFvIahgbxhspdVw+SQ8MDDrJxc=; b=jPha2kKYxMj7SNR8oecQDxzYSmWvEnv5p7bBMN4SElFl/1+YJgvfCKd1RIDLiGx6nT BgnPTo1ygmQjoyo2RYwWUnAIrtmImcroDcQEIW9AP/po/0MbskaygfF4+wRYptRwO6t+ 6rrvt+0CO4SC2Q7xwBfSO88EhYYqspymR6n7qmlZEqVS+f7O5yLpJAs04jrlftR7zcE6 TXzWNApPyoTQArZhD3rmTQy82SVoxmyFXwIxD15jDF72zJjncNpInCXgiOvBjqD/VGXT 8LYpK/MbNlSSlgN3FBxPmJT1mzEZDioI2lcLowmeWA12TqY3wRdWUTDbIleJPGbAKCOX EJEw== X-Gm-Message-State: ACrzQf1OQippoLnRszFIXD1D/Y9SWWO7oN+ROGobObJSC2N805zl9JWh 50O7xzTyjlzoWiPhBwy5H8BVnKGQiIUqeuvRHhUX8hOxDrWY+Q== X-Google-Smtp-Source: AMsMyM7AD+qmAH5zyShHAzcQBb18f8LcmAYEkYqyHW+4Ec6XV1m2wZYZQ8HPOAreIS+WwvuhmktPyQ6g4GYpYabab4o= X-Received: by 2002:a81:5790:0:b0:348:9584:bf4b with SMTP id l138-20020a815790000000b003489584bf4bmr2428618ywb.483.1663844218662; Thu, 22 Sep 2022 03:56:58 -0700 (PDT) MIME-Version: 1.0 References: <20220913215743.2712390-1-jcmvbkbc@gmail.com> In-Reply-To: <20220913215743.2712390-1-jcmvbkbc@gmail.com> From: Max Filippov Date: Thu, 22 Sep 2022 03:56:47 -0700 Message-ID: Subject: Re: [PATCH] xtensa: gcc: implement MI thunk generation for call0 ABI To: gcc-patches@gcc.gnu.org Cc: "Takayuki 'January June' Suwa" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Sep 13, 2022 at 2:58 PM Max Filippov wrote: > > Suwa-san, could you please take a look? > > This change fixes the fowllowing testsuite failures when building for > call0 ABI: > > g++.dg/ipa/pr60640-4.C > g++.dg/ipa/pr83549.C > g++.dg/ipa/pr83667.C > g++.dg/torture/pr81812.C > > gcc/ > * config/xtensa/xtensa.cc (xtensa_can_output_mi_thunk) > (xtensa_output_mi_thunk): New functions. > (TARGET_ASM_CAN_OUTPUT_MI_THUNK) > (TARGET_ASM_OUTPUT_MI_THUNK): New macro definitions. > (xtensa_prepare_expand_call): Use fixed register a8 as temporary > when called with reload_completed set to 1. > --- > gcc/config/xtensa/xtensa.cc | 116 +++++++++++++++++++++++++++++++++++- > 1 file changed, 115 insertions(+), 1 deletion(-) Regtested for target=xtensa-linux-uclibc, no new regressions. Committed to master. -- Thanks. -- Max