$OpenBSD: patch-gcc_config_pa_pa_c,v 1.2 2012/07/01 18:56:45 pascal Exp $
--- gcc/config/pa/pa.c.orig	Thu May 31 01:03:59 2012
+++ gcc/config/pa/pa.c	Wed Jun 20 14:39:12 2012
@@ -3772,6 +3772,9 @@ pa_expand_prologue (void)
   if (flag_stack_usage_info)
     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);
 
