public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18842] New: Weak optimization on global references
@ 2004-12-05  8:55 felix dot nawothnig at t-online dot de
  2004-12-05 15:14 ` [Bug tree-optimization/18842] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: felix dot nawothnig at t-online dot de @ 2004-12-05  8:55 UTC (permalink / raw)
  To: gcc-bugs

int x, &y = x;
int main() { y = 42; }

produces

x:
        .zero   4
...
y:
        .long   x
...
        movl    y, %eax
        movl    $42, (%eax)

Since a non-arg reference is always (?) constant it would be safe to omit

        movl    $42, x

-- 
           Summary: Weak optimization on global references
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: felix dot nawothnig at t-online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18842-9734@http.gcc.gnu.org/bugzilla/>
2006-03-05 21:30 ` [Bug tree-optimization/18842] Weak optimization on global references pinskia at gcc dot gnu dot org
2006-07-16 14:23 ` felix dot nawothnig at t-online dot de
2006-07-16 20:36 ` rguenth at gcc dot gnu dot org
2009-04-22 22:02 ` pinskia at gcc dot gnu dot org
2004-12-05  8:55 [Bug c++/18842] New: " felix dot nawothnig at t-online dot de
2004-12-05 15:14 ` [Bug tree-optimization/18842] " pinskia at gcc dot gnu dot org
2004-12-05 19:11 ` felix dot nawothnig at t-online dot de
2004-12-05 19:15 ` 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).