public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/15838] New: "Inline" value of static struct
@ 2004-06-06  1:22 pinskia at gcc dot gnu dot org
  2004-06-06  1:26 ` [Bug tree-optimization/15838] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-06  1:22 UTC (permalink / raw)
  To: gcc-bugs

struct a{int i;};
static const struct  a b = {1};
int g(){return b.i;}

This should be optimized to just
int g(){return 1;}

-- 
           Summary: "Inline" value of static struct
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 3713
             nThis:


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
@ 2004-06-06  1:26 ` pinskia at gcc dot gnu dot org
  2004-06-06  1:27 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-06  1:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|3713                        |
              nThis|                            |


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
  2004-06-06  1:26 ` [Bug tree-optimization/15838] " pinskia at gcc dot gnu dot org
@ 2004-06-06  1:27 ` pinskia at gcc dot gnu dot org
  2004-06-15 20:01 ` bangerth at dealii dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-06  1:27 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |3713
              nThis|                            |


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
  2004-06-06  1:26 ` [Bug tree-optimization/15838] " pinskia at gcc dot gnu dot org
  2004-06-06  1:27 ` pinskia at gcc dot gnu dot org
@ 2004-06-15 20:01 ` bangerth at dealii dot org
  2004-08-30 22:33 ` steven at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: bangerth at dealii dot org @ 2004-06-15 20:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-06-15 20:01 -------
Confirmed with mainline of today. A case for scalarization. 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-15 20:01:07
               date|                            |


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-06-15 20:01 ` bangerth at dealii dot org
@ 2004-08-30 22:33 ` steven at gcc dot gnu dot org
  2004-08-31 18:13 ` steven at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-08-30 22:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-08-30 22:33 -------
my patch there should be easily adaptable to handle this case. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steven at gcc dot gnu dot
                   |                            |org
  BugsThisDependsOn|                            |14841


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-08-30 22:33 ` steven at gcc dot gnu dot org
@ 2004-08-31 18:13 ` steven at gcc dot gnu dot org
  2004-08-31 21:01 ` steven at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-08-31 18:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-08-31 18:13 -------
mine 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-08-31 18:13 ` steven at gcc dot gnu dot org
@ 2004-08-31 21:01 ` steven at gcc dot gnu dot org
  2005-03-02 16:04 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-08-31 21:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2004-08-31 21:01 -------
simple patch not good enough, and no clue how to 
handle "x = a.b.c.d.e[2].f[4].g" 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|steven at gcc dot gnu dot   |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-08-31 21:01 ` steven at gcc dot gnu dot org
@ 2005-03-02 16:04 ` pinskia at gcc dot gnu dot org
  2005-03-02 16:09 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-02 16:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-02 16:04 -------
*** Bug 20284 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |franck dot bui-huu at
                   |                            |innova-card dot com


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-03-02 16:04 ` pinskia at gcc dot gnu dot org
@ 2005-03-02 16:09 ` pinskia at gcc dot gnu dot org
  2005-04-05  1:59 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-02 16:09 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dnovillo at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-03-02 16:09 ` pinskia at gcc dot gnu dot org
@ 2005-04-05  1:59 ` pinskia at gcc dot gnu dot org
  2005-05-07  4:48 ` kazu at cs dot umass dot edu
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-05  1:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.0                       |---


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-04-05  1:59 ` pinskia at gcc dot gnu dot org
@ 2005-05-07  4:48 ` kazu at cs dot umass dot edu
  2005-05-08 21:30 ` kazu at cs dot umass dot edu
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-05-07  4:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2005-05-07 04:48 -------
My patch for PR14841 also works for this case.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dnovillo at gcc dot gnu dot |kazu at cs dot umass dot edu
                   |org                         |


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2005-05-07  4:48 ` kazu at cs dot umass dot edu
@ 2005-05-08 21:30 ` kazu at cs dot umass dot edu
  2005-05-08 21:30 ` kazu at cs dot umass dot edu
  2005-05-08 23:58 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-05-08 21:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 15838 depends on bug 14841, which changed state.

Bug 14841 Summary: [tree-ssa] const_array[CST] is not folded
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14841

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-05-08 21:30 ` kazu at cs dot umass dot edu
@ 2005-05-08 21:30 ` kazu at cs dot umass dot edu
  2005-05-08 23:58 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-05-08 21:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2005-05-08 21:30 -------
Just checked in a patch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/15838] "Inline" value of static struct
  2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-05-08 21:30 ` kazu at cs dot umass dot edu
@ 2005-05-08 23:58 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-08 23:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-08 23:57 -------
so closing as fixed.

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


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


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

end of thread, other threads:[~2005-05-08 23:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-06  1:22 [Bug tree-optimization/15838] New: "Inline" value of static struct pinskia at gcc dot gnu dot org
2004-06-06  1:26 ` [Bug tree-optimization/15838] " pinskia at gcc dot gnu dot org
2004-06-06  1:27 ` pinskia at gcc dot gnu dot org
2004-06-15 20:01 ` bangerth at dealii dot org
2004-08-30 22:33 ` steven at gcc dot gnu dot org
2004-08-31 18:13 ` steven at gcc dot gnu dot org
2004-08-31 21:01 ` steven at gcc dot gnu dot org
2005-03-02 16:04 ` pinskia at gcc dot gnu dot org
2005-03-02 16:09 ` pinskia at gcc dot gnu dot org
2005-04-05  1:59 ` pinskia at gcc dot gnu dot org
2005-05-07  4:48 ` kazu at cs dot umass dot edu
2005-05-08 21:30 ` kazu at cs dot umass dot edu
2005-05-08 21:30 ` kazu at cs dot umass dot edu
2005-05-08 23:58 ` pinskia 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).