GCC-4.0.0 has a regression in that -fdump-translation-unit no longer output function bodies. Tentative patch at http://gcc.gnu.org/ml/gcc-bugs/2004-07/msg03341.html
Regression, so marking as one.
This is a low-priority issue.
This option is only designed for use in debugging the compiler. As it's not designed for use by end-users, I've removed the target milestone.
Subject: Bug 18279 CVSROOT: /cvs/gcc Module name: gcc Changes by: gdr@gcc.gnu.org 2005-07-03 01:15:01 Modified files: gcc : ChangeLog c-decl.c tree-dump.c Log message: PR c++/18279 * c-decl.c (c_write_global_declarations): Dump contents of external scope to. * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl. <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>, <GOTO_EXPR>, <SWITCH_EXPR>: Add. (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump is enabled. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9322&r2=2.9323 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.671&r2=1.672 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-dump.c.diff?cvsroot=gcc&r1=1.43&r2=1.44
fixed for 4.1.0