public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11761] New: [tree-ssa] arrays inside classes not optimised away
@ 2003-08-01 15:04 stefaandr at hotmail dot com
  2003-08-01 15:12 ` [Bug c/11761] " pinskia at physics dot uc dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: stefaandr at hotmail dot com @ 2003-08-01 15:04 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] arrays inside classes not optimised away
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefaandr at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux

Follow-up of 9059, in which arrays weren't optimised away, which is currently
fixed in tree-ssa.  In the 3 lines of code hereunder the unused array is inside
a class, which again seems to leave the array unbothered.  If the array is
replaced by a regular int or similar, it is optimised away though.

extern void t();
struct p { int a[5]; p() { a[3] = 1234; } };
int main() { p p1; t(); };

Reading specs from /esat/quendi/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: ../gcc/configure --prefix=/esat/quendi/gcc --enable-languages=c,c++
Thread model: posix
gcc version 3.5-tree-ssa 20030731 (merged 20030722)
 /esat/quendi/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/cc1plus -quiet -v
-D_GNU_SOURCE t4.cpp -quiet -dumpbase t4.cpp -mtune=pentiumpro -auxbase-strip
t4.s -O3 -version -o t4.s
ignoring nonexistent directory "/esat/quendi/gcc/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /esat/quendi/gcc/include/c++/3.5-tree-ssa
 /esat/quendi/gcc/include/c++/3.5-tree-ssa/i686-pc-linux-gnu
 /esat/quendi/gcc/include/c++/3.5-tree-ssa/backward
 /usr/local/include
 /esat/quendi/gcc/include
 /esat/quendi/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/include
 /usr/include
End of search list.
GNU C++ version 3.5-tree-ssa 20030731 (merged 20030722) (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=55 --param ggc-min-heapsize=48056


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

end of thread, other threads:[~2004-05-13 11:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-01 15:04 [Bug c/11761] New: [tree-ssa] arrays inside classes not optimised away stefaandr at hotmail dot com
2003-08-01 15:12 ` [Bug c/11761] " pinskia at physics dot uc dot edu
2003-08-01 15:23 ` dnovillo at redhat dot com
2003-10-26 21:20 ` [Bug optimization/11761] " pinskia at gcc dot gnu dot org
2004-01-17  4:32 ` [Bug optimization/11761] " pinskia at gcc dot gnu dot org
2004-01-17  5:31 ` dnovillo at gcc dot gnu dot org
2004-01-17 20:26 ` cvs-commit at gcc dot gnu dot org
2004-01-17 20:31 ` dnovillo at gcc dot gnu dot org
2004-05-13 16:04 ` [Bug optimization (tree-ssa)/11761] " 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).