mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion][liba] Add 'noinline' attribute for symbols that have to be in
internal flash (we don't need to consider these symbol dependencies though)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void __assert(const char * expression, const char * file, int line) {
|
||||
void __attribute__((noinline)) __assert(const char * expression, const char * file, int line) {
|
||||
abort();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51205
|
||||
void * memcpy(void * dst, const void * src, size_t n) __attribute__((externally_visible));
|
||||
|
||||
void * memcpy(void * dst, const void * src, size_t n) {
|
||||
void * __attribute__((noinline)) memcpy(void * dst, const void * src, size_t n) {
|
||||
char * destination = (char *)dst;
|
||||
char * source = (char *)src;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51205
|
||||
void * memset(void * b, int c, size_t len) __attribute__((externally_visible));
|
||||
|
||||
void * memset(void * b, int c, size_t len) {
|
||||
void * __attribute__((noinline)) memset(void * b, int c, size_t len) {
|
||||
char * destination = (char *)b;
|
||||
while (len--) {
|
||||
*destination++ = (unsigned char)c;
|
||||
|
||||
Reference in New Issue
Block a user