Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1481814rwo; Wed, 2 Aug 2023 15:05:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2gPcnz7izxmLZ1ZzuUyr+ccHAgLIy56PRnF/nmi0tpk7scnUlllqagpPHM0ONddYW8vE3 X-Received: by 2002:a05:6a20:3256:b0:132:2f7d:29ca with SMTP id hm22-20020a056a20325600b001322f7d29camr16756783pzc.24.1691013948628; Wed, 02 Aug 2023 15:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691013948; cv=none; d=google.com; s=arc-20160816; b=Bx0xu2BJ/BXAY+vgZtWv7suVUCKlco9BM6J/iPLeEfZEzZ2h/BAqghzcCkNh0e5eoO 5NMeR5PQCWfpFnW+2MmbPNmkMZ9Wfd1DYiHTOj8JzClNVr7ecsohWnj7oP1fygprqld6 QmnhS0nqJiwAdDwj8hhk7GAQzBXqrS4UjO7n/Iev5mPIhgdCEeaOOqscZsaDiqjyFc0U DsSnCfV5K7zKYZ2tiggzv/RChquCdsE0GNdcoHum+CnU+qnXbms36epG65F9hy7Z7ksU LYlBA0TCT4F5PcGAMEbuuKwWV98YS59YVF5z0NCzd4AxR52MUcmZZ8UoAmxyY676haWp PXVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6/6tPoTYebNDc9Ih8JFOYCryEIMQgG0g7V7J8tzoJ9M=; fh=M3AUAxTUWNYFeFNWqthPIoGyYOSXDZNP5pK0PgGhcBA=; b=cTB0jV0h9r/Nt1RWOw+FM/KqF9FPmhBVF8KYA06HScY9hWmwDRYy0BokTLDFwRqJmw krMb4cLDYfpPzAezQg4+aTdRIinK9p6tOB3yXfy/nZPsTChTWiXhiKr+u7Y6Maj+Wqp4 TAwL3uH2ju1UlUKkW0yNlljlRvbncF43dvq94jLV2ybIDhoBY0uXD4e1gX3eKo2x8os6 cRtOT/ZX8Wa/OwnsygfN0KsA+0N8ocyD50cijFUXi7eu4QRnLL86xjDnh5h0NFv7V1jd rU0TrQkWfaRfCmuf++lgHXbIjtV6vL8eeIUbKNiRJd9BcNIxjsFoJTOW0C2calld/SEV Dc9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=HrYxwDXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a63f641000000b00553810ea8e5si1436304pgj.303.2023.08.02.15.05.33; Wed, 02 Aug 2023 15:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=HrYxwDXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231194AbjHBVge (ORCPT + 99 others); Wed, 2 Aug 2023 17:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjHBVgd (ORCPT ); Wed, 2 Aug 2023 17:36:33 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 959DD10C7; Wed, 2 Aug 2023 14:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1691012190; bh=Kl3ThNCjJRX0Aikin/vSGRtztwQOGkS9N+bnYGYxVg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HrYxwDXieT4uTgqq54AsOXtG/eHRw7RnSR/I4oaqE4Y+hDIGzKc4uG1VZa3YLvy7u Ttr8zeFRgTRHXUSow0L5pOlR4JLwcQ50AmINMQJyPAGldLkTJcBNUCL45SLtP9tlhg RgQWcK5WOhLw6VZt1dgKJQCgaxp89hrscQB4O8RY= Date: Wed, 2 Aug 2023 23:36:30 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Zhangjin Wu Cc: w@1wt.eu, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, tanyuan@tinylab.org Subject: Re: [PATCH v4 08/12] selftests/nolibc: add test support for ppc Message-ID: <98629d86-eca8-4cad-aedc-2e2328a4f6ab@t-8ch.de> References: <20230802103217.231036-1-falcon@tinylab.org> <20230802160358.407890-1-falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802160358.407890-1-falcon@tinylab.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-08-03 00:03:58+0800, Zhangjin Wu wrote: > Hi, Willy, Hi Thomas > > I'm so happy to share with you, we have solved all of the left found > issues, include the ones about ppc and the missing poweroff options for > the tinyconfig series, will renew both series ;-) Can we stick to one series at a time? > > Further compared the preprocessed files, found the root cause is the new > > compiler using 'no_stack_protector' instead of > > '__optimize__("-fno-stack-protector")'. And the attribute 'no_stack_protector' > > breaks our "omit-frame-pointer" like the failure with '-O0' we fixed before. > > > > I checked some of the other architectures, they didn't have the same issue, but > > test shows the 'no_stack_protector' attribute does have such compability issue > > here. > > > > I learned the commit message of tools/include/nolibc/compiler.h, seems > > __optimize__("-fno-stack-protector") is enough for all of the nolibc supported > > architectures? is it ok for us to simply give up 'no_stack_protector' > > eventully? otherwise, we should manually disable 'no_stack_protector' for > > ppc32: > > > > #define __no_stack_protector __attribute__((__optimize__("-fno-stack-protector"))) > > > > Hello, any suggestion here? ;-) Patience :-) no_stack_protector is the offically documented mechanism to disable stack protector for a function. As it works for all other architectures this seems like a compiler bug. If we want to work around it I would prefer to have both attributes. > [..] Thomas