$OpenBSD: patch-gcc_config_pa_pa_c,v 1.4 2015/07/19 21:22:49 pascal Exp $
--- gcc/config/pa/pa.c.orig	Fri Jun 12 01:24:30 2015
+++ gcc/config/pa/pa.c	Sat Jun 27 11:26:33 2015
@@ -3828,6 +3828,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 %ld bytes", actual_fsize);
+
   /* Compute a few things we will use often.  */
   tmpreg = gen_rtx_REG (word_mode, 1);
 
@@ -10156,8 +10159,8 @@ pa_trampoline_init (rtx m_tramp, tree fndecl, rtx chai
     }
 
 #ifdef HAVE_ENABLE_EXECUTE_STACK
-  emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__enable_execute_stack"),
-		     LCT_NORMAL, VOIDmode, 1, XEXP (m_tramp, 0), Pmode);
+ emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__enable_execute_stack"),
+		 LCT_NORMAL, VOIDmode, 1, XEXP (m_tramp, 0), Pmode);
 #endif
 }
 
