This is the mail archive of the gcc-patches@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] |
We can add code to remove the empty CONSTRUCTOR in the C++ front-end. But it's only useful when all initializers are non-constrant and split out. When there are constant initializers, they will be left in the CONSTRUCTOR and result an non-empty CONSTRUCTOR. The gimplifier handles with such CONSTRUCTOR and removes it if it becomes empty. So we don't need to duplicate the code to remove the empty CONSTRUCTOR in the C++ front-end.Yes. My patch is to make sure that empty CONSTRUCTOR is removed when it can be removed, i.e. all its elements have been initialized.
I meant, removed in the C++ front-end.
-- Jie Zhang CodeSourcery (650) 331-3385 x735
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |