diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-07 22:18:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gcc.gnu.org> | 2016-01-07 22:18:09 +0000 |
commit | bd12353b79c3bb253f9acb29eeb426b0ca883fde (patch) | |
tree | a71ad8e5ab3d5d43c7fb009f148945a1865708ae /include/longlong.h | |
parent | 33b0992375d48a2101c8d3b157e3cef3fbd3f0cf (diff) | |
download | gcc-bd12353b79c3bb253f9acb29eeb426b0ca883fde.zip gcc-bd12353b79c3bb253f9acb29eeb426b0ca883fde.tar.gz gcc-bd12353b79c3bb253f9acb29eeb426b0ca883fde.tar.bz2 |
longlong: fix sh -Wundef builds
This file fails when building for SuperH as it assumes __SHMEDIA__
is always defined. Update the code to check if it's defined.
From-SVN: r232143
Diffstat (limited to 'include/longlong.h')
-rw-r--r-- | include/longlong.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/longlong.h b/include/longlong.h index d7ef671..34ad9b4 100644 --- a/include/longlong.h +++ b/include/longlong.h @@ -1086,7 +1086,7 @@ extern UDItype __umulsidi3 (USItype, USItype); } while (0) #endif -#if defined(__sh__) && !__SHMEDIA__ && W_TYPE_SIZE == 32 +#if defined(__sh__) && (!defined (__SHMEDIA__) || !__SHMEDIA__) && W_TYPE_SIZE == 32 #ifndef __sh1__ #define umul_ppmm(w1, w0, u, v) \ __asm__ ( \ @@ -1159,7 +1159,7 @@ extern UDItype __umulsidi3 (USItype, USItype); #endif /* __sh__ */ -#if defined (__SH5__) && __SHMEDIA__ && W_TYPE_SIZE == 32 +#if defined (__SH5__) && defined (__SHMEDIA__) && __SHMEDIA__ && W_TYPE_SIZE == 32 #define __umulsidi3(u,v) ((UDItype)(USItype)u*(USItype)v) #define count_leading_zeros(count, x) \ do \ |