diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-30 21:13:59 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-30 21:13:59 +0000 |
commit | 3d23045269e2b916babfdd4ddf320c21c4796608 (patch) | |
tree | 939ed8411c661f6e8dcf7ab478a1cc1abfa98185 /gcc/ada/tracebak.c | |
parent | 4341f8478d8f24c90721c4538468c01723be8274 (diff) | |
download | gcc-3d23045269e2b916babfdd4ddf320c21c4796608.tar.gz |
* adaint.c: Test for __linux__ instead of linux and __sun__ instead
of sun. Add missing leading underscore to AIX. Remove #elif 0.
* adaint.h: Likewise.
* cio.c: Likewise.
* cstreams.c: Likewise.
* env.c: Likewise.
* gsocket.h: Likewise.
* init.c: Likewise. Test for __i386__ instead of i386.
* link.c: Likewise.
* s-oscons-tmplt.c: Likewise.
* sysdep.c: Likewise.
* terminals.c: Likewise. Use BSD symbol instead of FREEBSD.
* tracebak.c: Likewise. Test for __sparc__ instead of sparc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/tracebak.c')
-rw-r--r-- | gcc/ada/tracebak.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c index d5f9b9c6ba8..31579f54121 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 |