[Bug tree-optimization/105830] call to memcpy when -nostdlib -nodefaultlibs flags provided

roger at nextmovesoftware dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 4 13:04:59 GMT 2022


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

Roger Sayle <roger at nextmovesoftware dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at nextmovesoftware dot com

--- Comment #2 from Roger Sayle <roger at nextmovesoftware dot com> ---
Hi AK,
The executive summary is that you need to specify -ffreestanding (which affects
code generation) instead of -nostdlib and -nodefaultlibs (which affect
linking).
With -ffreestanding (on your godbolt URL), there are no calls to memcpy.


More information about the Gcc-bugs mailing list