summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-01-20 22:37:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-01-20 22:37:26 +0000
commit573890e1b4ad7a80c4f9484950e05b1965bae216 (patch)
treec3c4610388efbbbd64d507cdb6fb1e37de7e37ae /gnu
parent19ae454459cc23e3ed40f12506ad079bd3f6870e (diff)
-Wstack-larger-than support, copied from gcc2.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc/gcc/config/alpha/alpha.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c b/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c
index b345b692765..2f60fadcb38 100644
--- a/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c
+++ b/gnu/usr.bin/gcc/gcc/config/alpha/alpha.c
@@ -7069,6 +7069,9 @@ alpha_expand_prologue ()
+ ALPHA_ROUND (frame_size
+ current_function_pretend_args_size));
+ if (warn_stack_larger_than && frame_size > stack_larger_than_size)
+ warning ("stack usage is %d bytes", frame_size);
+
if (TARGET_ABI_OPEN_VMS)
reg_offset = 8;
else