<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gcc.git/gcc/fortran/cpp.cc, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/'/>
<entry>
<title>diagnostics: eliminate ::diagnostic_info typedef</title>
<updated>2025-07-25T19:13:45+00:00</updated>
<author>
<name>David Malcolm</name>
<email>dmalcolm@redhat.com</email>
</author>
<published>2025-07-25T19:13:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=24ffe3ea649d07f8fb4d14b89b61bf9e174069fd'/>
<id>24ffe3ea649d07f8fb4d14b89b61bf9e174069fd</id>
<content type='text'>
No functional change intended.

gcc/c-family/ChangeLog:
	* c-common.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".
	* c-opts.cc: Likewise.

gcc/c/ChangeLog:
	* c-errors.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".

gcc/cp/ChangeLog:
	* constexpr.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".
	* cp-tree.h: Likewise.
	* error.cc: Likewise.
	* module.cc: Likewise.

gcc/d/ChangeLog:
	* d-diagnostic.cc: Likewise.

gcc/ChangeLog:
	* diagnostic.h: Eliminate "diagnostic_info" typedef.
	* diagnostics/context.cc: Update usage of "diagnostic_info" to
	explicitly refer to "diagnostics::diagnostic_info".
	* langhooks.cc: Likewise.
	* libgdiagnostics.cc: Likewise.
	* rtl-error.cc: Likewise.
	* substring-locations.cc: Likewise.
	* toplev.cc: Likewise.
	* tree-diagnostic.cc: Likewise.
	* tree-diagnostic.h: Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc: Update usage of "diagnostic_info" to explicitly refer to
	"diagnostics::diagnostic_info".
	* error.cc: Likewise.

gcc/jit/ChangeLog:
	* dummy-frontend.cc: Update usage of "diagnostic_info" to
	explicitly refer to "diagnostics::diagnostic_info".

gcc/m2/ChangeLog:
	* gm2-gcc/m2linemap.cc: Update usage of "diagnostic_info" to
	explicitly refer to "diagnostics::diagnostic_info".
	* gm2-gcc/rtegraph.cc: Likewise.

gcc/rust/ChangeLog:
	* resolve/rust-ice-finalizer.cc: Update usage of "diagnostic_info"
	to explicitly refer to "diagnostics::diagnostic_info".
	* resolve/rust-ice-finalizer.h: Likewise.

gcc/testsuite/ChangeLog:
	* g++.dg/plugin/show_template_tree_color_plugin.cc: Update usage
	of "diagnostic_info" to explicitly refer to
	"diagnostics::diagnostic_info".
	* gcc.dg/plugin/diagnostic_group_plugin.cc: Likewise.
	* gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc: Likewise.
	* gcc.dg/plugin/location_overflow_plugin.cc: Likewise.

libcc1/ChangeLog:
	* context.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No functional change intended.

gcc/c-family/ChangeLog:
	* c-common.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".
	* c-opts.cc: Likewise.

gcc/c/ChangeLog:
	* c-errors.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".

gcc/cp/ChangeLog:
	* constexpr.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".
	* cp-tree.h: Likewise.
	* error.cc: Likewise.
	* module.cc: Likewise.

gcc/d/ChangeLog:
	* d-diagnostic.cc: Likewise.

gcc/ChangeLog:
	* diagnostic.h: Eliminate "diagnostic_info" typedef.
	* diagnostics/context.cc: Update usage of "diagnostic_info" to
	explicitly refer to "diagnostics::diagnostic_info".
	* langhooks.cc: Likewise.
	* libgdiagnostics.cc: Likewise.
	* rtl-error.cc: Likewise.
	* substring-locations.cc: Likewise.
	* toplev.cc: Likewise.
	* tree-diagnostic.cc: Likewise.
	* tree-diagnostic.h: Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc: Update usage of "diagnostic_info" to explicitly refer to
	"diagnostics::diagnostic_info".
	* error.cc: Likewise.

gcc/jit/ChangeLog:
	* dummy-frontend.cc: Update usage of "diagnostic_info" to
	explicitly refer to "diagnostics::diagnostic_info".

gcc/m2/ChangeLog:
	* gm2-gcc/m2linemap.cc: Update usage of "diagnostic_info" to
	explicitly refer to "diagnostics::diagnostic_info".
	* gm2-gcc/rtegraph.cc: Likewise.

gcc/rust/ChangeLog:
	* resolve/rust-ice-finalizer.cc: Update usage of "diagnostic_info"
	to explicitly refer to "diagnostics::diagnostic_info".
	* resolve/rust-ice-finalizer.h: Likewise.

gcc/testsuite/ChangeLog:
	* g++.dg/plugin/show_template_tree_color_plugin.cc: Update usage
	of "diagnostic_info" to explicitly refer to
	"diagnostics::diagnostic_info".
	* gcc.dg/plugin/diagnostic_group_plugin.cc: Likewise.
	* gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc: Likewise.
	* gcc.dg/plugin/location_overflow_plugin.cc: Likewise.

libcc1/ChangeLog:
	* context.cc: Update usage of "diagnostic_info" to explicitly
	refer to "diagnostics::diagnostic_info".

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>diagnostics: convert diagnostic_t to enum class diagnostics::kind</title>
<updated>2025-07-25T19:13:43+00:00</updated>
<author>
<name>David Malcolm</name>
<email>dmalcolm@redhat.com</email>
</author>
<published>2025-07-25T19:13:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=3cc27ed5b6fb4253d3fe2139dcc6295e85372a3a'/>
<id>3cc27ed5b6fb4253d3fe2139dcc6295e85372a3a</id>
<content type='text'>
No functional change intended.

gcc/ChangeLog:
	* Makefile.in: Replace diagnostic.def with diagnostics/kinds.def.
	* config/aarch64/aarch64.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* config/i386/i386-options.cc: Likewise.
	* config/s390/s390.cc: Likewise.
	* diagnostic-core.h: Replace typedef diagnostic_t with
	enum class diagnostics::kind in diagnostics/kinds.h and include
	it.
	* diagnostic-global-context.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* diagnostic.cc: Likewise.
	* diagnostic.h: Likewise.
	* diagnostics/buffering.cc: Likewise.
	* diagnostics/buffering.h: Likewise.
	* diagnostics/context.h: Likewise.
	* diagnostics/diagnostic-info.h: Likewise.
	* diagnostics/html-sink.cc: Likewise.
	* diagnostic.def: Move to...
	* diagnostics/kinds.def: ...here and update for diagnostic_t
	becoming enum class diagnostics::kind.
	* diagnostics/kinds.h: New file, based on material in
	diagnostic-core.h.
	* diagnostics/lazy-paths.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* diagnostics/option-classifier.cc: Likewise.
	* diagnostics/option-classifier.h: Likewise.
	* diagnostics/output-spec.h: Likewise.
	* diagnostics/paths-output.cc: Likewise.
	* diagnostics/sarif-sink.cc: Likewise.
	* diagnostics/selftest-context.cc: Likewise.
	* diagnostics/selftest-context.h: Likewise.
	* diagnostics/sink.h: Likewise.
	* diagnostics/source-printing.cc: Likewise.
	* diagnostics/text-sink.cc: Likewise.
	* diagnostics/text-sink.h: Likewise.
	* gcc.cc: Likewise.
	* libgdiagnostics.cc: Likewise.
	* lto-wrapper.cc: Likewise.
	* opts-common.cc: Likewise.
	* opts-diagnostic.h: Likewise.
	* opts.cc: Likewise.
	* rtl-error.cc: Likewise.
	* substring-locations.cc: Likewise.
	* toplev.cc: Likewise.

gcc/ada/ChangeLog:
	* gcc-interface/trans.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/analyzer/ChangeLog:
	* pending-diagnostic.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* program-point.cc: Likewise.

gcc/c-family/ChangeLog:
	* c-common.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* c-format.cc: Likewise.
	* c-lex.cc: Likewise.
	* c-opts.cc: Likewise.
	* c-pragma.cc: Likewise.
	* c-warn.cc: Likewise.

gcc/c/ChangeLog:
	* c-errors.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* c-parser.cc: Likewise.
	* c-typeck.cc: Likewise.

gcc/cobol/ChangeLog:
	* util.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/cp/ChangeLog:
	* call.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* constexpr.cc: Likewise.
	* cp-tree.h: Likewise.
	* decl.cc: Likewise.
	* error.cc: Likewise.
	* init.cc: Likewise.
	* method.cc: Likewise.
	* module.cc: Likewise.
	* parser.cc: Likewise.
	* pt.cc: Likewise.
	* semantics.cc: Likewise.
	* typeck.cc: Likewise.
	* typeck2.cc: Likewise.

gcc/d/ChangeLog:
	* d-diagnostic.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/fortran/ChangeLog:
	* cpp.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* error.cc: Likewise.
	* options.cc: Likewise.

gcc/jit/ChangeLog:
	* dummy-frontend.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/m2/ChangeLog:
	* gm2-gcc/m2linemap.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* gm2-gcc/rtegraph.cc: Likewise.

gcc/rust/ChangeLog:
	* backend/rust-tree.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* backend/rust-tree.h: Likewise.
	* resolve/rust-ast-resolve-expr.cc: Likewise.
	* resolve/rust-ice-finalizer.cc: Likewise.
	* resolve/rust-ice-finalizer.h: Likewise.
	* resolve/rust-late-name-resolver-2.0.cc: Likewise.

gcc/testsuite/ChangeLog:
	* gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc: Update for
	diagnostic_t becoming enum class diagnostics::kind.
	* gcc.dg/plugin/expensive_selftests_plugin.cc: Likewise.
	* gcc.dg/plugin/location_overflow_plugin.cc: Likewise.
	* lib/gcc-dg.exp: Likewise.

libcpp/ChangeLog:
	* internal.h: Update comment for diagnostic_t becoming
	enum class diagnostics::kind.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No functional change intended.

gcc/ChangeLog:
	* Makefile.in: Replace diagnostic.def with diagnostics/kinds.def.
	* config/aarch64/aarch64.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* config/i386/i386-options.cc: Likewise.
	* config/s390/s390.cc: Likewise.
	* diagnostic-core.h: Replace typedef diagnostic_t with
	enum class diagnostics::kind in diagnostics/kinds.h and include
	it.
	* diagnostic-global-context.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* diagnostic.cc: Likewise.
	* diagnostic.h: Likewise.
	* diagnostics/buffering.cc: Likewise.
	* diagnostics/buffering.h: Likewise.
	* diagnostics/context.h: Likewise.
	* diagnostics/diagnostic-info.h: Likewise.
	* diagnostics/html-sink.cc: Likewise.
	* diagnostic.def: Move to...
	* diagnostics/kinds.def: ...here and update for diagnostic_t
	becoming enum class diagnostics::kind.
	* diagnostics/kinds.h: New file, based on material in
	diagnostic-core.h.
	* diagnostics/lazy-paths.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* diagnostics/option-classifier.cc: Likewise.
	* diagnostics/option-classifier.h: Likewise.
	* diagnostics/output-spec.h: Likewise.
	* diagnostics/paths-output.cc: Likewise.
	* diagnostics/sarif-sink.cc: Likewise.
	* diagnostics/selftest-context.cc: Likewise.
	* diagnostics/selftest-context.h: Likewise.
	* diagnostics/sink.h: Likewise.
	* diagnostics/source-printing.cc: Likewise.
	* diagnostics/text-sink.cc: Likewise.
	* diagnostics/text-sink.h: Likewise.
	* gcc.cc: Likewise.
	* libgdiagnostics.cc: Likewise.
	* lto-wrapper.cc: Likewise.
	* opts-common.cc: Likewise.
	* opts-diagnostic.h: Likewise.
	* opts.cc: Likewise.
	* rtl-error.cc: Likewise.
	* substring-locations.cc: Likewise.
	* toplev.cc: Likewise.

gcc/ada/ChangeLog:
	* gcc-interface/trans.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/analyzer/ChangeLog:
	* pending-diagnostic.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* program-point.cc: Likewise.

gcc/c-family/ChangeLog:
	* c-common.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* c-format.cc: Likewise.
	* c-lex.cc: Likewise.
	* c-opts.cc: Likewise.
	* c-pragma.cc: Likewise.
	* c-warn.cc: Likewise.

gcc/c/ChangeLog:
	* c-errors.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* c-parser.cc: Likewise.
	* c-typeck.cc: Likewise.

gcc/cobol/ChangeLog:
	* util.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/cp/ChangeLog:
	* call.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* constexpr.cc: Likewise.
	* cp-tree.h: Likewise.
	* decl.cc: Likewise.
	* error.cc: Likewise.
	* init.cc: Likewise.
	* method.cc: Likewise.
	* module.cc: Likewise.
	* parser.cc: Likewise.
	* pt.cc: Likewise.
	* semantics.cc: Likewise.
	* typeck.cc: Likewise.
	* typeck2.cc: Likewise.

gcc/d/ChangeLog:
	* d-diagnostic.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/fortran/ChangeLog:
	* cpp.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* error.cc: Likewise.
	* options.cc: Likewise.

gcc/jit/ChangeLog:
	* dummy-frontend.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.

gcc/m2/ChangeLog:
	* gm2-gcc/m2linemap.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* gm2-gcc/rtegraph.cc: Likewise.

gcc/rust/ChangeLog:
	* backend/rust-tree.cc: Update for diagnostic_t becoming
	enum class diagnostics::kind.
	* backend/rust-tree.h: Likewise.
	* resolve/rust-ast-resolve-expr.cc: Likewise.
	* resolve/rust-ice-finalizer.cc: Likewise.
	* resolve/rust-ice-finalizer.h: Likewise.
	* resolve/rust-late-name-resolver-2.0.cc: Likewise.

gcc/testsuite/ChangeLog:
	* gcc.dg/plugin/diagnostic_plugin_test_show_locus.cc: Update for
	diagnostic_t becoming enum class diagnostics::kind.
	* gcc.dg/plugin/expensive_selftests_plugin.cc: Likewise.
	* gcc.dg/plugin/location_overflow_plugin.cc: Likewise.
	* lib/gcc-dg.exp: Likewise.

libcpp/ChangeLog:
	* internal.h: Update comment for diagnostic_t becoming
	enum class diagnostics::kind.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>diagnostics: rename diagnostic_option_id to diagnostics::option_id and move to its own header</title>
<updated>2025-07-25T19:13:42+00:00</updated>
<author>
<name>David Malcolm</name>
<email>dmalcolm@redhat.com</email>
</author>
<published>2025-07-25T19:13:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=e8c39611c61886dbbdb831163b5fcad6f5578dfa'/>
<id>e8c39611c61886dbbdb831163b5fcad6f5578dfa</id>
<content type='text'>
No functional change intended.

gcc/c-family/ChangeLog:
	* c-common.cc: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.
	* c-common.h: Likewise.
	* c-cppbuiltin.cc: Likewise.
	* known-headers.cc: Likewise.
	* known-headers.h: Likewise.

gcc/c/ChangeLog:
	* c-decl.cc: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.
	* c-errors.cc: Likewise.
	* c-tree.h: Likewise.

gcc/cobol/ChangeLog:
	* util.cc: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.

gcc/cp/ChangeLog:
	* cp-tree.h: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.
	* decl.cc: Likewise.
	* error.cc: Likewise.
	* name-lookup.cc: Likewise.

gcc/ChangeLog:
	* diagnostic-core.h: Include "diagnostics/option-id.h".
	(struct diagnostic_option_id): Move there, renaming to
	diagnostics::option_id.
	* diagnostic-global-context.cc: Update for renaming of
	diagnostic_option_id to diagnostics::option_id.
	* diagnostic.cc: Likewise.
	* diagnostic.h: Likewise.
	* diagnostics/context.h: Likewise.
	* diagnostics/diagnostic-info.h: Likewise.
	* diagnostics/lazy-paths.cc: Likewise.
	* diagnostics/option-classifier.cc: Likewise.
	* diagnostics/option-classifier.h: Likewise.
	* diagnostics/option-id.h: New file, taken from material in
	diagnostic-core.h.
	* diagnostics/selftest-context.cc: Update for renaming of
	diagnostic_option_id to diagnostics::option_id.
	* diagnostics/selftest-context.h: Likewise.
	* ipa-pure-const.cc: Likewise.
	* lto-wrapper.cc: Likewise.
	* opts-common.cc: Likewise.
	* opts-diagnostic.h: Likewise.
	* opts.cc: Likewise.
	* substring-locations.cc: Likewise.
	* substring-locations.h: Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc: Update for renaming of
	diagnostic_option_id to diagnostics::option_id.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No functional change intended.

gcc/c-family/ChangeLog:
	* c-common.cc: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.
	* c-common.h: Likewise.
	* c-cppbuiltin.cc: Likewise.
	* known-headers.cc: Likewise.
	* known-headers.h: Likewise.

gcc/c/ChangeLog:
	* c-decl.cc: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.
	* c-errors.cc: Likewise.
	* c-tree.h: Likewise.

gcc/cobol/ChangeLog:
	* util.cc: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.

gcc/cp/ChangeLog:
	* cp-tree.h: Update for renaming of diagnostic_option_id to
	diagnostics::option_id.
	* decl.cc: Likewise.
	* error.cc: Likewise.
	* name-lookup.cc: Likewise.

gcc/ChangeLog:
	* diagnostic-core.h: Include "diagnostics/option-id.h".
	(struct diagnostic_option_id): Move there, renaming to
	diagnostics::option_id.
	* diagnostic-global-context.cc: Update for renaming of
	diagnostic_option_id to diagnostics::option_id.
	* diagnostic.cc: Likewise.
	* diagnostic.h: Likewise.
	* diagnostics/context.h: Likewise.
	* diagnostics/diagnostic-info.h: Likewise.
	* diagnostics/lazy-paths.cc: Likewise.
	* diagnostics/option-classifier.cc: Likewise.
	* diagnostics/option-classifier.h: Likewise.
	* diagnostics/option-id.h: New file, taken from material in
	diagnostic-core.h.
	* diagnostics/selftest-context.cc: Update for renaming of
	diagnostic_option_id to diagnostics::option_id.
	* diagnostics/selftest-context.h: Likewise.
	* ipa-pure-const.cc: Likewise.
	* lto-wrapper.cc: Likewise.
	* opts-common.cc: Likewise.
	* opts-diagnostic.h: Likewise.
	* opts.cc: Likewise.
	* substring-locations.cc: Likewise.
	* substring-locations.h: Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc: Update for renaming of
	diagnostic_option_id to diagnostics::option_id.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fortran: Fix PR 47485.</title>
<updated>2025-02-05T01:35:57+00:00</updated>
<author>
<name>Jerry DeLisle</name>
<email>jvdelisle@gcc.gnu.org</email>
</author>
<published>2025-02-05T01:21:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4'/>
<id>e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4</id>
<content type='text'>
The -MT and -MQ options should replace the default target in the
generated dependency file. deps_add_target needs to be called before
cpp_read_main_file, otherwise the original object name is added.

Contributed by Vincent Vanlaer &lt;vincenttc@volkihar.be&gt;

	PR fortran/47485

gcc/fortran/ChangeLog:

	* cpp.cc: fix -MT/-MQ adding additional target instead of
	replacing the default.

gcc/testsuite/ChangeLog:

	* gfortran.dg/dependency_generation_1.f90: New test.

Signed-off-by: Vincent Vanlaer &lt;vincenttc@volkihar.be&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The -MT and -MQ options should replace the default target in the
generated dependency file. deps_add_target needs to be called before
cpp_read_main_file, otherwise the original object name is added.

Contributed by Vincent Vanlaer &lt;vincenttc@volkihar.be&gt;

	PR fortran/47485

gcc/fortran/ChangeLog:

	* cpp.cc: fix -MT/-MQ adding additional target instead of
	replacing the default.

gcc/testsuite/ChangeLog:

	* gfortran.dg/dependency_generation_1.f90: New test.

Signed-off-by: Vincent Vanlaer &lt;vincenttc@volkihar.be&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years.</title>
<updated>2025-01-02T10:59:57+00:00</updated>
<author>
<name>Jakub Jelinek</name>
<email>jakub@redhat.com</email>
</author>
<published>2025-01-02T10:59:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=6441eb6dc020faae0672ea724dfdb38c6a9bf6a1'/>
<id>6441eb6dc020faae0672ea724dfdb38c6a9bf6a1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Remove INCLUDE_MEMORY [PR117737]</title>
<updated>2024-11-22T23:23:00+00:00</updated>
<author>
<name>Andrew Pinski</name>
<email>quic_apinski@quicinc.com</email>
</author>
<published>2024-11-22T17:31:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=b3f1b9e2aa079f8ec73e3cb48143a16645c49566'/>
<id>b3f1b9e2aa079f8ec73e3cb48143a16645c49566</id>
<content type='text'>
Since diagnostic.h is included in over half of the sources, requiring to `#define INCLUDE_MEMORY`
does not make sense. Instead lets unconditionally include memory in system.h.

The majority of this patch is just removing `#define INCLUDE_MEMORY` from the sources which currently
have it.

This should also fix the mingw build issue but I have not tried it.

Bootstrapped and tested on x86_64-linux-gnu.

	PR bootstrap/117737
gcc/ada/ChangeLog:

	* gcc-interface/misc.cc (INCLUDE_MEMORY): Remove.
	* gcc-interface/trans.cc (INCLUDE_MEMORY): Remove.
	* gcc-interface/utils.cc (INCLUDE_MEMORY): Remove.

gcc/analyzer/ChangeLog:

	* access-diagram.cc (INCLUDE_MEMORY): Remove.
	* analysis-plan.cc (INCLUDE_MEMORY): Remove.
	* analyzer-language.cc (INCLUDE_MEMORY): Remove.
	* analyzer-logging.cc (INCLUDE_MEMORY): Remove.
	* analyzer-pass.cc (INCLUDE_MEMORY): Remove.
	* analyzer-selftests.cc (INCLUDE_MEMORY): Remove.
	* analyzer.cc (INCLUDE_MEMORY): Remove.
	* bar-chart.cc (INCLUDE_MEMORY): Remove.
	* bounds-checking.cc (INCLUDE_MEMORY): Remove.
	* call-details.cc (INCLUDE_MEMORY): Remove.
	* call-info.cc (INCLUDE_MEMORY): Remove.
	* call-string.cc (INCLUDE_MEMORY): Remove.
	* call-summary.cc (INCLUDE_MEMORY): Remove.
	* checker-event.cc (INCLUDE_MEMORY): Remove.
	* checker-path.cc (INCLUDE_MEMORY): Remove.
	* complexity.cc (INCLUDE_MEMORY): Remove.
	* constraint-manager.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-manager.cc (INCLUDE_MEMORY): Remove.
	* engine.cc (INCLUDE_MEMORY): Remove.
	* feasible-graph.cc (INCLUDE_MEMORY): Remove.
	* infinite-loop.cc (INCLUDE_MEMORY): Remove.
	* infinite-recursion.cc (INCLUDE_MEMORY): Remove.
	* kf-analyzer.cc (INCLUDE_MEMORY): Remove.
	* kf-lang-cp.cc (INCLUDE_MEMORY): Remove.
	* kf.cc (INCLUDE_MEMORY): Remove.
	* known-function-manager.cc (INCLUDE_MEMORY): Remove.
	* pending-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* program-point.cc (INCLUDE_MEMORY): Remove.
	* program-state.cc (INCLUDE_MEMORY): Remove.
	* ranges.cc (INCLUDE_MEMORY): Remove.
	* record-layout.cc (INCLUDE_MEMORY): Remove.
	* region-model-asm.cc (INCLUDE_MEMORY): Remove.
	* region-model-manager.cc (INCLUDE_MEMORY): Remove.
	* region-model-reachability.cc (INCLUDE_MEMORY): Remove.
	* region-model.cc (INCLUDE_MEMORY): Remove.
	* region.cc (INCLUDE_MEMORY): Remove.
	* sm-fd.cc (INCLUDE_MEMORY): Remove.
	* sm-file.cc (INCLUDE_MEMORY): Remove.
	* sm-malloc.cc (INCLUDE_MEMORY): Remove.
	* sm-pattern-test.cc (INCLUDE_MEMORY): Remove.
	* sm-sensitive.cc (INCLUDE_MEMORY): Remove.
	* sm-signal.cc (INCLUDE_MEMORY): Remove.
	* sm-taint.cc (INCLUDE_MEMORY): Remove.
	* sm.cc (INCLUDE_MEMORY): Remove.
	* state-purge.cc (INCLUDE_MEMORY): Remove.
	* store.cc (INCLUDE_MEMORY): Remove.
	* supergraph.cc (INCLUDE_MEMORY): Remove.
	* svalue.cc (INCLUDE_MEMORY): Remove.
	* symbol.cc (INCLUDE_MEMORY): Remove.
	* trimmed-graph.cc (INCLUDE_MEMORY): Remove.
	* varargs.cc (INCLUDE_MEMORY): Remove.

