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]

[PATCH] Fix build of gimple-ssa-store-merging.c with -std=c++98


Hi!

Markus reported that C++98 mode is unhappy about anonymous namespace
with anonymous structure typed variables.

The following should fix that, bootstrapped/regtested on x86_64-linux
and i686-linux, ok for trunk?

2017-11-30  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/83233
	* gimple-ssa-store-merging.c (nop_stats, bswap_stats): Use
	bswap_stat name for the struct.

--- gcc/gimple-ssa-store-merging.c.jj	2017-11-21 14:53:50.000000000 +0100
+++ gcc/gimple-ssa-store-merging.c	2017-11-30 20:00:15.669946061 +0100
@@ -170,7 +170,7 @@
 
 namespace {
 
-struct
+struct bswap_stat
 {
   /* Number of hand-written 16-bit nop / bswaps found.  */
   int found_16bit;

	Jakub


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