public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Fixes inspired by building with clang
@ 2020-08-20 22:14 Keith Packard
  2020-08-20 22:14 ` [PATCH 1/6] libm/stdlib: Recover from realloc failure when shrinking Keith Packard
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Keith Packard @ 2020-08-20 22:14 UTC (permalink / raw)
  To: newlib

I had a picolibc user building the library with clang and they
reported a number of warnings. I also have another minor nano-mallocr
patch in this series.

 * [PATCH 1/6] libm/stdlib: Recover from realloc failure when shrinking

Last in my nano-mallocr series -- this has realloc always succeed when
shrinking the allocation.

 * [PATCH 2/6] libc/iconv: Check ces handlers table value in

This catches a failure which would otherwise be missed causing crashes
later on.

 * [PATCH 3/6] Avoid implicit floating point conversions

A large-ish patch that fixes warnings generated by clang's
-Wdouble-promotion flag. Fixing these will avoid accidentally using
double-precision computations, which can be expensive on machines
without hardware double support.

 * [PATCH 4/6] libc/stdlib: Undefined shift negative value in a64l

This code was using undefined behaviour from the compiler. As GCC and
clang both continue to 'improve', it's good to keep undefined
behaviour out of code.

 * [PATCH 5/6] libc/stdlib: Clean up clang warnings
 * [PATCH 6/6] libc/stdio: Conditionally declare vars for

These just fix some warnings generated when compiling with various
configurations using clang.  None of these should change the resulting
code.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-21  0:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 22:14 [PATCH 0/6] Fixes inspired by building with clang Keith Packard
2020-08-20 22:14 ` [PATCH 1/6] libm/stdlib: Recover from realloc failure when shrinking Keith Packard
2020-08-20 22:14 ` [PATCH 2/6] libc/iconv: Check ces handlers table value in euc_from_ucs_init Keith Packard
2020-08-20 22:14 ` [PATCH 3/6] Avoid implicit floating point conversions Keith Packard
2020-08-20 22:43   ` Joseph Myers
     [not found]   ` <SN5P110MB03830A3D8272D82A089605659A5A0@SN5P110MB0383.NAMP110.PROD.OUTLOOK.COM>
2020-08-20 23:03     ` Fw: " C Howland
2020-08-21  0:01       ` Keith Packard
2020-08-20 22:14 ` [PATCH 4/6] libc/stdlib: Undefined shift negative value in a64l Keith Packard
2020-08-20 22:14 ` [PATCH 5/6] libc/stdlib: Clean up clang warnings Keith Packard
2020-08-20 22:14 ` [PATCH 6/6] libc/stdio: Conditionally declare vars for _FSEEK_OPTIMIZATION Keith Packard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).