gcc/ChangeLog:

	* asan.cc (INCLUDE_MEMORY): Remove.
	* attribs.cc (INCLUDE_MEMORY): Remove.
	* auto-profile.cc (INCLUDE_MEMORY): Remove.
	* calls.cc (INCLUDE_MEMORY): Remove.
	* cfganal.cc (INCLUDE_MEMORY): Remove.
	* cfgexpand.cc (INCLUDE_MEMORY): Remove.
	* cfghooks.cc (INCLUDE_MEMORY): Remove.
	* cfgloop.cc (INCLUDE_MEMORY): Remove.
	* cgraph.cc (INCLUDE_MEMORY): Remove.
	* cgraphclones.cc (INCLUDE_MEMORY): Remove.
	* cgraphunit.cc (INCLUDE_MEMORY): Remove.
	* collect-utils.cc (INCLUDE_MEMORY): Remove.
	* collect2.cc (INCLUDE_MEMORY): Remove.
	* common/config/aarch64/aarch64-common.cc (INCLUDE_MEMORY): Remove.
	* common/config/arm/arm-common.cc (INCLUDE_MEMORY): Remove.
	* common/config/avr/avr-common.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64-cc-fusion.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64-early-ra.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64-sve-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64.cc (INCLUDE_MEMORY): Remove.
	* config/arc/arc.cc (INCLUDE_MEMORY): Remove.
	* config/arm/aarch-common.cc (INCLUDE_MEMORY) Remove.:
	* config/arm/arm-mve-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/arm/arm.cc (INCLUDE_MEMORY): Remove.
	* config/avr/avr-devices.cc (INCLUDE_MEMORY): Remove.
	* config/avr/driver-avr.cc (INCLUDE_MEMORY): Remove.
	* config/bpf/bpf.cc (INCLUDE_MEMORY): Remove.
	* config/bpf/btfext-out.cc (INCLUDE_MEMORY): Remove.
	* config/bpf/core-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/darwin.cc (INCLUDE_MEMORY): Remove.
	* config/gcn/mkoffload.cc (INCLUDE_MEMORY): Remove.
	* config/i386/driver-i386.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-expand.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-features.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-options.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386.cc (INCLUDE_MEMORY): Remove.
	* config/loongarch/loongarch-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/loongarch/loongarch.cc (INCLUDE_MEMORY): Remove.
	* config/mingw/winnt-cxx.cc (INCLUDE_MEMORY): Remove.
	* config/mingw/winnt.cc (INCLUDE_MEMORY): Remove.
	* config/mips/mips.cc (INCLUDE_MEMORY): Remove.
	* config/msp430/driver-msp430.cc (INCLUDE_MEMORY): Remove.
	* config/nvptx/mkoffload.cc (INCLUDE_MEMORY): Remove.
	* config/nvptx/nvptx.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-avlprop.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-target-attr.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-vector-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-vector-costs.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-vsetvl.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/driver-rs6000.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/host-darwin.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/rs6000-c.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/rs6000.cc (INCLUDE_MEMORY): Remove.
	* config/s390/s390-c.cc (INCLUDE_MEMORY): Remove.
	* config/s390/s390.cc (INCLUDE_MEMORY): Remove.
	* config/sol2-cxx.cc (INCLUDE_MEMORY): Remove.
	* config/vms/vms-c.cc (INCLUDE_MEMORY): Remove.
	* config/xtensa/xtensa-dynconfig.cc (INCLUDE_MEMORY): Remove.
	* coroutine-passes.cc (INCLUDE_MEMORY): Remove.
	* coverage.cc (INCLUDE_MEMORY): Remove.
	* data-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* data-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* data-streamer.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-format-json.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-format-sarif.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-format-text.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-global-context.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-macro-unwinding.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-show-locus.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-spec.cc (INCLUDE_MEMORY): Remove.
	* diagnostic.cc (INCLUDE_MEMORY): Remove.
	* diagnostic.h: Remove check for INCLUDE_MEMORY.
	* digraph.cc (INCLUDE_MEMORY): Remove.
	* dumpfile.cc (INCLUDE_MEMORY): Remove.
	* dwarf2out.cc (INCLUDE_MEMORY): Remove.
	* edit-context.cc (INCLUDE_MEMORY): Remove.
	* except.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* file-prefix-map.cc (INCLUDE_MEMORY): Remove.
	* final.cc (INCLUDE_MEMORY): Remove.
	* fwprop.cc (INCLUDE_MEMORY): Remove.
	* gcc-plugin.h (INCLUDE_MEMORY): Remove.
	* gcc-rich-location.cc (INCLUDE_MEMORY): Remove.
	* gcc-urlifier.cc (INCLUDE_MEMORY): Remove.
	* gcc.cc (INCLUDE_MEMORY): Remove.
	* gcov-dump.cc (INCLUDE_MEMORY): Remove.
	* gcov-tool.cc (INCLUDE_MEMORY): Remove.
	* gcov.cc (INCLUDE_MEMORY): Remove.
	* gengtype.cc (open_base_files): Don't print `#define INCLUDE_MEMORY`.
	* genmatch.cc (INCLUDE_MEMORY): Remove.
	* gimple-fold.cc (INCLUDE_MEMORY): Remove.
	* gimple-harden-conditionals.cc (INCLUDE_MEMORY): Remove.
	* gimple-harden-control-flow.cc (INCLUDE_MEMORY): Remove.
	* gimple-if-to-switch.cc (INCLUDE_MEMORY): Remove.
	* gimple-loop-interchange.cc (INCLUDE_MEMORY): Remove.
	* gimple-loop-jam.cc (INCLUDE_MEMORY): Remove.
	* gimple-loop-versioning.cc (INCLUDE_MEMORY): Remove.
	* gimple-lower-bitint.cc (INCLUDE_MEMORY): Remove.
	* gimple-predicate-analysis.cc (INCLUDE_MEMORY): Remove.
	* gimple-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-cache.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-edge.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-fold.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-gori.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-infer.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-op.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-path.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-phi.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-trace.cc (INCLUDE_MEMORY): Remove.
	* gimple-range.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-backprop.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-sprintf.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-store-merging.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-strength-reduction.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-warn-access.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-warn-alloca.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-warn-restrict.cc (INCLUDE_MEMORY): Remove.
	* gimple-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* gimple-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* gimple.cc (INCLUDE_MEMORY): Remove.
	* gimplify.cc (INCLUDE_MEMORY): Remove.
	* graph.cc (INCLUDE_MEMORY): Remove.
	* graphite-dependences.cc (INCLUDE_MEMORY): Remove.
	* graphite-isl-ast-to-gimple.cc (INCLUDE_MEMORY): Remove.
	* graphite-optimize-isl.cc (INCLUDE_MEMORY): Remove.
	* graphite-poly.cc (INCLUDE_MEMORY): Remove.
	* graphite-scop-detection.cc (INCLUDE_MEMORY): Remove.
	* graphite-sese-to-poly.cc (INCLUDE_MEMORY): Remove.
	* graphite.cc (INCLUDE_MEMORY): Remove.
	* graphviz.cc (INCLUDE_MEMORY): Remove.
	* input.cc (INCLUDE_MEMORY): Remove.
	* ipa-cp.cc (INCLUDE_MEMORY): Remove.
	* ipa-devirt.cc (INCLUDE_MEMORY): Remove.
	* ipa-fnsummary.cc (INCLUDE_MEMORY): Remove.
	* ipa-free-lang-data.cc (INCLUDE_MEMORY): Remove.
	* ipa-icf-gimple.cc (INCLUDE_MEMORY): Remove.
	* ipa-icf.cc (INCLUDE_MEMORY): Remove.
	* ipa-inline-analysis.cc (INCLUDE_MEMORY): Remove.
	* ipa-inline.cc (INCLUDE_MEMORY): Remove.
	* ipa-modref-tree.cc (INCLUDE_MEMORY): Remove.
	* ipa-modref.cc (INCLUDE_MEMORY): Remove.
	* ipa-param-manipulation.cc (INCLUDE_MEMORY): Remove.
	* ipa-polymorphic-call.cc (INCLUDE_MEMORY): Remove.
	* ipa-predicate.cc (INCLUDE_MEMORY): Remove.
	* ipa-profile.cc (INCLUDE_MEMORY): Remove.
	* ipa-prop.cc (INCLUDE_MEMORY): Remove.
	* ipa-pure-const.cc (INCLUDE_MEMORY): Remove.
	* ipa-reference.cc (INCLUDE_MEMORY): Remove.
	* ipa-split.cc (INCLUDE_MEMORY): Remove.
	* ipa-sra.cc (INCLUDE_MEMORY): Remove.
	* ipa-strub.cc (INCLUDE_MEMORY): Remove.
	* ipa-utils.cc (INCLUDE_MEMORY): Remove.
	* json-parsing.cc (INCLUDE_MEMORY): Remove.
	* json.cc (INCLUDE_MEMORY): Remove.
	* json.h: Don't check INCLUDE_MEMORY.
	* langhooks.cc (INCLUDE_MEMORY): Remove.
	* late-combine.cc (INCLUDE_MEMORY): Remove.
	* lazy-diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* libdiagnostics.cc (INCLUDE_MEMORY): Remove.
	* libsarifreplay.cc (INCLUDE_MEMORY): Remove.
	* lto-cgraph.cc (INCLUDE_MEMORY): Remove.
	* lto-compress.cc (INCLUDE_MEMORY): Remove.
	* lto-opts.cc (INCLUDE_MEMORY): Remove.
	* lto-section-in.cc (INCLUDE_MEMORY): Remove.
	* lto-section-out.cc (INCLUDE_MEMORY): Remove.
	* lto-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* lto-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* lto-streamer.cc (INCLUDE_MEMORY): Remove.
	* lto-wrapper.cc (INCLUDE_MEMORY): Remove.
	* make-unique.h (GCC_MAKE_UNIQUE): Remove.
	* multiple_target.cc (INCLUDE_MEMORY): Remove.
	* omp-expand.cc (INCLUDE_MEMORY): Remove.
	* omp-general.cc (INCLUDE_MEMORY): Remove.
	* omp-low.cc (INCLUDE_MEMORY): Remove.
	* omp-oacc-neuter-broadcast.cc (INCLUDE_MEMORY): Remove.
	* omp-offload.cc (INCLUDE_MEMORY): Remove.
	* omp-simd-clone.cc (INCLUDE_MEMORY): Remove.
	* opt-problem.cc (INCLUDE_MEMORY): Remove.
	* optinfo-emit-json.cc (INCLUDE_MEMORY): Remove.
	* optinfo.cc (INCLUDE_MEMORY): Remove.
	* optinfo.h: Don't check INCLUDE_MEMORY.
	* opts-common.cc (INCLUDE_MEMORY): Remove.
	* opts-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* opts-global.cc (INCLUDE_MEMORY): Remove.
	* opts.cc (INCLUDE_MEMORY): Remove.
	* pair-fusion.cc (INCLUDE_MEMORY): Remove.
	* passes.cc (INCLUDE_MEMORY): Remove.
	* pointer-query.cc (INCLUDE_MEMORY): Remove.
	* predict.cc (INCLUDE_MEMORY): Remove.
	* pretty-print.cc (INCLUDE_MEMORY): Remove.
	* pretty-print.h: Don't check INCLUDE_MEMORY.
	* print-rtl.cc (INCLUDE_MEMORY): Remove.
	* print-tree.cc (INCLUDE_MEMORY): Remove.
	* profile-count.cc (INCLUDE_MEMORY): Remove.
	* range-op-float.cc (INCLUDE_MEMORY): Remove.
	* range-op-ptr.cc (INCLUDE_MEMORY): Remove.
	* range-op.cc (INCLUDE_MEMORY): Remove.
	* range.cc (INCLUDE_MEMORY): Remove.
	* read-rtl-function.cc (INCLUDE_MEMORY): Remove.
	* rtl-error.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/accesses.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/blocks.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/changes.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/functions.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/insns.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/movement.cc (INCLUDE_MEMORY): Remove.
	* rtl-tests.cc (INCLUDE_MEMORY): Remove.
	* sanopt.cc (INCLUDE_MEMORY): Remove.
	* sched-rgn.cc (INCLUDE_MEMORY): Remove.
	* selftest-diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* selftest-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* selftest-json.cc (INCLUDE_MEMORY): Remove.
	* sese.cc (INCLUDE_MEMORY): Remove.
	* simple-diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* splay-tree-utils.cc (INCLUDE_MEMORY): Remove.
	* sreal.cc (INCLUDE_MEMORY): Remove.
	* stmt.cc (INCLUDE_MEMORY): Remove.
	* substring-locations.cc (INCLUDE_MEMORY): Remove.
	* symtab-clones.cc (INCLUDE_MEMORY): Remove.
	* symtab-thunks.cc (INCLUDE_MEMORY): Remove.
	* symtab.cc (INCLUDE_MEMORY): Remove.
	* system.h: Include memory unconditionally for C++.
	Also remove support for INCLUDE_MEMORY.
	* targhooks.cc (INCLUDE_MEMORY): Remove.
	* text-art/box-drawing.cc (INCLUDE_MEMORY): Remove.
	* text-art/canvas.cc (INCLUDE_MEMORY): Remove.
	* text-art/ruler.cc (INCLUDE_MEMORY): Remove.
	* text-art/selftests.cc (INCLUDE_MEMORY): Remove.
	* text-art/style.cc (INCLUDE_MEMORY): Remove.
	* text-art/styled-string.cc (INCLUDE_MEMORY): Remove.
	* text-art/table.cc (INCLUDE_MEMORY): Remove.
	* text-art/theme.cc (INCLUDE_MEMORY): Remove.
	* text-art/tree-widget.cc (INCLUDE_MEMORY): Remove.
	* text-art/widget.cc (INCLUDE_MEMORY): Remove.
	* timevar.cc (INCLUDE_MEMORY): Remove.
	* toplev.cc (INCLUDE_MEMORY): Remove.
	* trans-mem.cc (INCLUDE_MEMORY): Remove.
	* tree-affine.cc (INCLUDE_MEMORY): Remove.
	* tree-assume.cc (INCLUDE_MEMORY): Remove.
	* tree-call-cdce.cc (INCLUDE_MEMORY): Remove.
	* tree-cfg.cc (INCLUDE_MEMORY): Remove.
	* tree-chrec.cc (INCLUDE_MEMORY): Remove.
	* tree-data-ref.cc (INCLUDE_MEMORY): Remove.
	* tree-dfa.cc (INCLUDE_MEMORY): Remove.
	* tree-diagnostic-client-data-hooks.cc (INCLUDE_MEMORY): Remove.
	* tree-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* tree-dump.cc (INCLUDE_MEMORY): Remove.
	* tree-if-conv.cc (INCLUDE_MEMORY): Remove.
	* tree-inline.cc (INCLUDE_MEMORY): Remove.
	* tree-into-ssa.cc (INCLUDE_MEMORY): Remove.
	* tree-logical-location.cc (INCLUDE_MEMORY): Remove.
	* tree-loop-distribution.cc (INCLUDE_MEMORY): Remove.
	* tree-nested.cc (INCLUDE_MEMORY): Remove.
	* tree-nrv.cc (INCLUDE_MEMORY): Remove.
	* tree-object-size.cc (INCLUDE_MEMORY): Remove.
	* tree-outof-ssa.cc (INCLUDE_MEMORY): Remove.
	* tree-parloops.cc (INCLUDE_MEMORY): Remove.
	* tree-predcom.cc (INCLUDE_MEMORY): Remove.
	* tree-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* tree-profile.cc (INCLUDE_MEMORY): Remove.
	* tree-scalar-evolution.cc (INCLUDE_MEMORY): Remove.
	* tree-sra.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-address.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-alias.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-ccp.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-coalesce.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-copy.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-dce.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-dom.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-dse.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-forwprop.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-ifcombine.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-live.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-ch.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-im.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-ivcanon.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-ivopts.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-manip.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-niter.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-prefetch.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-split.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-unswitch.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-math-opts.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-operands.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-phiopt.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-phiprop.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-pre.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-propagate.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-reassoc.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-sccvn.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-scopedtables.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-sink.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-strlen.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-structalias.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-ter.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-threadbackward.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-threadupdate.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-uninit.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa.cc (INCLUDE_MEMORY): Remove.
	* tree-ssanames.cc (INCLUDE_MEMORY): Remove.
	* tree-stdarg.cc (INCLUDE_MEMORY): Remove.
	* tree-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* tree-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* tree-streamer.cc (INCLUDE_MEMORY): Remove.
	* tree-switch-conversion.cc (INCLUDE_MEMORY): Remove.
	* tree-tailcall.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-data-refs.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-generic.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-loop-manip.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-loop.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-patterns.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-slp-patterns.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-slp.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-stmts.cc (INCLUDE_MEMORY): Remove.
	* tree-vectorizer.cc (INCLUDE_MEMORY): Remove.
	* tree-vrp.cc (INCLUDE_MEMORY): Remove.
	* tree.cc (INCLUDE_MEMORY): Remove.
	* ubsan.cc (INCLUDE_MEMORY): Remove.
	* value-pointer-equiv.cc (INCLUDE_MEMORY): Remove.
	* value-prof.cc (INCLUDE_MEMORY): Remove.
	* value-query.cc (INCLUDE_MEMORY): Remove.
	* value-range-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* value-range-storage.cc (INCLUDE_MEMORY): Remove.
	* value-range.cc (INCLUDE_MEMORY): Remove.
	* value-relation.cc (INCLUDE_MEMORY): Remove.
	* var-tracking.cc (INCLUDE_MEMORY): Remove.
	* varpool.cc (INCLUDE_MEMORY): Remove.
	* vr-values.cc (INCLUDE_MEMORY): Remove.
	* wide-int-print.cc (INCLUDE_MEMORY): Remove.

gcc/c-family/ChangeLog:

	* c-ada-spec.cc (INCLUDE_MEMORY): Remove.
	* c-attribs.cc (INCLUDE_MEMORY): Remove.
	* c-common.cc (INCLUDE_MEMORY): Remove.
	* c-format.cc (INCLUDE_MEMORY): Remove.
	* c-gimplify.cc (INCLUDE_MEMORY): Remove.
	* c-indentation.cc (INCLUDE_MEMORY): Remove.
	* c-opts.cc (INCLUDE_MEMORY): Remove.
	* c-pch.cc (INCLUDE_MEMORY): Remove.
	* c-pragma.cc (INCLUDE_MEMORY): Remove.
	* c-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* c-type-mismatch.cc (INCLUDE_MEMORY): Remove.
	* c-warn.cc (INCLUDE_MEMORY): Remove.
	* known-headers.cc (INCLUDE_MEMORY): Remove.
	* name-hint.h: Remove check of INCLUDE_MEMORY.

gcc/c/ChangeLog:

	* c-aux-info.cc (INCLUDE_MEMORY): Remove.
	* c-convert.cc (INCLUDE_MEMORY): Remove.
	* c-decl.cc (INCLUDE_MEMORY): Remove.
	* c-errors.cc (INCLUDE_MEMORY): Remove.
	* c-fold.cc (INCLUDE_MEMORY): Remove.
	* c-lang.cc (INCLUDE_MEMORY): Remove.
	* c-objc-common.cc (INCLUDE_MEMORY): Remove.
	* c-parser.cc (INCLUDE_MEMORY): Remove.
	* c-typeck.cc (INCLUDE_MEMORY): Remove.
	* gimple-parser.cc (INCLUDE_MEMORY): Remove.

gcc/cp/ChangeLog:

	* call.cc (INCLUDE_MEMORY): Remove.
	* class.cc (INCLUDE_MEMORY): Remove.
	* constexpr.cc (INCLUDE_MEMORY): Remove.
	* constraint.cc (INCLUDE_MEMORY): Remove.
	* contracts.cc (INCLUDE_MEMORY): Remove.
	* coroutines.cc (INCLUDE_MEMORY): Remove.
	* cp-gimplify.cc (INCLUDE_MEMORY): Remove.
	* cp-lang.cc (INCLUDE_MEMORY): Remove.
	* cp-objcp-common.cc (INCLUDE_MEMORY): Remove.
	* cp-ubsan.cc (INCLUDE_MEMORY): Remove.
	* cvt.cc (INCLUDE_MEMORY): Remove.
	* cxx-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* decl.cc (INCLUDE_MEMORY): Remove.
	* decl2.cc (INCLUDE_MEMORY): Remove.
	* dump.cc (INCLUDE_MEMORY): Remove.
	* error.cc (INCLUDE_MEMORY): Remove.
	* except.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* friend.cc (INCLUDE_MEMORY): Remove.
	* init.cc (INCLUDE_MEMORY): Remove.
	* lambda.cc (INCLUDE_MEMORY): Remove.
	* lex.cc (INCLUDE_MEMORY): Remove.
	* logic.cc (INCLUDE_MEMORY): Remove.
	* mangle.cc (INCLUDE_MEMORY): Remove.
	* mapper-client.cc (INCLUDE_MEMORY): Remove.
	* mapper-resolver.cc (INCLUDE_MEMORY): Remove.
	* method.cc (INCLUDE_MEMORY): Remove.
	* module.cc (INCLUDE_MEMORY): Remove.
	* name-lookup.cc (INCLUDE_MEMORY): Remove.
	* optimize.cc (INCLUDE_MEMORY): Remove.
	* parser.cc (INCLUDE_MEMORY): Remove.
	* pt.cc (INCLUDE_MEMORY): Remove.
	* ptree.cc (INCLUDE_MEMORY): Remove.
	* rtti.cc (INCLUDE_MEMORY): Remove.
	* search.cc (INCLUDE_MEMORY): Remove.
	* semantics.cc (INCLUDE_MEMORY): Remove.
	* tree.cc (INCLUDE_MEMORY): Remove.
	* typeck.cc (INCLUDE_MEMORY): Remove.
	* typeck2.cc (INCLUDE_MEMORY): Remove.
	* vtable-class-hierarchy.cc (INCLUDE_MEMORY): Remove.

gcc/d/ChangeLog:

	* d-attribs.cc (INCLUDE_MEMORY): Remove.
	* d-builtins.cc (INCLUDE_MEMORY): Remove.
	* d-codegen.cc (INCLUDE_MEMORY): Remove.
	* d-convert.cc (INCLUDE_MEMORY): Remove.
	* d-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* d-frontend.cc (INCLUDE_MEMORY): Remove.
	* d-lang.cc (INCLUDE_MEMORY): Remove.
	* d-longdouble.cc (INCLUDE_MEMORY): Remove.
	* d-target.cc (INCLUDE_MEMORY): Remove.
	* decl.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* intrinsics.cc (INCLUDE_MEMORY): Remove.
	* modules.cc (INCLUDE_MEMORY): Remove.
	* toir.cc (INCLUDE_MEMORY): Remove.
	* typeinfo.cc (INCLUDE_MEMORY): Remove.
	* types.cc (INCLUDE_MEMORY): Remove.

gcc/fortran/ChangeLog:

	* arith.cc (INCLUDE_MEMORY): Remove.
	* array.cc (INCLUDE_MEMORY): Remove.
	* bbt.cc (INCLUDE_MEMORY): Remove.
	* check.cc (INCLUDE_MEMORY): Remove.
	* class.cc (INCLUDE_MEMORY): Remove.
	* constructor.cc (INCLUDE_MEMORY): Remove.
	* convert.cc (INCLUDE_MEMORY): Remove.
	* cpp.cc (INCLUDE_MEMORY): Remove.
	* data.cc (INCLUDE_MEMORY): Remove.
	* decl.cc (INCLUDE_MEMORY): Remove.
	* dependency.cc (INCLUDE_MEMORY): Remove.
	* dump-parse-tree.cc (INCLUDE_MEMORY): Remove.
	* error.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* f95-lang.cc (INCLUDE_MEMORY): Remove.
	* frontend-passes.cc (INCLUDE_MEMORY): Remove.
	* interface.cc (INCLUDE_MEMORY): Remove.
	* intrinsic.cc (INCLUDE_MEMORY): Remove.
	* io.cc (INCLUDE_MEMORY): Remove.
	* iresolve.cc (INCLUDE_MEMORY): Remove.
	* match.cc (INCLUDE_MEMORY): Remove.
	* matchexp.cc (INCLUDE_MEMORY): Remove.
	* misc.cc (INCLUDE_MEMORY): Remove.
	* module.cc (INCLUDE_MEMORY): Remove.
	* openmp.cc (INCLUDE_MEMORY): Remove.
	* options.cc (INCLUDE_MEMORY): Remove.
	* parse.cc (INCLUDE_MEMORY): Remove.
	* primary.cc (INCLUDE_MEMORY): Remove.
	* resolve.cc (INCLUDE_MEMORY): Remove.
	* scanner.cc (INCLUDE_MEMORY): Remove.
	* simplify.cc (INCLUDE_MEMORY): Remove.
	* st.cc (INCLUDE_MEMORY): Remove.
	* symbol.cc (INCLUDE_MEMORY): Remove.
	* target-memory.cc (INCLUDE_MEMORY): Remove.
	* trans-array.cc (INCLUDE_MEMORY): Remove.
	* trans-common.cc (INCLUDE_MEMORY): Remove.
	* trans-const.cc (INCLUDE_MEMORY): Remove.
	* trans-decl.cc (INCLUDE_MEMORY): Remove.
	* trans-expr.cc (INCLUDE_MEMORY): Remove.
	* trans-intrinsic.cc (INCLUDE_MEMORY): Remove.
	* trans-io.cc (INCLUDE_MEMORY): Remove.
	* trans-openmp.cc (INCLUDE_MEMORY): Remove.
	* trans-stmt.cc (INCLUDE_MEMORY): Remove.
	* trans-types.cc (INCLUDE_MEMORY): Remove.
	* trans.cc (INCLUDE_MEMORY): Remove.

gcc/go/ChangeLog:

	* go-backend.cc (INCLUDE_MEMORY): Remove.
	* go-lang.cc (INCLUDE_MEMORY): Remove.

gcc/jit/ChangeLog:

	* dummy-frontend.cc (INCLUDE_MEMORY): Remove.
	* jit-playback.cc (INCLUDE_MEMORY): Remove.
	* jit-recording.cc (INCLUDE_MEMORY): Remove.

gcc/lto/ChangeLog:

	* lto-common.cc (INCLUDE_MEMORY): Remove.
	* lto-dump.cc (INCLUDE_MEMORY): Remove.
	* lto-partition.cc (INCLUDE_MEMORY): Remove.
	* lto-symtab.cc (INCLUDE_MEMORY): Remove.
	* lto.cc (INCLUDE_MEMORY): Remove.

gcc/m2/ChangeLog:

	* gm2-gcc/gcc-consolidation.h (INCLUDE_MEMORY): Remove.
	* gm2-gcc/m2configure.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GASCII.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GASCII.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GArgs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GAssertion.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GAssertion.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GBreak.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GBreak.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GCOROUTINES.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GCmdArgs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GCmdArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GDebug.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GDebug.h (INCLUDE_MEMORY): Remove. Remove.
	* mc-boot/GDynamicStrings.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GDynamicStrings.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GEnvironment.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GEnvironment.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GFIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GFIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GFormatStrings.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GFormatStrings.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GFpuIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GFpuIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GIndexing.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GIndexing.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2Dependent.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2Dependent.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2EXCEPTION.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2EXCEPTION.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2RTS.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2RTS.h (INCLUDE_MEMORY): Remove. Remove.
	* mc-boot/GMemUtils.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GMemUtils.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GNumberIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GNumberIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GPushBackInput.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GPushBackInput.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTExceptions.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTExceptions.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTco.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTentity.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTint.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTint.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSArgs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GSArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSFIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GSFIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSYSTEM.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSelective.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStdIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStdIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStorage.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStorage.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrCase.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrCase.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrLib.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrLib.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStringConvert.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStringConvert.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSysExceptions.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSysStorage.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GSysStorage.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GTimeString.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GTimeString.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GUnixArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Galists.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Galists.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gdecl.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gdecl.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gdtoa.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gerrno.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gkeyc.cc (INCLUDE_MEMORY): Remove.
	(checkGccConfigSystem): Remove printing out `#define INCLUDE_MEMORY`.
	* mc-boot/Gkeyc.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gldtoa.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Glibc.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Glibm.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Glists.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Glists.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComment.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComment.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComp.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComp.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcDebug.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcDebug.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcError.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcError.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcFileName.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcFileName.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcLexBuf.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcLexBuf.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcMetaError.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcMetaError.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcOptions.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcOptions.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPreprocess.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPreprocess.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPretty.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPretty.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPrintf.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPrintf.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcQuiet.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcQuiet.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcReserved.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcReserved.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcSearch.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcSearch.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStack.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStack.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStream.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStream.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcflex.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp1.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp1.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp2.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp2.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp3.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp3.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp4.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp4.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp5.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp5.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GnameKey.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GnameKey.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GsymbolKey.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GsymbolKey.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gtermios.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gtop.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gvarargs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gvarargs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gwlists.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gwlists.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gwrapc.h (INCLUDE_MEMORY): Remove.
	* pge-boot/GIndexing.h (INCLUDE_MEMORY): Remove.
	* pge-boot/GSEnvironment.h (INCLUDE_MEMORY): Remove.
	* pge-boot/GScan.h (INCLUDE_MEMORY): Remove.

