]> git.ipfire.org Git - thirdparty/gcc.git/commit
WriteInt in the ISO libraries should not emit '+' for positive values
authorGaius Mulley <gaiusmod2@gmail.com>
Wed, 17 May 2023 16:42:03 +0000 (17:42 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Wed, 17 May 2023 16:42:03 +0000 (17:42 +0100)
commitf5b246ce5fd95e721f0f418633964f466448d2ae
tree3f9491e960cc7a2bd50e904aaf1d0a059bcad63d
parent637edefc5863cf3b572c0c0bcd58fcc01ee60184
WriteInt in the ISO libraries should not emit '+' for positive values

This trivial patch changes the default behaviour for WriteInt so that
'+' is not emitted when writing positive values.

gcc/m2/ChangeLog:

* gm2-libs-iso/LongWholeIO.mod (WriteInt): Only request a
sign if the value is < 0.
* gm2-libs-iso/ShortWholeIO.mod (WriteInt): Only request a
sign if the value is < 0.
* gm2-libs-iso/WholeIO.mod (WriteInt): Only request a sign
if the value is < 0.
* gm2-libs-iso/WholeStr.mod (WriteInt): Only request a sign
if the value is < 0.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-libs-iso/LongWholeIO.mod
gcc/m2/gm2-libs-iso/ShortWholeIO.mod
gcc/m2/gm2-libs-iso/WholeIO.mod
gcc/m2/gm2-libs-iso/WholeStr.mod