On Tue, Dec 05, 2023 at 06:29:10PM +0100, Tobias Burnus wrote: > Crossref, there is are -Wbuiltin-declaration-mismatch warnings in > libgcc/emutls.c, > cf. https://gcc.gnu.org/PR109289 > > I decided to leave this to Thomas and Florian and just fix the build issue > with > the attached patch. That build issue was also mentioned in PR libgcc/109289. > > An alternative would be __builtin, but as the other #define were pre-existing, > I went for the tsystem.h version. > > OK for mainline? > > Tobias > ----------------- > Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 > München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas > Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht > München, HRB 106955
> tsystem.h: Declare calloc/realloc #ifdef inhibit_libc > > Declare calloc and realloc #ifndef and inhibit_libc is > defined. Those are used by libgcc/emutls.c. > > gcc/ChangeLog: > > * tsystem.h (calloc, realloc): Declare when inhibit_libc. Ok, thanks. Jakub