From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28902 invoked by alias); 28 Jan 2009 14:45:38 -0000 Received: (qmail 28877 invoked by uid 48); 28 Jan 2009 14:45:25 -0000 Date: Wed, 28 Jan 2009 14:45:00 -0000 Message-ID: <20090128144525.28875.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/39002] codegen bug? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "r dot emrich at de dot tecosim dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-01/txt/msg03098.txt.bz2 ------- Comment #6 from r dot emrich at de dot tecosim dot com 2009-01-28 14:45 ------- (In reply to comment #3) > We need the preprocessed source of a *complete* (including main) program to be > able to reproduce this. > That's a little bit difficult here. It's a really large application. But what I see from the assembler source is the following. The spnapshot produces: .globl __Z18calc_tria_height_2P4NODES0_S0_RSoRiS2_RdS3_S3_ .def __Z18calc_tria_height_2P4NODES0_S0_RSoRiS2_RdS3_S3_; .scl 2; .type 32; .endef __Z18calc_tria_height_2P4NODES0_S0_RSoRiS2_RdS3_S3_: subq $8, %rsp xorpd %xmm3, %xmm3 . . . L15: addq $8, %rsp ret here the function returns. trunk produces: .globl __Z18calc_tria_height_2P4NODES0_S0_RSoRiS2_RdS3_S3_ .def __Z18calc_tria_height_2P4NODES0_S0_RSoRiS2_RdS3_S3_; .scl 2; .type 32; .endef __Z18calc_tria_height_2P4NODES0_S0_RSoRiS2_RdS3_S3_: subq $88, %rsp xorpd %xmm3, %xmm3 . . . movsd %xmm8, (%rax) ret This looks like the stackpointer is no restored. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39002