Re: [Cobolforgcc-devel] Re: %union
Status: Pre-Alpha
Brought to you by:
timjosling
From: Keisuke N. <kx...@po...> - 2001-06-06 19:04:06
|
At Wed, 06 Jun 2001 21:25:56 +1000, Tim Josling wrote: > > With accessor macros, you have to look at the macro to see what > is the underlying field. > > For example in gcc, TREE_USED(x) is common.used_flag. This is > particularly a problem if the same field is used for multiple > things, as it is in gcc (see tree.h). The debugger does not know > about accessor macros AFAIK so in the debugger you have to know > the real field names. static_flag has six different accessor > macros. (snip) > The other thing is that having one giant union means that when > you do a p *x in gdb, the output goes for pages. On the other > hand just having cast into a single struct * makes it more > manageable. That's right, but regarding a debugger, what about writing a debug printer for cobol trees, as GCC has debug_rtx and debug_tree? Keisuke |