This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ping^2][PATCH][GCC-5] Fix "#pragma GCC pop_options" warning.
- From: "Andre Vieira (lists)" <Andre dot SimoesDiasVieira at arm dot com>
- To: Bernd Schmidt <bschmidt at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 3 Mar 2016 13:58:23 +0000
- Subject: Re: [Ping^2][PATCH][GCC-5] Fix "#pragma GCC pop_options" warning.
- Authentication-results: sourceware.org; auth=none
- References: <569CC6CB dot 3050308 at arm dot com> <56C1A967 dot 1020108 at arm dot com> <56D421DE dot 7090409 at arm dot com> <56D815E0 dot 3020104 at arm dot com> <56D829F7 dot 3020307 at redhat dot com>
On 03/03/16 12:11, Bernd Schmidt wrote:
> On 03/03/2016 11:45 AM, Andre Vieira (lists) wrote:
>> On 29/02/16 10:47, Andre Vieira (lists) wrote:
>>> On 15/02/16 10:33, Andre Vieira (lists) wrote:
>>>> On 18/01/16 11:04, Andre Vieira (lists) wrote:
>>>>> Hi there,
>>>>>
>>>>> Can we have the "#pragma GCC pop_options" fix backported to GCC-5?
>>>>>
>>>>> Patch found in
>>>>> https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01261.html
>>>>> and was committed in r228794.
>>>>>
>>>>> The same patch applies cleanly to gcc-5, which would otherwise not be
>>>>> able to use this pragma even though the support is there.
>
>> I understood it was a good idea to CC the appropriate maintainer on
>> this, so adding Bernd Schmidt to the CC.
>
> Yeah, I think I remember this one. Ok.
>
>
> Bernd
>
Thomas committed on my behalf at revision r233939.
2016-03-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
Backport from mainline
2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
Fix "#pragma GCC pop_options"
gcc/ChangeLog
* targhooks.c (default_target_option_pragma_parse): Do not warn if
called on behalf of "#pragma GCC pop_options".
gcc/testsuite/ChangeLog
* gcc.dg/pragma-pop_options-1.c: New test.
Thank you Thomas and Bernd.
Cheers,
Andre