This is the mail archive of the gcc@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]

Re: g++ 4.3, troubles with C++ indexing idioms



For performance small arrays should be the same as individual members
(I can see the annoying fact that initialization is a headache - this has
annoyed me as well).  For larger arrays (>4 members), aliasing will
make a difference possibly, making the array variant slower.  Any union
variant is expected to be slower for aliasing reasons (we do not do
field-sensitive aliasing for unions).

I wonder if the fabled "union as VIEW_CONVERT_EXPR" patch would help... Richi, do you know?


Paolo


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