public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38157]  New: -fconserve-stack enabled by default
@ 2008-11-16 14:21 edwintorok at gmail dot com
  2008-11-17 22:24 ` [Bug middle-end/38157] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: edwintorok at gmail dot com @ 2008-11-16 14:21 UTC (permalink / raw)
  To: gcc-bugs

At both O0 and O3 conserve-stack is enabled.
"The compiler will attempt to use less stack space, even if that makes the
program slower."

Doesn't that contradict with -O2 and -O3?

gcc_inst/bin/gcc -O0 -Q foo.c --help=optimizers |grep conserve-stack
  -fconserve-stack                      [enabled]

gcc_inst/bin/gcc -O3 -Q foo.c --help=optimizers |grep conserve-stack
  -fconserve-stack                      [enabled]

gcc_inst/bin/gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --disable-multilib --disable-static
--prefix=/home/edwin/gcc_inst/ --enable-languages=c,c++
--enable-checking=assert,df,fold,gc,misc,rtl,rtlflag,runtime,tree
Thread model: posix
gcc version 4.4.0 20081116 (experimental) [trunk revision 141912] (GCC)


-- 
           Summary: -fconserve-stack enabled by default
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: edwintorok at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug middle-end/38157] -fconserve-stack enabled by default
  2008-11-16 14:21 [Bug c/38157] New: -fconserve-stack enabled by default edwintorok at gmail dot com
@ 2008-11-17 22:24 ` pinskia at gcc dot gnu dot org
  2008-11-17 22:29 ` hubicka at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-17 22:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-11-17 22:23 -------
Hmm:

Common Var(flag_conserve_stack,0) Optimization

It should be:
Common Var(flag_conserve_stack) Init(0) Optimization

Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |middle-end
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-11-17 22:23:14
               date|                            |


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


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

* [Bug middle-end/38157] -fconserve-stack enabled by default
  2008-11-16 14:21 [Bug c/38157] New: -fconserve-stack enabled by default edwintorok at gmail dot com
  2008-11-17 22:24 ` [Bug middle-end/38157] " pinskia at gcc dot gnu dot org
@ 2008-11-17 22:29 ` hubicka at gcc dot gnu dot org
  2009-01-29 19:43 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2008-11-17 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hubicka at gcc dot gnu dot org  2008-11-17 22:27 -------
Mine.


-- 

hubicka at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |hubicka at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-11-17 22:23:14         |2008-11-17 22:27:46
               date|                            |


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


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

* [Bug middle-end/38157] -fconserve-stack enabled by default
  2008-11-16 14:21 [Bug c/38157] New: -fconserve-stack enabled by default edwintorok at gmail dot com
  2008-11-17 22:24 ` [Bug middle-end/38157] " pinskia at gcc dot gnu dot org
  2008-11-17 22:29 ` hubicka at gcc dot gnu dot org
@ 2009-01-29 19:43 ` hjl dot tools at gmail dot com
  2009-01-30 10:05 ` hariharans at picochip dot com
  2009-02-04 14:37 ` bonzini at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-01-29 19:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/38157] -fconserve-stack enabled by default
  2008-11-16 14:21 [Bug c/38157] New: -fconserve-stack enabled by default edwintorok at gmail dot com
                   ` (2 preceding siblings ...)
  2009-01-29 19:43 ` hjl dot tools at gmail dot com
@ 2009-01-30 10:05 ` hariharans at picochip dot com
  2009-02-04 14:37 ` bonzini at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hariharans at picochip dot com @ 2009-01-30 10:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hariharans at picochip dot com  2009-01-30 10:04 -------
Index: gcc/common.opt
===================================================================
--- gcc/common.opt      (revision 143749)
+++ gcc/common.opt      (working copy)
@@ -386,7 +386,7 @@
 Do not put uninitialized globals in the common section

 fconserve-stack
-Common Var(flag_conserve_stack,0) Optimization
+Common Var(flag_conserve_stack) Optimization
 Do not perform optimizations increasing noticeably stack usage

 fcprop-registers


This patch was commited to mainline (for 4.4.0).


-- 

hariharans at picochip dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hariharans at picochip dot
                   |                            |com


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


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

* [Bug middle-end/38157] -fconserve-stack enabled by default
  2008-11-16 14:21 [Bug c/38157] New: -fconserve-stack enabled by default edwintorok at gmail dot com
                   ` (3 preceding siblings ...)
  2009-01-30 10:05 ` hariharans at picochip dot com
@ 2009-02-04 14:37 ` bonzini at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2009-02-04 14:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bonzini at gnu dot org  2009-02-04 14:36 -------
Fixed.


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-02-04 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-16 14:21 [Bug c/38157] New: -fconserve-stack enabled by default edwintorok at gmail dot com
2008-11-17 22:24 ` [Bug middle-end/38157] " pinskia at gcc dot gnu dot org
2008-11-17 22:29 ` hubicka at gcc dot gnu dot org
2009-01-29 19:43 ` hjl dot tools at gmail dot com
2009-01-30 10:05 ` hariharans at picochip dot com
2009-02-04 14:37 ` bonzini at 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).