From mint-bounce@lists.fishpool.fi Tue Feb 2 17:11:35 2010 Message-ID: <4B68A27C.4030402@freesbee.fr> Date: Tue, 02 Feb 2010 23:09:00 +0100 From: =?ISO-8859-15?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] gcc References: <201002022305.46685.oak@helsinkinet.fi> <201002022339.55647.oak@helsinkinet.fi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed X-Antivirus: avast! (VPS 100202-0, 02/02/2010), Outbound message X-Antivirus-Status: Clean X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o12MBZUQ030019 Le 02/02/2010 22:53, Helmut Karlowski a écrit : > That's nice. I compiled the current kernel with gcc 2.95 and got > compiler-errors on some statements that where new to me. > > For example: > > { > union{ char *s, long l] u; u.s = x; > long z; > > ... > } > > That's not C as I know it. I thought gcc 2.95 is C99. There are 2 typos in your quote. This is an unnamed union, it is a Microsoft extension supported by GCC. This kind of extension should not be used in serious software. We should compile with -ansi -pedantic to forbid these extensions. Except inline assembly and __attribute__ that should be put inside ifdefs, a C code which compiles well with GCC and the options specified above should compile on any other compiler. -- Vincent Rivière