| Message ID | 20260416210047.2198615-1-joel@rtems.org |
|---|---|
| Headers |
Return-Path: <newlib-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 4092E4A9F1F5 for <patchwork@sourceware.org>; Thu, 16 Apr 2026 21:01:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4092E4A9F1F5 X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) by sourceware.org (Postfix) with ESMTPS id 816204BB58F5 for <newlib@sourceware.org>; Thu, 16 Apr 2026 21:01:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 816204BB58F5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 816204BB58F5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.178 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776373281; cv=none; b=P/6/vDJ42KHXKKJhtuoGtntxRAAYd/zl0G89qZ/yrJwFa80O7emDNpOA3e1cr+cstKh3hzws0+ay/9NgM/egZVO1umLU0fgDqcItu9Zd2pX6Pf+dxiytsrxfb57nYkUdv6XeVklx+kFJRSDs5o3P1wPfA0U0W6sG3ZhWkq7rb90= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776373281; c=relaxed/simple; bh=LWOwSD1/NAl7OJQJxQpuaOK0FXqxGnVzZvEeeD35HQQ=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=UPpEizTB9noMjEhGGzbXOS/s9+tFGgjUqo4RhXInQgeX5IBNSp1I5RP5RZZ7478qtqqUIfv6xfhqT4LngbrCQg6se7c+UBYlq0yQ7IyfA1H5jyABU6tyTRaGOqxZZirzxJPUwmvYlRixi35Sul2GzS1JirimehVMsrbsJGSls5Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 816204BB58F5 Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-7b6ae2ea4a1so36884467b3.2 for <newlib@sourceware.org>; Thu, 16 Apr 2026 14:01:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776373280; x=1776978080; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W7kCzg21/w4J4sQZBqTfiLmCW05IU+X3rtJ4xHE4v54=; b=cQhjv3AMu5BEcLS95KjgCq6riZWSg610HqT8cTxvqvFrEkWCBDl/Fn5W9bjufUK54B oS4gOpyYhmfpZHPyowamA7t5c+jW8NqkcWk7rW+ld4hhUsAJeXFeM6bsBYvQBfggYDCS 4SQb6oRjoKmIP4XWBhCXVCwLj1OjtVBYQ19kvQl6ahAVqNNBmnLfx6IUDJj3s0q56FO8 xpeY+5WthzU6mU7NgD0qmfjUsqDnRCgbJsh0i4JLtfC48VQ3jTPcggp1VTId7B240uoF 2h/NGOM/IVrwdiArPWJ0v7+Q/5g0lxgDPjwUrUZwQjlJluR9Ez3WL7bWdbwTz8IyOJM6 dGCQ== X-Gm-Message-State: AOJu0YyzfjEEY+w6WtjmfiXjNBva0AZgao84FbjCiUyfzuiY2Qv/oRnQ cuH89keUi4oGqQUVh3nKJPZq+A31hh9PWwWUKcJnAA5Ll1J7xc0O8QtbrzarJ6UA X-Gm-Gg: AeBDievssf/3b0SQnpmnoUaDTkYNVDehhPh16MoWrpVIM7/gUI6bFAqpp8twInpRs8E /HwehB8KKKb9Fv0U99gM8oMZvxSslwaPY6aY70XWuEyYn6CdOmYclgHNIKi95PL8j6rasMnzXG3 FNsVhLtvBkuizP/2s1YZVzzLwSxTc/FyYxMg4efCyg4qnXD5ReW/OKz7skeWNOnkv4Ajr//tExF PGaAhEArItjFKF95cqCnL6UMI3XRj8Uw+hrDoVmHpU40kUwiJaTzN92uNHTKMmp/ofpubG251EJ /R9t8sl0yZX9nKiHEFaEEx8iA43tOlojdJVJbgr1R/wnb9e9nF7WbU5KFWm3rM8Oi0ck++K00vC ARNwtzLOciU4x1B6BJwQxhYbcFQNRl8fQ28FoDfCyIWXQLy38y2pb8DXgr0xSDQxTj5WUcC6MrM y59Rvx7m/ZStY6Zur1OWAOpsXNMKnMLmmzzEqR5MDp1ljCmBbT2vpxVKs78nE3d5Bhsr7caRXp X-Received: by 2002:a05:690c:698a:b0:7b7:fb9f:e9a1 with SMTP id 00721157ae682-7b9ed0279c4mr1285417b3.47.1776373279781; Thu, 16 Apr 2026 14:01:19 -0700 (PDT) Received: from gitlab.oarcorp.com (d27-96-189-151.evv.wideopenwest.com. [96.27.151.189]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7b76931854esm28916287b3.37.2026.04.16.14.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 14:01:18 -0700 (PDT) From: Joel Sherrill <joel@rtems.org> To: newlib@sourceware.org Cc: Joel Sherrill <joel@rtems.org> Subject: [PATCH v3 0/6] Newlib and Cygwin C23 stdbit.h Support Date: Thu, 16 Apr 2026 16:00:41 -0500 Message-ID: <20260416210047.2198615-1-joel@rtems.org> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3029.2 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, 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 sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Newlib and Cygwin C23 stdbit.h Support
|
|
Message
Joel Sherrill
April 16, 2026, 9 p.m. UTC
Hopefully this is close. I hope it is not a problem to include the Cygwin changes. I thought it would be easier to review if the changes were not spread across two mailing lists. - stdbit/*.c now compiles with -std= gnu99, gnu11, and gnu23. - cygwin.din updated to include stdbit functions - rtems/crt0.c: gcc master reported an error on a stub function which is now fixed Joel Sherrill (6): newlib/libc: Add C23 stdbit.h from FreeBSD Makefile.inc, stdbit/Makefile.inc: Add stdbit newlib/Makefile.in: Regenerated newlib/libc/stdbit: Make compile for C99 and newer libc/sys/rtems/crt0.c: _arc4random_getentropy_fail should not return cygwin.din, version.h: Add stdbit.h functions and increment minor newlib/Makefile.in | 423 +++++++++++++++--- newlib/libc/Makefile.inc | 1 + newlib/libc/include/stdbit.h | 124 +++++ newlib/libc/stdbit/Makefile.inc | 15 + newlib/libc/stdbit/stdbit_internal.h | 47 ++ newlib/libc/stdbit/stdc_bit_ceil.3 | 81 ++++ newlib/libc/stdbit/stdc_bit_ceil.c | 73 +++ newlib/libc/stdbit/stdc_bit_floor.3 | 83 ++++ newlib/libc/stdbit/stdc_bit_floor.c | 55 +++ newlib/libc/stdbit/stdc_bit_width.3 | 104 +++++ newlib/libc/stdbit/stdc_bit_width.c | 55 +++ newlib/libc/stdbit/stdc_count_ones.3 | 85 ++++ newlib/libc/stdbit/stdc_count_ones.c | 40 ++ newlib/libc/stdbit/stdc_count_zeros.3 | 84 ++++ newlib/libc/stdbit/stdc_count_zeros.c | 40 ++ newlib/libc/stdbit/stdc_first_leading_one.3 | 93 ++++ newlib/libc/stdbit/stdc_first_leading_one.c | 59 +++ newlib/libc/stdbit/stdc_first_leading_zero.3 | 92 ++++ newlib/libc/stdbit/stdc_first_leading_zero.c | 59 +++ newlib/libc/stdbit/stdc_first_trailing_one.3 | 110 +++++ newlib/libc/stdbit/stdc_first_trailing_one.c | 54 +++ newlib/libc/stdbit/stdc_first_trailing_zero.3 | 93 ++++ newlib/libc/stdbit/stdc_first_trailing_zero.c | 55 +++ newlib/libc/stdbit/stdc_has_single_bit.3 | 98 ++++ newlib/libc/stdbit/stdc_has_single_bit.c | 40 ++ newlib/libc/stdbit/stdc_leading_ones.3 | 86 ++++ newlib/libc/stdbit/stdc_leading_ones.c | 62 +++ newlib/libc/stdbit/stdc_leading_zeros.3 | 86 ++++ newlib/libc/stdbit/stdc_leading_zeros.c | 62 +++ newlib/libc/stdbit/stdc_trailing_ones.3 | 86 ++++ newlib/libc/stdbit/stdc_trailing_ones.c | 58 +++ newlib/libc/stdbit/stdc_trailing_zeros.3 | 87 ++++ newlib/libc/stdbit/stdc_trailing_zeros.c | 58 +++ newlib/libc/sys/rtems/crt0.c | 2 +- winsup/cygwin/cygwin.din | 70 +++ winsup/cygwin/include/cygwin/version.h | 2 +- 36 files changed, 2651 insertions(+), 71 deletions(-) create mode 100644 newlib/libc/include/stdbit.h create mode 100644 newlib/libc/stdbit/Makefile.inc create mode 100644 newlib/libc/stdbit/stdbit_internal.h create mode 100644 newlib/libc/stdbit/stdc_bit_ceil.3 create mode 100644 newlib/libc/stdbit/stdc_bit_ceil.c create mode 100644 newlib/libc/stdbit/stdc_bit_floor.3 create mode 100644 newlib/libc/stdbit/stdc_bit_floor.c create mode 100644 newlib/libc/stdbit/stdc_bit_width.3 create mode 100644 newlib/libc/stdbit/stdc_bit_width.c create mode 100644 newlib/libc/stdbit/stdc_count_ones.3 create mode 100644 newlib/libc/stdbit/stdc_count_ones.c create mode 100644 newlib/libc/stdbit/stdc_count_zeros.3 create mode 100644 newlib/libc/stdbit/stdc_count_zeros.c create mode 100644 newlib/libc/stdbit/stdc_first_leading_one.3 create mode 100644 newlib/libc/stdbit/stdc_first_leading_one.c create mode 100644 newlib/libc/stdbit/stdc_first_leading_zero.3 create mode 100644 newlib/libc/stdbit/stdc_first_leading_zero.c create mode 100644 newlib/libc/stdbit/stdc_first_trailing_one.3 create mode 100644 newlib/libc/stdbit/stdc_first_trailing_one.c create mode 100644 newlib/libc/stdbit/stdc_first_trailing_zero.3 create mode 100644 newlib/libc/stdbit/stdc_first_trailing_zero.c create mode 100644 newlib/libc/stdbit/stdc_has_single_bit.3 create mode 100644 newlib/libc/stdbit/stdc_has_single_bit.c create mode 100644 newlib/libc/stdbit/stdc_leading_ones.3 create mode 100644 newlib/libc/stdbit/stdc_leading_ones.c create mode 100644 newlib/libc/stdbit/stdc_leading_zeros.3 create mode 100644 newlib/libc/stdbit/stdc_leading_zeros.c create mode 100644 newlib/libc/stdbit/stdc_trailing_ones.3 create mode 100644 newlib/libc/stdbit/stdc_trailing_ones.c create mode 100644 newlib/libc/stdbit/stdc_trailing_zeros.3 create mode 100644 newlib/libc/stdbit/stdc_trailing_zeros.c
Comments
On Apr 16 16:00, Joel Sherrill wrote: > Hopefully this is close. I hope it is not a problem to include the > Cygwin changes. I thought it would be easier to review if the > changes were not spread across two mailing lists. > > - stdbit/*.c now compiles with -std= gnu99, gnu11, and gnu23. > > - cygwin.din updated to include stdbit functions > > - rtems/crt0.c: gcc master reported an error on a stub function > which is now fixed > > Joel Sherrill (6): > newlib/libc: Add C23 stdbit.h from FreeBSD > Makefile.inc, stdbit/Makefile.inc: Add stdbit > newlib/Makefile.in: Regenerated > newlib/libc/stdbit: Make compile for C99 and newer > libc/sys/rtems/crt0.c: _arc4random_getentropy_fail should not return > cygwin.din, version.h: Add stdbit.h functions and increment minor Pushed, except patch 5, which should be handled separately. Thanks, Corinna