This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-in-cxx] Patch: fix designated initializers
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 7 Jul 2008 03:33:44 -0400
- Subject: Re: [gcc-in-cxx] Patch: fix designated initializers
- References: <m3fxqmgbhe.fsf@fleche.redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Jul 06, 2008 at 11:37:33AM -0600, Tom Tromey wrote:
> C++ does not have designated initializers. This patch changes gcc's
> system.h and optabs.c to recognize this. This avoids a few compiler
> errors while building gcc.
In this case gcc-in-cxx will just slow down compiler startup. When C++ is
unable to do this, it would be better to generate the table initializers
instead of turning the optimization off.
> ChangeLog.cxx:
> 2008-07-05 Tom Tromey <tromey@redhat.com>
>
> * optabs.c (optab_table, convert_optab_table): Check
> HAVE_DESIGNATED_INITIALIZERS.
> (init_optabs): Likewise.
> * system.h (HAVE_DESIGNATED_INITIALIZERS): Define to 0 for C++.
Jakub