summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-05-09 13:21:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-05-09 13:21:11 +0000
commit7f2b02e2af5b45e2c2012c059e02f734ab6d5602 (patch)
tree462cc2efecff63bc35e5d88a7a87588bd532eb0d
parent1e4e9f15bb143dade8b9658c471f55c021e3e058 (diff)
-Wstack-larger-than-N for sparc/sparc64.
-rw-r--r--gnu/gcc/gcc/config/sparc/sparc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/sparc/sparc.c b/gnu/gcc/gcc/config/sparc/sparc.c
index 738264aa345..a0c591d2934 100644
--- a/gnu/gcc/gcc/config/sparc/sparc.c
+++ b/gnu/gcc/gcc/config/sparc/sparc.c
@@ -3941,6 +3941,9 @@ sparc_expand_prologue (void)
actual_fsize
= sparc_compute_frame_size (get_frame_size(), sparc_leaf_function_p);
+ if (warn_stack_larger_than && actual_fsize > stack_larger_than_size)
+ warning (0, "stack usage is %d bytes", actual_fsize);
+
/* Advertise that the data calculated just above are now valid. */
sparc_prologue_data_valid_p = true;