diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-25 11:00:14 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-25 11:00:14 +0000 |
commit | 8c0dd6141ac94f5b7e842bf19e13c25302599dc8 (patch) | |
tree | 8f263f60484dabe77a13c389e9ce210b121dbc56 /gcc/config | |
parent | ebb9e48b6bf683afc0ee573649c2f12519688dab (diff) | |
download | gcc-8c0dd6141ac94f5b7e842bf19e13c25302599dc8.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 2 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 4 | ||||
-rw-r--r-- | gcc/config/avr/avr.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/ia64/ia64.c | 2 | ||||
-rw-r--r-- | gcc/config/m68k/m68k.c | 2 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 2 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 2 | ||||
-rw-r--r-- | gcc/config/spu/spu.c | 2 |
13 files changed, 14 insertions, 14 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 99ebf62d242..7323329e80d 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -7522,7 +7522,7 @@ alpha_expand_prologue (void) sa_size = alpha_sa_size (); frame_size = compute_frame_size (get_frame_size (), sa_size); - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = frame_size; if (TARGET_ABI_OPEN_VMS) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 47c7a3a4ca9..22ddcd217ce 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -15815,7 +15815,7 @@ arm_expand_prologue (void) } } - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = offsets->outgoing_args - offsets->saved_args; @@ -20800,7 +20800,7 @@ thumb1_expand_prologue (void) emit_move_insn (gen_rtx_REG (Pmode, ARM_HARD_FRAME_POINTER_REGNUM), stack_pointer_rtx); - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = offsets->outgoing_args - offsets->saved_args; diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index c8c363ad948..5a565b0857f 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -892,7 +892,7 @@ expand_prologue (void) } } - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = cfun->machine->stack_usage; } diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 854e376b58e..4b5bc96c492 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -10546,7 +10546,7 @@ ix86_expand_prologue (void) allocate = frame.stack_pointer_offset - m->fs.sp_offset; - if (flag_stack_usage) + if (flag_stack_usage_info) { /* We start to count from ARG_POINTER. */ HOST_WIDE_INT stack_size = frame.stack_pointer_offset; diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index adcb780b927..c1cebbaf21b 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -3183,7 +3183,7 @@ ia64_expand_prologue (void) ia64_compute_frame_size (get_frame_size ()); last_scratch_gr_reg = 15; - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = current_frame_info.total_size; if (dump_file) diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 47f47af888c..fd27ee43a14 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -981,7 +981,7 @@ m68k_expand_prologue (void) m68k_compute_frame_layout (); - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = current_frame.size + current_frame.offset; diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 26028192db5..46b25f7b985 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -10008,7 +10008,7 @@ mips_expand_prologue (void) frame = &cfun->machine->frame; size = frame->total_size; - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = size; /* Save the registers. Allocate up to MIPS_MAX_FIRST_STACK_STEP diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index e3260c4105f..e512a33c070 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -3807,7 +3807,7 @@ hppa_expand_prologue (void) local_fsize += STARTING_FRAME_OFFSET; actual_fsize = compute_frame_size (size, &save_fregs); - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = actual_fsize; /* Compute a few things we will use often. */ diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index ea272fcaad6..48f387e98b6 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -20116,7 +20116,7 @@ rs6000_emit_prologue (void) && call_used_regs[STATIC_CHAIN_REGNUM]); HOST_WIDE_INT sp_offset = 0; - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = info->total_size; if (flag_stack_check == STATIC_BUILTIN_STACK_CHECK && info->total_size) diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index de1c32638f8..e86755b37d9 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -8097,7 +8097,7 @@ s390_emit_prologue (void) if (!TARGET_PACKED_STACK) next_fpr = cfun_save_high_fprs_p ? 31 : 0; - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = cfun_frame_layout.frame_size; /* Decrement stack pointer. */ diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index d799782181e..94c8ba4fb0a 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -7349,7 +7349,7 @@ sh_expand_prologue (void) emit_insn (gen_shcompact_incoming_args ()); } - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = stack_usage; } diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 634e44d15e8..c0f4e75590a 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -4522,7 +4522,7 @@ sparc_expand_prologue (void) /* Advertise that the data calculated just above are now valid. */ sparc_prologue_data_valid_p = true; - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = actual_fsize; if (flag_stack_check == STATIC_BUILTIN_STACK_CHECK && actual_fsize) diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index ca065ca44de..51a771563c6 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -2101,7 +2101,7 @@ spu_expand_prologue (void) } } - if (flag_stack_usage) + if (flag_stack_usage_info) current_function_static_stack_size = total_size; } |