This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Implement -fcallgraph-info option
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Oct 2010 11:36:11 +0000 (UTC)
- Subject: Re: [patch] Implement -fcallgraph-info option
- References: <201010291243.53912.ebotcazou@adacore.com>
On Fri, 29 Oct 2010, Eric Botcazou wrote:
> +/* Compute stack usage information on a per-function basis. */
> +extern int flag_stack_usage_info;
> +
> +/* Output callgraph information on a per-file basis. */
> +#define CALLGRAPH_INFO_NAKED 0x1
> +#define CALLGRAPH_INFO_STACK_USAGE 0x2
> +#define CALLGRAPH_INFO_DYNAMIC_ALLOC 0x4
> +extern int flag_callgraph_info;
Please use Variable declarations in common.opt for new option variables,
so they go in the gcc_options structure, instead of manual declarations in
flags.h and toplev.c.
--
Joseph S. Myers
joseph@codesourcery.com