Re: [PATCH 1/2] gdbsupport: rename source files to .cc

Tom Tromey
2020-02-13T14:05:01Z

>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:

Simon> This patch renames the .c source files in gdbsupport to .cc.

I support this change.

Note that this would let us remove these hacks from gdbsupport/Makefile.am:

override CXX += $(CXX_DIALECT)

override CC := $(CXX)
override CFLAGS := $(CXXFLAGS)

AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)

The CC and CFLAGS settings can be removed entirely. AM_CFLAGS can be
renamed to AM_CXXFLAGS, and the CXX_DIALECT can be put there.

thanks,
Tom