From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by sourceware.org (Postfix) with ESMTPS id EE9473858C32 for ; Mon, 27 May 2024 11:19:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE9473858C32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EE9473858C32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716808763; cv=none; b=HJC+Yfr/FoQTvJJRE4AIpty6ASWB1zS4pbkULCWyZ1+yLPPHYbIG0zLWMuVgM6Pf/nO7XHnZZr8J+0YYTB8mLV5RXK00eeq+T8cfRoOvDzO1+twUa2R7C10sDnXwLyu2NmEzdCnWfgdfIwZalh7oZe4LH6kGHakvW/eIA99CnVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716808763; c=relaxed/simple; bh=GxRntzmTR7R6nfgnllNQhQQVK1c+iSnqv89VC102NEY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Xi7mo2aNxh6xdNVkCiQ0GMQF4vjSozbWnoByVWEBfhWOn9aL3Gvu8ZusBZIw9kOhZSh6/ePO12Y2wRmIsNSsUT/hO1cEWLxXz7D/CdHk8234PR/EiSgOcds7ttSPgskpTqjNruwTLtFBZ5IADCQqZrNS4YHTk/OgzGG6UPyo4Nk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-52962423ed8so3377161e87.2 for ; Mon, 27 May 2024 04:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1716808760; x=1717413560; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TUcuLypJGMJM3r1W1M/FOVVV0C5CSoTeO1s+T3ZHUUM=; b=aa+qhfcn91gLi+oqMymhPsKnpHsgdZUMWydMJ2VA6FYnmhxufajyD+SYaRrc55iUkl SE5LdTEaIbl0GhSK05S9xrlY7iuoTAftepdFnFJQkS1NYNRt5B++6pTkt2SvXT09iybk 1fGW+vHJZIbdHnPvTeT5Fu7f4uQs15q9pIpPbMbXurejlcB+u7MW/XgWNkxcjYtzd+wT yLSvp95cwgD41PBQpeoJxNCrky1VE47gcpmS74plolDfBRoNnn1YsmkR/kMkiT+4rrk7 GfeRkVr1g8gNC38NDmfmzwyBrGBDViTtA0iVCNyvaGKvhGLIcDgtQVLbTACCwU+ppfIX fVQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716808760; x=1717413560; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TUcuLypJGMJM3r1W1M/FOVVV0C5CSoTeO1s+T3ZHUUM=; b=RXvEggrKmR7af+S01+trLwOYqIjkywcYCcW/snrAtnWLKb+iZHheRhsrfiz4cDWdbo CpVFUlxkuOapyBk9+DL8DCa3BtSInfdn5t+m3eCuBWcV1fMpIhY26tP4PU46gc3vZrAb Rr0zqsFZZd8TwnngtopYZPMbAg8aMdc+Xmq/w4x6ibvSAqcebUejOtQ88G7FwXZdOvWD qNEcB9Kn/U/GdEES2AO7xZtKEYqEaaCiUqqDXf0Wq0kR5Xoyzq9Ntm62OnNAL+SUc/c6 NG8pws2/GlFxLN2GJl4ubg5vkQX3CDDmeSrc+BN7ypM0OvyMQ9H08rD4GAGdKIlysctc Wetg== X-Gm-Message-State: AOJu0Yx5/uCzYnMaDwdMpWomRV4Ar3GOm6PasefA725Vy9rtBRyvjajI PWg9mejK7O35IPNo4PebRTi8UOJ6/4QD94q7Ovi/r7aWITn8EdybMBqxqGgIGtBn2dFQETjReaQ 2BLYU1Q== X-Google-Smtp-Source: AGHT+IEheE2zycE+s07XkdWaafV9Mqv5UsQdyT2QESJZfS8jGKsj9hznCJSIWg6JxWHtYuSfcFVtuw== X-Received: by 2002:a05:6512:224c:b0:51f:d989:18f6 with SMTP id 2adb3069b0e04-529645e230emr8644929e87.13.1716808760255; Mon, 27 May 2024 04:19:20 -0700 (PDT) Received: from beast.fritz.box (static.239.130.217.95.clients.your-server.de. [95.217.130.239]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5296e887b1asm519861e87.32.2024.05.27.04.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 04:19:19 -0700 (PDT) From: =?UTF-8?q?Christoph=20M=C3=BCllner?= To: libc-alpha@sourceware.org, Adhemerval Zanella , Palmer Dabbelt , Darius Rad , Andrew Waterman , Philipp Tomsich , Evan Green , DJ Delorie , Vineet Gupta , Kito Cheng , Jeff Law Cc: =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [PATCH v2 06/15] string/strlen: Add mechanism to set function attributes Date: Mon, 27 May 2024 13:18:51 +0200 Message-ID: <20240527111900.1060546-7-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527111900.1060546-1-christoph.muellner@vrull.eu> References: <20240527111900.1060546-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_MANYTO,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This patch introduces the __CODEGEN_ATTRIBUTES macro which can be used to set function attributes when building the code. Signed-off-by: Christoph Müllner --- string/strlen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/string/strlen.c b/string/strlen.c index a0378c500e..dcf03769d7 100644 --- a/string/strlen.c +++ b/string/strlen.c @@ -26,8 +26,13 @@ # define __strlen STRLEN #endif +#ifndef __CODEGEN_ATTRIBUTES +# define __CODEGEN_ATTRIBUTES +#endif + /* Return the length of the null-terminated string STR. Scan for the null terminator quickly by testing four bytes at a time. */ +__CODEGEN_ATTRIBUTES size_t __strlen (const char *str) { -- 2.45.1