A simple example like: ypedef int nl_item; extern char *nl_langinfo (nl_item __item) __attribute__ ((__nothrow__)); char * xtermEnvEncoding(void) { static char *result; if (result == 0) { result = nl_langinfo(1); ; } return result; } --- and compile with -O2 -fdump-tree-pre-all makes the dump look like: xtermEnvEncoding () { static charD.1 long intD.2 unsigned intD.3 long unsigned intD.4 long long intD.5 long long unsigned intD.6 short intD.7 short unsigned intD.8 signed charD.9 unsigned charD.10 D.11 D.12 D.13 D.14 D.15 D.16 D.17 D.18 D.19 D.20 floatD.21 doubleD.22 long doubleD.23 _Decimal32D.24 _Decimal64D.25 _Decimal128D.26 complex intD.27 complex floatD.28 complex doubleD.29 complex long doubleD.30 voidD.31 __builtin_va_listD.32 ...... Cut off for Bugzilla. That junk makes -fdump-tree-all-all useless now.
Created attachment 10689 [details] patch which removes TDF_CHAIN and changes debug_tree_chain to debug_decl_chain This patch removes TDF_CHAIN and it also changes debug_tree_chain to debug_decl_chain for the correct meaning of the function.
Mine.
Subject: Bug 25879 Author: pinskia Date: Mon Feb 20 17:47:34 2006 New Revision: 111308 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111308 Log: 2006-02-20 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/25879 * tree-pretty-print.c (debug_tree_chain): Walk the chains. (dump_decl_name): Do not walk the decl tree chains. * tree-pass.h (TDF_CHAIN): Remove. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-pass.h trunk/gcc/tree-pretty-print.c
Fixed.