From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id A75F53858C41; Tue, 26 Mar 2024 01:49:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A75F53858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711417751; bh=I+d0Qc8UfQ2m/VM3b3TYQCxnaIqUhBHDkkH7htgiUac=; h=From:To:Subject:Date:From; b=WKIL/tRJFjiPaiUDl2fwHJM9giOmgVhUZ12PJgqpWUJUsojDFxKiK3H9zUYp47rtM uHjjqMHUdb/KDoiAxHHKDPoQE+o6K2vd1xHR/oRoQ0rHb8YBSj1/xd/EKB3gkQOiQB wvaL/TYPd+uo4uah6UBjN0zyIBBbvJ/f5CAJJ6Gw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdbserver/Makefile.in: add missing `-x c++` X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 1859fcf17799209720ef3431464139e5098ee91b X-Git-Newrev: c7c9820071f8b81a64221f5cfafb3cbfeafe7916 Message-Id: <20240326014911.A75F53858C41@sourceware.org> Date: Tue, 26 Mar 2024 01:49:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc7c9820071f8= b81a64221f5cfafb3cbfeafe7916 commit c7c9820071f8b81a64221f5cfafb3cbfeafe7916 Author: Simon Marchi Date: Mon Mar 25 14:28:00 2024 -0400 gdbserver/Makefile.in: add missing `-x c++` =20 When building with Clang, I get: =20 CXX nat/x86-linux-tdesc-ipa.o clang++: error: treating 'c' input as 'c++' when in C++ mode, this = behavior is deprecated [-Werror,-Wdeprecated] =20 Fix that by adding the missing `-x c++` in the rule building `gdb/nat/*.c` files for the in-process agent. =20 Change-Id: Ie53e4b9a8b57bef9669397fdfaf21617107c7180 Approved-By: Tom Tromey Diff: --- gdbserver/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in index bd6f68e7f2c..5506701106d 100644 --- a/gdbserver/Makefile.in +++ b/gdbserver/Makefile.in @@ -520,7 +520,7 @@ gdbsupport/%-ipa.o: ../gdbsupport/%.cc $(POSTCOMPILE) =20 nat/%-ipa.o: ../gdb/nat/%.c - $(IPAGENT_COMPILE) $< + $(IPAGENT_COMPILE) -x c++ $< $(POSTCOMPILE) =20 %-ipa.o: ../gdb/%.c