Re: [PATCH 3/4] libm/stdlib: Realloc when shrinking by 2* or more
Keith Packard via Newlib <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Corinna Vinschen <[email protected]> writes: > Just as I wrote above. Done. In reviewing this code further, I've done a bunch more restructuring to make the code 64-bit clean, removing the 'offset' mechanism and letting the compiler compute alignment requirements for us. The diff for that is pretty large though; would there be an interest in looking at it? I ask because preparing that patch for newlib would take several hours as it's currently only in picolibc. https://github.com/keith-packard/picolibc/commit/fd2d18bb5ab442f16789c243648d07b4ec8e2b29 This also uncovers problems when building with newer GCC versions which "helpfully optimize" common malloc/free operations that cause incorrect code to be generated in some configurations of the library. -- -keith
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl8132UACgkQ2yIaaQAA ABFVEA/+PX8CB5AdJQJMphCbYSTRhWWytB7g9MziejxAw40/qHEXXCrKW54QYJ2c iAFJuRhZVkvXeLF3wIzUHQa4SHiRcaKbq+KfPVGWOegwVnzGwAZblwCLiCI7G18V TBUzNUtJmxZiefNDPAsKeV6jCHOZZdVHNQB5DwoFm+nFeX9jPzFtN+IYX0p6Ygn0 JSJXVQVIhI3BUs66k/XRjIG+FhztWV8hZ2stwgl3T270ScBFltd5/Vu7/xQ5DCyc DZqX2vsTwmWHn0ZNJ3CJRnZgUB39Hh5UnTc5gsroYY0w6i0S4/7KnLzyjbrFfC0i V/5BjB1EQP9IC8VK0fxbT3IMSFqQhsia6YAJSvyXJItm5NPNVw7e5gwlO/neziYt ndXHOopWms8Tm4c6JbSHYNaw3oSUbYJRdzwnRZ4VfJuNy8ESqdErqb49d1SEsuZy aoFIytY5Um3gZFHCoMwRQzAeyZuMAP3nK/8x+pIs5scNf2kBJYVpc06BC5yofPoE VfwOSTKNhdiTlszCT8fF4MvtrKudKylzOQBy+PAqlCREmRDXQza4tAolxIhgolE+ liSbu7f32WXcjGiXpysdXtoAXMNRiTorI40UOB/Y8rT61eI1KMJVenPcQeaSoOft ODy2m0DDWAFhOkXincYRSGhVKa9vGRCJ5LuDX+75nZDbPoQk9rY= =02uD -----END PGP SIGNATURE-----