From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 8D75B3858C3A for ; Mon, 13 Nov 2023 19:22:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D75B3858C3A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8D75B3858C3A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1030 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699903380; cv=none; b=QPBwBzUMBaLbFZtcFur0XKwTBuhq5VX0PZd6CjfNQd9M6St17l3Ivo0Y0cCwKJiCoSJaWacQ16uo4f78+1Kxf+MPtWVADGTBFHI4N9TiSuR5R0yrum/Rk36Xw7Sgq6pGN3ARkDtBhScPCaIxZHDwteKXldBiYKN0auAHggRryzQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699903380; c=relaxed/simple; bh=8tfSukLehGK/j4BGSjLnvKKccW9FmOCr6ljZLxRIRRo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=wEqyfh3QAJaut2HzxQhQ35wptyYkt6OxLKjc5hYud0QbgKSzaaMy/jnhPLWXzOD8/cxRyZnn+BXwqKy2xEL31wC53r+wxAPTXdOsCrzRyyKx0B3F5jcdnqS9EEowjoH7Rn2z35WYCpTRVtY5buDvV4JUBcjXpv2hHHDzti1hFO0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-28003daaaa6so4314483a91.0 for ; Mon, 13 Nov 2023 11:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699903378; x=1700508178; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ONOtVtlG7tK58iaTexpqqZlh7uxwHnQXcox5Aq6EvpI=; b=UM+RWpp/Qo+/yAny/kgOxhwLxm53o716wUlnShXURoKopKqeKUt0doEwEnnJVXjK6z wQ+SdfNJq4iXkmwmGA+/C7dWnHXwM4HVZSzuYE9g4adAOES8VgMwemSrGDCvkwx+9B3F 5p11FPTyEQDGiyk+FxO4cJa0WwsXvern9eYKWBrCHjQ98TSyWoylor6UH1cF2YkmSzqd ZE+W5V2vWPLGhHPui+2atDUxDNPUtQ0Q/VtCFChg3ysR0YsjltpM1I6xBWgBKeW1CU/1 Jvc+8IYBIMqbG87N285W5Sjdx0GCfByNh8kyRmy1ghgT4MQBRJ5v+oUuj5pKF8ifpz0R m+Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699903378; x=1700508178; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ONOtVtlG7tK58iaTexpqqZlh7uxwHnQXcox5Aq6EvpI=; b=FN03L1b7a/9UgD2AzDjF3hcTkzS2s6RZLPAxdMVPx9Ec++9NspmhOcBlRZpYSJQKGZ BfytN6i6L5ZRj3EZ9L/mzXx0xRmw618dkTmoRJi9lUcW89KdPC3vn1F81d6MVTQ4M6fy G3ZNd8reVSYB2xYVGA1TqWZcGEVTyVblWYquI6e0utrS5sPZlYNMIzLU5y/O+4mP79mG djMEb9dN0YwninoDeMuqCQISAvk6HAjF2OHrcIl6KbQYqYcLhlJ+b+sd8tJHGHtDATvy zX+TjG8meXN1l0JceeODkc5PuUYqqzMSsVT8+l1qtED1RrdhU9I8h34SBJUCaopzK74J egoA== X-Gm-Message-State: AOJu0YwgSpz2D0PqBvIXJt4cU+1SUHakYVpBx8KYrfeEHaVAEuGtZ5tx SDkSupTfn/K+zQEQRfo8ipFetXhPei25aw== X-Google-Smtp-Source: AGHT+IFVYMP72lJu91+si6miO+2EIy8OFPfnmpEdM9Hc32RZm7NbaspvxERIcr3R18qKwIOeB/3F6Q== X-Received: by 2002:a17:90a:9a3:b0:274:755b:63b8 with SMTP id 32-20020a17090a09a300b00274755b63b8mr7879848pjo.43.1699903378223; Mon, 13 Nov 2023 11:22:58 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id e21-20020a17090ab39500b00280ccd5289dsm3929626pjr.22.2023.11.13.11.22.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Nov 2023 11:22:57 -0800 (PST) Message-ID: Date: Mon, 13 Nov 2023 12:22:53 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] c-family: Introduce pedpermerror Content-Language: en-US To: Florian Weimer , gcc-patches@gcc.gnu.org References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: On 11/13/23 06:09, Florian Weimer wrote: > It turns out that permerror_opt is not directly usable for > -fpermissive in the C front end. The front end uses pedwarn > extensively, and pedwarns are not overridable by -Wno-* options, > yet permerrors are. Add new pedpermerror helpers that turn into > pedwarns if -pedantic-errors is active. > > Due to the dependency on flag_pedantic_errors, the new helpers > are specific to the C-family front ends. For implementing the > rich location variant, export emit_diagnostic_valist from > gcc/diagnostic.cc in parallel to its location_t variant. > > gcc/ > > * diagnostic-core.h (emit_diagnostic_valist): Declare function. > * diagnostic.cc (emit_diagnostic_valist): Define it. > > gcc/c-family/ > > * c-common.h (pedpermerror): Declare functions. > * c-warn.cc (pedpermerror): Define them. OK jeff