This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix build of gimple-ssa-store-merging.c with -std=c++98
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 1 Dec 2017 00:18:55 +0100
- Subject: [PATCH] Fix build of gimple-ssa-store-merging.c with -std=c++98
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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