Steve,
I believe this is linking/packing/then alignment problems.
Actually gcc parser should be hacked which i cannot do right now.

~d

-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Steve
Underwood
Sent: Saturday, May 22, 2004 1:08 PM
To: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] A compile problem

Hi Dmitry,

This bug is causing me problems trying to port some code to mspgcc. Is 
it a simple bug, or something difficult to deal with?

Regards,
Steve


Steve Underwood wrote:

> Hi,
>
> The following code when compiled with
>    msp430-gcc x.c
> is OK. However, when compiled with
>    msp430-gcc -fpack-struct x.c
> it gives "initializer for integer value is too complicated". With GCC 
> for other platforms this doesn't happen.
>
> Regards,
> Steve
>
>
> struct sss
> {
>    const char *buf;
> };
>
> static const char xxx[] =
> {
>    1, 2
> };
>
> struct sss yyy =
> {
>    xxx
> };




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.

Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to