This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41990] Incorrect stack setup on x86_64
- From: "cube at cubidou dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2009 20:27:52 -0000
- Subject: [Bug c/41990] Incorrect stack setup on x86_64
- References: <bug-41990-11100@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from cube at cubidou dot net 2009-11-08 20:27 -------
Created an attachment (id=18995)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18995&action=view)
Test case
This very simple C file will expose the bug. In the assembler output, see how
only 152 is substracted to %rsp when the space taken by the variables
themselves is already 268 bytes. Uncommenting the function call will make gcc
compute the correct value.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41990