Ooooh! I understand. I spent many time in parse_attribute, parse_btype and some other functions to wonder why __atribute__, which is correctly read, was not propagated up to code generation.
While debugging, I had the impression that information was lost from AttributeDef until I gave up due to lack of time. Well, thanks for explanation; if I was ready to try to fix it, I'm not sure I have the time to implement it. Sorry. Anyway, thanks for your good job and your support. Christian -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of grischka Sent: jeudi 3 décembre 2009 19:15 To: [email protected] Subject: Re: [Tinycc-devel] jmp_buf align problem on win64 ketmar wrote: > On Thu, 3 Dec 2009 16:42:45 +0100 > "Christian Jullien" <[email protected]> wrote: > >> I'm using headers from tcc. >> Thanks for your suggestion, I'm not trying to fix my code which is >> already fixed (easy) I'm trying to contribute to improve tcc by >> fixing the problem itself. > sure. i'm just trying to point the possible source of the problem. > knowing the source is a great part of solution. > > also, tcc uses minGW headers on windows, afair. maybe defining built-in > __GNUC__ 3 or disallowing macro processor to define macro > with name __attribute__ can be an easy fix for this problem. > It is more trivial: it is not implemented. tcc sees the "aligned" attribute, but there is no code and not even a field to store it in a typedef. So basically you need to invent something, such as: - Store the alignment in the typedef symbol (somehow) (that is in decl() at line "if (btype.t & VT_TYPEDEF) {") - Get it back from a typedef symbol into the attribute (that is in parse_btype() at line "typedef_found = 1;") --- grischka _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel ---------------------------------------------------------------------------- ----------- Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte. _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
