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>
Fri, 6 Mar 2020 16:19:55 +0000 (11:19 -0500)
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.

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

index e38af8ed62069d4f142b6585ac3371bf3f637961..843c49ee9f0aefd445808356d2eaf2266b380bf8 100644 (file)
@@ -1,3 +1,12 @@
+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.
+
 2020-03-06  Andrew Pinski  <apinski@marvell.com>
            Jeff Law  <law@redhat.com>
 
index 0b14f7e298e0ac248fd6bf0560a721309f5d9333..13c3e099bbda75cdc7e33c1ce78b9a8055832689 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 b93d257d2a2460e9c3c40ec534c844087f1e01f2..3be0cbe9844ba3316a234ec7e4bdcceadd0787e0 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 f5e4d3ecaa4f8d0b3c462761e1f7b2a0ab87e8d8..292e67ffda5db1afa6f0fe9987c969b65eddb4a4 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)                          \
     {                                                                  \