d: Fix junk in generated symbol on powerpc64-*-* [PR98921]
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 1 Feb 2021 23:52:49 +0000 (00:52 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 2 Feb 2021 00:24:14 +0000 (01:24 +0100)
commit6a481021a65d6237b0c509a76fcd9c1f32c4558e
tree762ef9b75ff3acd769d3abd9a13c7fcb69047caf
parentf7884fb176128ca9299f5587815ce1908138b2f7
d: Fix junk in generated symbol on powerpc64-*-* [PR98921]

This adds a special formatter to OutBuffer to handle formatted printing
of integers, a common case.  The replacement is faster and safer.

In dmangle.c, it also gets rid of a number of problematic casts, as seen
on powerpc64 targets.

Reviewed-on: https://github.com/dlang/dmd/pull/12174

gcc/d/ChangeLog:

PR d/98921
* dmd/MERGE: Merge upstream dmd 5e2a81d9c.
gcc/d/dmd/MERGE
gcc/d/dmd/dmangle.c
gcc/d/dmd/root/outbuffer.c
gcc/d/dmd/root/outbuffer.h