gcc/objc/ChangeLog:

	* objc-act.cc (INCLUDE_MEMORY): Remove.
	* objc-encoding.cc (INCLUDE_MEMORY): Remove.
	* objc-gnu-runtime-abi-01.cc (INCLUDE_MEMORY): Remove.
	* objc-lang.cc (INCLUDE_MEMORY): Remove.
	* objc-next-runtime-abi-01.cc (INCLUDE_MEMORY): Remove.
	* objc-next-runtime-abi-02.cc (INCLUDE_MEMORY): Remove.
	* objc-runtime-shared-support.cc (INCLUDE_MEMORY): Remove.

gcc/objcp/ChangeLog:

	* objcp-decl.cc (INCLUDE_MEMORY): Remove.
	* objcp-lang.cc (INCLUDE_MEMORY): Remove.

gcc/rust/ChangeLog:

	* resolve/rust-ast-resolve-expr.cc (INCLUDE_MEMORY): Remove.
	* rust-attribs.cc (INCLUDE_MEMORY): Remove.
	* rust-system.h (INCLUDE_MEMORY): Remove.

Signed-off-by: Andrew Pinski &lt;quic_apinski@quicinc.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since diagnostic.h is included in over half of the sources, requiring to `#define INCLUDE_MEMORY`
does not make sense. Instead lets unconditionally include memory in system.h.

The majority of this patch is just removing `#define INCLUDE_MEMORY` from the sources which currently
have it.

This should also fix the mingw build issue but I have not tried it.

Bootstrapped and tested on x86_64-linux-gnu.

	PR bootstrap/117737
gcc/ada/ChangeLog:

	* gcc-interface/misc.cc (INCLUDE_MEMORY): Remove.
	* gcc-interface/trans.cc (INCLUDE_MEMORY): Remove.
	* gcc-interface/utils.cc (INCLUDE_MEMORY): Remove.

gcc/analyzer/ChangeLog:

	* access-diagram.cc (INCLUDE_MEMORY): Remove.
	* analysis-plan.cc (INCLUDE_MEMORY): Remove.
	* analyzer-language.cc (INCLUDE_MEMORY): Remove.
	* analyzer-logging.cc (INCLUDE_MEMORY): Remove.
	* analyzer-pass.cc (INCLUDE_MEMORY): Remove.
	* analyzer-selftests.cc (INCLUDE_MEMORY): Remove.
	* analyzer.cc (INCLUDE_MEMORY): Remove.
	* bar-chart.cc (INCLUDE_MEMORY): Remove.
	* bounds-checking.cc (INCLUDE_MEMORY): Remove.
	* call-details.cc (INCLUDE_MEMORY): Remove.
	* call-info.cc (INCLUDE_MEMORY): Remove.
	* call-string.cc (INCLUDE_MEMORY): Remove.
	* call-summary.cc (INCLUDE_MEMORY): Remove.
	* checker-event.cc (INCLUDE_MEMORY): Remove.
	* checker-path.cc (INCLUDE_MEMORY): Remove.
	* complexity.cc (INCLUDE_MEMORY): Remove.
	* constraint-manager.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-manager.cc (INCLUDE_MEMORY): Remove.
	* engine.cc (INCLUDE_MEMORY): Remove.
	* feasible-graph.cc (INCLUDE_MEMORY): Remove.
	* infinite-loop.cc (INCLUDE_MEMORY): Remove.
	* infinite-recursion.cc (INCLUDE_MEMORY): Remove.
	* kf-analyzer.cc (INCLUDE_MEMORY): Remove.
	* kf-lang-cp.cc (INCLUDE_MEMORY): Remove.
	* kf.cc (INCLUDE_MEMORY): Remove.
	* known-function-manager.cc (INCLUDE_MEMORY): Remove.
	* pending-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* program-point.cc (INCLUDE_MEMORY): Remove.
	* program-state.cc (INCLUDE_MEMORY): Remove.
	* ranges.cc (INCLUDE_MEMORY): Remove.
	* record-layout.cc (INCLUDE_MEMORY): Remove.
	* region-model-asm.cc (INCLUDE_MEMORY): Remove.
	* region-model-manager.cc (INCLUDE_MEMORY): Remove.
	* region-model-reachability.cc (INCLUDE_MEMORY): Remove.
	* region-model.cc (INCLUDE_MEMORY): Remove.
	* region.cc (INCLUDE_MEMORY): Remove.
	* sm-fd.cc (INCLUDE_MEMORY): Remove.
	* sm-file.cc (INCLUDE_MEMORY): Remove.
	* sm-malloc.cc (INCLUDE_MEMORY): Remove.
	* sm-pattern-test.cc (INCLUDE_MEMORY): Remove.
	* sm-sensitive.cc (INCLUDE_MEMORY): Remove.
	* sm-signal.cc (INCLUDE_MEMORY): Remove.
	* sm-taint.cc (INCLUDE_MEMORY): Remove.
	* sm.cc (INCLUDE_MEMORY): Remove.
	* state-purge.cc (INCLUDE_MEMORY): Remove.
	* store.cc (INCLUDE_MEMORY): Remove.
	* supergraph.cc (INCLUDE_MEMORY): Remove.
	* svalue.cc (INCLUDE_MEMORY): Remove.
	* symbol.cc (INCLUDE_MEMORY): Remove.
	* trimmed-graph.cc (INCLUDE_MEMORY): Remove.
	* varargs.cc (INCLUDE_MEMORY): Remove.

gcc/ChangeLog:

	* asan.cc (INCLUDE_MEMORY): Remove.
	* attribs.cc (INCLUDE_MEMORY): Remove.
	* auto-profile.cc (INCLUDE_MEMORY): Remove.
	* calls.cc (INCLUDE_MEMORY): Remove.
	* cfganal.cc (INCLUDE_MEMORY): Remove.
	* cfgexpand.cc (INCLUDE_MEMORY): Remove.
	* cfghooks.cc (INCLUDE_MEMORY): Remove.
	* cfgloop.cc (INCLUDE_MEMORY): Remove.
	* cgraph.cc (INCLUDE_MEMORY): Remove.
	* cgraphclones.cc (INCLUDE_MEMORY): Remove.
	* cgraphunit.cc (INCLUDE_MEMORY): Remove.
	* collect-utils.cc (INCLUDE_MEMORY): Remove.
	* collect2.cc (INCLUDE_MEMORY): Remove.
	* common/config/aarch64/aarch64-common.cc (INCLUDE_MEMORY): Remove.
	* common/config/arm/arm-common.cc (INCLUDE_MEMORY): Remove.
	* common/config/avr/avr-common.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64-cc-fusion.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64-early-ra.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64-sve-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/aarch64/aarch64.cc (INCLUDE_MEMORY): Remove.
	* config/arc/arc.cc (INCLUDE_MEMORY): Remove.
	* config/arm/aarch-common.cc (INCLUDE_MEMORY) Remove.:
	* config/arm/arm-mve-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/arm/arm.cc (INCLUDE_MEMORY): Remove.
	* config/avr/avr-devices.cc (INCLUDE_MEMORY): Remove.
	* config/avr/driver-avr.cc (INCLUDE_MEMORY): Remove.
	* config/bpf/bpf.cc (INCLUDE_MEMORY): Remove.
	* config/bpf/btfext-out.cc (INCLUDE_MEMORY): Remove.
	* config/bpf/core-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/darwin.cc (INCLUDE_MEMORY): Remove.
	* config/gcn/mkoffload.cc (INCLUDE_MEMORY): Remove.
	* config/i386/driver-i386.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-expand.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-features.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386-options.cc (INCLUDE_MEMORY): Remove.
	* config/i386/i386.cc (INCLUDE_MEMORY): Remove.
	* config/loongarch/loongarch-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/loongarch/loongarch.cc (INCLUDE_MEMORY): Remove.
	* config/mingw/winnt-cxx.cc (INCLUDE_MEMORY): Remove.
	* config/mingw/winnt.cc (INCLUDE_MEMORY): Remove.
	* config/mips/mips.cc (INCLUDE_MEMORY): Remove.
	* config/msp430/driver-msp430.cc (INCLUDE_MEMORY): Remove.
	* config/nvptx/mkoffload.cc (INCLUDE_MEMORY): Remove.
	* config/nvptx/nvptx.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-avlprop.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-target-attr.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-vector-builtins.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-vector-costs.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv-vsetvl.cc (INCLUDE_MEMORY): Remove.
	* config/riscv/riscv.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/driver-rs6000.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/host-darwin.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/rs6000-c.cc (INCLUDE_MEMORY): Remove.
	* config/rs6000/rs6000.cc (INCLUDE_MEMORY): Remove.
	* config/s390/s390-c.cc (INCLUDE_MEMORY): Remove.
	* config/s390/s390.cc (INCLUDE_MEMORY): Remove.
	* config/sol2-cxx.cc (INCLUDE_MEMORY): Remove.
	* config/vms/vms-c.cc (INCLUDE_MEMORY): Remove.
	* config/xtensa/xtensa-dynconfig.cc (INCLUDE_MEMORY): Remove.
	* coroutine-passes.cc (INCLUDE_MEMORY): Remove.
	* coverage.cc (INCLUDE_MEMORY): Remove.
	* data-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* data-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* data-streamer.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-format-json.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-format-sarif.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-format-text.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-global-context.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-macro-unwinding.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-show-locus.cc (INCLUDE_MEMORY): Remove.
	* diagnostic-spec.cc (INCLUDE_MEMORY): Remove.
	* diagnostic.cc (INCLUDE_MEMORY): Remove.
	* diagnostic.h: Remove check for INCLUDE_MEMORY.
	* digraph.cc (INCLUDE_MEMORY): Remove.
	* dumpfile.cc (INCLUDE_MEMORY): Remove.
	* dwarf2out.cc (INCLUDE_MEMORY): Remove.
	* edit-context.cc (INCLUDE_MEMORY): Remove.
	* except.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* file-prefix-map.cc (INCLUDE_MEMORY): Remove.
	* final.cc (INCLUDE_MEMORY): Remove.
	* fwprop.cc (INCLUDE_MEMORY): Remove.
	* gcc-plugin.h (INCLUDE_MEMORY): Remove.
	* gcc-rich-location.cc (INCLUDE_MEMORY): Remove.
	* gcc-urlifier.cc (INCLUDE_MEMORY): Remove.
	* gcc.cc (INCLUDE_MEMORY): Remove.
	* gcov-dump.cc (INCLUDE_MEMORY): Remove.
	* gcov-tool.cc (INCLUDE_MEMORY): Remove.
	* gcov.cc (INCLUDE_MEMORY): Remove.
	* gengtype.cc (open_base_files): Don't print `#define INCLUDE_MEMORY`.
	* genmatch.cc (INCLUDE_MEMORY): Remove.
	* gimple-fold.cc (INCLUDE_MEMORY): Remove.
	* gimple-harden-conditionals.cc (INCLUDE_MEMORY): Remove.
	* gimple-harden-control-flow.cc (INCLUDE_MEMORY): Remove.
	* gimple-if-to-switch.cc (INCLUDE_MEMORY): Remove.
	* gimple-loop-interchange.cc (INCLUDE_MEMORY): Remove.
	* gimple-loop-jam.cc (INCLUDE_MEMORY): Remove.
	* gimple-loop-versioning.cc (INCLUDE_MEMORY): Remove.
	* gimple-lower-bitint.cc (INCLUDE_MEMORY): Remove.
	* gimple-predicate-analysis.cc (INCLUDE_MEMORY): Remove.
	* gimple-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-cache.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-edge.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-fold.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-gori.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-infer.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-op.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-path.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-phi.cc (INCLUDE_MEMORY): Remove.
	* gimple-range-trace.cc (INCLUDE_MEMORY): Remove.
	* gimple-range.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-backprop.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-sprintf.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-store-merging.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-strength-reduction.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-warn-access.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-warn-alloca.cc (INCLUDE_MEMORY): Remove.
	* gimple-ssa-warn-restrict.cc (INCLUDE_MEMORY): Remove.
	* gimple-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* gimple-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* gimple.cc (INCLUDE_MEMORY): Remove.
	* gimplify.cc (INCLUDE_MEMORY): Remove.
	* graph.cc (INCLUDE_MEMORY): Remove.
	* graphite-dependences.cc (INCLUDE_MEMORY): Remove.
	* graphite-isl-ast-to-gimple.cc (INCLUDE_MEMORY): Remove.
	* graphite-optimize-isl.cc (INCLUDE_MEMORY): Remove.
	* graphite-poly.cc (INCLUDE_MEMORY): Remove.
	* graphite-scop-detection.cc (INCLUDE_MEMORY): Remove.
	* graphite-sese-to-poly.cc (INCLUDE_MEMORY): Remove.
	* graphite.cc (INCLUDE_MEMORY): Remove.
	* graphviz.cc (INCLUDE_MEMORY): Remove.
	* input.cc (INCLUDE_MEMORY): Remove.
	* ipa-cp.cc (INCLUDE_MEMORY): Remove.
	* ipa-devirt.cc (INCLUDE_MEMORY): Remove.
	* ipa-fnsummary.cc (INCLUDE_MEMORY): Remove.
	* ipa-free-lang-data.cc (INCLUDE_MEMORY): Remove.
	* ipa-icf-gimple.cc (INCLUDE_MEMORY): Remove.
	* ipa-icf.cc (INCLUDE_MEMORY): Remove.
	* ipa-inline-analysis.cc (INCLUDE_MEMORY): Remove.
	* ipa-inline.cc (INCLUDE_MEMORY): Remove.
	* ipa-modref-tree.cc (INCLUDE_MEMORY): Remove.
	* ipa-modref.cc (INCLUDE_MEMORY): Remove.
	* ipa-param-manipulation.cc (INCLUDE_MEMORY): Remove.
	* ipa-polymorphic-call.cc (INCLUDE_MEMORY): Remove.
	* ipa-predicate.cc (INCLUDE_MEMORY): Remove.
	* ipa-profile.cc (INCLUDE_MEMORY): Remove.
	* ipa-prop.cc (INCLUDE_MEMORY): Remove.
	* ipa-pure-const.cc (INCLUDE_MEMORY): Remove.
	* ipa-reference.cc (INCLUDE_MEMORY): Remove.
	* ipa-split.cc (INCLUDE_MEMORY): Remove.
	* ipa-sra.cc (INCLUDE_MEMORY): Remove.
	* ipa-strub.cc (INCLUDE_MEMORY): Remove.
	* ipa-utils.cc (INCLUDE_MEMORY): Remove.
	* json-parsing.cc (INCLUDE_MEMORY): Remove.
	* json.cc (INCLUDE_MEMORY): Remove.
	* json.h: Don't check INCLUDE_MEMORY.
	* langhooks.cc (INCLUDE_MEMORY): Remove.
	* late-combine.cc (INCLUDE_MEMORY): Remove.
	* lazy-diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* libdiagnostics.cc (INCLUDE_MEMORY): Remove.
	* libsarifreplay.cc (INCLUDE_MEMORY): Remove.
	* lto-cgraph.cc (INCLUDE_MEMORY): Remove.
	* lto-compress.cc (INCLUDE_MEMORY): Remove.
	* lto-opts.cc (INCLUDE_MEMORY): Remove.
	* lto-section-in.cc (INCLUDE_MEMORY): Remove.
	* lto-section-out.cc (INCLUDE_MEMORY): Remove.
	* lto-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* lto-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* lto-streamer.cc (INCLUDE_MEMORY): Remove.
	* lto-wrapper.cc (INCLUDE_MEMORY): Remove.
	* make-unique.h (GCC_MAKE_UNIQUE): Remove.
	* multiple_target.cc (INCLUDE_MEMORY): Remove.
	* omp-expand.cc (INCLUDE_MEMORY): Remove.
	* omp-general.cc (INCLUDE_MEMORY): Remove.
	* omp-low.cc (INCLUDE_MEMORY): Remove.
	* omp-oacc-neuter-broadcast.cc (INCLUDE_MEMORY): Remove.
	* omp-offload.cc (INCLUDE_MEMORY): Remove.
	* omp-simd-clone.cc (INCLUDE_MEMORY): Remove.
	* opt-problem.cc (INCLUDE_MEMORY): Remove.
	* optinfo-emit-json.cc (INCLUDE_MEMORY): Remove.
	* optinfo.cc (INCLUDE_MEMORY): Remove.
	* optinfo.h: Don't check INCLUDE_MEMORY.
	* opts-common.cc (INCLUDE_MEMORY): Remove.
	* opts-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* opts-global.cc (INCLUDE_MEMORY): Remove.
	* opts.cc (INCLUDE_MEMORY): Remove.
	* pair-fusion.cc (INCLUDE_MEMORY): Remove.
	* passes.cc (INCLUDE_MEMORY): Remove.
	* pointer-query.cc (INCLUDE_MEMORY): Remove.
	* predict.cc (INCLUDE_MEMORY): Remove.
	* pretty-print.cc (INCLUDE_MEMORY): Remove.
	* pretty-print.h: Don't check INCLUDE_MEMORY.
	* print-rtl.cc (INCLUDE_MEMORY): Remove.
	* print-tree.cc (INCLUDE_MEMORY): Remove.
	* profile-count.cc (INCLUDE_MEMORY): Remove.
	* range-op-float.cc (INCLUDE_MEMORY): Remove.
	* range-op-ptr.cc (INCLUDE_MEMORY): Remove.
	* range-op.cc (INCLUDE_MEMORY): Remove.
	* range.cc (INCLUDE_MEMORY): Remove.
	* read-rtl-function.cc (INCLUDE_MEMORY): Remove.
	* rtl-error.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/accesses.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/blocks.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/changes.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/functions.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/insns.cc (INCLUDE_MEMORY): Remove.
	* rtl-ssa/movement.cc (INCLUDE_MEMORY): Remove.
	* rtl-tests.cc (INCLUDE_MEMORY): Remove.
	* sanopt.cc (INCLUDE_MEMORY): Remove.
	* sched-rgn.cc (INCLUDE_MEMORY): Remove.
	* selftest-diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* selftest-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* selftest-json.cc (INCLUDE_MEMORY): Remove.
	* sese.cc (INCLUDE_MEMORY): Remove.
	* simple-diagnostic-path.cc (INCLUDE_MEMORY): Remove.
	* splay-tree-utils.cc (INCLUDE_MEMORY): Remove.
	* sreal.cc (INCLUDE_MEMORY): Remove.
	* stmt.cc (INCLUDE_MEMORY): Remove.
	* substring-locations.cc (INCLUDE_MEMORY): Remove.
	* symtab-clones.cc (INCLUDE_MEMORY): Remove.
	* symtab-thunks.cc (INCLUDE_MEMORY): Remove.
	* symtab.cc (INCLUDE_MEMORY): Remove.
	* system.h: Include memory unconditionally for C++.
	Also remove support for INCLUDE_MEMORY.
	* targhooks.cc (INCLUDE_MEMORY): Remove.
	* text-art/box-drawing.cc (INCLUDE_MEMORY): Remove.
	* text-art/canvas.cc (INCLUDE_MEMORY): Remove.
	* text-art/ruler.cc (INCLUDE_MEMORY): Remove.
	* text-art/selftests.cc (INCLUDE_MEMORY): Remove.
	* text-art/style.cc (INCLUDE_MEMORY): Remove.
	* text-art/styled-string.cc (INCLUDE_MEMORY): Remove.
	* text-art/table.cc (INCLUDE_MEMORY): Remove.
	* text-art/theme.cc (INCLUDE_MEMORY): Remove.
	* text-art/tree-widget.cc (INCLUDE_MEMORY): Remove.
	* text-art/widget.cc (INCLUDE_MEMORY): Remove.
	* timevar.cc (INCLUDE_MEMORY): Remove.
	* toplev.cc (INCLUDE_MEMORY): Remove.
	* trans-mem.cc (INCLUDE_MEMORY): Remove.
	* tree-affine.cc (INCLUDE_MEMORY): Remove.
	* tree-assume.cc (INCLUDE_MEMORY): Remove.
	* tree-call-cdce.cc (INCLUDE_MEMORY): Remove.
	* tree-cfg.cc (INCLUDE_MEMORY): Remove.
	* tree-chrec.cc (INCLUDE_MEMORY): Remove.
	* tree-data-ref.cc (INCLUDE_MEMORY): Remove.
	* tree-dfa.cc (INCLUDE_MEMORY): Remove.
	* tree-diagnostic-client-data-hooks.cc (INCLUDE_MEMORY): Remove.
	* tree-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* tree-dump.cc (INCLUDE_MEMORY): Remove.
	* tree-if-conv.cc (INCLUDE_MEMORY): Remove.
	* tree-inline.cc (INCLUDE_MEMORY): Remove.
	* tree-into-ssa.cc (INCLUDE_MEMORY): Remove.
	* tree-logical-location.cc (INCLUDE_MEMORY): Remove.
	* tree-loop-distribution.cc (INCLUDE_MEMORY): Remove.
	* tree-nested.cc (INCLUDE_MEMORY): Remove.
	* tree-nrv.cc (INCLUDE_MEMORY): Remove.
	* tree-object-size.cc (INCLUDE_MEMORY): Remove.
	* tree-outof-ssa.cc (INCLUDE_MEMORY): Remove.
	* tree-parloops.cc (INCLUDE_MEMORY): Remove.
	* tree-predcom.cc (INCLUDE_MEMORY): Remove.
	* tree-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* tree-profile.cc (INCLUDE_MEMORY): Remove.
	* tree-scalar-evolution.cc (INCLUDE_MEMORY): Remove.
	* tree-sra.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-address.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-alias.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-ccp.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-coalesce.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-copy.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-dce.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-dom.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-dse.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-forwprop.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-ifcombine.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-live.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-ch.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-im.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-ivcanon.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-ivopts.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-manip.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-niter.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-prefetch.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-split.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-loop-unswitch.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-math-opts.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-operands.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-phiopt.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-phiprop.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-pre.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-propagate.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-reassoc.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-sccvn.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-scopedtables.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-sink.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-strlen.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-structalias.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-ter.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-threadbackward.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-threadupdate.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa-uninit.cc (INCLUDE_MEMORY): Remove.
	* tree-ssa.cc (INCLUDE_MEMORY): Remove.
	* tree-ssanames.cc (INCLUDE_MEMORY): Remove.
	* tree-stdarg.cc (INCLUDE_MEMORY): Remove.
	* tree-streamer-in.cc (INCLUDE_MEMORY): Remove.
	* tree-streamer-out.cc (INCLUDE_MEMORY): Remove.
	* tree-streamer.cc (INCLUDE_MEMORY): Remove.
	* tree-switch-conversion.cc (INCLUDE_MEMORY): Remove.
	* tree-tailcall.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-data-refs.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-generic.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-loop-manip.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-loop.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-patterns.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-slp-patterns.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-slp.cc (INCLUDE_MEMORY): Remove.
	* tree-vect-stmts.cc (INCLUDE_MEMORY): Remove.
	* tree-vectorizer.cc (INCLUDE_MEMORY): Remove.
	* tree-vrp.cc (INCLUDE_MEMORY): Remove.
	* tree.cc (INCLUDE_MEMORY): Remove.
	* ubsan.cc (INCLUDE_MEMORY): Remove.
	* value-pointer-equiv.cc (INCLUDE_MEMORY): Remove.
	* value-prof.cc (INCLUDE_MEMORY): Remove.
	* value-query.cc (INCLUDE_MEMORY): Remove.
	* value-range-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* value-range-storage.cc (INCLUDE_MEMORY): Remove.
	* value-range.cc (INCLUDE_MEMORY): Remove.
	* value-relation.cc (INCLUDE_MEMORY): Remove.
	* var-tracking.cc (INCLUDE_MEMORY): Remove.
	* varpool.cc (INCLUDE_MEMORY): Remove.
	* vr-values.cc (INCLUDE_MEMORY): Remove.
	* wide-int-print.cc (INCLUDE_MEMORY): Remove.

gcc/c-family/ChangeLog:

	* c-ada-spec.cc (INCLUDE_MEMORY): Remove.
	* c-attribs.cc (INCLUDE_MEMORY): Remove.
	* c-common.cc (INCLUDE_MEMORY): Remove.
	* c-format.cc (INCLUDE_MEMORY): Remove.
	* c-gimplify.cc (INCLUDE_MEMORY): Remove.
	* c-indentation.cc (INCLUDE_MEMORY): Remove.
	* c-opts.cc (INCLUDE_MEMORY): Remove.
	* c-pch.cc (INCLUDE_MEMORY): Remove.
	* c-pragma.cc (INCLUDE_MEMORY): Remove.
	* c-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* c-type-mismatch.cc (INCLUDE_MEMORY): Remove.
	* c-warn.cc (INCLUDE_MEMORY): Remove.
	* known-headers.cc (INCLUDE_MEMORY): Remove.
	* name-hint.h: Remove check of INCLUDE_MEMORY.

gcc/c/ChangeLog:

	* c-aux-info.cc (INCLUDE_MEMORY): Remove.
	* c-convert.cc (INCLUDE_MEMORY): Remove.
	* c-decl.cc (INCLUDE_MEMORY): Remove.
	* c-errors.cc (INCLUDE_MEMORY): Remove.
	* c-fold.cc (INCLUDE_MEMORY): Remove.
	* c-lang.cc (INCLUDE_MEMORY): Remove.
	* c-objc-common.cc (INCLUDE_MEMORY): Remove.
	* c-parser.cc (INCLUDE_MEMORY): Remove.
	* c-typeck.cc (INCLUDE_MEMORY): Remove.
	* gimple-parser.cc (INCLUDE_MEMORY): Remove.

