gccint: Troubleshooting
1
1 23.7 Troubleshooting the garbage collector
1 ==========================================
1
1 With the current garbage collector implementation, most issues should
1 show up as GCC compilation errors. Some of the most commonly
1 encountered issues are described below.
1
1 * Gengtype does not produce allocators for a 'GTY'-marked type.
1 Gengtype checks if there is at least one possible path from GC
1 roots to at least one instance of each type before outputting
1 allocators. If there is no such path, the 'GTY' markers will be
1 ignored and no allocators will be output. Solve this by making
1 sure that there exists at least one such path. If creating it is
1 unfeasible or raises a "code smell", consider if you really must
1 use GC for allocating such type.
1
1 * Link-time errors about undefined 'gt_ggc_r_foo_bar' and
1 similarly-named symbols. Check if your 'foo_bar' source file has
1 '#include "gt-foo_bar.h"' as its very last line.
1