aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2007-11-07 14:51:05 +0000
committerSamuel Tardieu <sam@gcc.gnu.org>2007-11-07 14:51:05 +0000
commitbc01690e80e991829c26b5b27889a388fd0f34fa (patch)
tree691d8576135a0a89b2ce229959b6ffb2dfa09b3c
parentdcbd752dc4bb412ac4cba7bb85e24a2240b65c75 (diff)
downloadgcc-bc01690e80e991829c26b5b27889a388fd0f34fa.zip
gcc-bc01690e80e991829c26b5b27889a388fd0f34fa.tar.gz
gcc-bc01690e80e991829c26b5b27889a388fd0f34fa.tar.bz2
tracebak.c (i386 alternative): Remove useless comparaison which is always false...
gcc/ada/ * tracebak.c (i386 alternative): Remove useless comparaison which is always false; LOWEST_ADDRESS is 0 and is never greater than an unsigned integer. From-SVN: r129964
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/tracebak.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index f614c26..31e640a 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -18,6 +18,10 @@
(elaboration code): Timer_Queue lifetime is the one of the
package.
+ * tracebak.c (i386 alternative): Remove useless comparaison
+ which is always false; LOWEST_ADDRESS is 0 and is never greater
+ than an unsigned integer.
+
2007-11-07 Olivier Hainque <hainque@adacore.com>
* decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
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))