* config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Sep 2008 09:32:18 +0000 (09:32 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Sep 2008 09:32:18 +0000 (09:32 +0000)
attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139928 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 6bf89c0..66de90a 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
+       attributes.
+
 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
 
        * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
index 6ff1093..10bbfce 100644 (file)
@@ -1165,7 +1165,8 @@ bfin_expand_prologue (void)
     }
 
   if (crtl->limit_stack
-      || TARGET_STACK_CHECK_L1)
+      || (TARGET_STACK_CHECK_L1
+         && !DECL_NO_LIMIT_STACK (current_function_decl)))
     {
       HOST_WIDE_INT offset
        = bfin_initial_elimination_offset (ARG_POINTER_REGNUM,