This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: When did 'pragma diagnostic' become available?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jeffrey Walton <noloader at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 20 Jul 2015 10:55:48 +0100
- Subject: Re: When did 'pragma diagnostic' become available?
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8n=aXCzikEtLseEXTKvJnacHQjDeeFFgL=-YeHdrjAzbw at mail dot gmail dot com>
On 20 July 2015 at 07:29, Jeffrey Walton wrote:
> 6.61.10 Diagnostic Pragmas,
> https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html, does not
> tell us when it became available.
>
> I've been through the change logs from 44 through 4.8, and I can't
> tell when it became available
> (https://gcc.gnu.org/gcc-4.4/changes.html,
> https://gcc.gnu.org/gcc-4-5/changes.html,
> https://gcc.gnu.org/gcc-4.6/changes.html,
> https://gcc.gnu.org/gcc-4.7/changes.html,
> https://gcc.gnu.org/gcc-4.8/changes.html).
>
> When did 'pragma diagnostic' become available?
The oldest manual it's documented in is 4.2.0
https://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Diagnostic-Pragmas.html
It's not mentioned in the 4.2 release notes and I didn't test if it works in 4.1