gcc/cp/ChangeLog:

	* call.cc (INCLUDE_MEMORY): Remove.
	* class.cc (INCLUDE_MEMORY): Remove.
	* constexpr.cc (INCLUDE_MEMORY): Remove.
	* constraint.cc (INCLUDE_MEMORY): Remove.
	* contracts.cc (INCLUDE_MEMORY): Remove.
	* coroutines.cc (INCLUDE_MEMORY): Remove.
	* cp-gimplify.cc (INCLUDE_MEMORY): Remove.
	* cp-lang.cc (INCLUDE_MEMORY): Remove.
	* cp-objcp-common.cc (INCLUDE_MEMORY): Remove.
	* cp-ubsan.cc (INCLUDE_MEMORY): Remove.
	* cvt.cc (INCLUDE_MEMORY): Remove.
	* cxx-pretty-print.cc (INCLUDE_MEMORY): Remove.
	* decl.cc (INCLUDE_MEMORY): Remove.
	* decl2.cc (INCLUDE_MEMORY): Remove.
	* dump.cc (INCLUDE_MEMORY): Remove.
	* error.cc (INCLUDE_MEMORY): Remove.
	* except.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* friend.cc (INCLUDE_MEMORY): Remove.
	* init.cc (INCLUDE_MEMORY): Remove.
	* lambda.cc (INCLUDE_MEMORY): Remove.
	* lex.cc (INCLUDE_MEMORY): Remove.
	* logic.cc (INCLUDE_MEMORY): Remove.
	* mangle.cc (INCLUDE_MEMORY): Remove.
	* mapper-client.cc (INCLUDE_MEMORY): Remove.
	* mapper-resolver.cc (INCLUDE_MEMORY): Remove.
	* method.cc (INCLUDE_MEMORY): Remove.
	* module.cc (INCLUDE_MEMORY): Remove.
	* name-lookup.cc (INCLUDE_MEMORY): Remove.
	* optimize.cc (INCLUDE_MEMORY): Remove.
	* parser.cc (INCLUDE_MEMORY): Remove.
	* pt.cc (INCLUDE_MEMORY): Remove.
	* ptree.cc (INCLUDE_MEMORY): Remove.
	* rtti.cc (INCLUDE_MEMORY): Remove.
	* search.cc (INCLUDE_MEMORY): Remove.
	* semantics.cc (INCLUDE_MEMORY): Remove.
	* tree.cc (INCLUDE_MEMORY): Remove.
	* typeck.cc (INCLUDE_MEMORY): Remove.
	* typeck2.cc (INCLUDE_MEMORY): Remove.
	* vtable-class-hierarchy.cc (INCLUDE_MEMORY): Remove.

gcc/d/ChangeLog:

	* d-attribs.cc (INCLUDE_MEMORY): Remove.
	* d-builtins.cc (INCLUDE_MEMORY): Remove.
	* d-codegen.cc (INCLUDE_MEMORY): Remove.
	* d-convert.cc (INCLUDE_MEMORY): Remove.
	* d-diagnostic.cc (INCLUDE_MEMORY): Remove.
	* d-frontend.cc (INCLUDE_MEMORY): Remove.
	* d-lang.cc (INCLUDE_MEMORY): Remove.
	* d-longdouble.cc (INCLUDE_MEMORY): Remove.
	* d-target.cc (INCLUDE_MEMORY): Remove.
	* decl.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* intrinsics.cc (INCLUDE_MEMORY): Remove.
	* modules.cc (INCLUDE_MEMORY): Remove.
	* toir.cc (INCLUDE_MEMORY): Remove.
	* typeinfo.cc (INCLUDE_MEMORY): Remove.
	* types.cc (INCLUDE_MEMORY): Remove.

gcc/fortran/ChangeLog:

	* arith.cc (INCLUDE_MEMORY): Remove.
	* array.cc (INCLUDE_MEMORY): Remove.
	* bbt.cc (INCLUDE_MEMORY): Remove.
	* check.cc (INCLUDE_MEMORY): Remove.
	* class.cc (INCLUDE_MEMORY): Remove.
	* constructor.cc (INCLUDE_MEMORY): Remove.
	* convert.cc (INCLUDE_MEMORY): Remove.
	* cpp.cc (INCLUDE_MEMORY): Remove.
	* data.cc (INCLUDE_MEMORY): Remove.
	* decl.cc (INCLUDE_MEMORY): Remove.
	* dependency.cc (INCLUDE_MEMORY): Remove.
	* dump-parse-tree.cc (INCLUDE_MEMORY): Remove.
	* error.cc (INCLUDE_MEMORY): Remove.
	* expr.cc (INCLUDE_MEMORY): Remove.
	* f95-lang.cc (INCLUDE_MEMORY): Remove.
	* frontend-passes.cc (INCLUDE_MEMORY): Remove.
	* interface.cc (INCLUDE_MEMORY): Remove.
	* intrinsic.cc (INCLUDE_MEMORY): Remove.
	* io.cc (INCLUDE_MEMORY): Remove.
	* iresolve.cc (INCLUDE_MEMORY): Remove.
	* match.cc (INCLUDE_MEMORY): Remove.
	* matchexp.cc (INCLUDE_MEMORY): Remove.
	* misc.cc (INCLUDE_MEMORY): Remove.
	* module.cc (INCLUDE_MEMORY): Remove.
	* openmp.cc (INCLUDE_MEMORY): Remove.
	* options.cc (INCLUDE_MEMORY): Remove.
	* parse.cc (INCLUDE_MEMORY): Remove.
	* primary.cc (INCLUDE_MEMORY): Remove.
	* resolve.cc (INCLUDE_MEMORY): Remove.
	* scanner.cc (INCLUDE_MEMORY): Remove.
	* simplify.cc (INCLUDE_MEMORY): Remove.
	* st.cc (INCLUDE_MEMORY): Remove.
	* symbol.cc (INCLUDE_MEMORY): Remove.
	* target-memory.cc (INCLUDE_MEMORY): Remove.
	* trans-array.cc (INCLUDE_MEMORY): Remove.
	* trans-common.cc (INCLUDE_MEMORY): Remove.
	* trans-const.cc (INCLUDE_MEMORY): Remove.
	* trans-decl.cc (INCLUDE_MEMORY): Remove.
	* trans-expr.cc (INCLUDE_MEMORY): Remove.
	* trans-intrinsic.cc (INCLUDE_MEMORY): Remove.
	* trans-io.cc (INCLUDE_MEMORY): Remove.
	* trans-openmp.cc (INCLUDE_MEMORY): Remove.
	* trans-stmt.cc (INCLUDE_MEMORY): Remove.
	* trans-types.cc (INCLUDE_MEMORY): Remove.
	* trans.cc (INCLUDE_MEMORY): Remove.

gcc/go/ChangeLog:

	* go-backend.cc (INCLUDE_MEMORY): Remove.
	* go-lang.cc (INCLUDE_MEMORY): Remove.

gcc/jit/ChangeLog:

	* dummy-frontend.cc (INCLUDE_MEMORY): Remove.
	* jit-playback.cc (INCLUDE_MEMORY): Remove.
	* jit-recording.cc (INCLUDE_MEMORY): Remove.

gcc/lto/ChangeLog:

	* lto-common.cc (INCLUDE_MEMORY): Remove.
	* lto-dump.cc (INCLUDE_MEMORY): Remove.
	* lto-partition.cc (INCLUDE_MEMORY): Remove.
	* lto-symtab.cc (INCLUDE_MEMORY): Remove.
	* lto.cc (INCLUDE_MEMORY): Remove.

gcc/m2/ChangeLog:

	* gm2-gcc/gcc-consolidation.h (INCLUDE_MEMORY): Remove.
	* gm2-gcc/m2configure.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GASCII.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GASCII.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GArgs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GAssertion.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GAssertion.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GBreak.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GBreak.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GCOROUTINES.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GCmdArgs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GCmdArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GDebug.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GDebug.h (INCLUDE_MEMORY): Remove. Remove.
	* mc-boot/GDynamicStrings.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GDynamicStrings.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GEnvironment.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GEnvironment.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GFIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GFIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GFormatStrings.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GFormatStrings.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GFpuIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GFpuIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GIndexing.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GIndexing.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2Dependent.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2Dependent.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2EXCEPTION.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2EXCEPTION.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2RTS.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GM2RTS.h (INCLUDE_MEMORY): Remove. Remove.
	* mc-boot/GMemUtils.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GMemUtils.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GNumberIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GNumberIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GPushBackInput.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GPushBackInput.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTExceptions.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTExceptions.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTco.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTentity.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTint.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GRTint.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSArgs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GSArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSFIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GSFIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSYSTEM.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSelective.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStdIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStdIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStorage.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStorage.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrCase.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrCase.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrIO.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrIO.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrLib.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStrLib.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GStringConvert.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GStringConvert.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSysExceptions.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GSysStorage.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GSysStorage.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GTimeString.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GTimeString.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GUnixArgs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Galists.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Galists.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gdecl.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gdecl.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gdtoa.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gerrno.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gkeyc.cc (INCLUDE_MEMORY): Remove.
	(checkGccConfigSystem): Remove printing out `#define INCLUDE_MEMORY`.
	* mc-boot/Gkeyc.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gldtoa.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Glibc.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Glibm.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Glists.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Glists.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComment.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComment.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComp.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcComp.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcDebug.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcDebug.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcError.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcError.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcFileName.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcFileName.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcLexBuf.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcLexBuf.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcMetaError.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcMetaError.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcOptions.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcOptions.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPreprocess.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPreprocess.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPretty.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPretty.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPrintf.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcPrintf.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcQuiet.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcQuiet.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcReserved.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcReserved.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcSearch.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcSearch.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStack.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStack.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStream.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GmcStream.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcflex.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp1.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp1.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp2.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp2.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp3.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp3.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp4.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp4.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp5.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gmcp5.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GnameKey.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GnameKey.h (INCLUDE_MEMORY): Remove.
	* mc-boot/GsymbolKey.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/GsymbolKey.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gtermios.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gtop.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gvarargs.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gvarargs.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gwlists.cc (INCLUDE_MEMORY): Remove.
	* mc-boot/Gwlists.h (INCLUDE_MEMORY): Remove.
	* mc-boot/Gwrapc.h (INCLUDE_MEMORY): Remove.
	* pge-boot/GIndexing.h (INCLUDE_MEMORY): Remove.
	* pge-boot/GSEnvironment.h (INCLUDE_MEMORY): Remove.
	* pge-boot/GScan.h (INCLUDE_MEMORY): Remove.

gcc/objc/ChangeLog:

	* objc-act.cc (INCLUDE_MEMORY): Remove.
	* objc-encoding.cc (INCLUDE_MEMORY): Remove.
	* objc-gnu-runtime-abi-01.cc (INCLUDE_MEMORY): Remove.
	* objc-lang.cc (INCLUDE_MEMORY): Remove.
	* objc-next-runtime-abi-01.cc (INCLUDE_MEMORY): Remove.
	* objc-next-runtime-abi-02.cc (INCLUDE_MEMORY): Remove.
	* objc-runtime-shared-support.cc (INCLUDE_MEMORY): Remove.

gcc/objcp/ChangeLog:

	* objcp-decl.cc (INCLUDE_MEMORY): Remove.
	* objcp-lang.cc (INCLUDE_MEMORY): Remove.

gcc/rust/ChangeLog:

	* resolve/rust-ast-resolve-expr.cc (INCLUDE_MEMORY): Remove.
	* rust-attribs.cc (INCLUDE_MEMORY): Remove.
	* rust-system.h (INCLUDE_MEMORY): Remove.

Signed-off-by: Andrew Pinski &lt;quic_apinski@quicinc.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use unique_ptr in more places in pretty_printer/diagnostics [PR116613]</title>
<updated>2024-10-24T15:48:01+00:00</updated>
<author>
<name>David Malcolm</name>
<email>dmalcolm@redhat.com</email>
</author>
<published>2024-10-24T15:48:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=bf43fe6aa966eaf397ea3b8ebd6408d3d124e285'/>
<id>bf43fe6aa966eaf397ea3b8ebd6408d3d124e285</id>
<content type='text'>
My forthcoming patches for PR other/116613 make much more use of
cloning of pretty_printers than before, so it makes sense as a
preliminary patch for the result of pretty_printer::clone to be a
std::unique_ptr, rather than add more manual uses of "delete".

On doing so, I noticed various other places where naked new/delete is
used for run-time configuration of diagnostics:
* the output format (text vs SARIF)
* client data hooks
* the option manager
* the URLifier

Hence this patch also makes use of std::unique_ptr and ::make_unique for
managing such client policy classes, and also for diagnostic_buffer's
per-format implementations.

Unfortunately we can't directly include &lt;memory&gt; in our internal headers
but instead any of our TUs that make use of std::unique_ptr must #define
INCLUDE_MEMORY before including system.h.

Hence the bulk of this patch is taken up with adding a define of
INCLUDE_MEMORY to hundreds of source files: everything that includes
diagnostic.h or pretty-print.h (and thus anything transitively such as
includers of lto-wrapper.h, c-tree.h, cp-tree.h and rtl-ssa.h).

Thanks to Gaius Mulley for the parts of the patch that regenerated the
m2 files.

gcc/ada/ChangeLog:
	PR other/116613
	* gcc-interface/misc.cc: Add #define INCLUDE_MEMORY
	* gcc-interface/trans.cc: Likewise.
	* gcc-interface/utils.cc: Likewise.

gcc/analyzer/ChangeLog:
	PR other/116613
	* analyzer-logging.cc: Add #define INCLUDE_MEMORY
	(logger::logger): Update for m_pp becoming a unique_ptr.
	(logger::~logger): Likewise.
	(logger::log_va_partial): Likewise.
	(logger::end_log_line): Likewise.
	* analyzer-logging.h (logger::get_printer): Likewise.
	(logger::m_pp): Convert to a unique_ptr.
	* analyzer.cc (make_label_text): Use
	diagnostic_context::clone_printer and use unique_ptr.
	(make_label_text_n): Likewise.
	* bar-chart.cc: Add #define INCLUDE_MEMORY
	* pending-diagnostic.cc (evdesc::event_desc::formatted_print):
	Use diagnostic_context::clone_printer and use unique_ptr.
	* sm-malloc.cc (sufficiently_similar_p): Likewise.
	* supergraph.cc (supergraph::dump_dot_to_file): Likewise.

gcc/c-family/ChangeLog:
	PR other/116613
	* c-ada-spec.cc: Add #define INCLUDE_MEMORY.
	* c-attribs.cc: Likewise.
	* c-common.cc: Likewise.
	* c-format.cc: Likewise.
	* c-gimplify.cc: Likewise.
	* c-indentation.cc: Likewise.
	* c-opts.cc: Likewise.
	* c-pch.cc: Likewise.
	* c-pragma.cc: Likewise.
	* c-pretty-print.cc: Likewise.  Add #include "make-unique.h".
	(c_pretty_printer::clone): Use std::unique_ptr and ::make_unique.
	* c-pretty-print.h (c_pretty_printer::clone): Use std::unique_ptr.
	* c-type-mismatch.cc: Add #define INCLUDE_MEMORY.
	* c-warn.cc: Likewise.

gcc/c/ChangeLog:
	PR other/116613
	* c-aux-info.cc: Add #define INCLUDE_MEMORY.
	* c-convert.cc: Likewise.
	* c-errors.cc: Likewise.
	* c-fold.cc: Likewise.
	* c-lang.cc: Likewise.
	* c-objc-common.cc: Likewise.
	(pp_markup::element_quoted_type::print_type): Use unique_ptr.
	* c-typeck.cc: Add #define INCLUDE_MEMORY.
	* gimple-parser.cc: Likewise.

gcc/cp/ChangeLog:
	PR other/116613
	* call.cc: Add #define INCLUDE_MEMORY.
	* class.cc: Likewise.
	* constexpr.cc: Likewise.
	* constraint.cc: Likewise.
	* contracts.cc: Likewise.
	* coroutines.cc: Likewise.
	* cp-gimplify.cc: Likewise.
	* cp-lang.cc: Likewise.
	* cp-objcp-common.cc: Likewise.
	* cp-ubsan.cc: Likewise.
	* cvt.cc: Likewise.
	* cxx-pretty-print.cc: Likewise.  Add #include "cp-tree.h".
	(cxx_pretty_printer::clone): Use std::unique_ptr and
	::make_unique.
	* cxx-pretty-print.h (cxx_pretty_printer::clone): Use
	std::unique_ptr.
	* decl2.cc: Add #define INCLUDE_MEMORY.
	* dump.cc: Likewise.
	* except.cc: Likewise.
	* expr.cc: Likewise.
	* friend.cc: Likewise.
	* init.cc: Likewise.
	* lambda.cc: Likewise.
	* logic.cc: Likewise.
	* mangle.cc: Likewise.
	* method.cc: Likewise.
	* optimize.cc: Likewise.
	* pt.cc: Likewise.
	* ptree.cc: Likewise.
	* rtti.cc: Likewise.
	* search.cc: Likewise.
	* semantics.cc: Likewise.
	* tree.cc: Likewise.
	* typeck.cc: Likewise.
	* typeck2.cc: Likewise.
	* vtable-class-hierarchy.cc: Likewise.

gcc/d/ChangeLog:
	PR other/116613
	* d-attribs.cc: Add #define INCLUDE_MEMORY.
	* d-builtins.cc: Likewise.
	* d-codegen.cc: Likewise.
	* d-convert.cc: Likewise.
	* d-diagnostic.cc: Likewise.
	* d-frontend.cc: Likewise.
	* d-lang.cc: Likewise.
	* d-longdouble.cc: Likewise.
	* d-target.cc: Likewise.
	* decl.cc: Likewise.
	* expr.cc: Likewise.
	* intrinsics.cc: Likewise.
	* modules.cc: Likewise.
	* toir.cc: Likewise.
	* typeinfo.cc: Likewise.
	* types.cc: Likewise.

gcc/fortran/ChangeLog:
	PR other/116613
	* arith.cc: Add #define INCLUDE_MEMORY.
	* array.cc: Likewise.
	* bbt.cc: Likewise.
	* check.cc: Likewise.
	* class.cc: Likewise.
	* constructor.cc: Likewise.
	* convert.cc: Likewise.
	* cpp.cc: Likewise.
	* data.cc: Likewise.
	* decl.cc: Likewise.
	* dependency.cc: Likewise.
	* dump-parse-tree.cc: Likewise.
	* error.cc: Likewise.
	* expr.cc: Likewise.
	* f95-lang.cc: Likewise.
	* frontend-passes.cc: Likewise.
	* interface.cc: Likewise.
	* intrinsic.cc: Likewise.
	* io.cc: Likewise.
	* iresolve.cc: Likewise.
	* match.cc: Likewise.
	* matchexp.cc: Likewise.
	* misc.cc: Likewise.
	* module.cc: Likewise.
	* openmp.cc: Likewise.
	* options.cc: Likewise.
	* parse.cc: Likewise.
	* primary.cc: Likewise.
	* resolve.cc: Likewise.
	* scanner.cc: Likewise.
	* simplify.cc: Likewise.
	* st.cc: Likewise.
	* symbol.cc: Likewise.
	* target-memory.cc: Likewise.
	* trans-array.cc: Likewise.
	* trans-common.cc: Likewise.
	* trans-const.cc: Likewise.
	* trans-decl.cc: Likewise.
	* trans-expr.cc: Likewise.
	* trans-intrinsic.cc: Likewise.
	* trans-io.cc: Likewise.
	* trans-openmp.cc: Likewise.
	* trans-stmt.cc: Likewise.
	* trans-types.cc: Likewise.
	* trans.cc: Likewise.

gcc/go/ChangeLog:
	PR other/116613
	* go-backend.cc: Add #define INCLUDE_MEMORY.
	* go-lang.cc: Likewise.

gcc/jit/ChangeLog:
	PR other/116613
	* dummy-frontend.cc: Add #define INCLUDE_MEMORY.
	* jit-playback.cc: Likewise.
	* jit-recording.cc: Likewise.

gcc/lto/ChangeLog:
	PR other/116613
	* lto-common.cc: Add #define INCLUDE_MEMORY.
	* lto-dump.cc: Likewise.
	* lto-partition.cc: Likewise.
	* lto-symtab.cc: Likewise.
	* lto.cc: Likewise.

gcc/m2/ChangeLog:
	PR other/116613
	* gm2-gcc/gcc-consolidation.h: Add #define INCLUDE_MEMORY.
	* gm2-gcc/m2configure.cc: Likewise.
	* mc-boot/GASCII.cc: Regenerate.
	* mc-boot/GASCII.h: Ditto.
	* mc-boot/GArgs.cc: Ditto.
	* mc-boot/GArgs.h: Ditto.
	* mc-boot/GAssertion.cc: Ditto.
	* mc-boot/GAssertion.h: Ditto.
	* mc-boot/GBreak.cc: Ditto.
	* mc-boot/GBreak.h: Ditto.
	* mc-boot/GCOROUTINES.h: Ditto.
	* mc-boot/GCmdArgs.cc: Ditto.
	* mc-boot/GCmdArgs.h: Ditto.
	* mc-boot/GDebug.cc: Ditto.
	* mc-boot/GDebug.h: Ditto.
	* mc-boot/GDynamicStrings.cc: Ditto.
	* mc-boot/GDynamicStrings.h: Ditto.
	* mc-boot/GEnvironment.cc: Ditto.
	* mc-boot/GEnvironment.h: Ditto.
	* mc-boot/GFIO.cc: Ditto.
	* mc-boot/GFIO.h: Ditto.
	* mc-boot/GFormatStrings.cc: Ditto.
	* mc-boot/GFormatStrings.h: Ditto.
	* mc-boot/GFpuIO.cc: Ditto.
	* mc-boot/GFpuIO.h: Ditto.
	* mc-boot/GIO.cc: Ditto.
	* mc-boot/GIO.h: Ditto.
	* mc-boot/GIndexing.cc: Ditto.
	* mc-boot/GIndexing.h: Ditto.
	* mc-boot/GM2Dependent.cc: Ditto.
	* mc-boot/GM2Dependent.h: Ditto.
	* mc-boot/GM2EXCEPTION.cc: Ditto.
	* mc-boot/GM2EXCEPTION.h: Ditto.
	* mc-boot/GM2RTS.cc: Ditto.
	* mc-boot/GM2RTS.h: Ditto.
	* mc-boot/GMemUtils.cc: Ditto.
	* mc-boot/GMemUtils.h: Ditto.
	* mc-boot/GNumberIO.cc: Ditto.
	* mc-boot/GNumberIO.h: Ditto.
	* mc-boot/GPushBackInput.cc: Ditto.
	* mc-boot/GPushBackInput.h: Ditto.
	* mc-boot/GRTExceptions.cc: Ditto.
	* mc-boot/GRTExceptions.h: Ditto.
	* mc-boot/GRTco.h: Ditto.
	* mc-boot/GRTentity.h: Ditto.
	* mc-boot/GRTint.cc: Ditto.
	* mc-boot/GRTint.h: Ditto.
	* mc-boot/GSArgs.cc: Ditto.
	* mc-boot/GSArgs.h: Ditto.
	* mc-boot/GSFIO.cc: Ditto.
	* mc-boot/GSFIO.h: Ditto.
	* mc-boot/GSYSTEM.h: Ditto.
	* mc-boot/GSelective.h: Ditto.
	* mc-boot/GStdIO.cc: Ditto.
	* mc-boot/GStdIO.h: Ditto.
	* mc-boot/GStorage.cc: Ditto.
	* mc-boot/GStorage.h: Ditto.
	* mc-boot/GStrCase.cc: Ditto.
	* mc-boot/GStrCase.h: Ditto.
	* mc-boot/GStrIO.cc: Ditto.
	* mc-boot/GStrIO.h: Ditto.
	* mc-boot/GStrLib.cc: Ditto.
	* mc-boot/GStrLib.h: Ditto.
	* mc-boot/GStringConvert.cc: Ditto.
	* mc-boot/GStringConvert.h: Ditto.
	* mc-boot/GSysExceptions.h: Ditto.
	* mc-boot/GSysStorage.cc: Ditto.
	* mc-boot/GSysStorage.h: Ditto.
	* mc-boot/GTimeString.cc: Ditto.
	* mc-boot/GTimeString.h: Ditto.
	* mc-boot/GUnixArgs.h: Ditto.
	* mc-boot/Galists.cc: Ditto.
	* mc-boot/Galists.h: Ditto.
	* mc-boot/Gdecl.cc: Ditto.
	* mc-boot/Gdecl.h: Ditto.
	* mc-boot/Gdtoa.h: Ditto.
	* mc-boot/Gerrno.h: Ditto.
	* mc-boot/Gkeyc.cc: Ditto.
	* mc-boot/Gkeyc.h: Ditto.
	* mc-boot/Gldtoa.h: Ditto.
	* mc-boot/Glibc.h: Ditto.
	* mc-boot/Glibm.h: Ditto.
	* mc-boot/Glists.cc: Ditto.
	* mc-boot/Glists.h: Ditto.
	* mc-boot/GmcComment.cc: Ditto.
	* mc-boot/GmcComment.h: Ditto.
	* mc-boot/GmcComp.cc: Ditto.
	* mc-boot/GmcComp.h: Ditto.
	* mc-boot/GmcDebug.cc: Ditto.
	* mc-boot/GmcDebug.h: Ditto.
	* mc-boot/GmcError.cc: Ditto.
	* mc-boot/GmcError.h: Ditto.
	* mc-boot/GmcFileName.cc: Ditto.
	* mc-boot/GmcFileName.h: Ditto.
	* mc-boot/GmcLexBuf.cc: Ditto.
	* mc-boot/GmcLexBuf.h: Ditto.
	* mc-boot/GmcMetaError.cc: Ditto.
	* mc-boot/GmcMetaError.h: Ditto.
	* mc-boot/GmcOptions.cc: Ditto.
	* mc-boot/GmcOptions.h: Ditto.
	* mc-boot/GmcPreprocess.cc: Ditto.
	* mc-boot/GmcPreprocess.h: Ditto.
	* mc-boot/GmcPretty.cc: Ditto.
	* mc-boot/GmcPretty.h: Ditto.
	* mc-boot/GmcPrintf.cc: Ditto.
	* mc-boot/GmcPrintf.h: Ditto.
	* mc-boot/GmcQuiet.cc: Ditto.
	* mc-boot/GmcQuiet.h: Ditto.
	* mc-boot/GmcReserved.cc: Ditto.
	* mc-boot/GmcReserved.h: Ditto.
	* mc-boot/GmcSearch.cc: Ditto.
	* mc-boot/GmcSearch.h: Ditto.
	* mc-boot/GmcStack.cc: Ditto.
	* mc-boot/GmcStack.h: Ditto.
	* mc-boot/GmcStream.cc: Ditto.
	* mc-boot/GmcStream.h: Ditto.
	* mc-boot/Gmcflex.h: Ditto.
	* mc-boot/Gmcp1.cc: Ditto.
	* mc-boot/Gmcp1.h: Ditto.
	* mc-boot/Gmcp2.cc: Ditto.
	* mc-boot/Gmcp2.h: Ditto.
	* mc-boot/Gmcp3.cc: Ditto.
	* mc-boot/Gmcp3.h: Ditto.
	* mc-boot/Gmcp4.cc: Ditto.
	* mc-boot/Gmcp4.h: Ditto.
	* mc-boot/Gmcp5.cc: Ditto.
	* mc-boot/Gmcp5.h: Ditto.
	* mc-boot/GnameKey.cc: Ditto.
	* mc-boot/GnameKey.h: Ditto.
	* mc-boot/GsymbolKey.cc: Ditto.
	* mc-boot/GsymbolKey.h: Ditto.
	* mc-boot/Gtermios.h: Ditto.
	* mc-boot/Gtop.cc: Ditto.
	* mc-boot/Gvarargs.cc: Ditto.
	* mc-boot/Gvarargs.h: Ditto.
	* mc-boot/Gwlists.cc: Ditto.
	* mc-boot/Gwlists.h: Ditto.
	* mc-boot/Gwrapc.h: Ditto.
	* mc/keyc.mod (checkGccConfigSystem): Add
	#define INCLUDE_MEMORY.
	* pge-boot/GASCII.cc: Regenerate.
	* pge-boot/GASCII.h: Ditto.
	* pge-boot/GArgs.cc: Ditto.
	* pge-boot/GArgs.h: Ditto.
	* pge-boot/GAssertion.cc: Ditto.
	* pge-boot/GAssertion.h: Ditto.
	* pge-boot/GBreak.h: Ditto.
	* pge-boot/GCmdArgs.h: Ditto.
	* pge-boot/GDebug.cc: Ditto.
	* pge-boot/GDebug.h: Ditto.
	* pge-boot/GDynamicStrings.cc: Ditto.
	* pge-boot/GDynamicStrings.h: Ditto.
	* pge-boot/GEnvironment.h: Ditto.
	* pge-boot/GFIO.cc: Ditto.
	* pge-boot/GFIO.h: Ditto.
	* pge-boot/GFormatStrings.h: Ditto.
	* pge-boot/GFpuIO.h: Ditto.
	* pge-boot/GIO.cc: Ditto.
	* pge-boot/GIO.h: Ditto.
	* pge-boot/GIndexing.cc: Ditto.
	* pge-boot/GIndexing.h: Ditto.
	* pge-boot/GLists.cc: Ditto.
	* pge-boot/GLists.h: Ditto.
	* pge-boot/GM2Dependent.cc: Ditto.
	* pge-boot/GM2Dependent.h: Ditto.
	* pge-boot/GM2EXCEPTION.cc: Ditto.
	* pge-boot/GM2EXCEPTION.h: Ditto.
	* pge-boot/GM2RTS.cc: Ditto.
	* pge-boot/GM2RTS.h: Ditto.
	* pge-boot/GNameKey.cc: Ditto.
	* pge-boot/GNameKey.h: Ditto.
	* pge-boot/GNumberIO.cc: Ditto.
	* pge-boot/GNumberIO.h: Ditto.
	* pge-boot/GOutput.cc: Ditto.
	* pge-boot/GOutput.h: Ditto.
	* pge-boot/GPushBackInput.cc: Ditto.
	* pge-boot/GPushBackInput.h: Ditto.
	* pge-boot/GRTExceptions.cc: Ditto.
	* pge-boot/GRTExceptions.h: Ditto.
	* pge-boot/GSArgs.h: Ditto.
	* pge-boot/GSEnvironment.h: Ditto.
	* pge-boot/GSFIO.cc: Ditto.
	* pge-boot/GSFIO.h: Ditto.
	* pge-boot/GSYSTEM.h: Ditto.
	* pge-boot/GScan.h: Ditto.
	* pge-boot/GStdIO.cc: Ditto.
	* pge-boot/GStdIO.h: Ditto.
	* pge-boot/GStorage.cc: Ditto.
	* pge-boot/GStorage.h: Ditto.
	* pge-boot/GStrCase.cc: Ditto.
	* pge-boot/GStrCase.h: Ditto.
	* pge-boot/GStrIO.cc: Ditto.
	* pge-boot/GStrIO.h: Ditto.
	* pge-boot/GStrLib.cc: Ditto.
	* pge-boot/GStrLib.h: Ditto.
	* pge-boot/GStringConvert.h: Ditto.
	* pge-boot/GSymbolKey.cc: Ditto.
	* pge-boot/GSymbolKey.h: Ditto.
	* pge-boot/GSysExceptions.h: Ditto.
	* pge-boot/GSysStorage.cc: Ditto.
	* pge-boot/GSysStorage.h: Ditto.
	* pge-boot/GTimeString.h: Ditto.
	* pge-boot/GUnixArgs.h: Ditto.
	* pge-boot/Gbnflex.cc: Ditto.
	* pge-boot/Gbnflex.h: Ditto.
	* pge-boot/Gdtoa.h: Ditto.
	* pge-boot/Gerrno.h: Ditto.
	* pge-boot/Gldtoa.h: Ditto.
	* pge-boot/Glibc.h: Ditto.
	* pge-boot/Glibm.h: Ditto.
	* pge-boot/Gpge.cc: Ditto.
	* pge-boot/Gtermios.h: Ditto.
	* pge-boot/Gwrapc.h: Ditto.

