From patchwork Wed Nov 18 16:40:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 9730 Received: (qmail 92001 invoked by alias); 18 Nov 2015 16:40:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 91857 invoked by uid 89); 18 Nov 2015 16:40:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 18 Nov 2015 16:40:11 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 0EB8CC0BB2AB; Wed, 18 Nov 2015 16:40:10 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tAIGe2QC030267; Wed, 18 Nov 2015 11:40:09 -0500 From: Pedro Alves To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 5/6] [C++] Drop -fpermissive hack Date: Wed, 18 Nov 2015 16:40:01 +0000 Message-Id: <1447864802-24016-6-git-send-email-palves@redhat.com> In-Reply-To: <1447864802-24016-1-git-send-email-palves@redhat.com> References: <1447864802-24016-1-git-send-email-palves@redhat.com> Both x86_64 GNU/Linux and x86_64 mingw-w64 build cleanly with --enable-targets=all. Let's drop the -fpermissive hack, in order to let the buildbot catch C++ build regressions for us. gdb/ChangeLog: 2015-11-18 Pedro Alves * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Remove -fpermissive. * configure: Regenerate. gdb/gdbserver/ChangeLog: 2015-11-18 Pedro Alves * configure: Regenerate. --- gdb/build-with-cxx.m4 | 3 +-- gdb/configure | 3 +-- gdb/gdbserver/configure | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/gdb/build-with-cxx.m4 b/gdb/build-with-cxx.m4 index 8802f4d..b6284fd 100644 --- a/gdb/build-with-cxx.m4 +++ b/gdb/build-with-cxx.m4 @@ -32,8 +32,7 @@ AC_DEFUN([GDB_AC_BUILD_WITH_CXX], [enable_build_with_cxx=no]) if test "$enable_build_with_cxx" = "yes"; then - # We're using -fpermissive as shortcut for now. - COMPILER='$(CXX) -fpermissive' + COMPILER='$(CXX)' else COMPILER='$(CC)' fi diff --git a/gdb/configure b/gdb/configure index fd7ea1c..8ef3cf2 100755 --- a/gdb/configure +++ b/gdb/configure @@ -5015,8 +5015,7 @@ fi if test "$enable_build_with_cxx" = "yes"; then - # We're using -fpermissive as shortcut for now. - COMPILER='$(CXX) -fpermissive' + COMPILER='$(CXX)' else COMPILER='$(CC)' fi diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 409f42b..4b9aa95 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -4827,8 +4827,7 @@ fi if test "$enable_build_with_cxx" = "yes"; then - # We're using -fpermissive as shortcut for now. - COMPILER='$(CXX) -fpermissive' + COMPILER='$(CXX)' else COMPILER='$(CC)' fi