From eb0a835d643394d89b13d4f0ac12f2af3e78228d Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 5 Mar 2020 20:41:08 -0500 Subject: [PATCH] rs6000: Correct logic to disable NO_SUM_IN_TOC and NO_FP_IN_TOC [PR94065] 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 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 | 4 ++-- gcc/config/rs6000/aix71.h | 4 ++-- gcc/config/rs6000/aix72.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/rs6000/aix61.h b/gcc/config/rs6000/aix61.h index 31e4c48b38dd..8101d0b0c0a1 100644 --- a/gcc/config/rs6000/aix61.h +++ b/gcc/config/rs6000/aix61.h @@ -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) \ { \ diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h index 1ac9d082bebe..f29ce8f6ba07 100644 --- a/gcc/config/rs6000/aix71.h +++ b/gcc/config/rs6000/aix71.h @@ -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) \ { \ diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h index 5f533228fc14..0ef62d41796e 100644 --- a/gcc/config/rs6000/aix72.h +++ b/gcc/config/rs6000/aix72.h @@ -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) \ { \ -- 2.47.2