gcc/objc/ChangeLog:
	PR other/116613
	* objc-act.cc: Add #define INCLUDE_MEMORY.
	* objc-encoding.cc: Likewise.
	* objc-gnu-runtime-abi-01.cc: Likewise.
	* objc-lang.cc: Likewise.
	* objc-next-runtime-abi-01.cc: Likewise.
	* objc-next-runtime-abi-02.cc: Likewise.
	* objc-runtime-shared-support.cc: Likewise.

gcc/objcp/ChangeLog:: Add #define INCLUDE_MEMORY.
	PR other/116613
	* objcp-decl.cc
	* objcp-lang.cc: Likewise.

gcc/rust/ChangeLog:
	PR other/116613
	* resolve/rust-ast-resolve-expr.cc: Add #define INCLUDE_MEMORY.
	* rust-attribs.cc: Likewise.
	* rust-system.h: Likewise.

gcc/ChangeLog:
	PR other/116613
	* asan.cc: Add #define INCLUDE_MEMORY.
	* attribs.cc: Likewise.
	(attr_access::array_as_string): Use
	diagnostic_context::clone_printer and use unique_ptr.
	* auto-profile.cc: Add #define INCLUDE_MEMORY.
	* calls.cc: Likewise.
	* cfganal.cc: Likewise.
	* cfgexpand.cc: Likewise.
	* cfghooks.cc: Likewise.
	* cfgloop.cc: Likewise.
	* cgraph.cc: Likewise.
	* cgraphclones.cc: Likewise.
	* cgraphunit.cc: Likewise.
	* collect-utils.cc: Likewise.
	* collect2.cc: Likewise.
	* common/config/aarch64/aarch64-common.cc: Likewise.
	* common/config/arm/arm-common.cc: Likewise.
	* common/config/avr/avr-common.cc: Likewise.
	* config/aarch64/aarch64-cc-fusion.cc: Likewise.
	* config/aarch64/aarch64-early-ra.cc: Likewise.
	* config/aarch64/aarch64-sve-builtins.cc: Likewise.
	* config/arc/arc.cc: Likewise.
	* config/arm/aarch-common.cc: Likewise.
	* config/arm/arm-mve-builtins.cc: Likewise.
	* config/avr/avr-devices.cc: Likewise.
	* config/avr/driver-avr.cc: Likewise.
	* config/bpf/bpf.cc: Likewise.
	* config/bpf/btfext-out.cc: Likewise.
	* config/bpf/core-builtins.cc: Likewise.
	* config/darwin.cc: Likewise.
	* config/i386/driver-i386.cc: Likewise.
	* config/i386/i386-builtins.cc: Likewise.
	* config/i386/i386-expand.cc: Likewise.
	* config/i386/i386-features.cc: Likewise.
	* config/i386/i386-options.cc: Likewise.
	* config/loongarch/loongarch-builtins.cc: Likewise.
	* config/mingw/winnt-cxx.cc: Likewise.
	* config/mingw/winnt.cc: Likewise.
	* config/mips/mips.cc: Likewise.
	* config/msp430/driver-msp430.cc: Likewise.
	* config/nvptx/mkoffload.cc: Likewise.
	* config/nvptx/nvptx.cc: Likewise.
	* config/riscv/riscv-avlprop.cc: Likewise.
	* config/riscv/riscv-vector-builtins.cc: Likewise.
	* config/riscv/riscv-vsetvl.cc: Likewise.
	* config/rs6000/driver-rs6000.cc: Likewise.
	* config/rs6000/host-darwin.cc: Likewise.
	* config/rs6000/rs6000-c.cc: Likewise.
	* config/s390/s390-c.cc: Likewise.
	* config/s390/s390.cc: Likewise.
	* config/sol2-cxx.cc: Likewise.
	* config/vms/vms-c.cc: Likewise.
	* config/xtensa/xtensa-dynconfig.cc: Likewise.
	* coroutine-passes.cc: Likewise.
	* coverage.cc: Likewise.
	* data-streamer-in.cc: Likewise.
	* data-streamer-out.cc: Likewise.
	* data-streamer.cc: Likewise.
	* diagnostic-buffer.h (diagnostic_buffer::~diagnostic_buffer):
	Delete.
	(diagnostic_buffer::m_per_format_buffer): Use std::unique_ptr.
	* diagnostic-client-data-hooks.h (make_compiler_data_hooks): Use
	std::unique_ptr for return type.
	* diagnostic-format-json.cc
	(json_output_format::make_per_format_buffer): Likewise.
	(diagnostic_output_format_init_json): Update for usage of
	std::unique_ptr in set_output_format.
	* diagnostic-format-sarif.cc
	(sarif_output_format::make_per_format_buffer): Use std::unique_ptr
	for return type.
	(diagnostic_output_format_init_sarif): Update for usage of
	std::unique_ptr.
	(test_message_with_embedded_link): Likewise for set_urlifier.
	* diagnostic-format-text.cc: Add #define INCLUDE_MEMORY.  Include
	"make-unique.h".
	(diagnostic_text_output_format::set_buffer): Use std::unique_ptr.
	* diagnostic-format-text.h
	(diagnostic_text_output_format::set_buffer): Likewise.
	* diagnostic-format.h
	(diagnostic_output_format::make_per_format_buffer): Likewise.
	* diagnostic-global-context.cc:
	* diagnostic-macro-unwinding.cc: Likewise.
	* diagnostic-show-locus.cc: Likewise.
	* diagnostic-spec.cc: Likewise.
	* diagnostic.cc (diagnostic_context::set_output_format): Use
	std::unique_ptr for input.
	(diagnostic_context::set_client_data_hooks): Likewise.
	(diagnostic_context::set_option_manager): Likewise.
	(diagnostic_context::set_urlifier): Likewise.
	(diagnostic_context::set_diagnostic_buffer): Update for use of
	std::unique_ptr.
	(diagnostic_buffer::diagnostic_buffer): Likewise.
	(diagnostic_buffer::~diagnostic_buffer): Delete.
	* diagnostic.h: Complain if INCLUDE_MEMORY was not defined.
	(diagnostic_context::set_output_format): Use std::unique_ptr for
	input.
	(diagnostic_context::set_client_data_hooks): Likewise.
	(diagnostic_context::set_option_manager): Likewise.
	(diagnostic_context::set_urlifier): Likewise.
	(diagnostic_context::clone_printer): New.
	(diagnostic_context::m_printer): Update comment.
	(diagnostic_context::m_option_mgr): Likewise.
	(diagnostic_context::m_urlifier): Likewise.
	(diagnostic_context::m_edit_context_ptr): Likewise.
	(diagnostic_context::m_output_format): Likewise.
	(diagnostic_context::m_client_data_hooks): Likewise.
	(diagnostic_context::m_theme): Likewise.
	* digraph.cc: Add #define INCLUDE_MEMORY.
	* dwarf2out.cc: Likewise.
	* edit-context.cc: Likewise.
	* except.cc: Likewise.
	* expr.cc: Likewise.
	* file-prefix-map.cc: Likewise.
	* final.cc: Likewise.
	* fwprop.cc: Likewise.
	* gcc-plugin.h: Likewise.
	* gcc-rich-location.cc: Likewise.
	* gcc-urlifier.cc: Likewise.  Add #include "make-unique.h".
	(make_gcc_urlifier): Use std::unique_ptr and ::make_unique.
	* gcc-urlifier.h (make_gcc_urlifier): Use std::unique_ptr.
	* gcc.cc: Add #define INCLUDE_MEMORY.  Include
	"pretty-print-urlifier.h".
	* gcov-dump.cc: Add #define INCLUDE_MEMORY.
	* gcov-tool.cc: Likewise.
	* gengtype.cc (open_base_files): Likewise to output.
	* genmatch.cc: Likewise.
	* gimple-fold.cc: Likewise.
	* gimple-harden-conditionals.cc: Likewise.
	* gimple-harden-control-flow.cc: Likewise.
	* gimple-if-to-switch.cc: Likewise.
	* gimple-lower-bitint.cc: Likewise.
	* gimple-predicate-analysis.cc: Likewise.
	* gimple-pretty-print.cc: Likewise.
	* gimple-range-cache.cc: Likewise.
	* gimple-range-edge.cc: Likewise.
	* gimple-range-fold.cc: Likewise.
	* gimple-range-gori.cc: Likewise.
	* gimple-range-infer.cc: Likewise.
	* gimple-range-op.cc: Likewise.
	* gimple-range-path.cc: Likewise.
	* gimple-range-phi.cc: Likewise.
	* gimple-range-trace.cc: Likewise.
	* gimple-range.cc: Likewise.
	* gimple-ssa-backprop.cc: Likewise.
	* gimple-ssa-sprintf.cc: Likewise.
	* gimple-ssa-store-merging.cc: Likewise.
	* gimple-ssa-strength-reduction.cc: Likewise.
	* gimple-ssa-warn-access.cc: Likewise.
	* gimple-ssa-warn-alloca.cc: Likewise.
	* gimple-ssa-warn-restrict.cc: Likewise.
	* gimple-streamer-in.cc: Likewise.
	* gimple-streamer-out.cc: Likewise.
	* gimple.cc: Likewise.
	* gimplify.cc: Likewise.
	* graph.cc: Likewise.
	* graphviz.cc: Likewise.
	* input.cc: Likewise.
	* ipa-cp.cc: Likewise.
	* ipa-devirt.cc: Likewise.
	* ipa-fnsummary.cc: Likewise.
	* ipa-free-lang-data.cc: Likewise.
	* ipa-icf-gimple.cc: Likewise.
	* ipa-icf.cc: Likewise.
	* ipa-inline-analysis.cc: Likewise.
	* ipa-inline.cc: Likewise.
	* ipa-modref-tree.cc: Likewise.
	* ipa-modref.cc: Likewise.
	* ipa-param-manipulation.cc: Likewise.
	* ipa-polymorphic-call.cc: Likewise.
	* ipa-predicate.cc: Likewise.
	* ipa-profile.cc: Likewise.
	* ipa-prop.cc: Likewise.
	* ipa-pure-const.cc: Likewise.
	* ipa-reference.cc: Likewise.
	* ipa-split.cc: Likewise.
	* ipa-sra.cc: Likewise.
	* ipa-strub.cc: Likewise.
	* ipa-utils.cc: Likewise.
	* langhooks.cc: Likewise.
	* late-combine.cc: Likewise.
	* lto-cgraph.cc: Likewise.
	* lto-compress.cc: Likewise.
	* lto-opts.cc: Likewise.
	* lto-section-in.cc: Likewise.
	* lto-section-out.cc: Likewise.
	* lto-streamer-in.cc: Likewise.
	* lto-streamer-out.cc: Likewise.
	* lto-streamer.cc: Likewise.
	* lto-wrapper.cc: Likewise.  Include "make-unique.h".
	(main): Use ::make_unique when creating option manager.
	* multiple_target.cc: Likewise.
	* omp-expand.cc: Likewise.
	* omp-general.cc: Likewise.
	* omp-low.cc: Likewise.
	* omp-oacc-neuter-broadcast.cc: Likewise.
	* omp-offload.cc: Likewise.
	* omp-simd-clone.cc: Likewise.
	* optc-gen.awk: Likewise in output.
	* optc-save-gen.awk: Likewise in output.
	* options-urls-cc-gen.awk: Likewise in output.
	* opts-common.cc: Likewise.
	* opts-global.cc: Likewise.
	* opts.cc: Likewise.
	* pair-fusion.cc: Likewise.
	* passes.cc: Likewise.
	* pointer-query.cc: Likewise.
	* predict.cc: Likewise.
	* pretty-print.cc (pretty_printer::clone): Use std::unique_ptr and
	::make_unique.
	* pretty-print.h: Complain if INCLUDE_MEMORY is not defined.
	(pretty_printer::clone): Use std::unique_ptr.
	* print-rtl.cc: Add #define INCLUDE_MEMORY.
	* print-tree.cc: Likewise.
	* profile-count.cc: Likewise.
	* range-op-float.cc: Likewise.
	* range-op-ptr.cc: Likewise.
	* range-op.cc: Likewise.
	* range.cc: Likewise.
	* read-rtl-function.cc: Likewise.
	* rtl-error.cc: Likewise.
	* rtl-ssa/accesses.cc: Likewise.
	* rtl-ssa/blocks.cc: Likewise.
	* rtl-ssa/changes.cc: Likewise.
	* rtl-ssa/functions.cc: Likewise.
	* rtl-ssa/insns.cc: Likewise.
	* rtl-ssa/movement.cc: Likewise.
	* rtl-tests.cc: Likewise.
	* sanopt.cc: Likewise.
	* sched-rgn.cc: Likewise.
	* selftest-diagnostic-path.cc: Likewise.
	* selftest-diagnostic.cc: Likewise.
	* splay-tree-utils.cc: Likewise.
	* sreal.cc: Likewise.
	* stmt.cc: Likewise.
	* substring-locations.cc: Likewise.
	* symtab-clones.cc: Likewise.
	* symtab-thunks.cc: Likewise.
	* symtab.cc: Likewise.
	* text-art/box-drawing.cc: Likewise.
	* text-art/canvas.cc: Likewise.
	* text-art/ruler.cc: Likewise.
	* text-art/selftests.cc: Likewise.
	* text-art/theme.cc: Likewise.
	* toplev.cc: Likewise.  Include "make-unique.h".
	(general_init): Use ::make_unique when setting option_manager.
	* trans-mem.cc: Add #define INCLUDE_MEMORY.
	* tree-affine.cc: Likewise.
	* tree-call-cdce.cc: Likewise.
	* tree-cfg.cc: Likewise.
	* tree-chrec.cc: Likewise.
	* tree-dfa.cc: Likewise.
	* tree-diagnostic-client-data-hooks.cc: Include "make-unique.h".
	(make_compiler_data_hooks): Use std::unique_ptr and ::make_unique.
	* tree-diagnostic.cc: Add #define INCLUDE_MEMORY.
	* tree-dump.cc: Likewise.
	* tree-inline.cc: Likewise.
	* tree-into-ssa.cc: Likewise.
	* tree-logical-location.cc: Likewise.
	* tree-nested.cc: Likewise.
	* tree-nrv.cc: Likewise.
	* tree-object-size.cc: Likewise.
	* tree-outof-ssa.cc: Likewise.
	* tree-pretty-print.cc: Likewise.
	* tree-profile.cc: Likewise.
	* tree-scalar-evolution.cc: Likewise.
	* tree-sra.cc: Likewise.
	* tree-ssa-address.cc: Likewise.
	* tree-ssa-alias.cc: Likewise.
	* tree-ssa-ccp.cc: Likewise.
	* tree-ssa-coalesce.cc: Likewise.
	* tree-ssa-copy.cc: Likewise.
	* tree-ssa-dce.cc: Likewise.
	* tree-ssa-dom.cc: Likewise.
	* tree-ssa-forwprop.cc: Likewise.
	* tree-ssa-ifcombine.cc: Likewise.
	* tree-ssa-loop-ch.cc: Likewise.
	* tree-ssa-loop-im.cc: Likewise.
	* tree-ssa-loop-manip.cc: Likewise.
	* tree-ssa-loop-niter.cc: Likewise.
	* tree-ssa-loop-split.cc: Likewise.
	* tree-ssa-math-opts.cc: Likewise.
	* tree-ssa-operands.cc: Likewise.
	* tree-ssa-phiprop.cc: Likewise.
	* tree-ssa-pre.cc: Likewise.
	* tree-ssa-propagate.cc: Likewise.
	* tree-ssa-reassoc.cc: Likewise.
	* tree-ssa-sccvn.cc: Likewise.
	* tree-ssa-scopedtables.cc: Likewise.
	* tree-ssa-sink.cc: Likewise.
	* tree-ssa-strlen.cc: Likewise.
	* tree-ssa-structalias.cc: Likewise.
	* tree-ssa-ter.cc: Likewise.
	* tree-ssa-uninit.cc: Likewise.
	* tree-ssa.cc: Likewise.
	* tree-ssanames.cc: Likewise.
	* tree-stdarg.cc: Likewise.
	* tree-streamer-in.cc: Likewise.
	* tree-streamer-out.cc: Likewise.
	* tree-streamer.cc: Likewise.
	* tree-switch-conversion.cc: Likewise.
	* tree-tailcall.cc: Likewise.
	* tree-vrp.cc: Likewise.
	* tree.cc: Likewise.
	* ubsan.cc: Likewise.
	* value-pointer-equiv.cc: Likewise.
	* value-prof.cc: Likewise.
	* value-query.cc: Likewise.
	* value-range-pretty-print.cc: Likewise.
	* value-range-storage.cc: Likewise.
	* value-range.cc: Likewise.
	* value-relation.cc: Likewise.
	* var-tracking.cc: Likewise.
	* varpool.cc: Likewise.
	* vr-values.cc: Likewise.
	* wide-int-print.cc: Likewise.

gcc/testsuite/ChangeLog:
	PR other/116613
	* gcc.dg/plugin/diagnostic_group_plugin.c: Update for use of
	std::unique_ptr.
	* gcc.dg/plugin/diagnostic_plugin_xhtml_format.c: Likewise.
	* gcc.dg/plugin/ggcplug.c: Likewise.

libgcc/ChangeLog:
	PR other/116613
	* libgcov-util.c: Add #define INCLUDE_MEMORY.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
Co-authored-by: Gaius Mulley &lt;gaiusmod2@gmail.com&gt;
Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
My forthcoming patches for PR other/116613 make much more use of
cloning of pretty_printers than before, so it makes sense as a
preliminary patch for the result of pretty_printer::clone to be a
std::unique_ptr, rather than add more manual uses of "delete".

On doing so, I noticed various other places where naked new/delete is
used for run-time configuration of diagnostics:
* the output format (text vs SARIF)
* client data hooks
* the option manager
* the URLifier

Hence this patch also makes use of std::unique_ptr and ::make_unique for
managing such client policy classes, and also for diagnostic_buffer's
per-format implementations.

Unfortunately we can't directly include &lt;memory&gt; in our internal headers
but instead any of our TUs that make use of std::unique_ptr must #define
INCLUDE_MEMORY before including system.h.

Hence the bulk of this patch is taken up with adding a define of
INCLUDE_MEMORY to hundreds of source files: everything that includes
diagnostic.h or pretty-print.h (and thus anything transitively such as
includers of lto-wrapper.h, c-tree.h, cp-tree.h and rtl-ssa.h).

Thanks to Gaius Mulley for the parts of the patch that regenerated the
m2 files.

gcc/ada/ChangeLog:
	PR other/116613
	* gcc-interface/misc.cc: Add #define INCLUDE_MEMORY
	* gcc-interface/trans.cc: Likewise.
	* gcc-interface/utils.cc: Likewise.

gcc/analyzer/ChangeLog:
	PR other/116613
	* analyzer-logging.cc: Add #define INCLUDE_MEMORY
	(logger::logger): Update for m_pp becoming a unique_ptr.
	(logger::~logger): Likewise.
	(logger::log_va_partial): Likewise.
	(logger::end_log_line): Likewise.
	* analyzer-logging.h (logger::get_printer): Likewise.
	(logger::m_pp): Convert to a unique_ptr.
	* analyzer.cc (make_label_text): Use
	diagnostic_context::clone_printer and use unique_ptr.
	(make_label_text_n): Likewise.
	* bar-chart.cc: Add #define INCLUDE_MEMORY
	* pending-diagnostic.cc (evdesc::event_desc::formatted_print):
	Use diagnostic_context::clone_printer and use unique_ptr.
	* sm-malloc.cc (sufficiently_similar_p): Likewise.
	* supergraph.cc (supergraph::dump_dot_to_file): Likewise.

gcc/c-family/ChangeLog:
	PR other/116613
	* c-ada-spec.cc: Add #define INCLUDE_MEMORY.
	* c-attribs.cc: Likewise.
	* c-common.cc: Likewise.
	* c-format.cc: Likewise.
	* c-gimplify.cc: Likewise.
	* c-indentation.cc: Likewise.
	* c-opts.cc: Likewise.
	* c-pch.cc: Likewise.
	* c-pragma.cc: Likewise.
	* c-pretty-print.cc: Likewise.  Add #include "make-unique.h".
	(c_pretty_printer::clone): Use std::unique_ptr and ::make_unique.
	* c-pretty-print.h (c_pretty_printer::clone): Use std::unique_ptr.
	* c-type-mismatch.cc: Add #define INCLUDE_MEMORY.
	* c-warn.cc: Likewise.

gcc/c/ChangeLog:
	PR other/116613
	* c-aux-info.cc: Add #define INCLUDE_MEMORY.
	* c-convert.cc: Likewise.
	* c-errors.cc: Likewise.
	* c-fold.cc: Likewise.
	* c-lang.cc: Likewise.
	* c-objc-common.cc: Likewise.
	(pp_markup::element_quoted_type::print_type): Use unique_ptr.
	* c-typeck.cc: Add #define INCLUDE_MEMORY.
	* gimple-parser.cc: Likewise.

gcc/cp/ChangeLog:
	PR other/116613
	* call.cc: Add #define INCLUDE_MEMORY.
	* class.cc: Likewise.
	* constexpr.cc: Likewise.
	* constraint.cc: Likewise.
	* contracts.cc: Likewise.
	* coroutines.cc: Likewise.
	* cp-gimplify.cc: Likewise.
	* cp-lang.cc: Likewise.
	* cp-objcp-common.cc: Likewise.
	* cp-ubsan.cc: Likewise.
	* cvt.cc: Likewise.
	* cxx-pretty-print.cc: Likewise.  Add #include "cp-tree.h".
	(cxx_pretty_printer::clone): Use std::unique_ptr and
	::make_unique.
	* cxx-pretty-print.h (cxx_pretty_printer::clone): Use
	std::unique_ptr.
	* decl2.cc: Add #define INCLUDE_MEMORY.
	* dump.cc: Likewise.
	* except.cc: Likewise.
	* expr.cc: Likewise.
	* friend.cc: Likewise.
	* init.cc: Likewise.
	* lambda.cc: Likewise.
	* logic.cc: Likewise.
	* mangle.cc: Likewise.
	* method.cc: Likewise.
	* optimize.cc: Likewise.
	* pt.cc: Likewise.
	* ptree.cc: Likewise.
	* rtti.cc: Likewise.
	* search.cc: Likewise.
	* semantics.cc: Likewise.
	* tree.cc: Likewise.
	* typeck.cc: Likewise.
	* typeck2.cc: Likewise.
	* vtable-class-hierarchy.cc: Likewise.

