$OpenBSD: patch-gcc_config_sparc_sparc_c,v 1.3 2016/09/01 17:30:33 pascal Exp $
--- gcc/config/sparc/sparc.c.orig	Tue Apr 12 22:56:11 2016
+++ gcc/config/sparc/sparc.c	Sat Aug  6 19:19:05 2016
@@ -5581,6 +5581,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 %ld bytes", size);
+
   /* Advertise that the data calculated just above are now valid.  */
   sparc_prologue_data_valid_p = true;
 }
