------- Comment #22 from ebotcazou at gcc dot gnu dot org  2006-01-19 08:39 
-------
> From what I can tell with the testcase, any static data that is not
> 'referenced' is eliminated.  This is terribly non-transparent in programs that
> create tables by using static data to define table members.  Only those 
> members
> specifically referenced are retained by -O2.  That destroys the tables.

Sure, but you must use arrays for tables, not seemingly contiguous objects
which have never been guaranteed to be contiguous by anyone.


-- 


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

Reply via email to