From 9bf40084738e155bf69ab7215a69f74d589931d1 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 23 Jul 2019 17:03:13 +0000 Subject: [PATCH] configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311. gcc/ChangeLog: * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311. From-SVN: r273742 --- gcc/ChangeLog | 10 ++++++++-- gcc/configure.ac | 3 +-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87c56e77e0e..d405921425f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-07-23 Martin Sebor + + * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311. + 2019-07-23 Vladislav Ivanishin * gdbinit.in (reload-gdbhooks): New command with an attached doc string. @@ -1364,9 +1368,11 @@ (ix86_noce_conversion_profitable_p): Same. (ix86_init_cost): Same. (ix86_simd_clone_usable): Same. - * configure.ac: Same. + * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and + Wstruct-not-pod. * coretypes.h: Same. - * data-streamer-in.c (string_for_index): Same. + * data-streamer-in.c (string_for_index): Change class-key of PODs + to struct and others to class. (streamer_read_indexed_string): Same. (streamer_read_string): Same. (bp_unpack_indexed_string): Same. diff --git a/gcc/configure.ac b/gcc/configure.ac index c620dd2f447..137d5b469c3 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -482,8 +482,7 @@ AC_ARG_ENABLE(build-format-warnings, AS_IF([test $enable_build_format_warnings = no], [wf_opt=-Wno-format],[wf_opt=]) ACX_PROG_CXX_WARNING_OPTS( - m4_quote(m4_do([-W -Wall -Wclass-is-pod -Wmismatched-tags ], - [-Wno-narrowing -Wstruct-not-pod -Wwrite-strings ], + m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ], [-Wcast-qual -Wno-error=format-diag $wf_opt])), [loose_warn]) ACX_PROG_CC_WARNING_OPTS( -- 2.30.2