Nathan Sidwell c01fe6729e c++: Prune unneeded macro locations
This implements garbage collection on locations within macro
expansions, when streaming out a CMI.  When doing the reachability
walks, we now note which macro locations we need and then only write
those locations.  The complication here is that every macro expansion
location has an independently calculated offset.  This complicates
writing, but reading remains the same -- the macro locations of a CMI
continue to form a contiguous block.

For std headers this reduced the number of macro maps by 40% and the
number of locations by 16%.  For a GMF including iostream, it reduced
it by 80% and 60% respectively.

Ordinary locations are still transformed en-mass.  They are somewhat
more complicated to apply a similar optimization to.

	gcc/cp/
	* module.cc (struct macro_info): New.
	(struct macro_traits): New.
	(macro_remap, macro_table): New globals.
	(depset::hash::find_dependencies): Note namespace location.
	(module_for_macro_loc): Adjust.
	(module_state::note_location): New.
	(module_state::Write_location): Note location when not
	streaming. Adjust macro location streaming.
	(module_state::read_location): Adjust macro location
	streaming.
	(module_state::write_init_maps): New.
	(module_state::write_prepare_maps): Reimplement macro map
	preparation.
	(module_state::write_macro_maps): Reimplement.
	(module_state::read_macro_maps): Likewise.
	(module_state::write_begin): Adjust.
	gcc/testsuite/
	* g++.dg/modules/loc-prune-1.C: New.
	* g++.dg/modules/loc-prune-2.C: New.
	* g++.dg/modules/loc-prune-3.C: New.
	* g++.dg/modules/pr98718_a.C: Adjust.
	* g++.dg/modules/pr98718_b.C: Adjust.
2022-06-23 05:16:24 -07:00
2022-03-19 00:16:22 +00:00
2022-06-02 00:16:32 +00:00
2022-05-28 00:16:40 +00:00
2022-02-28 00:16:17 +00:00
2022-06-23 05:16:24 -07:00
2022-02-14 00:16:23 +00:00
2022-06-14 00:16:39 +00:00
2021-11-30 00:16:44 +00:00
2022-01-03 10:42:10 +01:00
2022-06-03 00:16:40 +00:00
2022-05-29 00:16:31 +00:00
2022-06-02 00:16:32 +00:00
2022-06-04 00:16:27 +00:00
2022-05-30 00:16:21 +00:00
2022-05-21 00:16:32 +00:00
2021-11-16 00:16:31 +00:00
2022-06-10 00:16:43 +00:00
2022-01-27 00:16:29 +00:00
2022-06-22 00:16:25 +00:00
2022-05-24 00:17:03 +00:00
2022-06-03 00:16:40 +00:00
2022-01-03 10:42:10 +01:00
2022-06-23 00:16:40 +00:00
2022-01-12 00:16:39 +00:00
2022-05-06 00:16:26 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-06-21 00:16:27 +00:00
2022-05-21 00:16:32 +00:00
2021-12-17 00:16:20 +00:00
2022-05-28 09:38:29 -06:00
2022-05-29 00:16:31 +00:00
2021-12-21 09:10:57 +01:00
2022-03-29 17:43:32 +08:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
S
Description
Yggdrasil port of the GNU Compiler Collection
Readme 978 MiB
Languages
C++ 33%
C 27.4%
Ada 13%
Go 7.1%
D 7%
Other 12.1%