This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/14841] [tree-ssa] const_array[CST] is not folded


------- Additional Comments From kazu at cs dot umass dot edu  2004-08-13 08:13 -------
There is a piece of code in expr.c around line 6700 that folds references to
constant arrays with constant indecies.

The only problem is that we have to be careful not to fold
things like &array[2].

I am not sure if there is a way to see the containing expression
in fold().

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]