"M R Swami Reddy" <MR.Swami.Reddy@xxxxxxx> writes: > Am using a cross compiler with libstdc++ support. > With -O1 and above optimization, wrong instruction generated, which > cause the stack corrupted. Appropriate your advise/suggestion. This looks like a bug in the backend support for the target you are using. I can't tell what target that is. Ian