mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-14 20:05:02 +00:00
Some GCC flags improvements (#1903)
* Some GCC flags improvements * Move -fno-reorder-blocks -fno-zero-initialized-in-bss to assets only * Add -fno-PIC since some gcc versions use -fPIC as default * Enable builtin functions on gcc, with appropriate changes to missing_gcc_functions.c and ultra64/libc.h * Move -fno-merge-constants -mno-explicit-relocs -mno-split-addresses to overlays only as they are only needed there for reloc reasons * Remove unneeded casts in missing_gcc_functions.c * Change gcc assets flags handling
This commit is contained in:
parent
1b60dcf6dd
commit
3670a48aee
3 changed files with 40 additions and 10 deletions
|
@ -5,8 +5,14 @@
|
|||
|
||||
void osSyncPrintf(const char* fmt, ...);
|
||||
|
||||
#ifdef __GNUC__
|
||||
void bzero(void* __s, unsigned int __n);
|
||||
int bcmp(const void* __sl, const void* __s2, unsigned int __n);
|
||||
void bcopy(const void* __src, void* __dest, unsigned int __n);
|
||||
#else
|
||||
void bzero(void* __s, int __n);
|
||||
int bcmp(const void* __sl, const void* __s2, int __n);
|
||||
void bcopy(const void* __src, void* __dest, int __n);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue