Sfoglia il codice sorgente

Fix crash at startup with Og optimization

main
PaulStoffregen 5 anni fa
parent
commit
9174cad274
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      teensy4/startup.c

+ 2
- 0
teensy4/startup.c Vedi File

@@ -302,6 +302,7 @@ void unused_interrupt_vector(void)
#endif
}

__attribute__((section(".startup"), optimize("no-tree-loop-distribute-patterns")))
static void memory_copy(uint32_t *dest, const uint32_t *src, uint32_t *dest_end)
{
if (dest == src) return;
@@ -310,6 +311,7 @@ static void memory_copy(uint32_t *dest, const uint32_t *src, uint32_t *dest_end)
}
}

__attribute__((section(".startup"), optimize("no-tree-loop-distribute-patterns")))
static void memory_clear(uint32_t *dest, uint32_t *dest_end)
{
while (dest < dest_end) {

Loading…
Annulla
Salva