gcc/d/ChangeLog:
	PR other/116613
	* d-attribs.cc: Add #define INCLUDE_MEMORY.
	* d-builtins.cc: Likewise.
	* d-codegen.cc: Likewise.
	* d-convert.cc: Likewise.
	* d-diagnostic.cc: Likewise.
	* d-frontend.cc: Likewise.
	* d-lang.cc: Likewise.
	* d-longdouble.cc: Likewise.
	* d-target.cc: Likewise.
	* decl.cc: Likewise.
	* expr.cc: Likewise.
	* intrinsics.cc: Likewise.
	* modules.cc: Likewise.
	* toir.cc: Likewise.
	* typeinfo.cc: Likewise.
	* types.cc: Likewise.

gcc/fortran/ChangeLog:
	PR other/116613
	* arith.cc: Add #define INCLUDE_MEMORY.
	* array.cc: Likewise.
	* bbt.cc: Likewise.
	* check.cc: Likewise.
	* class.cc: Likewise.
	* constructor.cc: Likewise.
	* convert.cc: Likewise.
	* cpp.cc: Likewise.
	* data.cc: Likewise.
	* decl.cc: Likewise.
	* dependency.cc: Likewise.
	* dump-parse-tree.cc: Likewise.
	* error.cc: Likewise.
	* expr.cc: Likewise.
	* f95-lang.cc: Likewise.
	* frontend-passes.cc: Likewise.
	* interface.cc: Likewise.
	* intrinsic.cc: Likewise.
	* io.cc: Likewise.
	* iresolve.cc: Likewise.
	* match.cc: Likewise.
	* matchexp.cc: Likewise.
	* misc.cc: Likewise.
	* module.cc: Likewise.
	* openmp.cc: Likewise.
	* options.cc: Likewise.
	* parse.cc: Likewise.
	* primary.cc: Likewise.
	* resolve.cc: Likewise.
	* scanner.cc: Likewise.
	* simplify.cc: Likewise.
	* st.cc: Likewise.
	* symbol.cc: Likewise.
	* target-memory.cc: Likewise.
	* trans-array.cc: Likewise.
	* trans-common.cc: Likewise.
	* trans-const.cc: Likewise.
	* trans-decl.cc: Likewise.
	* trans-expr.cc: Likewise.
	* trans-intrinsic.cc: Likewise.
	* trans-io.cc: Likewise.
	* trans-openmp.cc: Likewise.
	* trans-stmt.cc: Likewise.
	* trans-types.cc: Likewise.
	* trans.cc: Likewise.

gcc/go/ChangeLog:
	PR other/116613
	* go-backend.cc: Add #define INCLUDE_MEMORY.
	* go-lang.cc: Likewise.

gcc/jit/ChangeLog:
	PR other/116613
	* dummy-frontend.cc: Add #define INCLUDE_MEMORY.
	* jit-playback.cc: Likewise.
	* jit-recording.cc: Likewise.

gcc/lto/ChangeLog:
	PR other/116613
	* lto-common.cc: Add #define INCLUDE_MEMORY.
	* lto-dump.cc: Likewise.
	* lto-partition.cc: Likewise.
	* lto-symtab.cc: Likewise.
	* lto.cc: Likewise.

gcc/m2/ChangeLog:
	PR other/116613
	* gm2-gcc/gcc-consolidation.h: Add #define INCLUDE_MEMORY.
	* gm2-gcc/m2configure.cc: Likewise.
	* mc-boot/GASCII.cc: Regenerate.
	* mc-boot/GASCII.h: Ditto.
	* mc-boot/GArgs.cc: Ditto.
	* mc-boot/GArgs.h: Ditto.
	* mc-boot/GAssertion.cc: Ditto.
	* mc-boot/GAssertion.h: Ditto.
	* mc-boot/GBreak.cc: Ditto.
	* mc-boot/GBreak.h: Ditto.
	* mc-boot/GCOROUTINES.h: Ditto.
	* mc-boot/GCmdArgs.cc: Ditto.
	* mc-boot/GCmdArgs.h: Ditto.
	* mc-boot/GDebug.cc: Ditto.
	* mc-boot/GDebug.h: Ditto.
	* mc-boot/GDynamicStrings.cc: Ditto.
	* mc-boot/GDynamicStrings.h: Ditto.
	* mc-boot/GEnvironment.cc: Ditto.
	* mc-boot/GEnvironment.h: Ditto.
	* mc-boot/GFIO.cc: Ditto.
	* mc-boot/GFIO.h: Ditto.
	* mc-boot/GFormatStrings.cc: Ditto.
	* mc-boot/GFormatStrings.h: Ditto.
	* mc-boot/GFpuIO.cc: Ditto.
	* mc-boot/GFpuIO.h: Ditto.
	* mc-boot/GIO.cc: Ditto.
	* mc-boot/GIO.h: Ditto.
	* mc-boot/GIndexing.cc: Ditto.
	* mc-boot/GIndexing.h: Ditto.
	* mc-boot/GM2Dependent.cc: Ditto.
	* mc-boot/GM2Dependent.h: Ditto.
	* mc-boot/GM2EXCEPTION.cc: Ditto.
	* mc-boot/GM2EXCEPTION.h: Ditto.
	* mc-boot/GM2RTS.cc: Ditto.
	* mc-boot/GM2RTS.h: Ditto.
	* mc-boot/GMemUtils.cc: Ditto.
	* mc-boot/GMemUtils.h: Ditto.
	* mc-boot/GNumberIO.cc: Ditto.
	* mc-boot/GNumberIO.h: Ditto.
	* mc-boot/GPushBackInput.cc: Ditto.
	* mc-boot/GPushBackInput.h: Ditto.
	* mc-boot/GRTExceptions.cc: Ditto.
	* mc-boot/GRTExceptions.h: Ditto.
	* mc-boot/GRTco.h: Ditto.
	* mc-boot/GRTentity.h: Ditto.
	* mc-boot/GRTint.cc: Ditto.
	* mc-boot/GRTint.h: Ditto.
	* mc-boot/GSArgs.cc: Ditto.
	* mc-boot/GSArgs.h: Ditto.
	* mc-boot/GSFIO.cc: Ditto.
	* mc-boot/GSFIO.h: Ditto.
	* mc-boot/GSYSTEM.h: Ditto.
	* mc-boot/GSelective.h: Ditto.
	* mc-boot/GStdIO.cc: Ditto.
	* mc-boot/GStdIO.h: Ditto.
	* mc-boot/GStorage.cc: Ditto.
	* mc-boot/GStorage.h: Ditto.
	* mc-boot/GStrCase.cc: Ditto.
	* mc-boot/GStrCase.h: Ditto.
	* mc-boot/GStrIO.cc: Ditto.
	* mc-boot/GStrIO.h: Ditto.
	* mc-boot/GStrLib.cc: Ditto.
	* mc-boot/GStrLib.h: Ditto.
	* mc-boot/GStringConvert.cc: Ditto.
	* mc-boot/GStringConvert.h: Ditto.
	* mc-boot/GSysExceptions.h: Ditto.
	* mc-boot/GSysStorage.cc: Ditto.
	* mc-boot/GSysStorage.h: Ditto.
	* mc-boot/GTimeString.cc: Ditto.
	* mc-boot/GTimeString.h: Ditto.
	* mc-boot/GUnixArgs.h: Ditto.
	* mc-boot/Galists.cc: Ditto.
	* mc-boot/Galists.h: Ditto.
	* mc-boot/Gdecl.cc: Ditto.
	* mc-boot/Gdecl.h: Ditto.
	* mc-boot/Gdtoa.h: Ditto.
	* mc-boot/Gerrno.h: Ditto.
	* mc-boot/Gkeyc.cc: Ditto.
	* mc-boot/Gkeyc.h: Ditto.
	* mc-boot/Gldtoa.h: Ditto.
	* mc-boot/Glibc.h: Ditto.
	* mc-boot/Glibm.h: Ditto.
	* mc-boot/Glists.cc: Ditto.
	* mc-boot/Glists.h: Ditto.
	* mc-boot/GmcComment.cc: Ditto.
	* mc-boot/GmcComment.h: Ditto.
	* mc-boot/GmcComp.cc: Ditto.
	* mc-boot/GmcComp.h: Ditto.
	* mc-boot/GmcDebug.cc: Ditto.
	* mc-boot/GmcDebug.h: Ditto.
	* mc-boot/GmcError.cc: Ditto.
	* mc-boot/GmcError.h: Ditto.
	* mc-boot/GmcFileName.cc: Ditto.
	* mc-boot/GmcFileName.h: Ditto.
	* mc-boot/GmcLexBuf.cc: Ditto.
	* mc-boot/GmcLexBuf.h: Ditto.
	* mc-boot/GmcMetaError.cc: Ditto.
	* mc-boot/GmcMetaError.h: Ditto.
	* mc-boot/GmcOptions.cc: Ditto.
	* mc-boot/GmcOptions.h: Ditto.
	* mc-boot/GmcPreprocess.cc: Ditto.
	* mc-boot/GmcPreprocess.h: Ditto.
	* mc-boot/GmcPretty.cc: Ditto.
	* mc-boot/GmcPretty.h: Ditto.
	* mc-boot/GmcPrintf.cc: Ditto.
	* mc-boot/GmcPrintf.h: Ditto.
	* mc-boot/GmcQuiet.cc: Ditto.
	* mc-boot/GmcQuiet.h: Ditto.
	* mc-boot/GmcReserved.cc: Ditto.
	* mc-boot/GmcReserved.h: Ditto.
	* mc-boot/GmcSearch.cc: Ditto.
	* mc-boot/GmcSearch.h: Ditto.
	* mc-boot/GmcStack.cc: Ditto.
	* mc-boot/GmcStack.h: Ditto.
	* mc-boot/GmcStream.cc: Ditto.
	* mc-boot/GmcStream.h: Ditto.
	* mc-boot/Gmcflex.h: Ditto.
	* mc-boot/Gmcp1.cc: Ditto.
	* mc-boot/Gmcp1.h: Ditto.
	* mc-boot/Gmcp2.cc: Ditto.
	* mc-boot/Gmcp2.h: Ditto.
	* mc-boot/Gmcp3.cc: Ditto.
	* mc-boot/Gmcp3.h: Ditto.
	* mc-boot/Gmcp4.cc: Ditto.
	* mc-boot/Gmcp4.h: Ditto.
	* mc-boot/Gmcp5.cc: Ditto.
	* mc-boot/Gmcp5.h: Ditto.
	* mc-boot/GnameKey.cc: Ditto.
	* mc-boot/GnameKey.h: Ditto.
	* mc-boot/GsymbolKey.cc: Ditto.
	* mc-boot/GsymbolKey.h: Ditto.
	* mc-boot/Gtermios.h: Ditto.
	* mc-boot/Gtop.cc: Ditto.
	* mc-boot/Gvarargs.cc: Ditto.
	* mc-boot/Gvarargs.h: Ditto.
	* mc-boot/Gwlists.cc: Ditto.
	* mc-boot/Gwlists.h: Ditto.
	* mc-boot/Gwrapc.h: Ditto.
	* mc/keyc.mod (checkGccConfigSystem): Add
	#define INCLUDE_MEMORY.
	* pge-boot/GASCII.cc: Regenerate.
	* pge-boot/GASCII.h: Ditto.
	* pge-boot/GArgs.cc: Ditto.
	* pge-boot/GArgs.h: Ditto.
	* pge-boot/GAssertion.cc: Ditto.
	* pge-boot/GAssertion.h: Ditto.
	* pge-boot/GBreak.h: Ditto.
	* pge-boot/GCmdArgs.h: Ditto.
	* pge-boot/GDebug.cc: Ditto.
	* pge-boot/GDebug.h: Ditto.
	* pge-boot/GDynamicStrings.cc: Ditto.
	* pge-boot/GDynamicStrings.h: Ditto.
	* pge-boot/GEnvironment.h: Ditto.
	* pge-boot/GFIO.cc: Ditto.
	* pge-boot/GFIO.h: Ditto.
	* pge-boot/GFormatStrings.h: Ditto.
	* pge-boot/GFpuIO.h: Ditto.
	* pge-boot/GIO.cc: Ditto.
	* pge-boot/GIO.h: Ditto.
	* pge-boot/GIndexing.cc: Ditto.
	* pge-boot/GIndexing.h: Ditto.
	* pge-boot/GLists.cc: Ditto.
	* pge-boot/GLists.h: Ditto.
	* pge-boot/GM2Dependent.cc: Ditto.
	* pge-boot/GM2Dependent.h: Ditto.
	* pge-boot/GM2EXCEPTION.cc: Ditto.
	* pge-boot/GM2EXCEPTION.h: Ditto.
	* pge-boot/GM2RTS.cc: Ditto.
	* pge-boot/GM2RTS.h: Ditto.
	* pge-boot/GNameKey.cc: Ditto.
	* pge-boot/GNameKey.h: Ditto.
	* pge-boot/GNumberIO.cc: Ditto.
	* pge-boot/GNumberIO.h: Ditto.
	* pge-boot/GOutput.cc: Ditto.
	* pge-boot/GOutput.h: Ditto.
	* pge-boot/GPushBackInput.cc: Ditto.
	* pge-boot/GPushBackInput.h: Ditto.
	* pge-boot/GRTExceptions.cc: Ditto.
	* pge-boot/GRTExceptions.h: Ditto.
	* pge-boot/GSArgs.h: Ditto.
	* pge-boot/GSEnvironment.h: Ditto.
	* pge-boot/GSFIO.cc: Ditto.
	* pge-boot/GSFIO.h: Ditto.
	* pge-boot/GSYSTEM.h: Ditto.
	* pge-boot/GScan.h: Ditto.
	* pge-boot/GStdIO.cc: Ditto.
	* pge-boot/GStdIO.h: Ditto.
	* pge-boot/GStorage.cc: Ditto.
	* pge-boot/GStorage.h: Ditto.
	* pge-boot/GStrCase.cc: Ditto.
	* pge-boot/GStrCase.h: Ditto.
	* pge-boot/GStrIO.cc: Ditto.
	* pge-boot/GStrIO.h: Ditto.
	* pge-boot/GStrLib.cc: Ditto.
	* pge-boot/GStrLib.h: Ditto.
	* pge-boot/GStringConvert.h: Ditto.
	* pge-boot/GSymbolKey.cc: Ditto.
	* pge-boot/GSymbolKey.h: Ditto.
	* pge-boot/GSysExceptions.h: Ditto.
	* pge-boot/GSysStorage.cc: Ditto.
	* pge-boot/GSysStorage.h: Ditto.
	* pge-boot/GTimeString.h: Ditto.
	* pge-boot/GUnixArgs.h: Ditto.
	* pge-boot/Gbnflex.cc: Ditto.
	* pge-boot/Gbnflex.h: Ditto.
	* pge-boot/Gdtoa.h: Ditto.
	* pge-boot/Gerrno.h: Ditto.
	* pge-boot/Gldtoa.h: Ditto.
	* pge-boot/Glibc.h: Ditto.
	* pge-boot/Glibm.h: Ditto.
	* pge-boot/Gpge.cc: Ditto.
	* pge-boot/Gtermios.h: Ditto.
	* pge-boot/Gwrapc.h: Ditto.

gcc/objc/ChangeLog:
	PR other/116613
	* objc-act.cc: Add #define INCLUDE_MEMORY.
	* objc-encoding.cc: Likewise.
	* objc-gnu-runtime-abi-01.cc: Likewise.
	* objc-lang.cc: Likewise.
	* objc-next-runtime-abi-01.cc: Likewise.
	* objc-next-runtime-abi-02.cc: Likewise.
	* objc-runtime-shared-support.cc: Likewise.

gcc/objcp/ChangeLog:: Add #define INCLUDE_MEMORY.
	PR other/116613
	* objcp-decl.cc
	* objcp-lang.cc: Likewise.

gcc/rust/ChangeLog:
	PR other/116613
	* resolve/rust-ast-resolve-expr.cc: Add #define INCLUDE_MEMORY.
	* rust-attribs.cc: Likewise.
	* rust-system.h: Likewise.

gcc/ChangeLog:
	PR other/116613
	* asan.cc: Add #define INCLUDE_MEMORY.
	* attribs.cc: Likewise.
	(attr_access::array_as_string): Use
	diagnostic_context::clone_printer and use unique_ptr.
	* auto-profile.cc: Add #define INCLUDE_MEMORY.
	* calls.cc: Likewise.
	* cfganal.cc: Likewise.
	* cfgexpand.cc: Likewise.
	* cfghooks.cc: Likewise.
	* cfgloop.cc: Likewise.
	* cgraph.cc: Likewise.
	* cgraphclones.cc: Likewise.
	* cgraphunit.cc: Likewise.
	* collect-utils.cc: Likewise.
	* collect2.cc: Likewise.
	* common/config/aarch64/aarch64-common.cc: Likewise.
	* common/config/arm/arm-common.cc: Likewise.
	* common/config/avr/avr-common.cc: Likewise.
	* config/aarch64/aarch64-cc-fusion.cc: Likewise.
	* config/aarch64/aarch64-early-ra.cc: Likewise.
	* config/aarch64/aarch64-sve-builtins.cc: Likewise.
	* config/arc/arc.cc: Likewise.
	* config/arm/aarch-common.cc: Likewise.
	* config/arm/arm-mve-builtins.cc: Likewise.
	* config/avr/avr-devices.cc: Likewise.
	* config/avr/driver-avr.cc: Likewise.
	* config/bpf/bpf.cc: Likewise.
	* config/bpf/btfext-out.cc: Likewise.
	* config/bpf/core-builtins.cc: Likewise.
	* config/darwin.cc: Likewise.
	* config/i386/driver-i386.cc: Likewise.
	* config/i386/i386-builtins.cc: Likewise.
	* config/i386/i386-expand.cc: Likewise.
	* config/i386/i386-features.cc: Likewise.
	* config/i386/i386-options.cc: Likewise.
	* config/loongarch/loongarch-builtins.cc: Likewise.
	* config/mingw/winnt-cxx.cc: Likewise.
	* config/mingw/winnt.cc: Likewise.
	* config/mips/mips.cc: Likewise.
	* config/msp430/driver-msp430.cc: Likewise.
	* config/nvptx/mkoffload.cc: Likewise.
	* config/nvptx/nvptx.cc: Likewise.
	* config/riscv/riscv-avlprop.cc: Likewise.
	* config/riscv/riscv-vector-builtins.cc: Likewise.
	* config/riscv/riscv-vsetvl.cc: Likewise.
	* config/rs6000/driver-rs6000.cc: Likewise.
	* config/rs6000/host-darwin.cc: Likewise.
	* config/rs6000/rs6000-c.cc: Likewise.
	* config/s390/s390-c.cc: Likewise.
	* config/s390/s390.cc: Likewise.
	* config/sol2-cxx.cc: Likewise.
	* config/vms/vms-c.cc: Likewise.
	* config/xtensa/xtensa-dynconfig.cc: Likewise.
	* coroutine-passes.cc: Likewise.
	* coverage.cc: Likewise.
	* data-streamer-in.cc: Likewise.
	* data-streamer-out.cc: Likewise.
	* data-streamer.cc: Likewise.
	* diagnostic-buffer.h (diagnostic_buffer::~diagnostic_buffer):
	Delete.
	(diagnostic_buffer::m_per_format_buffer): Use std::unique_ptr.
	* diagnostic-client-data-hooks.h (make_compiler_data_hooks): Use
	std::unique_ptr for return type.
	* diagnostic-format-json.cc
	(json_output_format::make_per_format_buffer): Likewise.
	(diagnostic_output_format_init_json): Update for usage of
	std::unique_ptr in set_output_format.
	* diagnostic-format-sarif.cc
	(sarif_output_format::make_per_format_buffer): Use std::unique_ptr
	for return type.
	(diagnostic_output_format_init_sarif): Update for usage of
	std::unique_ptr.
	(test_message_with_embedded_link): Likewise for set_urlifier.
	* diagnostic-format-text.cc: Add #define INCLUDE_MEMORY.  Include
	"make-unique.h".
	(diagnostic_text_output_format::set_buffer): Use std::unique_ptr.
	* diagnostic-format-text.h
	(diagnostic_text_output_format::set_buffer): Likewise.
	* diagnostic-format.h
	(diagnostic_output_format::make_per_format_buffer): Likewise.
	* diagnostic-global-context.cc:
	* diagnostic-macro-unwinding.cc: Likewise.
	* diagnostic-show-locus.cc: Likewise.
	* diagnostic-spec.cc: Likewise.
	* diagnostic.cc (diagnostic_context::set_output_format): Use
	std::unique_ptr for input.
	(diagnostic_context::set_client_data_hooks): Likewise.
	(diagnostic_context::set_option_manager): Likewise.
	(diagnostic_context::set_urlifier): Likewise.
	(diagnostic_context::set_diagnostic_buffer): Update for use of
	std::unique_ptr.
	(diagnostic_buffer::diagnostic_buffer): Likewise.
	(diagnostic_buffer::~diagnostic_buffer): Delete.
	* diagnostic.h: Complain if INCLUDE_MEMORY was not defined.
	(diagnostic_context::set_output_format): Use std::unique_ptr for
	input.
	(diagnostic_context::set_client_data_hooks): Likewise.
	(diagnostic_context::set_option_manager): Likewise.
	(diagnostic_context::set_urlifier): Likewise.
	(diagnostic_context::clone_printer): New.
	(diagnostic_context::m_printer): Update comment.
	(diagnostic_context::m_option_mgr): Likewise.
	(diagnostic_context::m_urlifier): Likewise.
	(diagnostic_context::m_edit_context_ptr): Likewise.
	(diagnostic_context::m_output_format): Likewise.
	(diagnostic_context::m_client_data_hooks): Likewise.
	(diagnostic_context::m_theme): Likewise.
	* digraph.cc: Add #define INCLUDE_MEMORY.
	* dwarf2out.cc: Likewise.
	* edit-context.cc: Likewise.
	* except.cc: Likewise.
	* expr.cc: Likewise.
	* file-prefix-map.cc: Likewise.
	* final.cc: Likewise.
	* fwprop.cc: Likewise.
	* gcc-plugin.h: Likewise.
	* gcc-rich-location.cc: Likewise.
	* gcc-urlifier.cc: Likewise.  Add #include "make-unique.h".
	(make_gcc_urlifier): Use std::unique_ptr and ::make_unique.
	* gcc-urlifier.h (make_gcc_urlifier): Use std::unique_ptr.
	* gcc.cc: Add #define INCLUDE_MEMORY.  Include
	"pretty-print-urlifier.h".
	* gcov-dump.cc: Add #define INCLUDE_MEMORY.
	* gcov-tool.cc: Likewise.
	* gengtype.cc (open_base_files): Likewise to output.
	* genmatch.cc: Likewise.
	* gimple-fold.cc: Likewise.
	* gimple-harden-conditionals.cc: Likewise.
	* gimple-harden-control-flow.cc: Likewise.
	* gimple-if-to-switch.cc: Likewise.
	* gimple-lower-bitint.cc: Likewise.
	* gimple-predicate-analysis.cc: Likewise.
	* gimple-pretty-print.cc: Likewise.
	* gimple-range-cache.cc: Likewise.
	* gimple-range-edge.cc: Likewise.
	* gimple-range-fold.cc: Likewise.
	* gimple-range-gori.cc: Likewise.
	* gimple-range-infer.cc: Likewise.
	* gimple-range-op.cc: Likewise.
	* gimple-range-path.cc: Likewise.
	* gimple-range-phi.cc: Likewise.
	* gimple-range-trace.cc: Likewise.
	* gimple-range.cc: Likewise.
	* gimple-ssa-backprop.cc: Likewise.
	* gimple-ssa-sprintf.cc: Likewise.
	* gimple-ssa-store-merging.cc: Likewise.
	* gimple-ssa-strength-reduction.cc: Likewise.
	* gimple-ssa-warn-access.cc: Likewise.
	* gimple-ssa-warn-alloca.cc: Likewise.
	* gimple-ssa-warn-restrict.cc: Likewise.
	* gimple-streamer-in.cc: Likewise.
	* gimple-streamer-out.cc: Likewise.
	* gimple.cc: Likewise.
	* gimplify.cc: Likewise.
	* graph.cc: Likewise.
	* graphviz.cc: Likewise.
	* input.cc: Likewise.
	* ipa-cp.cc: Likewise.
	* ipa-devirt.cc: Likewise.
	* ipa-fnsummary.cc: Likewise.
	* ipa-free-lang-data.cc: Likewise.
	* ipa-icf-gimple.cc: Likewise.
	* ipa-icf.cc: Likewise.
	* ipa-inline-analysis.cc: Likewise.
	* ipa-inline.cc: Likewise.
	* ipa-modref-tree.cc: Likewise.
	* ipa-modref.cc: Likewise.
	* ipa-param-manipulation.cc: Likewise.
	* ipa-polymorphic-call.cc: Likewise.
	* ipa-predicate.cc: Likewise.
	* ipa-profile.cc: Likewise.
	* ipa-prop.cc: Likewise.
	* ipa-pure-const.cc: Likewise.
	* ipa-reference.cc: Likewise.
	* ipa-split.cc: Likewise.
	* ipa-sra.cc: Likewise.
	* ipa-strub.cc: Likewise.
	* ipa-utils.cc: Likewise.
	* langhooks.cc: Likewise.
	* late-combine.cc: Likewise.
	* lto-cgraph.cc: Likewise.
	* lto-compress.cc: Likewise.
	* lto-opts.cc: Likewise.
	* lto-section-in.cc: Likewise.
	* lto-section-out.cc: Likewise.
	* lto-streamer-in.cc: Likewise.
	* lto-streamer-out.cc: Likewise.
	* lto-streamer.cc: Likewise.
	* lto-wrapper.cc: Likewise.  Include "make-unique.h".
	(main): Use ::make_unique when creating option manager.
	* multiple_target.cc: Likewise.
	* omp-expand.cc: Likewise.
	* omp-general.cc: Likewise.
	* omp-low.cc: Likewise.
	* omp-oacc-neuter-broadcast.cc: Likewise.
	* omp-offload.cc: Likewise.
	* omp-simd-clone.cc: Likewise.
	* optc-gen.awk: Likewise in output.
	* optc-save-gen.awk: Likewise in output.
	* options-urls-cc-gen.awk: Likewise in output.
	* opts-common.cc: Likewise.
	* opts-global.cc: Likewise.
	* opts.cc: Likewise.
	* pair-fusion.cc: Likewise.
	* passes.cc: Likewise.
	* pointer-query.cc: Likewise.
	* predict.cc: Likewise.
	* pretty-print.cc (pretty_printer::clone): Use std::unique_ptr and
	::make_unique.
	* pretty-print.h: Complain if INCLUDE_MEMORY is not defined.
	(pretty_printer::clone): Use std::unique_ptr.
	* print-rtl.cc: Add #define INCLUDE_MEMORY.
	* print-tree.cc: Likewise.
	* profile-count.cc: Likewise.
	* range-op-float.cc: Likewise.
	* range-op-ptr.cc: Likewise.
	* range-op.cc: Likewise.
	* range.cc: Likewise.
	* read-rtl-function.cc: Likewise.
	* rtl-error.cc: Likewise.
	* rtl-ssa/accesses.cc: Likewise.
	* rtl-ssa/blocks.cc: Likewise.
	* rtl-ssa/changes.cc: Likewise.
	* rtl-ssa/functions.cc: Likewise.
	* rtl-ssa/insns.cc: Likewise.
	* rtl-ssa/movement.cc: Likewise.
	* rtl-tests.cc: Likewise.
	* sanopt.cc: Likewise.
	* sched-rgn.cc: Likewise.
	* selftest-diagnostic-path.cc: Likewise.
	* selftest-diagnostic.cc: Likewise.
	* splay-tree-utils.cc: Likewise.
	* sreal.cc: Likewise.
	* stmt.cc: Likewise.
	* substring-locations.cc: Likewise.
	* symtab-clones.cc: Likewise.
	* symtab-thunks.cc: Likewise.
	* symtab.cc: Likewise.
	* text-art/box-drawing.cc: Likewise.
	* text-art/canvas.cc: Likewise.
	* text-art/ruler.cc: Likewise.
	* text-art/selftests.cc: Likewise.
	* text-art/theme.cc: Likewise.
	* toplev.cc: Likewise.  Include "make-unique.h".
	(general_init): Use ::make_unique when setting option_manager.
	* trans-mem.cc: Add #define INCLUDE_MEMORY.
	* tree-affine.cc: Likewise.
	* tree-call-cdce.cc: Likewise.
	* tree-cfg.cc: Likewise.
	* tree-chrec.cc: Likewise.
	* tree-dfa.cc: Likewise.
	* tree-diagnostic-client-data-hooks.cc: Include "make-unique.h".
	(make_compiler_data_hooks): Use std::unique_ptr and ::make_unique.
	* tree-diagnostic.cc: Add #define INCLUDE_MEMORY.
	* tree-dump.cc: Likewise.
	* tree-inline.cc: Likewise.
	* tree-into-ssa.cc: Likewise.
	* tree-logical-location.cc: Likewise.
	* tree-nested.cc: Likewise.
	* tree-nrv.cc: Likewise.
	* tree-object-size.cc: Likewise.
	* tree-outof-ssa.cc: Likewise.
	* tree-pretty-print.cc: Likewise.
	* tree-profile.cc: Likewise.
	* tree-scalar-evolution.cc: Likewise.
	* tree-sra.cc: Likewise.
	* tree-ssa-address.cc: Likewise.
	* tree-ssa-alias.cc: Likewise.
	* tree-ssa-ccp.cc: Likewise.
	* tree-ssa-coalesce.cc: Likewise.
	* tree-ssa-copy.cc: Likewise.
	* tree-ssa-dce.cc: Likewise.
	* tree-ssa-dom.cc: Likewise.
	* tree-ssa-forwprop.cc: Likewise.
	* tree-ssa-ifcombine.cc: Likewise.
	* tree-ssa-loop-ch.cc: Likewise.
	* tree-ssa-loop-im.cc: Likewise.
	* tree-ssa-loop-manip.cc: Likewise.
	* tree-ssa-loop-niter.cc: Likewise.
	* tree-ssa-loop-split.cc: Likewise.
	* tree-ssa-math-opts.cc: Likewise.
	* tree-ssa-operands.cc: Likewise.
	* tree-ssa-phiprop.cc: Likewise.
	* tree-ssa-pre.cc: Likewise.
	* tree-ssa-propagate.cc: Likewise.
	* tree-ssa-reassoc.cc: Likewise.
	* tree-ssa-sccvn.cc: Likewise.
	* tree-ssa-scopedtables.cc: Likewise.
	* tree-ssa-sink.cc: Likewise.
	* tree-ssa-strlen.cc: Likewise.
	* tree-ssa-structalias.cc: Likewise.
	* tree-ssa-ter.cc: Likewise.
	* tree-ssa-uninit.cc: Likewise.
	* tree-ssa.cc: Likewise.
	* tree-ssanames.cc: Likewise.
	* tree-stdarg.cc: Likewise.
	* tree-streamer-in.cc: Likewise.
	* tree-streamer-out.cc: Likewise.
	* tree-streamer.cc: Likewise.
	* tree-switch-conversion.cc: Likewise.
	* tree-tailcall.cc: Likewise.
	* tree-vrp.cc: Likewise.
	* tree.cc: Likewise.
	* ubsan.cc: Likewise.
	* value-pointer-equiv.cc: Likewise.
	* value-prof.cc: Likewise.
	* value-query.cc: Likewise.
	* value-range-pretty-print.cc: Likewise.
	* value-range-storage.cc: Likewise.
	* value-range.cc: Likewise.
	* value-relation.cc: Likewise.
	* var-tracking.cc: Likewise.
	* varpool.cc: Likewise.
	* vr-values.cc: Likewise.
	* wide-int-print.cc: Likewise.

