This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [c-family] Issue a warning in C++ on pragma scalar_storage_order
- From: Jeff Law <law at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Sep 2017 10:11:28 -0600
- Subject: Re: [c-family] Issue a warning in C++ on pragma scalar_storage_order
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 67DD7806B3
- References: <14071962.Srb1NyX0Vs@polaris>
On 09/15/2017 05:07 AM, Eric Botcazou wrote:
> Hi,
>
> this plugs the hole reported by Florian on the gcc@ list, namely that no
> warning is issued with -Wall in C++ on pragma scalar_storage_order.
>
> Tested on x86_64-suse-linux, OK for the mainline? And some branches?
>
>
> 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
>
> * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
> message for non-uniform endianness and issue a warning in C++.
>
>
> 2017-09-15 Eric Botcazou <ebotcazou@adacore.com>
>
> * g++.dg/sso-1.C: New test.
> * g++.dg/sso-2.C: Likewise.
>
OK.
jeff