From patchwork Tue Dec 31 18:26:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 854390 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp7049525wrq; Tue, 31 Dec 2024 10:30:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUBlgd8m6P7C6fxTuJ14Vr8sVu0OscCAqeYLbnKDim+xFEzN5jngneZsaGoo8CW6cmdvHJCAA==@linaro.org X-Google-Smtp-Source: AGHT+IE3LRCI81kCmLRvhScxQLAv6DPQYNhtGUoZfwG1nokIk0tbY9iKb4/vCLXZE1K3stmPbmJf X-Received: by 2002:a05:6102:e0a:b0:4af:c31d:b4e8 with SMTP id ada2fe7eead31-4b2cc38231bmr31750506137.14.1735669843329; Tue, 31 Dec 2024 10:30:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1735669843; cv=pass; d=google.com; s=arc-20240605; b=loVCzWJHaD/ofVxKM/53hJqE9rPRw6h9vY+AW7glhJvStNIsud34321/CjW5oYMqpi L7wKRmFXr823BwIrUUo+jMS0xsd4nKr5uR12mF/Bd0UMnlhesIf+r1alGJtvDJ44uhd6 RCy2JMdIQiGXWQiMIGKQG1TRaG+njcNhr3HRW5Cb+pNgq8KW0D3ssDrf8FoBFy7v2Tjm oSjWtHBw3V718sS/XjtiVspP5NcrYhzdjFHIrX6YYbfsJX15Sq93gtjA3G05EhWLTYzT OsV4uOMRmdm2YkQJHf6xP5J6VwNL2EZkVWJtqatKd2NU+XzODiL4b7M7jOOGMjbZbLZe nvUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=x8TTZ4XIw/MmiTdmny8yxcND/nCVLX1q5l0FGzJfYes=; fh=d7KdQ+eBG5Owb97PZQUBRjccSsV/hB6hMlyGG6W37vA=; b=QMcV9acrYywZI4Atjzjc3ex75fpPbIYFlsgiasKk85hmM+bSW6vWlg3W3wP+D8BRkk tn7eMJqO09GgZQRRp+bpjZrYMonHLaF4LWYMwgW2uz0e3gXaUObMCH4etR8kIBv5ynNV R7b7D7V39YCd90mWzTltBEqtLbwSPigDJMJ2ieGCGxczn/ZP+DKXrj7UpqnRFfLNhd/G GFHaQhBJTHvgiYzy6Cz1UzhNPa0OWqDxVJ+dqm8TGRlQMaEyDff/XzTo+rwvgdUV92Tg iq7Q1nRYlGCSnCcbGcK1ioDyFn+4+z4RBfxyFVQ23d3mPJ4zSKcmgLTUTuF4j+WtGQNA 1ugA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jeFC2+oq; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ada2fe7eead31-4b2bfba4341si7069423137.590.2024.12.31.10.30.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2024 10:30:43 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jeFC2+oq; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F00B13858C62 for ; Tue, 31 Dec 2024 18:30:42 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id ADAEA3858CD1 for ; Tue, 31 Dec 2024 18:27:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ADAEA3858CD1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ADAEA3858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::632 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735669626; cv=none; b=qzY5Qtq7R3OyLph8Yodqa1cza5u7Y/vSV4mhnAP8tTDDWScAArC2uYwCrgjlWfMwZGOyjpp9Co4bPiTXGc0Ll7sF12emcc4rCzvJO2VAzznRjZJlPw7RpWryy7+YU3XgARf5z1wqVM1+fv3cv9c4HgPCjZqXWOwVXw7SP2CUmrI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735669626; c=relaxed/simple; bh=+l2Y7nBHYY5nWUaBVvAuVXruoht7I9kBD4REmWzPLMM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cLU05gmTMb6BsGy98TuNIZUJDH8pgx0hPeTgl5myPdy8I9RxEeVNitsc1uxzcAxLGLJnic8UnNmKRJdfTXJw3Zrepo5gITsSahuEGYNfgZJBiK5AFn7ak4xfvI/BcOtctGiRECe4pOcYBqMgBtrhIEomLlKnv3LmGVa7XKGh4kk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-21619108a6bso127416655ad.3 for ; Tue, 31 Dec 2024 10:27:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735669625; x=1736274425; 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=x8TTZ4XIw/MmiTdmny8yxcND/nCVLX1q5l0FGzJfYes=; b=jeFC2+oqOSkcNGPEqoXLVxeBv17y+j/Q7KIsUt9er0/UHhrEq7Kk5cZrLyoV9uuNkr 3kYPg/o8DteYf98fi85kHT2dK1Phc57imR8Yz95GN9/sGayNQ4E9TKcC/Yo5UcI/M0PH LkTBV77mifa7OhPlsepKhVO2mg7mxaHSKsMgLAbDqi1qTLmRgnnS6e8/ZrKU2JRHFbTz Xsoy3qATNDidllkDJO6MtR0qbloxqlmUUtCjHxA/iOMNakUSQ0IeUfTN9MZMu+Wtvg+N 3en9F6JxBKeOeELyg3yqlfzuVBBuIF5JQARK9gCtVv8GKMQKTeefHZ5W9IXs/j4wx13v B/eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735669625; x=1736274425; 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=x8TTZ4XIw/MmiTdmny8yxcND/nCVLX1q5l0FGzJfYes=; b=WmcY1FuCbDEwTDWi+pxEeHl+G7uhA5jOsGtnfQ+kfYDw8llNlmJtlM5IBz0P0ry5IE 6P+uBjn74GOdFVDCNe0/NlkbBsIRzU6ksBWtqnRDnJYgoAuSaeAxkCb1OtIuSImM0XQ9 iQdr6Zfev2yxmW7CcQNZtIa4ArGC8enSDmyxhBob1BXR0U9d3RqcsvRInJ5lUZJx/XQQ 1bBzoy/MCXeV1AZPGgWKA1efQXRgX2Pl4plM/o5kTFj6aaJgYx8ybXaO75eUAn7rAPPv DDhU8LdkxQmofJGR2PnXYjRGrdMYoRD4u9lb+Hwaq/cfrcIeebAC4szs9Jn7hUOo70KI py+A== X-Gm-Message-State: AOJu0YzfAOBdep4gCU+iJt9a7u6B/3Tpxz5JxGxxF6c9fdtGWJcAKwZK V8GHsPcwydG9vcv804bD89IhMwYCXlQfb+B1A6tusECJvbgTOaCJg7VhM3b81DjisqFPCmNPp1/ V X-Gm-Gg: ASbGncurZUN4RUmr77QWbSR8JZjYBAL0RG4HqfDhtGoOSFDYQf7aQNRTDWLtbKrGLXb Ow5VeV42zWXTfJEKyT6Mga2lu+NecmO7ou5RiTsEFrm3k+XAe1S46tT8ExkHswaugkIBjGukTJ2 9lSDFFZdBj3UYFKYfTGYsFzx2cFSktoovxggrfNdY/IMJz8GDEttcWwQrTHCgnaPGMDF0eLiZ0b n91dZupeUZM4Ah8+VFn8oFsv8FfADDoz/CL5BC/lfQhghgvZYvvCRemDv4Og9XnHswThiALeRiP PO/LUKta1LqgiUACNnK/YEifcJm+ X-Received: by 2002:a17:903:1108:b0:215:6489:cfb8 with SMTP id d9443c01a7336-219e6e85b42mr573555715ad.10.1735669625299; Tue, 31 Dec 2024 10:27:05 -0800 (PST) Received: from ubuntu-vm.. (201-92-184-234.dsl.telesp.net.br. [201.92.184.234]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f5046sm198693105ad.179.2024.12.31.10.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2024 10:27:04 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Sam James , "H . J . Lu" Subject: [PATCH 6/7] conform: Do not use __SIG_ATOMIC_TYPE__ Date: Tue, 31 Dec 2024 15:26:12 -0300 Message-ID: <20241231182649.1811734-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241231182649.1811734-1-adhemerval.zanella@linaro.org> References: <20241231182649.1811734-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org clang does not define __SIG_ATOMIC_TYPE__, instead add another directive ('size:') which instruct to use an interger type of defined minimum size. Reviewed-by: Sam James --- conform/conformtest.py | 4 ++++ conform/data/stdint.h-data | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conform/conformtest.py b/conform/conformtest.py index d38afb06a8..f89d994e5f 100644 --- a/conform/conformtest.py +++ b/conform/conformtest.py @@ -172,6 +172,10 @@ class ConstantTest(object): c_type = self.c_type[len('promoted:'):] text = ('__typeof__ ((%s) 0 + (%s) 0) a2_%d;\n' % (c_type, c_type, self.num)) + elif self.c_type.startswith('size:'): + c_type = "int{}_t".format(self.c_type[len('size:'):]) + text = ('__typeof__ ((%s) 0 + (%s) 0) a2_%d;\n' + % (c_type, c_type, self.num)) else: text = '__typeof__ ((%s) 0) a2_%d;\n' % (self.c_type, self.num) text += 'extern __typeof__ (%s) a2_%d;\n' % (self.symbol, self.num) diff --git a/conform/data/stdint.h-data b/conform/data/stdint.h-data index 4e84e17fb8..5d65d4ecd5 100644 --- a/conform/data/stdint.h-data +++ b/conform/data/stdint.h-data @@ -88,8 +88,8 @@ macro-int-constant UINTMAX_MAX {promoted:uintmax_t} >= 18446744073709551615ULL macro-int-constant PTRDIFF_MIN {promoted:__PTRDIFF_TYPE__} <= -65535 macro-int-constant PTRDIFF_MAX {promoted:__PTRDIFF_TYPE__} >= 65535 -macro-int-constant SIG_ATOMIC_MIN {promoted:__SIG_ATOMIC_TYPE__} -macro-int-constant SIG_ATOMIC_MAX {promoted:__SIG_ATOMIC_TYPE__} >= 127 +macro-int-constant SIG_ATOMIC_MIN {size:__SIG_ATOMIC_WIDTH__} +macro-int-constant SIG_ATOMIC_MAX {size:__SIG_ATOMIC_WIDTH__} >= 127 macro-int-constant SIZE_MAX {promoted:__SIZE_TYPE__} >= 65535