From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 575DF3858403; Mon, 4 Apr 2022 11:46:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 575DF3858403 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-9763] libstdc++: Remove -gdwarf-4 from flags for debug library X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: c277f6c1029d9eb898f40cf5d96500dab45212c9 X-Git-Newrev: 53a1b53d7829d197ad107c8660b719682caf91ab Message-Id: <20220404114650.575DF3858403@sourceware.org> Date: Mon, 4 Apr 2022 11:46:50 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2022 11:46:50 -0000 https://gcc.gnu.org/g:53a1b53d7829d197ad107c8660b719682caf91ab commit r11-9763-g53a1b53d7829d197ad107c8660b719682caf91ab Author: Jonathan Wakely Date: Wed Jan 19 19:29:42 2022 +0000 libstdc++: Remove -gdwarf-4 from flags for debug library The default is -gdwarf-5 now, so this is hurting rather than improving things. libstdc++-v3/ChangeLog: * configure.ac (GLIBCXX_ENABLE_DEBUG_FLAGS): Remove -gdwarf-4 from default flags. * configure: Regenerate. (cherry picked from commit fe3e978027724f28d3e15747c991844793d42922) Diff: --- libstdc++-v3/configure | 4 ++-- libstdc++-v3/configure.ac | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 6c9125e39e4..3120d5855f6 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -1624,7 +1624,7 @@ Optional Features: --enable-concept-checks use Boost-derived template checks [default=no] --enable-libstdcxx-debug-flags=FLAGS pass compiler FLAGS when building debug library - [default="-gdwarf-4 -g3 -O0 -D_GLIBCXX_ASSERTIONS"] + [default="-g3 -O0 -D_GLIBCXX_ASSERTIONS"] --enable-libstdcxx-debug build extra debug library [default=no] --enable-cxx-flags=FLAGS @@ -18601,7 +18601,7 @@ if test "${enable_libstdcxx_debug_flags+set}" = set; then : *) as_fn_error $? "--enable-libstdcxx-debug-flags needs compiler flags as arguments" "$LINENO" 5 ;; esac else - enable_libstdcxx_debug_flags="-gdwarf-4 -g3 -O0 -D_GLIBCXX_ASSERTIONS" + enable_libstdcxx_debug_flags="-g3 -O0 -D_GLIBCXX_ASSERTIONS" fi diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index 3e639279d9e..fb256bb0287 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -170,7 +170,7 @@ GLIBCXX_ENABLE_LONG_LONG([yes]) GLIBCXX_ENABLE_WCHAR_T([yes]) GLIBCXX_ENABLE_C99([yes]) GLIBCXX_ENABLE_CONCEPT_CHECKS([no]) -GLIBCXX_ENABLE_DEBUG_FLAGS(["-gdwarf-4 -g3 -O0 -D_GLIBCXX_ASSERTIONS"]) +GLIBCXX_ENABLE_DEBUG_FLAGS(["-g3 -O0 -D_GLIBCXX_ASSERTIONS"]) GLIBCXX_ENABLE_DEBUG([no]) GLIBCXX_ENABLE_PARALLEL([yes]) GLIBCXX_ENABLE_CXX_FLAGS