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]

PATCH: Initialize ix86_abi in override_options


On Wed, Apr 1, 2009 at 11:16 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hello H.J,
>
> the definition of enum calling_abi ix86_abi = DEFAULT_ABI; breaks
> build for mingw-w64 at the moment.
> We get ../../gcc/gcc/config/i386/i386.c:1747: error: initializer
> element is not constant.
>
> So I assume the initialization has to be done in function.
>
> Cheers,
> Kai
>

DEFAULT_ABI may not be a constant.  This patch fixes it.
OK for trunk?

Thanks.


-- 
H.J.
---
2009-04-01  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_abi): Move initialization to ...
	(override_options): Here.

Attachment: gcc-bar-1.patch
Description: Text document


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