Commit 3dcf51ad by David Edelsohn

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  <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.
parent e6ce69ca
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> 2020-03-06 Andrew Pinski <apinski@marvell.com>
Jeff Law <law@redhat.com> Jeff Law <law@redhat.com>
......
...@@ -49,8 +49,8 @@ do { \ ...@@ -49,8 +49,8 @@ do { \
} \ } \
if (rs6000_current_cmodel != CMODEL_SMALL) \ if (rs6000_current_cmodel != CMODEL_SMALL) \
{ \ { \
TARGET_NO_FP_IN_TOC = 0; \ TARGET_NO_FP_IN_TOC = 1; \
TARGET_NO_SUM_IN_TOC = 0; \ TARGET_NO_SUM_IN_TOC = 1; \
} \ } \
if (rs6000_current_cmodel == CMODEL_MEDIUM) \ if (rs6000_current_cmodel == CMODEL_MEDIUM) \
{ \ { \
......
...@@ -49,8 +49,8 @@ do { \ ...@@ -49,8 +49,8 @@ do { \
} \ } \
if (rs6000_current_cmodel != CMODEL_SMALL) \ if (rs6000_current_cmodel != CMODEL_SMALL) \
{ \ { \
TARGET_NO_FP_IN_TOC = 0; \ TARGET_NO_FP_IN_TOC = 1; \
TARGET_NO_SUM_IN_TOC = 0; \ TARGET_NO_SUM_IN_TOC = 1; \
} \ } \
if (rs6000_current_cmodel == CMODEL_MEDIUM) \ if (rs6000_current_cmodel == CMODEL_MEDIUM) \
{ \ { \
......
...@@ -49,8 +49,8 @@ do { \ ...@@ -49,8 +49,8 @@ do { \
} \ } \
if (rs6000_current_cmodel != CMODEL_SMALL) \ if (rs6000_current_cmodel != CMODEL_SMALL) \
{ \ { \
TARGET_NO_FP_IN_TOC = 0; \ TARGET_NO_FP_IN_TOC = 1; \
TARGET_NO_SUM_IN_TOC = 0; \ TARGET_NO_SUM_IN_TOC = 1; \
} \ } \
if (rs6000_current_cmodel == CMODEL_MEDIUM) \ if (rs6000_current_cmodel == CMODEL_MEDIUM) \
{ \ { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment