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]

Re: Patch committed: Don't use designated initializers with C++


On Tue, 9 Jun 2009, Ian Lance Taylor wrote:

> This patch changes system.h to not define HAVE_DESIGNATED_INITIALIZERS
> when compiling with C++.  It then changes optabs.c to only use
> designated initializers when HAVE_DESIGNATED_INITIALIZERS is defined.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu.  Committed.

I believe there were originally performance reasons for using designated 
initializers here.  If those still apply, some fix should be done to avoid 
a compiler built as C++ being slower than one built as C; if not, the 
different cases for having / not having designated initializers aren't 
needed either.

-- 
Joseph S. Myers
joseph@codesourcery.com


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