From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by gnuweeb.org (Postfix) with ESMTPSA id 124F67E34A for ; Tue, 22 Mar 2022 14:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1647960490; bh=nhc/SeLNGo4re2yxQ5GoFnaoYMAKUce8gFXe5zfGqKM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=P6BxpChDot2nfSG+lx9YbB3VILHuaugqpPNbFL95BMy34lnRQwG4iNbW6VrAGY4Ey L/mWHHvhIDuy8yL2rIvcGfwIoUumgpc2paCDCL9bbzV2FQApI+EEC+T2KVo3dwF5kZ UCpMGMwkfFIdBfmigZ3qP/xvA1cz10ZDcuHwEe6bxM6tSJVO6gMRew0l5e08w3oTLy qvT5ZPQtNpAJkps2BOTDJv2WMJv2w6hxYksB5PKzWfyYGZUGrwfEfji1k2F8vyuK9C DWoFhwN2WGFsPh8UY+gT1kpqqwBXv5jQDkAYqbwcBQHGuboL3kwVv7oCTQbL9FPR5W Nd8a3isHmV2Jg== Received: by mail-lf1-f42.google.com with SMTP id t25so30189128lfg.7 for ; Tue, 22 Mar 2022 07:48:09 -0700 (PDT) X-Gm-Message-State: AOAM530kKNPnwBkBo0YySEGyFdQWIH+BHk7vYE5RqXcka58D85kA7XV4 k0Lv8Hy541XyICUbeod4C/0iqBds90bTx0kYh7Y= X-Google-Smtp-Source: ABdhPJws2O+yg6MTOzRKnrJ03Qv3OmYB19iwU83i646P4wI3U5QwCr8Nh6DmLxi2UmhoItx5UgiRuFRnOThEvm9siNM= X-Received: by 2002:a05:6512:c06:b0:44a:2a0f:9d3c with SMTP id z6-20020a0565120c0600b0044a2a0f9d3cmr7838759lfu.136.1647960488026; Tue, 22 Mar 2022 07:48:08 -0700 (PDT) MIME-Version: 1.0 References: <20220322102115.186179-1-ammarfaizi2@gnuweeb.org> <20220322102115.186179-4-ammarfaizi2@gnuweeb.org> <8653f6784a9b4272a59a75a530663567@AcuMS.aculab.com> <20220322121338.GD10306@1wt.eu> <22fd9709b3a64a548226741b682ca155@AcuMS.aculab.com> In-Reply-To: <22fd9709b3a64a548226741b682ca155@AcuMS.aculab.com> From: Alviro Iskandar Setiawan Date: Tue, 22 Mar 2022 21:47:56 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 3/8] tools/nolibc: i386: Implement syscall with 6 arguments To: David Laight Cc: Willy Tarreau , Ammar Faizi , "Paul E. McKenney" , Nugraha , Linux Kernel Mailing List , "GNU/Weeb Mailing List" , "x86@kernel.org" , "llvm@lists.linux.dev" Content-Type: text/plain; charset="UTF-8" List-Id: On Tue, Mar 22, 2022 at 8:37 PM David Laight wrote: > dunno, 'asm' register variables are rather more horrid and > should probably only be used (for asm statements) when there aren't > suitable register constraints. > > (I'm sure there is a comment about that in the gcc docs.) I don't find the comment that says so here: https://gcc.gnu.org/onlinedocs/gcc/Local-Register-Variables.html The current code looks valid to me, but I would still prefer to use the explicit register constraints instead of always using "r"(var) if available. No strong reason in denying that, tho. Still looks good. -- Viro