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: [gcc-in-cxx] Patch: fix designated initializers


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


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