Re: Hack in gcc/c-decl.c?

2005-12-31 Thread Domagoj D
Hi Mike, - Original Message - > static inline float get_coef(enum ftype t) { >return *(float *)((char *)&filter_s + filter_s.offset_callback(t)); > } > > static inline enum ftype set_coef(enum ftype t, float val) { >*(float *)((char *)&filter_s + filter_s.offset_callback(t)) = val

Re: Hack in gcc/c-decl.c?

2005-12-29 Thread Domagoj D
> | Another interesting issue would be: > | > | struct S { > | int i; > | float j; > | } s; > | > | *(float *)((char*)&s + 4); > > I was actually referring to this case (or something to that effect) -- > I believe Mark Mitchell was of the opinion that it is undefined > (though, apologies

Re: Hack in gcc/c-decl.c?

2005-12-29 Thread Domagoj D
Hi, > That can't work, not all tree_identifiers have a c_binding, for > example, java doesn't. I see. > Also, not all identifiers in all languages have an ht_identifier, > again, for example, java doesn't. Hmm... But tree_identifier in tree.h has an ht_identifier struct. So, is gcc/tree.h C

Re: Hack in gcc/c-decl.c?

2005-12-29 Thread Domagoj D
quot; <[EMAIL PROTECTED]> To: "Domagoj D" <[EMAIL PROTECTED]> Subject: Re: Hack in gcc/c-decl.c? Date: Wed, 28 Dec 2005 23:30:22 -0800 > On Dec 28, 2005, at 8:49 PM, Domagoj D wrote: > > Can anyone explain me the following gcc/c-decl.c code (4.0.2, seems to > >

Hack in gcc/c-decl.c?

2005-12-28 Thread Domagoj D
Hi, Can anyone explain me the following gcc/c-decl.c code (4.0.2, seems to be unchanged in 4.2)? ... #define I_SYMBOL_BINDING(node) \ (((struct lang_identifier *) IDENTIFIER_NODE_CHECK(node))->symbol_binding) ... static void warn_if_shadowing (tree new_decl) { struct c_binding *b; ...

Re: "Bag of pages" algorithm?

2005-12-14 Thread Domagoj D
Hi Daniel, > > Could anyone recommend a good reference (paper/book/webpage/...) > > about the "bag of pages" GC algorithm used in GCC? > There is none, AFAIK. Argh, how am I supposed to figure out the arcane lore of GCC programmers than? :-) > > Also, is there > > any document about the specifi

"Bag of pages" algorithm?

2005-12-14 Thread Domagoj D
Hi, Could anyone recommend a good reference (paper/book/webpage/...) about the "bag of pages" GC algorithm used in GCC? Also, is there any document about the specifics of GCC implementation (besides GCC Internals document)? Thx. Domagoj -- ___

Re: Documentation for 4.0.2

2005-12-06 Thread Domagoj D
Hi, > > Any chances that the GCC Internals documentation will be updated any > > time soon? http://gcc.gnu.org/onlinedocs/gccint/ > It looks pretty current to me. Hmm... there're 30 FIXMEs and the section on C trees is missing: Macros-and-Functions.html:57:This section is not here yet. It would

GCC back-ends

2005-12-02 Thread Domagoj D
Hi, Does GCC front- and middle-end keep the source code line numbers all the way until the RTL is generated? I'd need that for the tool I'm developing. Also, are there any simple source code browsers / static analysis tools that use GCC as the front-/middle-end that I might check out to see ho

Documentation for 4.0.2

2005-12-01 Thread Domagoj D
Hi, Any chances that the GCC Internals documentation will be updated any time soon? http://gcc.gnu.org/onlinedocs/gccint/ There have been a lot of changes in GCC and it's hard to figure out the code by reading the old documentation and the new incomplete 4.0.2 draft. Thx. Domagoj -- ___