https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70063
--- Comment #1 from Andrew Wygle <awygle at gmail dot com> --- A quick correction - as my example above accidentally shows, compiling with optimizations isn't a guarantee of avoiding this problem, it just sometimes helps if the arguments are unused, as the optimizer will remove the attempt to save them.