https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92620

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Why do you think this is a bug?
> 
> From https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Standards.html#Standards:
> Most of the compiler support routines used by GCC are present in libgcc, but
> there are a few exceptions. GCC requires the freestanding environment
> provide memcpy, memmove, memset and memcmp. Finally, if __builtin_trap is
> used, and the target does not implement the trap pattern, then GCC emits a
> call to abort.

Note this is about -ffreestanding option but it also applies to -fno-builtin
because of:
https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/C-Dialect-Options.html:
-ffreestanding
Assert that compilation targets a freestanding environment. This implies
-fno-builtin

Reply via email to