@kas1e
I tried that and it builds, but fist i get an error on linking
Quote:
12.RAM Disk:> gcc -flto -O3 main_with_lto.o my_malloc_with_lto.o -o test_with_lto
Development:Coding/SDK/gcc/ppc-amigaos/bin/ld: -f may not be used without -shared
adding -shared to the line makes it build, but my binaries WITH -flto in place are still bigger in size than without (6250 bytes with lto, compared to 6213 without lto).
Even removing -shared from the non-lto build makes it only 3 bytes smaller, so i'm not sure what's going (still suspecting that -flto isn't picked up and used et al).