c++: Fix detailed-mem-stat breakage

Nathan Sidwell nathan@acm.org
Wed Dec 16 13:55:23 GMT 2020


module.cc has a	static initializer that	ends up	in a circular
dependency when detailed mem stats are enabled.	 This removes the need
for that initializer to be dynamic, and	we punt	to the lazy
initializing we already had inside the object in question anyway.  At
the cost of an additional indirection.

	gcc/cp/
         * module.cc (loc_spans): Make spans a pointer, not inline.
	Adjust all accesses.

pushing to trunk

-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static-init.diff
Type: text/x-patch
Size: 5150 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201216/120f497d/attachment.bin>


More information about the Gcc-patches mailing list