From 9e8c2a98fc3326d1b88912d3158840f757470d94 Mon Sep 17 00:00:00 2001 From: Junjie Gu Date: Thu, 5 Jun 2008 00:24:50 +0000 Subject: [PATCH] lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned comparison for frame pointers. 2008-06-04 Junjie Gu * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned comparison for frame pointers. From-SVN: r136386 --- gcc/ChangeLog | 5 +++++ gcc/config/xtensa/lib2funcs.S | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 366eb3f..da6197b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-04 Junjie Gu + + * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned + comparison for frame pointers. + 2008-06-04 Andy Hutchinson PR target/27386 diff --git a/gcc/config/xtensa/lib2funcs.S b/gcc/config/xtensa/lib2funcs.S index 16d6734..f8bea21 100644 --- a/gcc/config/xtensa/lib2funcs.S +++ b/gcc/config/xtensa/lib2funcs.S @@ -1,5 +1,5 @@ /* Assembly functions for libgcc2. - Copyright (C) 2001, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2006, 2007, 2008 Free Software Foundation, Inc. Contributed by Bob Wilson (bwilson@tensilica.com) at Tensilica. This file is part of GCC. @@ -105,7 +105,7 @@ __xtensa_nonlocal_goto: addi a6, a7, -16 /* advance cur */ .Lfirstframe: l32i a7, a6, 4 /* a7 = next */ - bge a2, a7, .Lnextframe + bgeu a2, a7, .Lnextframe /* At this point, prev (a5) points to the save area with the saved values of a0-a3. Copy those values into the save area at the -- 2.7.4