public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdbserver/Makefile.in: add missing `-x c++`
Date: Tue, 26 Mar 2024 01:49:11 +0000 (GMT)	[thread overview]
Message-ID: <20240326014911.A75F53858C41@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c7c9820071f8b81a64221f5cfafb3cbfeafe7916

commit c7c9820071f8b81a64221f5cfafb3cbfeafe7916
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Mon Mar 25 14:28:00 2024 -0400

    gdbserver/Makefile.in: add missing `-x c++`
    
    When building with Clang, I get:
    
          CXX    nat/x86-linux-tdesc-ipa.o
        clang++: error: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Werror,-Wdeprecated]
    
    Fix that by adding the missing `-x c++` in the rule building
    `gdb/nat/*.c` files for the in-process agent.
    
    Change-Id: Ie53e4b9a8b57bef9669397fdfaf21617107c7180
    Approved-By: Tom Tromey <tom@tromey.com>

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)
 
 nat/%-ipa.o: ../gdb/nat/%.c
-	$(IPAGENT_COMPILE) $<
+	$(IPAGENT_COMPILE) -x c++ $<
 	$(POSTCOMPILE)
 
 %-ipa.o: ../gdb/%.c

                 reply	other threads:[~2024-03-26  1:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240326014911.A75F53858C41@sourceware.org \
    --to=simark@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).