This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[csl-arm] Unwinding through noreturn functions #2.

I mis-transcribed a previous fix for unwinding noreturn functions. It looks 
like my testing didn't pick this up because the target libraries didn't get 
rebuilt with the new compiler.

The attached patch fixes this.

Tested with cross to arm-none-eabi.
Applied to csl-arm-branch.


2005-01-27  Paul Brook  <>

 * config/arm/arm.c (arm_compute_func_type): Fix noreturn logic.
Index: arm.c
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.303.2.69
diff -u -p -r1.303.2.69 arm.c
--- arm.c	26 Jan 2005 20:14:18 -0000	1.303.2.69
+++ arm.c	27 Jan 2005 16:42:06 -0000
@@ -1257,8 +1257,8 @@ arm_compute_func_type (void)
      was added to speed up context switching in a kernel application.  */
   if (optimize > 0
       && (TREE_NOTHROW (current_function_decl)
-	  || flag_unwind_tables
-	  || (flag_exceptions && !USING_SJLJ_EXCEPTIONS))
+	  || !(flag_unwind_tables
+	       || (flag_exceptions && !USING_SJLJ_EXCEPTIONS)))
       && TREE_THIS_VOLATILE (current_function_decl))
     type |= ARM_FT_VOLATILE;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]