delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/05/17/11:47:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Wed, 17 May 2006 10:30:50 -0500
Message-ID: <446B3D08.17F7B37@yahoo.com>
Date: Wed, 17 May 2006 11:11:04 -0400
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research http://cbfalconer.home.att.net
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: -fomit-frame-pointer not enabled when using -O ???
References: <1147811247 DOT 971831 DOT 35000 AT i40g2000cwc DOT googlegroups DOT com>
<200605162137 DOT k4GLb6CG006212 AT envy DOT delorie DOT com> <1147868309 DOT 242796 DOT 241420 AT j73g2000cwa DOT googlegroups DOT com>
Lines: 37
NNTP-Posting-Host: 216.195.163.7
X-Trace: sv3-MWnT9eGHIaze455KCJjuyL/RG3MTGIrCt9GHtH0zYMqfDapjJW94n39P6oE9GCfho4UqOXYY1unPweK!ZDjLN1Bcv4NbfECMcHfakFvP2/J/Ibt8Ec8IEViKWrfyVVHfSOMPLd5jQF0=
X-Complaints-To: abuse AT gwi DOT net
X-DMCA-Complaints-To: abuse AT gwi DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

*** top-posting fixed ***

rugxulo AT gmail DOT com wrote:
> DJ Delorie wrote:
>
>> The option means gcc *can* omit it, but there are often reasons
>> why it must have a frame pointer anyway (alloca is one, for
>> example).  We'd need to see a code sample and command line to
>> diagnose it further.
> 
> Okay, here's a silly little example:
> 
> /* TEST.C */
> #include <stdio.h>
> int main() {
> puts("Hello, world");
> return 0;
> }
> /* <EOF> */
> 
> gcc -s -Wall -O2 test.c -S -o testone.s
> gcc -s -Wall -O2 -fomit-frame-pointer test.c -S -o testtwo.s
> fc testone.s testtwo.s | more
> 
> The results are not the same. Should they be?

Around here the results are identical.  gcc 3.2.1

-- 
"If you want to post a followup via groups.google.com, don't use
 the broken "Reply" link at the bottom of the article.  Click on 
 "show options" at the top of the article, then click on the 
 "Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019