Re: [PATCH 3/6] newlib: xstormy16: fix mallopt definition & mstats handling

Sebastian Huber <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On 02/03/2022 10:46, Corinna Vinschen wrote:>> diff --git 
a/newlib/libc/machine/xstormy16/mstats.c 
b/newlib/libc/machine/xstormy16/mstats.c
>> new file mode 100644
>> index 000000000000..1bd24da555f1
>> --- /dev/null
>> +++ b/newlib/libc/machine/xstormy16/mstats.c
>> @@ -0,0 +1,6 @@
>> +/* stdlib/mstats.c defines all these symbols in this file.
>> +   TODO: Missing mstats function.  */
>> +#define DEFINE_MALLINFO
>> +#define DEFINE_MALLOC_STATS
>> +#define DEFINE_MALLOPT
>> +#include "tiny-malloc.c"
> XStormy16 is such a small target, it would be better to split these into
> three files.

This target should probably use -ffunction-sections -fdata-sections anyway.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: [email protected]
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.