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

Cory Snider <cory at pebble dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cory at pebble dot com

--- Comment #3 from Cory Snider <cory at pebble dot com> ---
Created attachment 38312
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38312&action=edit
Modified gcc.target/arm/naked-1.c testcase

The testcase gcc.target/arm/naked-1.c in the GCC test suite
(https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/gcc.target/arm/naked-1.c?view=markup)
contains the following comment:

> /* Check that function arguments aren't assigned and copied to stack slots
>    in naked functions.  This usually happens at -O0 (presumably for
>    better debugging), but is highly undesirable if we haven't created
>    a stack frame.  */

Modifying this testcase so that the function accepts a struct argument results
in the compiler emitting an instruction sequence to copy function arguments to
the caller's stack frame.

Reply via email to