gcc/testsuite/ChangeLog:
	PR other/116613
	* gcc.dg/plugin/diagnostic_group_plugin.c: Update for use of
	std::unique_ptr.
	* gcc.dg/plugin/diagnostic_plugin_xhtml_format.c: Likewise.
	* gcc.dg/plugin/ggcplug.c: Likewise.

libgcc/ChangeLog:
	PR other/116613
	* libgcov-util.c: Add #define INCLUDE_MEMORY.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
Co-authored-by: Gaius Mulley &lt;gaiusmod2@gmail.com&gt;
Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>diagnostics: introduce struct diagnostic_option_id</title>
<updated>2024-09-09T23:38:13+00:00</updated>
<author>
<name>David Malcolm</name>
<email>dmalcolm@redhat.com</email>
</author>
<published>2024-09-09T23:38:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=89991f31c5ded21179b12a9f4063c2b8fabc2e3b'/>
<id>89991f31c5ded21179b12a9f4063c2b8fabc2e3b</id>
<content type='text'>
Use a new struct diagnostic_option_id rather than just "int" when
referring to command-line options controlling warnings in the
diagnostic subsystem.

No functional change intended, but better documents the meaning of
the code.

gcc/c-family/ChangeLog:
	* c-common.cc (c_option_controlling_cpp_diagnostic): Return
	diagnostic_option_id rather than int.
	(c_cpp_diagnostic): Update for renaming of
	diagnostic_override_option_index to diagnostic_set_option_id.

gcc/c/ChangeLog:
	* c-errors.cc (pedwarn_c23): Use "diagnostic_option_id option_id"
	rather than "int opt".  Update for renaming of diagnostic_info
	field.
	(pedwarn_c11): Likewise.
	(pedwarn_c99): Likewise.
	(pedwarn_c90): Likewise.
	* c-tree.h (pedwarn_c90): Likewise for decl.
	(pedwarn_c99): Likewise.
	(pedwarn_c11): Likewise.
	(pedwarn_c23): Likewise.

gcc/cp/ChangeLog:
	* constexpr.cc (constexpr_error): Update for renaming of
	diagnostic_info field.
	* cp-tree.h (pedwarn_cxx98): Use "diagnostic_option_id" rather
	than "int".
	* error.cc (cp_adjust_diagnostic_info): Update for renaming of
	diagnostic_info field.
	(pedwarn_cxx98): Use "diagnostic_option_id option_id" rather than
	"int opt".  Update for renaming of diagnostic_info field.
	(diagnostic_set_info): Likewise.

gcc/d/ChangeLog:
	* d-diagnostic.cc (d_diagnostic_report_diagnostic): Update for
	renaming of diagnostic_info field.

gcc/ChangeLog:
	* diagnostic-core.h (struct diagnostic_option_id): New.
	(warning): Use it rather than "int" for param.
	(warning_n): Likewise.
	(warning_at): Likewise.
	(warning_meta): Likewise.
	(pedwarn): Likewise.
	(permerror_opt): Likewise.
	(emit_diagnostic): Likewise.
	(emit_diagnostic_valist): Likewise.
	(emit_diagnostic_valist_meta): Likewise.
	* diagnostic-format-json.cc
	(json_output_format::on_report_diagnostic): Update for renaming of
	diagnostic_info field.
	* diagnostic-format-sarif.cc (sarif_builder::make_result_object):
	Likewise.
	(make_reporting_descriptor_object_for_warning): Likewise.
	* diagnostic-format-text.cc (print_option_information): Likewise.
	* diagnostic-global-context.cc (emit_diagnostic): Use
	"diagnostic_option_id option_id" rather than "int opt".
	(emit_diagnostic_valist): Likewise.
	(emit_diagnostic_valist_meta): Likewise.
	(warning): Likewise.
	(warning_at): Likewise.
	(warning_meta): Likewise.
	(warning_n): Likewise.
	(pedwarn): Likewise.
	(permerror_opt): Likewise.
	* diagnostic.cc (diagnostic_set_info_translated): Update for
	renaming of diagnostic_info field.
	(diagnostic_option_classifier::classify_diagnostic): Use
	"diagnostic_option_id option_id" rather than "int opt".
	(update_effective_level_from_pragmas): Update for renaming of
	diagnostic_info field.
	(diagnostic_context::diagnostic_enabled): Likewise.
	(diagnostic_context::warning_enabled_at): Use
	"diagnostic_option_id option_id" rather than "int opt".
	(diagnostic_context::diagnostic_impl): Likewise.
	(diagnostic_context::diagnostic_n_impl): Likewise.
	* diagnostic.h (diagnostic_info::diagnostic_info): Update for...
	(diagnostic_info::option_index): Rename...
	(diagnostic_info::option_id): ...to this.
	(class diagnostic_option_manager): Use
	"diagnostic_option_id option_id" rather than "int opt" for vfuncs.
	(diagnostic_option_classifier): Likewise for member funcs.
	(diagnostic_classification_change_t::option): Add comment.
	(diagnostic_context::warning_enabled_at): Use
	"diagnostic_option_id option_id" rather than "int option_index".
	(diagnostic_context::option_unspecified_p): Likewise.
	(diagnostic_context::classify_diagnostic): Likewise.
	(diagnostic_context::option_enabled_p): Likewise.
	(diagnostic_context::make_option_name): Likewise.
	(diagnostic_context::make_option_url): Likewise.
	(diagnostic_context::diagnostic_impl): Likewise.
	(diagnostic_context::diagnostic_n_impl): Likewise.
	(diagnostic_override_option_index): Rename...
	(diagnostic_set_option_id): ...to this, and update for
	diagnostic_info field renaming.
	(diagnostic_classify_diagnostic): Use "diagnostic_option_id"
	rather than "int".
	(warning_enabled_at): Likewise.
	(option_unspecified_p): Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc (cb_cpp_diagnostic_cpp_option): Convert return type from
	"int" to "diagnostic_option_id".
	(cb_cpp_diagnostic): Update for renaming of
	diagnostic_override_option_index to diagnostic_set_option_id.
	* error.cc (gfc_warning): Update for renaming of diagnostic_info
	field.
	(gfc_warning_now_at): Likewise.
	(gfc_warning_now): Likewise.
	(gfc_warning_internal): Likewise.

gcc/ChangeLog:
	* ipa-pure-const.cc: Replace include of "opts.h" with
	"opts-diagnostic.h".
	(suggest_attribute): Convert param from int to
	diagnostic_option_id.
	* lto-wrapper.cc (class lto_diagnostic_option_manager): Use
	diagnostic_option_id rather than "int".
	* opts-common.cc
	(compiler_diagnostic_option_manager::option_enabled_p): Likewise.
	* opts-diagnostic.h (class gcc_diagnostic_option_manager):
	Likewise.
	(class compiler_diagnostic_option_manager): Likewise.
	* opts.cc (compiler_diagnostic_option_manager::make_option_name):
	Likewise.
	(gcc_diagnostic_option_manager::make_option_url): Likewise.
	* substring-locations.cc
	(format_string_diagnostic_t::emit_warning_n_va): Likewise.
	(format_string_diagnostic_t::emit_warning_va): Likewise.
	(format_string_diagnostic_t::emit_warning): Likewise.
	(format_string_diagnostic_t::emit_warning_n): Likewise.
	* substring-locations.h
	(format_string_diagnostic_t::emit_warning_va): Likewise.
	(format_string_diagnostic_t::emit_warning_n_va): Likewise.
	(format_string_diagnostic_t::emit_warning): Likewise.
	(format_string_diagnostic_t::emit_warning_n): Likewise.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use a new struct diagnostic_option_id rather than just "int" when
referring to command-line options controlling warnings in the
diagnostic subsystem.

No functional change intended, but better documents the meaning of
the code.

gcc/c-family/ChangeLog:
	* c-common.cc (c_option_controlling_cpp_diagnostic): Return
	diagnostic_option_id rather than int.
	(c_cpp_diagnostic): Update for renaming of
	diagnostic_override_option_index to diagnostic_set_option_id.

gcc/c/ChangeLog:
	* c-errors.cc (pedwarn_c23): Use "diagnostic_option_id option_id"
	rather than "int opt".  Update for renaming of diagnostic_info
	field.
	(pedwarn_c11): Likewise.
	(pedwarn_c99): Likewise.
	(pedwarn_c90): Likewise.
	* c-tree.h (pedwarn_c90): Likewise for decl.
	(pedwarn_c99): Likewise.
	(pedwarn_c11): Likewise.
	(pedwarn_c23): Likewise.

gcc/cp/ChangeLog:
	* constexpr.cc (constexpr_error): Update for renaming of
	diagnostic_info field.
	* cp-tree.h (pedwarn_cxx98): Use "diagnostic_option_id" rather
	than "int".
	* error.cc (cp_adjust_diagnostic_info): Update for renaming of
	diagnostic_info field.
	(pedwarn_cxx98): Use "diagnostic_option_id option_id" rather than
	"int opt".  Update for renaming of diagnostic_info field.
	(diagnostic_set_info): Likewise.

gcc/d/ChangeLog:
	* d-diagnostic.cc (d_diagnostic_report_diagnostic): Update for
	renaming of diagnostic_info field.

gcc/ChangeLog:
	* diagnostic-core.h (struct diagnostic_option_id): New.
	(warning): Use it rather than "int" for param.
	(warning_n): Likewise.
	(warning_at): Likewise.
	(warning_meta): Likewise.
	(pedwarn): Likewise.
	(permerror_opt): Likewise.
	(emit_diagnostic): Likewise.
	(emit_diagnostic_valist): Likewise.
	(emit_diagnostic_valist_meta): Likewise.
	* diagnostic-format-json.cc
	(json_output_format::on_report_diagnostic): Update for renaming of
	diagnostic_info field.
	* diagnostic-format-sarif.cc (sarif_builder::make_result_object):
	Likewise.
	(make_reporting_descriptor_object_for_warning): Likewise.
	* diagnostic-format-text.cc (print_option_information): Likewise.
	* diagnostic-global-context.cc (emit_diagnostic): Use
	"diagnostic_option_id option_id" rather than "int opt".
	(emit_diagnostic_valist): Likewise.
	(emit_diagnostic_valist_meta): Likewise.
	(warning): Likewise.
	(warning_at): Likewise.
	(warning_meta): Likewise.
	(warning_n): Likewise.
	(pedwarn): Likewise.
	(permerror_opt): Likewise.
	* diagnostic.cc (diagnostic_set_info_translated): Update for
	renaming of diagnostic_info field.
	(diagnostic_option_classifier::classify_diagnostic): Use
	"diagnostic_option_id option_id" rather than "int opt".
	(update_effective_level_from_pragmas): Update for renaming of
	diagnostic_info field.
	(diagnostic_context::diagnostic_enabled): Likewise.
	(diagnostic_context::warning_enabled_at): Use
	"diagnostic_option_id option_id" rather than "int opt".
	(diagnostic_context::diagnostic_impl): Likewise.
	(diagnostic_context::diagnostic_n_impl): Likewise.
	* diagnostic.h (diagnostic_info::diagnostic_info): Update for...
	(diagnostic_info::option_index): Rename...
	(diagnostic_info::option_id): ...to this.
	(class diagnostic_option_manager): Use
	"diagnostic_option_id option_id" rather than "int opt" for vfuncs.
	(diagnostic_option_classifier): Likewise for member funcs.
	(diagnostic_classification_change_t::option): Add comment.
	(diagnostic_context::warning_enabled_at): Use
	"diagnostic_option_id option_id" rather than "int option_index".
	(diagnostic_context::option_unspecified_p): Likewise.
	(diagnostic_context::classify_diagnostic): Likewise.
	(diagnostic_context::option_enabled_p): Likewise.
	(diagnostic_context::make_option_name): Likewise.
	(diagnostic_context::make_option_url): Likewise.
	(diagnostic_context::diagnostic_impl): Likewise.
	(diagnostic_context::diagnostic_n_impl): Likewise.
	(diagnostic_override_option_index): Rename...
	(diagnostic_set_option_id): ...to this, and update for
	diagnostic_info field renaming.
	(diagnostic_classify_diagnostic): Use "diagnostic_option_id"
	rather than "int".
	(warning_enabled_at): Likewise.
	(option_unspecified_p): Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc (cb_cpp_diagnostic_cpp_option): Convert return type from
	"int" to "diagnostic_option_id".
	(cb_cpp_diagnostic): Update for renaming of
	diagnostic_override_option_index to diagnostic_set_option_id.
	* error.cc (gfc_warning): Update for renaming of diagnostic_info
	field.
	(gfc_warning_now_at): Likewise.
	(gfc_warning_now): Likewise.
	(gfc_warning_internal): Likewise.

gcc/ChangeLog:
	* ipa-pure-const.cc: Replace include of "opts.h" with
	"opts-diagnostic.h".
	(suggest_attribute): Convert param from int to
	diagnostic_option_id.
	* lto-wrapper.cc (class lto_diagnostic_option_manager): Use
	diagnostic_option_id rather than "int".
	* opts-common.cc
	(compiler_diagnostic_option_manager::option_enabled_p): Likewise.
	* opts-diagnostic.h (class gcc_diagnostic_option_manager):
	Likewise.
	(class compiler_diagnostic_option_manager): Likewise.
	* opts.cc (compiler_diagnostic_option_manager::make_option_name):
	Likewise.
	(gcc_diagnostic_option_manager::make_option_url): Likewise.
	* substring-locations.cc
	(format_string_diagnostic_t::emit_warning_n_va): Likewise.
	(format_string_diagnostic_t::emit_warning_va): Likewise.
	(format_string_diagnostic_t::emit_warning): Likewise.
	(format_string_diagnostic_t::emit_warning_n): Likewise.
	* substring-locations.h
	(format_string_diagnostic_t::emit_warning_va): Likewise.
	(format_string_diagnostic_t::emit_warning_n_va): Likewise.
	(format_string_diagnostic_t::emit_warning): Likewise.
	(format_string_diagnostic_t::emit_warning_n): Likewise.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years.</title>
<updated>2024-01-03T11:19:35+00:00</updated>
<author>
<name>Jakub Jelinek</name>
<email>jakub@redhat.com</email>
</author>
<published>2024-01-03T11:19:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=a945c346f57ba40fc80c14ac59be0d43624e559d'/>
<id>a945c346f57ba40fc80c14ac59be0d43624e559d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>diagnostics: convert diagnostic_context to a class</title>
<updated>2023-11-04T01:46:47+00:00</updated>
<author>
<name>David Malcolm</name>
<email>dmalcolm@redhat.com</email>
</author>
<published>2023-11-04T01:46:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/gcc.git/commit/?id=8200cd97c9c57de582e81a68a6cb2046fa8decb2'/>
<id>8200cd97c9c57de582e81a68a6cb2046fa8decb2</id>
<content type='text'>
This patch:
- converts "struct diagnostic_context" to "class diagnostic_context".
- ensures all data members have an "m_" prefix, except for "printer",
  which has so many uses that renaming would be painful.
- makes most of the data members private
- converts much of the diagnostic_* functions to member functions of
  diagnostic_context, adding compatibility wrappers for users such as
  the Fortran frontend, and making as many as possible private.

No functional change intended.

