public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/9350] -fomit-frame-pointer does not work for main
       [not found] <20030117052601.9350.ctm@ardi.com>
@ 2003-12-03  9:03 ` pinskia at gcc dot gnu dot org
  2003-12-03 16:02 ` ctm at ardi dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-03  9:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-03 09:03 -------
>From the docs:
Don't keep the frame pointer in a register for functions that don't need one
Well main needs it to realign the stack.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9350


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug optimization/9350] -fomit-frame-pointer does not work for main
       [not found] <20030117052601.9350.ctm@ardi.com>
  2003-12-03  9:03 ` [Bug optimization/9350] -fomit-frame-pointer does not work for main pinskia at gcc dot gnu dot org
@ 2003-12-03 16:02 ` ctm at ardi dot com
  2003-12-06  9:30 ` pinskia at gcc dot gnu dot org
  2005-09-26 15:24 ` [Bug rtl-optimization/9350] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ctm at ardi dot com @ 2003-12-03 16:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ctm at ardi dot com  2003-12-03 16:02 -------
If you change main in my example program to xmain, you get the behavior one would expect 
without any apriori knowledge about what gcc is going to do.

If gcc wants to treat main specially, that's fine.  But if you don't document this special case, the 
documentation is incomplete.

Just because main might be used as the entry point to a program doesn't mean that gcc users are 
going to guess that this means that main needs a frame pointer.  Without special knowledge (e.g. 
documentation, examination of the gcc source code, examination of gcc's behavior) a 
knowledgable person would assume that whether a function needs a frame pointer or not is a 
question that can be resolved without knowing the function's name.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9350


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug optimization/9350] -fomit-frame-pointer does not work for main
       [not found] <20030117052601.9350.ctm@ardi.com>
  2003-12-03  9:03 ` [Bug optimization/9350] -fomit-frame-pointer does not work for main pinskia at gcc dot gnu dot org
  2003-12-03 16:02 ` ctm at ardi dot com
@ 2003-12-06  9:30 ` pinskia at gcc dot gnu dot org
  2005-09-26 15:24 ` [Bug rtl-optimization/9350] " pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-06  9:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9350


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug rtl-optimization/9350] -fomit-frame-pointer does not work for main
       [not found] <20030117052601.9350.ctm@ardi.com>
                   ` (2 preceding siblings ...)
  2003-12-06  9:30 ` pinskia at gcc dot gnu dot org
@ 2005-09-26 15:24 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-26 15:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-26 15:24 -------
The note in the documention should be expanded to say approximately "-fomit-frame-pointer does 
nothing for the function main as it is the entry point and the need for realigning the stack is needed".

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|                            |i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9350


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug rtl-optimization/9350] -fomit-frame-pointer does not work for main
       [not found] <bug-9350-5286@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16  4:25 ` rth at gcc dot gnu dot org
  0 siblings, 0 replies; 5+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-10-16  4:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

rth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-16 04:25:15
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9350


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-16  4:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030117052601.9350.ctm@ardi.com>
2003-12-03  9:03 ` [Bug optimization/9350] -fomit-frame-pointer does not work for main pinskia at gcc dot gnu dot org
2003-12-03 16:02 ` ctm at ardi dot com
2003-12-06  9:30 ` pinskia at gcc dot gnu dot org
2005-09-26 15:24 ` [Bug rtl-optimization/9350] " pinskia at gcc dot gnu dot org
     [not found] <bug-9350-5286@http.gcc.gnu.org/bugzilla/>
2005-10-16  4:25 ` rth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).