This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] ada: Remove useless and always false comparaison
- From: Samuel Tardieu <sam at rfc1149 dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Nov 2007 00:07:10 +0100
- Subject: [PATCH] ada: Remove useless and always false comparaison
- Organisation: RFC1149 (see http://www.rfc1149.net/)
Tested and bootstrapped on x86.
2007-11-06 Samuel Tardieu <sam@rfc1149.net>
* tracebak.c (i386 alternative): Remove useless comparaison
which is always false; LOWEST_ADDRESS is 0 and is never greater
than an unsigned integer.
---
gcc/ada/tracebak.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c
index 18055ed..659dad2 100644
--- a/gcc/ada/tracebak.c
+++ b/gcc/ada/tracebak.c
@@ -308,7 +308,6 @@ struct layout
void *return_address;
};
-#define LOWEST_ADDR 0
#define FRAME_LEVEL 1
/* builtin_frame_address (1) is expected to work on this target, and (0) might
return the soft stack pointer, which does not designate a location where a
@@ -318,7 +317,6 @@ struct layout
#define PC_ADJUST -2
#define STOP_FRAME(CURRENT, TOP_STACK) \
(IS_BAD_PTR((long)(CURRENT)->return_address) \
- || (unsigned int)(CURRENT)->return_address < LOWEST_ADDR \
|| (CURRENT)->return_address == 0|| (CURRENT)->next == 0 \
|| (void *) (CURRENT) < (TOP_STACK))
--
1.5.3.5