]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/55351 (can't build libgcc for -m5-compact variant in SH64)
authorOleg Endo <olegendo@gcc.gnu.org>
Tue, 9 Dec 2014 22:51:32 +0000 (22:51 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Tue, 9 Dec 2014 22:51:32 +0000 (22:51 +0000)
libgcc/
Backport from mainline
2014-11-30  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/55351
* config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
whether it's defined.

From-SVN: r218545

libgcc/ChangeLog
libgcc/config/sh/lib1funcs.S

index 44979791f99c08d74ede35fd811c270fc30a386d..dcc54ce0f07c1ec15d49244c9f37f10a84630f88 100644 (file)
@@ -1,3 +1,12 @@
+2014-12-09  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       Backport from mainline
+       2014-11-30  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/55351
+       * config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
+       whether it's defined.
+
 2014-10-26  John David Anglin  <danglin@gcc.gnu.org>
 
        * config/pa/linux-unwind.h (pa32_read_access_ok): New function.
index 5f0bbff264f4a04e04e1cf57be63c8a92e20628e..fa437dbc298080d113b35bcaf19c50946da75464 100644 (file)
@@ -1248,7 +1248,7 @@ GLOBAL(sdivsi3_2):
 #endif
        ENDFUNC(GLOBAL(sdivsi3_2))
 #endif
-#elif defined __SHMEDIA__
+#elif __SHMEDIA__
 /* m5compact-nofpu */
  // clobbered: r18,r19,r20,r21,r25,tr0,tr1,tr2
        .mode   SHmedia
@@ -1598,7 +1598,7 @@ GLOBAL(udivsi3):
  add.l r18,r25,r0
  blink tr0,r63
 #endif
-#elif defined (__SHMEDIA__)
+#elif __SHMEDIA__
 /* m5compact-nofpu - more emphasis on code size than on speed, but don't
    ignore speed altogether - div1 needs 9 cycles, subc 7 and rotcl 4.
    So use a short shmedia loop.  */
@@ -1622,7 +1622,7 @@ LOCAL(udivsi3_dontsub):
  bnei r25,-32,tr1
  add.l r20,r63,r0
  blink tr2,r63
-#else /* ! defined (__SHMEDIA__) */
+#else /* ! __SHMEDIA__ */
 LOCAL(div8):
  div1 r5,r4
 LOCAL(div7):
@@ -1688,7 +1688,7 @@ LOCAL(large_divisor):
 #endif /* L_udivsi3 */
 
 #ifdef L_udivdi3
-#ifdef __SHMEDIA__
+#if __SHMEDIA__
        .mode   SHmedia
        .section        .text..SHmedia32,"ax"
        .align  2
@@ -1816,7 +1816,7 @@ LOCAL(no_lo_adj):
 #endif /* L_udivdi3 */
 
 #ifdef L_divdi3
-#ifdef __SHMEDIA__
+#if __SHMEDIA__
        .mode   SHmedia
        .section        .text..SHmedia32,"ax"
        .align  2
@@ -1840,7 +1840,7 @@ GLOBAL(divdi3):
 #endif /* L_divdi3 */
 
 #ifdef L_umoddi3
-#ifdef __SHMEDIA__
+#if __SHMEDIA__
        .mode   SHmedia
        .section        .text..SHmedia32,"ax"
        .align  2
@@ -1969,7 +1969,7 @@ LOCAL(no_lo_adj):
 #endif /* L_umoddi3 */
 
 #ifdef L_moddi3
-#ifdef __SHMEDIA__
+#if __SHMEDIA__
        .mode   SHmedia
        .section        .text..SHmedia32,"ax"
        .align  2
@@ -3057,7 +3057,7 @@ GLOBAL(GCC_pop_shmedia_regs_nofpu):
 
 #ifdef L_div_table
 #if __SH5__
-#if defined(__pic__) && defined(__SHMEDIA__)
+#if defined(__pic__) && __SHMEDIA__
        .global GLOBAL(sdivsi3)
        FUNC(GLOBAL(sdivsi3))
 #if __SH5__ == 32
@@ -3130,7 +3130,7 @@ Defects for bias -330:
 #else /* ! __pic__ || ! __SHMEDIA__ */
        .section        .rodata
 #endif /* __pic__ */
-#if defined(TEXT_DATA_BUG) && defined(__pic__) && defined(__SHMEDIA__)
+#if defined(TEXT_DATA_BUG) && defined(__pic__) && __SHMEDIA__
        .balign 2
        .type   Local_div_table,@object
        .size   Local_div_table,128