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: NightStrike <nightstrike at gmail dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: Jeffrey Walton <noloader at gmail dot com>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 21 Jul 2015 22:53:34 -0400
- Subject: Re: When did 'pragma diagnostic' become available?
- Authentication-results: sourceware.org; auth=none
- References: <CAH8yC8n=aXCzikEtLseEXTKvJnacHQjDeeFFgL=-YeHdrjAzbw at mail dot gmail dot com> <CAH6eHdS4Vowvbgg83e2rZAhzjpiVhCpHgt7Hs+C3Vrx_ny9LPg at mail dot gmail dot com>
On Mon, Jul 20, 2015 at 5:55 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> 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
It does not work on RHEL5 4.1.2.