$OpenBSD: patch-gcc_config_sparc_sparc_c,v 1.3 2012/09/04 10:11:56 pascal Exp $
--- gcc/config/sparc/sparc.c.orig	Fri May  4 00:34:34 2012
+++ gcc/config/sparc/sparc.c	Mon Sep  3 13:10:18 2012
@@ -5048,6 +5048,9 @@ sparc_expand_prologue (void)
   if (crtl->uses_pic_offset_table)
     load_got_register ();
 
+  if (warn_stack_larger_than && size > stack_larger_than_size)
+    warning (OPT_Wstack_larger_than_, "stack usage is %d bytes", size);
+
   /* Advertise that the data calculated just above are now valid.  */
   sparc_prologue_data_valid_p = true;
 }
