embeddedartistry / libc

libc targeted for embedded systems usage. Reduced set of functionality (due to embedded nature). Chosen for portability and quick bringup.
MIT License
504 stars 67 forks source link

Disable builtins by default. #150

Closed phillipjohnston closed 3 years ago

phillipjohnston commented 3 years ago

When optimizations are enabled and compiler builtins are used, GCC can generate problematic code that can result in a segmentation fault or infinite loop in the test programs. From our investigation, this is related to the _Nonnull attribute's use in the compiler-builtins.