From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by sourceware.org (Postfix) with ESMTPS id 8575D385EC55 for ; Mon, 31 Aug 2020 08:06:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8575D385EC55 Received: by mail-ej1-x644.google.com with SMTP id nw23so5850472ejb.4 for ; Mon, 31 Aug 2020 01:06:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=osNc1DGvrpDGT+NFDUlzvJHAHOjtY4LRGHgiLe8mjL0=; b=N4bgHg+7UAAhxY/FSkMDH46Fl5YkNJNv7/c9iWcrKHgds9SEFO99DlIY61P3lHhIpz 00ULH7NptWvTzidlmimthpPfZazII6dZGYmM/htl27SNL0JeXH/HvNbjR0C6lVh9X2Pk Q6FBKBpgrOfVCQL93dgzZvqwMUHNAdEjUAQa7ljffua7Rci0NSAmXNLHONWcKtYmPUuV Obk/irsehNwys7ljNO4x6CoiroQd0uYAWWI8mOQ6yUZNicGxm8j+/7RUXzyHwr4c9/Yo 0AHO/QKM8gnKE6Uja3iI/uKgQ3p2/Md30HMuk6iqTSpMX78h3gZT4bWhME03aWv57i2p 9CUA== X-Gm-Message-State: AOAM532LnYmPWNjGWoXkjMynli4c7SGxmTxqytlrT/JKjNSCtEQTyUfS 2eMKoJP7bxyerQ54MScJxApNY5S5KZpptWU0r1A= X-Google-Smtp-Source: ABdhPJziicGjnREnfnbukTppHh0K1JVcGJr8QswE9gYwrzeIkT+yThek8jD/57dzUK3YzisMi3IbzgPE5y9oc1ELhDI= X-Received: by 2002:a17:906:454a:: with SMTP id s10mr51963ejq.138.1598861188687; Mon, 31 Aug 2020 01:06:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Biener Date: Mon, 31 Aug 2020 10:06:15 +0200 Message-ID: Subject: Re: [PATCH] c: Silently ignore pragma region [PR85487] To: Austin Morton Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 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 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2020 08:06:32 -0000 On Fri, Aug 28, 2020 at 10:04 PM Austin Morton wrote: > > > The patch misses documentation of the pragma. > > This was an intentional omission - when looking for documentation of > the pragma in clang I found none. > > If we do want to document the pragmas in GCC: > - what section of the documentation would that go in? > - gcc/doc/cpp.texi, section 7, "Pragmas" > - this section states: "This manual documents the pragmas > which are meaningful to the preprocessor itself. Other pragmas are > meaningful to the C or C++ compilers. They are documented in the GCC > manual." > - these pragmas aren't exactly meaningful to the preprocessor > _or_ the C/C++ compiler, so it's not exactly clear where they fit. > - gcc/doc/extend.texi, section 6.62, "Pragmas Accepted by GCC" > - what exactly would it say? > - I guess just mention the existence and that they won't trigger > unknown pragma warnings? They don't _do_ anything Yes, documenting their existance and their zero effect. Richard. > > Austin