This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [c-family] Issue a warning in C++ on pragma scalar_storage_order


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]