This is the mail archive of the
mailing list for the GCC project.
Re: Patch committed: Don't use designated initializers with C++
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>, Ian Lance Taylor <ian at airs dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Jun 2009 11:19:32 +0000 (UTC)
- Subject: Re: Patch committed: Don't use designated initializers with C++
- References: <email@example.com>
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
Joseph S. Myers