[PATCH] newlib: fix build with <gcc-5 versions
Mike Frysinger
vapier@gentoo.org
Mon Mar 14 16:58:16 GMT 2022
On 14 Mar 2022 08:36, Sebastian Huber wrote:
> On 14/03/2022 04:25, Mike Frysinger wrote:
> > __builtin_mul_overflow showed up with gcc-5, so stub it out for older
> > versions.
>
> The __builtin_mul_overflow() performs a multiplication and an overflow
> check. Just replacing this with 0 is not the same.
i'm aware it does the check. i figured since <gcc-5 isn't that common, it
isn't worth the effort doing the ad-hoc ({...}) function definition trying
to maintain the same semantics. although it should at least do the actual
multiplication & assignment.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20220314/0cd80d47/attachment.sig>
More information about the Newlib
mailing list