From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24916 invoked by alias); 10 Dec 2004 05:26:31 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 24740 invoked from network); 10 Dec 2004 05:26:27 -0000 Received: from unknown (HELO webmail-outgoing.us4.outblaze.com) (205.158.62.67) by sourceware.org with SMTP; 10 Dec 2004 05:26:27 -0000 Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id A96671800135 for ; Fri, 10 Dec 2004 05:26:26 +0000 (GMT) X-OB-Received: from unknown (205.158.62.156) by wfilter.us4.outblaze.com; 10 Dec 2004 05:26:26 -0000 Received: by ws5-7.us4.outblaze.com (Postfix, from userid 1001) id 95AF72B2B86; Fri, 10 Dec 2004 05:26:26 +0000 (GMT) Content-Type: multipart/mixed; boundary="----------=_1102656386-23468-0" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Received: from [66.91.118.223] by ws5-7.us4.outblaze.com with http for sam124@operamail.com; Fri, 10 Dec 2004 06:26:26 +0100 From: "Sam Lauber" To: gcc@gcc.gnu.org Date: Fri, 10 Dec 2004 05:26:00 -0000 Subject: Unomitted frame pointers Message-Id: <20041210052626.95AF72B2B86@ws5-7.us4.outblaze.com> X-SW-Source: 2004-12/txt/msg00352.txt.bz2 This is a multi-part message in MIME format... ------------=_1102656386-23468-0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1943 Going back to useless assembly, a low-level Hello World with -fno-omit-fram= e-pointer: .file "hello.c" .section .rodata .LC0: .string "Hello World!\n" .string "" .text .globl main .type main, @function main: pushl %ebp movl %esp, %ebp subl $24, %esp andl $-16, %esp movl $0, %eax addl $15, %eax addl $15, %eax shrl $4, %eax sall $4, %eax subl %eax, %esp movl $16, 8(%esp) movl $.LC0, 4(%esp) movl $2, (%esp) call write movl $0, %eax leave ret .size main, .-main .section .note.GNU-stack,"",@progbits .ident "GCC: (GNU) 3.4.3" And the same C code with -fomit-frame-pointer: .file "hello.c" .section .rodata .LC0: .string "Hello World!\n" .string "" .text .globl main .type main, @function main: pushl %ebp movl %esp, %ebp subl $24, %esp andl $-16, %esp movl $0, %eax addl $15, %eax addl $15, %eax shrl $4, %eax sall $4, %eax subl %eax, %esp movl $16, 8(%esp) movl $.LC0, 4(%esp) movl $2, (%esp) call write movl $0, %eax leave ret .size main, .-main .section .note.GNU-stack,"",@progbits .ident "GCC: (GNU) 3.4.3" Clearly some one (or some code) isn't doing its job! The original C code is= attached. I thought -fomit-frame-pointer is supposed to OMIT the frame poi= nter! Samuel Lauber --=20 _____________________________________________________________ Web-based SMS services available at http://www.operamail.com. =46rom your mailbox to local or overseas cell phones. Powered by Outblaze ------------=_1102656386-23468-0 Content-Type: application/octet-stream; name="hello.c" Content-Disposition: attachment; filename="hello.c" Content-Transfer-Encoding: base64 Content-length: 90 aW50IG1haW4odm9pZCkKewoJd3JpdGUoMiwgIkhlbGxvIFdvcmxkIVxuXDAi LCAxNik7CglyZXR1cm4gMDsKfQo= ------------=_1102656386-23468-0--