$OpenBSD: patch-gcc_config_pa_pa_c,v 1.1 2013/01/16 19:28:48 pascal Exp $
--- gcc/config/pa/pa.c.orig	Sat Oct 29 17:40:55 2011
+++ gcc/config/pa/pa.c	Thu Apr  5 07:45:54 2012
@@ -3872,6 +3872,9 @@ hppa_expand_prologue (void)
   if (flag_stack_usage)
     current_function_static_stack_size = actual_fsize;
 
+  if (warn_stack_larger_than && actual_fsize > stack_larger_than_size)
+    warning (OPT_Wstack_larger_than_, "stack usage is %d bytes", actual_fsize);
+
   /* Compute a few things we will use often.  */
   tmpreg = gen_rtx_REG (word_mode, 1);
 
