http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54218
--- Comment #5 from George Thomas <george.thomas at atmel dot com> 2013-01-07 12:04:22 UTC --- Created attachment 29095 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29095 Draft Patch for the fix of 54218 The issue is happening because stack space is allocated twice 1. assign_params_setup_stack and 2. expand_used_vars The proposed fix is to allocate the space only once in assign_params_stack by explicitly checking in expand_used_vars if the tree node is of type PARM_DECL. if its PARM_DECL, it would mean that it would already have been expanded and hence do not require further expansion. This fixes the issue and allows debugging to work properly. I would like to know if it would be an acceptable change.