common.opt (flag_stack_usage_info): New variable.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 25 May 2011 11:00:14 +0000 (11:00 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 25 May 2011 11:00:14 +0000 (11:00 +0000)
commita11e0df4da7c987c9627724748fe727183e9379f
tree8f263f60484dabe77a13c389e9ce210b121dbc56
parente7cfe2413fe50e22eb2c013415cec9e154d3c391
common.opt (flag_stack_usage_info): New variable.

* common.opt (flag_stack_usage_info): New variable.
(-Wstack-usage): New option.
* doc/invoke.texi (Warning options): Document -Wstack-usage.
* opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
<OPT_fstack_usage>: Likewise.
* toplev.c (output_stack_usage): Handle -Wstack-usage.
* calls.c (expand_call): Test flag_stack_usage_info variable instead
of flag_stack_usage.
(emit_library_call_value_1): Likewise.
* explow.c (allocate_dynamic_stack_space): Likewise.
* function.c (instantiate_virtual_regs ): Likewise.
(prepare_function_start): Likewise.
(rest_of_handle_thread_prologue_and_epilogue): Likewise.
* config/alpha/alpha.c (alpha_expand_prologue): Likewise.
* config/arm/arm.c (arm_expand_prologue): Likewise.
(thumb1_expand_prologue): Likewise.
* config/avr/avr.c (expand_prologue): Likewise.
* config/i386/i386.c (ix86_expand_prologue): Likewise.
* config/ia64/ia64.c (ia64_expand_prologue): Likewise.
* config/m68k/m68k.c (m68k_expand_prologue): Likewise.
* config/mips/mips.c (mips_expand_prologue): Likewise.
* config/pa/pa.c (hppa_expand_prologue): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
* config/s390/s390.c (s390_emit_prologue): Likewise.
* config/sh/sh.c (sh_expand_prologue): Likewise.
* config/sparc/sparc.c (sparc_expand_prologue): Likewise.
* config/spu/spu.c (spu_expand_prologue): Likewise.

From-SVN: r174182
24 files changed:
gcc/ChangeLog
gcc/calls.c
gcc/common.opt
gcc/config/alpha/alpha.c
gcc/config/arm/arm.c
gcc/config/avr/avr.c
gcc/config/i386/i386.c
gcc/config/ia64/ia64.c
gcc/config/m68k/m68k.c
gcc/config/mips/mips.c
gcc/config/pa/pa.c
gcc/config/rs6000/rs6000.c
gcc/config/s390/s390.c
gcc/config/sh/sh.c
gcc/config/sparc/sparc.c
gcc/config/spu/spu.c
gcc/doc/invoke.texi
gcc/explow.c
gcc/function.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/stack-usage-1.c
gcc/testsuite/gcc.dg/stack-usage-2.c [new file with mode: 0644]
gcc/toplev.c