Differences From Artifact [5f7c093a7a]:
- File
src/runtime/private.h
— part of check-in
[482698c5be]
at
2018-05-06 21:39:06
on branch trunk
— runtime: Make Amiga library work with -fbaserel
This currently uses __saveds on all exported functions for simplicity.
As an optimization, __saveds can be removed from some functions later
after careful verification that no code path starting from that function
accesses any data. (user: js, size: 12445) [annotate] [blame] [check-ins using]
To Artifact [948a1c76b2]:
- File src/runtime/private.h — part of check-in [c5c95f9fe2] at 2018-05-11 19:42:29 on branch trunk — runtime: Let objc_init() take a version number (user: js, size: 12459) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
138 139 140 141 142 143 144 | defined(OBJC_COMPILING_AMIGA_LINKLIB) extern struct objc_libc { void *(*malloc)(size_t); void *(*calloc)(size_t, size_t); void *(*realloc)(void *, size_t); void (*free)(void *); int (*vfprintf)(FILE *, const char *, va_list); | | | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | defined(OBJC_COMPILING_AMIGA_LINKLIB) extern struct objc_libc { void *(*malloc)(size_t); void *(*calloc)(size_t, size_t); void *(*realloc)(void *, size_t); void (*free)(void *); int (*vfprintf)(FILE *, const char *, va_list); int (*fflush)(FILE *); void (*exit)(int); void (*abort)(void); int (*_Unwind_RaiseException)(void *_Nonnull); void (*_Unwind_DeleteException)(void *_Nonnull); void *(*_Unwind_GetLanguageSpecificData)(void *_Nonnull); uintptr_t (*_Unwind_GetRegionStart)(void *_Nonnull); uintptr_t (*_Unwind_GetDataRelBase)(void *_Nonnull); |
︙ | ︙ | |||
336 337 338 339 340 341 342 | # endif #endif #define OBJC_ERROR(...) \ { \ fprintf(stderr, "[objc @ " __FILE__ ":%d] ", __LINE__); \ fprintf(stderr, __VA_ARGS__); \ | > | | 336 337 338 339 340 341 342 343 344 345 346 347 | # endif #endif #define OBJC_ERROR(...) \ { \ fprintf(stderr, "[objc @ " __FILE__ ":%d] ", __LINE__); \ fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, "\n"); \ fflush(stderr); \ abort(); \ OF_UNREACHABLE \ } |