This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[csl-arm] Unwinding through noreturn functions #2.
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Jan 2005 17:17:55 +0000
- Subject: [csl-arm] Unwinding through noreturn functions #2.
- Organization: CodeSourcery
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.
Paul
2005-01-27 Paul Brook <paul@codesourcery.com>
* 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;