aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/tracebak.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2013-01-02 10:34:50 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2013-01-02 10:34:50 +0100
commit39ce7604727100ff8abd1e5513a303b6df499b7a (patch)
tree9d30ede550d344346619d59afd728b95b281a29e /gcc/ada/tracebak.c
parent1824c168768592a20fcf9fe41634f9ebecabb52c (diff)
downloadgcc-39ce7604727100ff8abd1e5513a303b6df499b7a.zip
gcc-39ce7604727100ff8abd1e5513a303b6df499b7a.tar.gz
gcc-39ce7604727100ff8abd1e5513a303b6df499b7a.tar.bz2
[multiple changes]
2013-01-02 Thomas Quinot <quinot@adacore.com> * exp_prag.adb: Minor reformatting. 2013-01-02 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Get_Associated_Node): If the node is an identifier that denotes an unconstrained array in an object declaration, it is rewritten as the name of an anonymous subtype whose bounds are given by the initial expression in the declaration. When checking whether that identifier is global reference, use the original node, not the local generated subtype. 2013-01-02 Olivier Hainque <hainque@adacore.com> * tracebak.c: Revert previous change, incomplete. 2013-01-02 Ed Schonberg <schonberg@adacore.com> * sem_ch13.adb (Analyze_Aspect_Specifications): If the aspect appears on a subprogram body that acts as a spec, place the corresponding pragma in the declarations of the body, so that e.g. pre/postcondition checks can be generated appropriately. 2013-01-02 Robert Dewar <dewar@adacore.com> * sem_ch3.adb: Minor reformatting and code reorganization. From-SVN: r194781
Diffstat (limited to 'gcc/ada/tracebak.c')
-rw-r--r--gcc/ada/tracebak.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c
index 01b9654..2c8335d 100644
--- a/gcc/ada/tracebak.c
+++ b/gcc/ada/tracebak.c
@@ -287,10 +287,9 @@ __gnat_backtrace (void **array,
#error Unhandled darwin architecture.
#endif
-/*---------------------- PPC AIX/PPC Lynx 178/Older Darwin ------------------*/
+/*------------------------ PPC AIX/Older Darwin -------------------------*/
#elif ((defined (_POWER) && defined (_AIX)) || \
- (defined (__powerpc__) && defined (__Lynx__) && !defined(__ELF__)) || \
- (defined (__ppc__) && defined (__APPLE__)))
+(defined (__ppc__) && defined (__APPLE__)))
#define USE_GENERIC_UNWINDER
@@ -308,23 +307,9 @@ struct layout
should to feature a null backchain, AIX might expose a null return
address instead. */
-/* Then LynxOS-178 features yet another variation, with return_address
- == &__start, which we only add conditionally as this symbol is not
- necessarily present elsewhere. Beware that &bla returns the
- address of a descriptor when "bla" is a function. Getting the code
- address requires an extra dereference. */
-
-#if defined (__Lynx__)
-extern void __start();
-#define EXTRA_STOP_CONDITION(CURRENT) ((CURRENT)->return_address == *(void**)&__start)
-#else
-#define EXTRA_STOP_CONDITION(CURRENT) (0)
-#endif
-
#define STOP_FRAME(CURRENT, TOP_STACK) \
(((void *) (CURRENT) < (TOP_STACK)) \
- || (CURRENT)->return_address == NULL \
- || EXTRA_STOP_CONDITION(CURRENT))
+ || (CURRENT)->return_address == NULL)
/* The PPC ABI has an interesting specificity: the return address saved by a
function is located in it's caller's frame, and the save operation only