gcc/ChangeLog:
	* common.opt (fdiagnostics-text-art-charset=): Remove refererence
	to diagnostic-text-art.h.
	* coretypes.h (struct diagnostic_context): Replace forward decl
	with...
	(class diagnostic_context): ...this.
	* diagnostic-format-json.cc: Update for changes to
	diagnostic_context.
	* diagnostic-format-sarif.cc: Likewise.
	* diagnostic-show-locus.cc: Likewise.
	* diagnostic-text-art.h: Deleted file, moving content...
	(enum diagnostic_text_art_charset): ...to diagnostic.h,
	(DIAGNOSTICS_TEXT_ART_CHARSET_DEFAULT): ...deleting,
	(diagnostics_text_art_charset_init): ...deleting in favor of
	diagnostic_context::set_text_art_charset.
	* diagnostic.cc: Remove include of "diagnostic-text-art.h".
	(pedantic_warning_kind): Update for field renaming.
	(permissive_error_kind): Likewise.
	(permissive_error_option): Likewise.
	(diagnostic_initialize): Convert to...
	(diagnostic_context::initialize): ...this, updating for field
	renamings.
	(diagnostic_color_init): Convert to...
	(diagnostic_context::color_init): ...this.
	(diagnostic_urls_init): Convert to...
	(diagnostic_context::urls_init): ...this.
	(diagnostic_initialize_input_context): Convert to...
	(diagnostic_context::initialize_input_context): ...this.
	(diagnostic_finish): Convert to...
	(diagnostic_context::finish): ...this, updating for field
	renamings.
	(diagnostic_context::set_output_format): New.
	(diagnostic_context::set_client_data_hooks): New.
	(diagnostic_context::create_edit_context): New.
	(diagnostic_converted_column): Convert to...
	(diagnostic_context::converted_column): ...this.
	(diagnostic_get_location_text): Update for field renaming.
	(diagnostic_check_max_errors): Convert to...
	(diagnostic_context::check_max_errors): ...this, updating for
	field renamings.
	(diagnostic_action_after_output): Convert to...
	(diagnostic_context::action_after_output): ...this, updating for
	field renamings.
	(last_module_changed_p): Delete.
	(set_last_module): Delete.
	(includes_seen): Convert to...
	(diagnostic_context::includes_seen_p): ...this, updating for field
	renamings.
	(diagnostic_report_current_module): Convert to...
	(diagnostic_context::report_current_module): ...this, updating for
	field renamings, and replacing uses of last_module_changed_p and
	set_last_module to simple field accesses.
	(diagnostic_show_any_path): Convert to...
	(diagnostic_context::show_any_path): ...this.
	(diagnostic_classify_diagnostic): Convert to...
	(diagnostic_context::classify_diagnostic): ...this, updating for
	field renamings.
	(diagnostic_push_diagnostics): Convert to...
	(diagnostic_context::push_diagnostics): ...this, updating for field
	renamings.
	(diagnostic_pop_diagnostics): Convert to...
	(diagnostic_context::pop_diagnostics): ...this, updating for field
	renamings.
	(get_any_inlining_info): Convert to...
	(diagnostic_context::get_any_inlining_info): ...this, updating for
	field renamings.
	(update_effective_level_from_pragmas): Convert to...
	(diagnostic_context::update_effective_level_from_pragmas):
	...this, updating for field renamings.
	(print_any_cwe): Convert to...
	(diagnostic_context::print_any_cwe): ...this.
	(print_any_rules): Convert to...
	(diagnostic_context::print_any_rules): ...this.
	(print_option_information): Convert to...
	(diagnostic_context::print_option_information): ...this, updating
	for field renamings.
	(diagnostic_enabled): Convert to...
	(diagnostic_context::diagnostic_enabled): ...this, updating for
	field renamings.
	(warning_enabled_at): Convert to...
	(diagnostic_context::warning_enabled_at): ...this.
	(diagnostic_report_diagnostic): Convert to...
	(diagnostic_context::report_diagnostic): ...this, updating for
	field renamings and conversions to member functions.
	(diagnostic_append_note): Update for field renaming.
	(diagnostic_impl): Use diagnostic_context::report_diagnostic
	directly.
	(diagnostic_n_impl): Likewise.
	(diagnostic_emit_diagram): Convert to...
	(diagnostic_context::emit_diagram): ...this, updating for field
	renamings.
	(error_recursion): Convert to...
	(diagnostic_context::error_recursion): ...this.
	(diagnostic_text_output_format::~diagnostic_text_output_format):
	Use accessor.
	(diagnostics_text_art_charset_init): Convert to...
	(diagnostic_context::set_text_art_charset): ...this.
	(assert_location_text): Update for field renamings.
	* diagnostic.h (enum diagnostic_text_art_charset): Move here from
	diagnostic-text-art.h.
	(struct diagnostic_context): Convert to...
	(class diagnostic_context): ...this.
	(diagnostic_context::ice_handler_callback_t): New typedef.
	(diagnostic_context::set_locations_callback_t): New typedef.
	(diagnostic_context::initialize): New decl.
	(diagnostic_context::color_init): New decl.
	(diagnostic_context::urls_init): New decl.
	(diagnostic_context::file_cache_init): New decl.
	(diagnostic_context::finish): New decl.
	(diagnostic_context::set_set_locations_callback): New.
	(diagnostic_context::initialize_input_context): New decl.
	(diagnostic_context::warning_enabled_at): New decl.
	(diagnostic_context::option_unspecified_p): New.
	(diagnostic_context::report_diagnostic): New decl.
	(diagnostic_context::report_current_module): New decl.
	(diagnostic_context::check_max_errors): New decl.
	(diagnostic_context::action_after_output): New decl.
	(diagnostic_context::classify_diagnostic): New decl.
	(diagnostic_context::push_diagnostics): New decl.
	(diagnostic_context::pop_diagnostics): New decl.
	(diagnostic_context::emit_diagram): New decl.
	(diagnostic_context::set_output_format): New decl.
	(diagnostic_context::set_text_art_charset): New decl.
	(diagnostic_context::set_client_data_hooks): New decl.
	(diagnostic_context::create_edit_context): New decl.
	(diagnostic_context::set_warning_as_error_requested): New.
	(diagnostic_context::set_report_bug): New.
	(diagnostic_context::set_extra_output_kind): New.
	(diagnostic_context::set_show_cwe): New.
	(diagnostic_context::set_show_rules): New.
	(diagnostic_context::set_path_format): New.
	(diagnostic_context::set_show_path_depths): New.
	(diagnostic_context::set_show_option_requested): New.
	(diagnostic_context::set_max_errors): New.
	(diagnostic_context::set_escape_format): New.
	(diagnostic_context::set_ice_handler_callback): New.
	(diagnostic_context::warning_as_error_requested_p): New.
	(diagnostic_context::show_path_depths_p): New.
	(diagnostic_context::get_path_format): New.
	(diagnostic_context::get_escape_format): New.
	(diagnostic_context::get_file_cache): New.
	(diagnostic_context::get_edit_context): New.
	(diagnostic_context::get_client_data_hooks): New.
	(diagnostic_context::get_diagram_theme): New.
	(diagnostic_context::converted_column): New decl.
	(diagnostic_context::diagnostic_count): New.
	(diagnostic_context::includes_seen_p): New decl.
	(diagnostic_context::print_any_cwe): New decl.
	(diagnostic_context::print_any_rules): New decl.
	(diagnostic_context::print_option_information): New decl.
	(diagnostic_context::show_any_path): New decl.
	(diagnostic_context::error_recursion): New decl.
	(diagnostic_context::diagnostic_enabled): New decl.
	(diagnostic_context::get_any_inlining_info): New decl.
	(diagnostic_context::update_effective_level_from_pragmas): New
	decl.
	(diagnostic_context::m_file_cache): Make private.
	(diagnostic_context::diagnostic_count): Rename to...
	(diagnostic_context::m_diagnostic_count): ...this and make
	private.
	(diagnostic_context::warning_as_error_requested): Rename to...
	(diagnostic_context::m_warning_as_error_requested): ...this and
	make private.
	(diagnostic_context::n_opts): Rename to...
	(diagnostic_context::m_n_opts): ...this and make private.
	(diagnostic_context::classify_diagnostic): Rename to...
	(diagnostic_context::m_classify_diagnostic): ...this and make
	private.
	(diagnostic_context::classification_history): Rename to...
	(diagnostic_context::m_classification_history): ...this and make
	private.
	(diagnostic_context::n_classification_history): Rename to...
	(diagnostic_context::m_n_classification_history): ...this and make
	private.
	(diagnostic_context::push_list): Rename to...
	(diagnostic_context::m_push_list): ...this and make private.
	(diagnostic_context::n_push): Rename to...
	(diagnostic_context::m_n_push): ...this and make private.
	(diagnostic_context::show_cwe): Rename to...
	(diagnostic_context::m_show_cwe): ...this and make private.
	(diagnostic_context::show_rules): Rename to...
	(diagnostic_context::m_show_rules): ...this and make private.
	(diagnostic_context::path_format): Rename to...
	(diagnostic_context::m_path_format): ...this and make private.
	(diagnostic_context::show_path_depths): Rename to...
	(diagnostic_context::m_show_path_depths): ...this and make
	private.
	(diagnostic_context::show_option_requested): Rename to...
	(diagnostic_context::m_show_option_requested): ...this and make
	private.
	(diagnostic_context::abort_on_error): Rename to...
	(diagnostic_context::m_abort_on_error): ...this.
	(diagnostic_context::show_column): Rename to...
	(diagnostic_context::m_show_column): ...this.
	(diagnostic_context::pedantic_errors): Rename to...
	(diagnostic_context::m_pedantic_errors): ...this.
	(diagnostic_context::permissive): Rename to...
	(diagnostic_context::m_permissive): ...this.
	(diagnostic_context::opt_permissive): Rename to...
	(diagnostic_context::m_opt_permissive): ...this.
	(diagnostic_context::fatal_errors): Rename to...
	(diagnostic_context::m_fatal_errors): ...this.
	(diagnostic_context::dc_inhibit_warnings): Rename to...
	(diagnostic_context::m_inhibit_warnings): ...this.
	(diagnostic_context::dc_warn_system_headers): Rename to...
	(diagnostic_context::m_warn_system_headers): ...this.
	(diagnostic_context::max_errors): Rename to...
	(diagnostic_context::m_max_errors): ...this and make private.
	(diagnostic_context::internal_error): Rename to...
	(diagnostic_context::m_internal_error): ...this.
	(diagnostic_context::option_enabled): Rename to...
	(diagnostic_context::m_option_enabled): ...this.
	(diagnostic_context::option_state): Rename to...
	(diagnostic_context::m_option_state): ...this.
	(diagnostic_context::option_name): Rename to...
	(diagnostic_context::m_option_name): ...this.
	(diagnostic_context::get_option_url): Rename to...
	(diagnostic_context::m_get_option_url): ...this.
	(diagnostic_context::print_path): Rename to...
	(diagnostic_context::m_print_path): ...this.
	(diagnostic_context::make_json_for_path): Rename to...
	(diagnostic_context::m_make_json_for_path): ...this.
	(diagnostic_context::x_data): Rename to...
	(diagnostic_context::m_client_aux_data): ...this.
	(diagnostic_context::last_location): Rename to...
	(diagnostic_context::m_last_location): ...this.
	(diagnostic_context::last_module): Rename to...
	(diagnostic_context::m_last_module): ...this and make private.
	(diagnostic_context::lock): Rename to...
	(diagnostic_context::m_lock): ...this and make private.
	(diagnostic_context::lang_mask): Rename to...
	(diagnostic_context::m_lang_mask): ...this.
	(diagnostic_context::inhibit_notes_p): Rename to...
	(diagnostic_context::m_inhibit_notes_p): ...this.
	(diagnostic_context::report_bug): Rename to...
	(diagnostic_context::m_report_bug): ...this and make private.
	(diagnostic_context::extra_output_kind): Rename to...
	(diagnostic_context::m_extra_output_kind): ...this and make
	private.
	(diagnostic_context::column_unit): Rename to...
	(diagnostic_context::m_column_unit): ...this and make private.
	(diagnostic_context::column_origin): Rename to...
	(diagnostic_context::m_column_origin): ...this and make private.
	(diagnostic_context::tabstop): Rename to...
	(diagnostic_context::m_tabstop): ...this and make private.
	(diagnostic_context::escape_format): Rename to...
	(diagnostic_context::m_escape_format): ...this and make private.
	(diagnostic_context::edit_context_ptr): Rename to...
	(diagnostic_context::m_edit_context_ptr): ...this and make
	private.
	(diagnostic_context::set_locations_cb): Rename to...
	(diagnostic_context::m_set_locations_cb): ...this and make
	private.
	(diagnostic_context::ice_handler_cb): Rename to...
	(diagnostic_context::m_ice_handler_cb): ...this and make private.
	(diagnostic_context::includes_seen): Rename to...
	(diagnostic_context::m_includes_seen): ...this and make private.
	(diagnostic_inhibit_notes): Update for field renaming.
	(diagnostic_context_auxiliary_data): Likewise.
	(diagnostic_abort_on_error): Convert from macro to inline function
	and update for field renaming.
	(diagnostic_kind_count): Convert from macro to inline function and
	use diagnostic_count accessor.
	(diagnostic_report_warnings_p): Update for field renaming.
	(diagnostic_initialize): Convert decl to inline function calling
	into diagnostic_context.
	(diagnostic_color_init): Likewise.
	(diagnostic_urls_init): Likewise.
	(diagnostic_urls_init): Likewise.
	(diagnostic_finish): Likewise.
	(diagnostic_report_current_module): Likewise.
	(diagnostic_show_any_path): Delete decl.
	(diagnostic_initialize_input_context): Convert decl to inline
	function calling into diagnostic_context.
	(diagnostic_classify_diagnostic): Likewise.
	(diagnostic_push_diagnostics): Likewise.
	(diagnostic_pop_diagnostics): Likewise.
	(diagnostic_report_diagnostic): Likewise.
	(diagnostic_action_after_output): Likewise.
	(diagnostic_check_max_errors): Likewise.
	(diagnostic_file_cache_fini): Delete decl.
	(diagnostic_converted_column): Delete decl.
	(warning_enabled_at): Convert decl to inline function calling into
	diagnostic_context.
	(option_unspecified_p): New.
	(diagnostic_emit_diagram): Delete decl.
	* gcc.cc: Remove include of "diagnostic-text-art.h".
	Update for changes to diagnostic_context.
	* input.cc (diagnostic_file_cache_init): Move implementation
	to...
	(diagnostic_context::file_cache_init): ...this new member
	function.
	(diagnostic_file_cache_fini): Delete.
	(diagnostics_file_cache_forcibly_evict_file): Update for
	m_file_cache becoming private.
	(location_get_source_line): Likewise.
	(get_source_file_content): Likewise.
	(location_missing_trailing_newline): Likewise.
	* input.h (diagnostics_file_cache_fini): Delete.
	* langhooks.cc: Update for changes to diagnostic_context.
	* lto-wrapper.cc: Likewise.
	* opts.cc: Remove include of "diagnostic-text-art.h".
	Update for changes to diagnostic_context.
	* selftest-diagnostic.cc: Update for changes to
	diagnostic_context.
	* toplev.cc: Likewise.
	* tree-diagnostic-path.cc: Likewise.
	* tree-diagnostic.cc: Likewise.

gcc/ada/ChangeLog:
	* gcc-interface/misc.cc: Update for changes to diagnostic_context.

gcc/analyzer/ChangeLog:
	* bounds-checking.cc: Update for changes to diagnostic_context.

gcc/c-family/ChangeLog:
	* c-common.cc: Update for changes to diagnostic_context.
	* c-indentation.cc: Likewise.
	* c-opts.cc: Likewise.
	* c-warn.cc: Likewise.

gcc/cp/ChangeLog:
	* call.cc: Update for changes to diagnostic_context.
	* class.cc: Likewise.
	* decl.cc: Likewise.
	* error.cc: Likewise.
	* except.cc: Likewise.
	* pt.cc: Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc: Update for changes to diagnostic_context.
	* error.cc: Likewise.
	* options.cc: Likewise.

gcc/jit/ChangeLog:
	* jit-playback.cc: Update for changes to diagnostic_context.
	* jit-playback.h: Likewise.

gcc/testsuite/ChangeLog:
	* gcc.dg/plugin/diagnostic_group_plugin.c: Update for changes to
	diagnostic_context.
	* gcc.dg/plugin/diagnostic_plugin_test_text_art.c: Likewise.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch:
- converts "struct diagnostic_context" to "class diagnostic_context".
- ensures all data members have an "m_" prefix, except for "printer",
  which has so many uses that renaming would be painful.
- makes most of the data members private
- converts much of the diagnostic_* functions to member functions of
  diagnostic_context, adding compatibility wrappers for users such as
  the Fortran frontend, and making as many as possible private.

No functional change intended.

gcc/ChangeLog:
	* common.opt (fdiagnostics-text-art-charset=): Remove refererence
	to diagnostic-text-art.h.
	* coretypes.h (struct diagnostic_context): Replace forward decl
	with...
	(class diagnostic_context): ...this.
	* diagnostic-format-json.cc: Update for changes to
	diagnostic_context.
	* diagnostic-format-sarif.cc: Likewise.
	* diagnostic-show-locus.cc: Likewise.
	* diagnostic-text-art.h: Deleted file, moving content...
	(enum diagnostic_text_art_charset): ...to diagnostic.h,
	(DIAGNOSTICS_TEXT_ART_CHARSET_DEFAULT): ...deleting,
	(diagnostics_text_art_charset_init): ...deleting in favor of
	diagnostic_context::set_text_art_charset.
	* diagnostic.cc: Remove include of "diagnostic-text-art.h".
	(pedantic_warning_kind): Update for field renaming.
	(permissive_error_kind): Likewise.
	(permissive_error_option): Likewise.
	(diagnostic_initialize): Convert to...
	(diagnostic_context::initialize): ...this, updating for field
	renamings.
	(diagnostic_color_init): Convert to...
	(diagnostic_context::color_init): ...this.
	(diagnostic_urls_init): Convert to...
	(diagnostic_context::urls_init): ...this.
	(diagnostic_initialize_input_context): Convert to...
	(diagnostic_context::initialize_input_context): ...this.
	(diagnostic_finish): Convert to...
	(diagnostic_context::finish): ...this, updating for field
	renamings.
	(diagnostic_context::set_output_format): New.
	(diagnostic_context::set_client_data_hooks): New.
	(diagnostic_context::create_edit_context): New.
	(diagnostic_converted_column): Convert to...
	(diagnostic_context::converted_column): ...this.
	(diagnostic_get_location_text): Update for field renaming.
	(diagnostic_check_max_errors): Convert to...
	(diagnostic_context::check_max_errors): ...this, updating for
	field renamings.
	(diagnostic_action_after_output): Convert to...
	(diagnostic_context::action_after_output): ...this, updating for
	field renamings.
	(last_module_changed_p): Delete.
	(set_last_module): Delete.
	(includes_seen): Convert to...
	(diagnostic_context::includes_seen_p): ...this, updating for field
	renamings.
	(diagnostic_report_current_module): Convert to...
	(diagnostic_context::report_current_module): ...this, updating for
	field renamings, and replacing uses of last_module_changed_p and
	set_last_module to simple field accesses.
	(diagnostic_show_any_path): Convert to...
	(diagnostic_context::show_any_path): ...this.
	(diagnostic_classify_diagnostic): Convert to...
	(diagnostic_context::classify_diagnostic): ...this, updating for
	field renamings.
	(diagnostic_push_diagnostics): Convert to...
	(diagnostic_context::push_diagnostics): ...this, updating for field
	renamings.
	(diagnostic_pop_diagnostics): Convert to...
	(diagnostic_context::pop_diagnostics): ...this, updating for field
	renamings.
	(get_any_inlining_info): Convert to...
	(diagnostic_context::get_any_inlining_info): ...this, updating for
	field renamings.
	(update_effective_level_from_pragmas): Convert to...
	(diagnostic_context::update_effective_level_from_pragmas):
	...this, updating for field renamings.
	(print_any_cwe): Convert to...
	(diagnostic_context::print_any_cwe): ...this.
	(print_any_rules): Convert to...
	(diagnostic_context::print_any_rules): ...this.
	(print_option_information): Convert to...
	(diagnostic_context::print_option_information): ...this, updating
	for field renamings.
	(diagnostic_enabled): Convert to...
	(diagnostic_context::diagnostic_enabled): ...this, updating for
	field renamings.
	(warning_enabled_at): Convert to...
	(diagnostic_context::warning_enabled_at): ...this.
	(diagnostic_report_diagnostic): Convert to...
	(diagnostic_context::report_diagnostic): ...this, updating for
	field renamings and conversions to member functions.
	(diagnostic_append_note): Update for field renaming.
	(diagnostic_impl): Use diagnostic_context::report_diagnostic
	directly.
	(diagnostic_n_impl): Likewise.
	(diagnostic_emit_diagram): Convert to...
	(diagnostic_context::emit_diagram): ...this, updating for field
	renamings.
	(error_recursion): Convert to...
	(diagnostic_context::error_recursion): ...this.
	(diagnostic_text_output_format::~diagnostic_text_output_format):
	Use accessor.
	(diagnostics_text_art_charset_init): Convert to...
	(diagnostic_context::set_text_art_charset): ...this.
	(assert_location_text): Update for field renamings.
	* diagnostic.h (enum diagnostic_text_art_charset): Move here from
	diagnostic-text-art.h.
	(struct diagnostic_context): Convert to...
	(class diagnostic_context): ...this.
	(diagnostic_context::ice_handler_callback_t): New typedef.
	(diagnostic_context::set_locations_callback_t): New typedef.
	(diagnostic_context::initialize): New decl.
	(diagnostic_context::color_init): New decl.
	(diagnostic_context::urls_init): New decl.
	(diagnostic_context::file_cache_init): New decl.
	(diagnostic_context::finish): New decl.
	(diagnostic_context::set_set_locations_callback): New.
	(diagnostic_context::initialize_input_context): New decl.
	(diagnostic_context::warning_enabled_at): New decl.
	(diagnostic_context::option_unspecified_p): New.
	(diagnostic_context::report_diagnostic): New decl.
	(diagnostic_context::report_current_module): New decl.
	(diagnostic_context::check_max_errors): New decl.
	(diagnostic_context::action_after_output): New decl.
	(diagnostic_context::classify_diagnostic): New decl.
	(diagnostic_context::push_diagnostics): New decl.
	(diagnostic_context::pop_diagnostics): New decl.
	(diagnostic_context::emit_diagram): New decl.
	(diagnostic_context::set_output_format): New decl.
	(diagnostic_context::set_text_art_charset): New decl.
	(diagnostic_context::set_client_data_hooks): New decl.
	(diagnostic_context::create_edit_context): New decl.
	(diagnostic_context::set_warning_as_error_requested): New.
	(diagnostic_context::set_report_bug): New.
	(diagnostic_context::set_extra_output_kind): New.
	(diagnostic_context::set_show_cwe): New.
	(diagnostic_context::set_show_rules): New.
	(diagnostic_context::set_path_format): New.
	(diagnostic_context::set_show_path_depths): New.
	(diagnostic_context::set_show_option_requested): New.
	(diagnostic_context::set_max_errors): New.
	(diagnostic_context::set_escape_format): New.
	(diagnostic_context::set_ice_handler_callback): New.
	(diagnostic_context::warning_as_error_requested_p): New.
	(diagnostic_context::show_path_depths_p): New.
	(diagnostic_context::get_path_format): New.
	(diagnostic_context::get_escape_format): New.
	(diagnostic_context::get_file_cache): New.
	(diagnostic_context::get_edit_context): New.
	(diagnostic_context::get_client_data_hooks): New.
	(diagnostic_context::get_diagram_theme): New.
	(diagnostic_context::converted_column): New decl.
	(diagnostic_context::diagnostic_count): New.
	(diagnostic_context::includes_seen_p): New decl.
	(diagnostic_context::print_any_cwe): New decl.
	(diagnostic_context::print_any_rules): New decl.
	(diagnostic_context::print_option_information): New decl.
	(diagnostic_context::show_any_path): New decl.
	(diagnostic_context::error_recursion): New decl.
	(diagnostic_context::diagnostic_enabled): New decl.
	(diagnostic_context::get_any_inlining_info): New decl.
	(diagnostic_context::update_effective_level_from_pragmas): New
	decl.
	(diagnostic_context::m_file_cache): Make private.
	(diagnostic_context::diagnostic_count): Rename to...
	(diagnostic_context::m_diagnostic_count): ...this and make
	private.
	(diagnostic_context::warning_as_error_requested): Rename to...
	(diagnostic_context::m_warning_as_error_requested): ...this and
	make private.
	(diagnostic_context::n_opts): Rename to...
	(diagnostic_context::m_n_opts): ...this and make private.
	(diagnostic_context::classify_diagnostic): Rename to...
	(diagnostic_context::m_classify_diagnostic): ...this and make
	private.
	(diagnostic_context::classification_history): Rename to...
	(diagnostic_context::m_classification_history): ...this and make
	private.
	(diagnostic_context::n_classification_history): Rename to...
	(diagnostic_context::m_n_classification_history): ...this and make
	private.
	(diagnostic_context::push_list): Rename to...
	(diagnostic_context::m_push_list): ...this and make private.
	(diagnostic_context::n_push): Rename to...
	(diagnostic_context::m_n_push): ...this and make private.
	(diagnostic_context::show_cwe): Rename to...
	(diagnostic_context::m_show_cwe): ...this and make private.
	(diagnostic_context::show_rules): Rename to...
	(diagnostic_context::m_show_rules): ...this and make private.
	(diagnostic_context::path_format): Rename to...
	(diagnostic_context::m_path_format): ...this and make private.
	(diagnostic_context::show_path_depths): Rename to...
	(diagnostic_context::m_show_path_depths): ...this and make
	private.
	(diagnostic_context::show_option_requested): Rename to...
	(diagnostic_context::m_show_option_requested): ...this and make
	private.
	(diagnostic_context::abort_on_error): Rename to...
	(diagnostic_context::m_abort_on_error): ...this.
	(diagnostic_context::show_column): Rename to...
	(diagnostic_context::m_show_column): ...this.
	(diagnostic_context::pedantic_errors): Rename to...
	(diagnostic_context::m_pedantic_errors): ...this.
	(diagnostic_context::permissive): Rename to...
	(diagnostic_context::m_permissive): ...this.
	(diagnostic_context::opt_permissive): Rename to...
	(diagnostic_context::m_opt_permissive): ...this.
	(diagnostic_context::fatal_errors): Rename to...
	(diagnostic_context::m_fatal_errors): ...this.
	(diagnostic_context::dc_inhibit_warnings): Rename to...
	(diagnostic_context::m_inhibit_warnings): ...this.
	(diagnostic_context::dc_warn_system_headers): Rename to...
	(diagnostic_context::m_warn_system_headers): ...this.
	(diagnostic_context::max_errors): Rename to...
	(diagnostic_context::m_max_errors): ...this and make private.
	(diagnostic_context::internal_error): Rename to...
	(diagnostic_context::m_internal_error): ...this.
	(diagnostic_context::option_enabled): Rename to...
	(diagnostic_context::m_option_enabled): ...this.
	(diagnostic_context::option_state): Rename to...
	(diagnostic_context::m_option_state): ...this.
	(diagnostic_context::option_name): Rename to...
	(diagnostic_context::m_option_name): ...this.
	(diagnostic_context::get_option_url): Rename to...
	(diagnostic_context::m_get_option_url): ...this.
	(diagnostic_context::print_path): Rename to...
	(diagnostic_context::m_print_path): ...this.
	(diagnostic_context::make_json_for_path): Rename to...
	(diagnostic_context::m_make_json_for_path): ...this.
	(diagnostic_context::x_data): Rename to...
	(diagnostic_context::m_client_aux_data): ...this.
	(diagnostic_context::last_location): Rename to...
	(diagnostic_context::m_last_location): ...this.
	(diagnostic_context::last_module): Rename to...
	(diagnostic_context::m_last_module): ...this and make private.
	(diagnostic_context::lock): Rename to...
	(diagnostic_context::m_lock): ...this and make private.
	(diagnostic_context::lang_mask): Rename to...
	(diagnostic_context::m_lang_mask): ...this.
	(diagnostic_context::inhibit_notes_p): Rename to...
	(diagnostic_context::m_inhibit_notes_p): ...this.
	(diagnostic_context::report_bug): Rename to...
	(diagnostic_context::m_report_bug): ...this and make private.
	(diagnostic_context::extra_output_kind): Rename to...
	(diagnostic_context::m_extra_output_kind): ...this and make
	private.
	(diagnostic_context::column_unit): Rename to...
	(diagnostic_context::m_column_unit): ...this and make private.
	(diagnostic_context::column_origin): Rename to...
	(diagnostic_context::m_column_origin): ...this and make private.
	(diagnostic_context::tabstop): Rename to...
	(diagnostic_context::m_tabstop): ...this and make private.
	(diagnostic_context::escape_format): Rename to...
	(diagnostic_context::m_escape_format): ...this and make private.
	(diagnostic_context::edit_context_ptr): Rename to...
	(diagnostic_context::m_edit_context_ptr): ...this and make
	private.
	(diagnostic_context::set_locations_cb): Rename to...
	(diagnostic_context::m_set_locations_cb): ...this and make
	private.
	(diagnostic_context::ice_handler_cb): Rename to...
	(diagnostic_context::m_ice_handler_cb): ...this and make private.
	(diagnostic_context::includes_seen): Rename to...
	(diagnostic_context::m_includes_seen): ...this and make private.
	(diagnostic_inhibit_notes): Update for field renaming.
	(diagnostic_context_auxiliary_data): Likewise.
	(diagnostic_abort_on_error): Convert from macro to inline function
	and update for field renaming.
	(diagnostic_kind_count): Convert from macro to inline function and
	use diagnostic_count accessor.
	(diagnostic_report_warnings_p): Update for field renaming.
	(diagnostic_initialize): Convert decl to inline function calling
	into diagnostic_context.
	(diagnostic_color_init): Likewise.
	(diagnostic_urls_init): Likewise.
	(diagnostic_urls_init): Likewise.
	(diagnostic_finish): Likewise.
	(diagnostic_report_current_module): Likewise.
	(diagnostic_show_any_path): Delete decl.
	(diagnostic_initialize_input_context): Convert decl to inline
	function calling into diagnostic_context.
	(diagnostic_classify_diagnostic): Likewise.
	(diagnostic_push_diagnostics): Likewise.
	(diagnostic_pop_diagnostics): Likewise.
	(diagnostic_report_diagnostic): Likewise.
	(diagnostic_action_after_output): Likewise.
	(diagnostic_check_max_errors): Likewise.
	(diagnostic_file_cache_fini): Delete decl.
	(diagnostic_converted_column): Delete decl.
	(warning_enabled_at): Convert decl to inline function calling into
	diagnostic_context.
	(option_unspecified_p): New.
	(diagnostic_emit_diagram): Delete decl.
	* gcc.cc: Remove include of "diagnostic-text-art.h".
	Update for changes to diagnostic_context.
	* input.cc (diagnostic_file_cache_init): Move implementation
	to...
	(diagnostic_context::file_cache_init): ...this new member
	function.
	(diagnostic_file_cache_fini): Delete.
	(diagnostics_file_cache_forcibly_evict_file): Update for
	m_file_cache becoming private.
	(location_get_source_line): Likewise.
	(get_source_file_content): Likewise.
	(location_missing_trailing_newline): Likewise.
	* input.h (diagnostics_file_cache_fini): Delete.
	* langhooks.cc: Update for changes to diagnostic_context.
	* lto-wrapper.cc: Likewise.
	* opts.cc: Remove include of "diagnostic-text-art.h".
	Update for changes to diagnostic_context.
	* selftest-diagnostic.cc: Update for changes to
	diagnostic_context.
	* toplev.cc: Likewise.
	* tree-diagnostic-path.cc: Likewise.
	* tree-diagnostic.cc: Likewise.

gcc/ada/ChangeLog:
	* gcc-interface/misc.cc: Update for changes to diagnostic_context.

gcc/analyzer/ChangeLog:
	* bounds-checking.cc: Update for changes to diagnostic_context.

gcc/c-family/ChangeLog:
	* c-common.cc: Update for changes to diagnostic_context.
	* c-indentation.cc: Likewise.
	* c-opts.cc: Likewise.
	* c-warn.cc: Likewise.

gcc/cp/ChangeLog:
	* call.cc: Update for changes to diagnostic_context.
	* class.cc: Likewise.
	* decl.cc: Likewise.
	* error.cc: Likewise.
	* except.cc: Likewise.
	* pt.cc: Likewise.

gcc/fortran/ChangeLog:
	* cpp.cc: Update for changes to diagnostic_context.
	* error.cc: Likewise.
	* options.cc: Likewise.

gcc/jit/ChangeLog:
	* jit-playback.cc: Update for changes to diagnostic_context.
	* jit-playback.h: Likewise.

gcc/testsuite/ChangeLog:
	* gcc.dg/plugin/diagnostic_group_plugin.c: Update for changes to
	diagnostic_context.
	* gcc.dg/plugin/diagnostic_plugin_test_text_art.c: Likewise.

Signed-off-by: David Malcolm &lt;dmalcolm@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
