From 72847b95daca53d4a7b4880f27c9b00527b6a8ff Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 29 Aug 1993 18:33:46 -0400 Subject: [PATCH] (TARGET_NO_FP_IN_TOC): New; deleted TARGET_FP_IN_TOC. (TARGET_SWITCHES): Rearrange to have three TOC choices. (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Use TARGET_NO_FP_IN_TOC. From-SVN: r5226 --- gcc/config/rs6000/rs6000.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 05c0f8dd2de..f50c6b3a160 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -65,10 +65,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Run-time compilation parameters selecting different hardware subsets. */ -/* Flag to allow putting fp constants in the TOC; can be turned off when +/* Flag to disable putting fp constants in the TOC; can be turned on when the TOC overflows. */ -#define TARGET_FP_IN_TOC (target_flags & 1) +#define TARGET_NO_FP_IN_TOC (target_flags & 1) /* Flag to output only one TOC entry per module. Normally linking fails if there are more than 16K unique variables/constants in an executable. With @@ -89,13 +89,12 @@ extern int target_flags; An empty string NAME is used to identify the default VALUE. */ #define TARGET_SWITCHES \ - {{"fp-in-toc", 1}, \ - {"no-fp-in-toc", -1}, \ + {{"normal-toc", - (1|2)}, \ + {"no-fp-in-toc", 1}, \ {"minimal-toc", 2}, \ - {"no-minimal-toc", -2}, \ { "", TARGET_DEFAULT}} -#define TARGET_DEFAULT 1 +#define TARGET_DEFAULT 0 /* On the RS/6000, we turn on various flags if optimization is selected. */ @@ -1565,7 +1564,8 @@ toc_section () \ || (GET_CODE (X) == CONST && GET_CODE (XEXP (X, 0)) == PLUS \ && GET_CODE (XEXP (XEXP (X, 0), 0)) == SYMBOL_REF) \ || GET_CODE (X) == LABEL_REF \ - || (TARGET_FP_IN_TOC && GET_CODE (X) == CONST_DOUBLE \ + || (! (TARGET_NO_FP_IN_TOC && ! TARGET_MINIMAL_TOC) \ + && GET_CODE (X) == CONST_DOUBLE \ && GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \ && BITS_PER_WORD == HOST_BITS_PER_INT)) -- 2.30.2