]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Correct logic to disable NO_SUM_IN_TOC and NO_FP_IN_TOC [PR94065]
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 6 Mar 2020 01:41:08 +0000 (20:41 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Thu, 23 Jul 2020 16:51:40 +0000 (12:51 -0400)
aix61.h, aix71.h and aix72.h intends to prevent SUM_IN_TOC and FP_IN_TOC
when cmodel=large.  This patch defines the variables associated with the
target options to 1 to _enable_ NO_SUM_IN_TOC and enable NO_FP_IN_TOC.

Bootstrapped on powerpc-ibm-aix7.2.0.0

2020-03-06  David Edelsohn  <dje.gcc@gmail.com>
PR target/94065
* config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
cmodel=large.
(TARGET_NO_FP_IN_TOC): Same.
* config/rs6000/aix71.h: Same.
* config/rs6000/aix72.h: Same.

(cherry picked from commit 3dcf51ad7b0a9cacba1a056755c16cc1cf7984ee)

gcc/config/rs6000/aix61.h
gcc/config/rs6000/aix71.h
gcc/config/rs6000/aix72.h

index 31e4c48b38dded75911e9a40af68b0c54f7a0cf7..8101d0b0c0a11eff3a020fb97aad1e8fe1e0c7de 100644 (file)
@@ -49,8 +49,8 @@ do {                                                                  \
     }                                                                  \
   if (rs6000_current_cmodel != CMODEL_SMALL)                           \
     {                                                                  \
-      TARGET_NO_FP_IN_TOC = 0;                                         \
-      TARGET_NO_SUM_IN_TOC = 0;                                                \
+      TARGET_NO_FP_IN_TOC = 1;                                         \
+      TARGET_NO_SUM_IN_TOC = 1;                                                \
     }                                                                  \
   if (rs6000_current_cmodel == CMODEL_MEDIUM)                          \
     {                                                                  \
index 1ac9d082bebe4d0d8df1500b8136c2e7c60e4406..f29ce8f6ba07468f562778e378e1e8b8d92db2fb 100644 (file)
@@ -49,8 +49,8 @@ do {                                                                  \
     }                                                                  \
   if (rs6000_current_cmodel != CMODEL_SMALL)                           \
     {                                                                  \
-      TARGET_NO_FP_IN_TOC = 0;                                         \
-      TARGET_NO_SUM_IN_TOC = 0;                                                \
+      TARGET_NO_FP_IN_TOC = 1;                                         \
+      TARGET_NO_SUM_IN_TOC = 1;                                                \
     }                                                                  \
   if (rs6000_current_cmodel == CMODEL_MEDIUM)                          \
     {                                                                  \
index 5f533228fc1434169ed49089dff39aa99f425f8f..0ef62d41796e97c3a12f1f850ec25e962f69603b 100644 (file)
@@ -49,8 +49,8 @@ do {                                                                  \
     }                                                                  \
   if (rs6000_current_cmodel != CMODEL_SMALL)                           \
     {                                                                  \
-      TARGET_NO_FP_IN_TOC = 0;                                         \
-      TARGET_NO_SUM_IN_TOC = 0;                                                \
+      TARGET_NO_FP_IN_TOC = 1;                                         \
+      TARGET_NO_SUM_IN_TOC = 1;                                                \
     }                                                                  \
   if (rs6000_current_cmodel == CMODEL_MEDIUM)                          \
     {                                                                  \