aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/tracebak.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/tracebak.c')
-rw-r--r--gcc/ada/tracebak.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c
index d5f9b9c..31579f5 100644
--- a/gcc/ada/tracebak.c
+++ b/gcc/ada/tracebak.c
@@ -335,7 +335,7 @@ extern void __runnit(); /* thread entry point. */
/*-------------------- PPC ELF (GNU/Linux & VxWorks) ---------------------*/
#elif (defined (_ARCH_PPC) && defined (__vxworks)) || \
- (defined (linux) && defined (__powerpc__))
+ (defined (__linux__) && defined (__powerpc__))
#define USE_GENERIC_UNWINDER
@@ -363,7 +363,7 @@ struct layout
/*-------------------------- SPARC Solaris -----------------------------*/
-#elif defined (sun) && defined (sparc)
+#elif defined (__sun__) && defined (__sparc__)
#define USE_GENERIC_UNWINDER
@@ -401,12 +401,12 @@ struct layout
/*------------------------------- x86 ----------------------------------*/
-#elif defined (i386)
+#elif defined (__i386__)
#if defined (__WIN32)
#include <windows.h>
#define IS_BAD_PTR(ptr) (IsBadCodePtr((FARPROC)ptr))
-#elif defined (sun)
+#elif defined (__sun__)
#define IS_BAD_PTR(ptr) ((unsigned long)ptr == -1UL)
#else
#define IS_BAD_PTR(ptr) 0
@@ -415,7 +415,7 @@ struct layout
/* Starting with GCC 4.6, -fomit-frame-pointer is turned on by default for
32-bit x86/Linux as well and DWARF 2 unwind tables are emitted instead.
See the x86-64 case below for the drawbacks with this approach. */
-#if defined (linux) && (__GNUC__ * 10 + __GNUC_MINOR__ > 45)
+#if defined (__linux__) && (__GNUC__ * 10 + __GNUC_MINOR__ > 45)
#define USE_GCC_UNWINDER
#else
#define USE_GENERIC_UNWINDER
@@ -481,7 +481,7 @@ struct layout
/*----------------------------- ia64 ---------------------------------*/
-#elif defined (__ia64__) && (defined (linux) || defined (__hpux__))
+#elif defined (__ia64__) && (defined (__linux__) || defined (__hpux__))
#define USE_GCC_UNWINDER
/* Use _Unwind_Backtrace driven exceptions on ia64 HP-UX and ia64