From d5a9895595c126a5fa8b41c222f330908c3a7e72 Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Fri, 5 Oct 2018 13:37:56 -0400 Subject: [PATCH] Remove -mfloat32, -mfloat64 switches from pdp11 target. * config/pdp11/pdp11.h (FLOAT_TYPE_SIZE): Always 32. * config/pdp11/pdp11.opt (mfloat32): Remove. (mfloat64): Remove. * doc/invoke.texi (pdp11 -mfloat32): Remove: (pdp11 -mfloat64): Remove. From-SVN: r264881 --- gcc/ChangeLog | 8 ++++++++ gcc/config/pdp11/pdp11.h | 17 +++++++++-------- gcc/config/pdp11/pdp11.opt | 8 -------- gcc/doc/invoke.texi | 13 ------------- 4 files changed, 17 insertions(+), 29 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3451e7bae25..3ca3c1c28b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2018-10-05 Paul Koning + + * config/pdp11/pdp11.h (FLOAT_TYPE_SIZE): Always 32. + * config/pdp11/pdp11.opt (mfloat32): Remove. + (mfloat64): Remove. + * doc/invoke.texi (pdp11 -mfloat32): Remove: + (pdp11 -mfloat64): Remove. + 2018-10-05 Uros Bizjak * config/i386/i386.md (*cmpxf_i387): Change operand 2 predicate diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h index f4c91863b7a..c68a74d91a0 100644 --- a/gcc/config/pdp11/pdp11.h +++ b/gcc/config/pdp11/pdp11.h @@ -59,12 +59,14 @@ along with GCC; see the file COPYING3. If not see #define LONG_TYPE_SIZE 32 #define LONG_LONG_TYPE_SIZE 64 -/* if we set FLOAT_TYPE_SIZE to 32, we could have the benefit - of saving core for huge arrays - the definitions are - already in md - but floats can never reside in - an FPU register - we keep the FPU in double float mode - all the time !! */ -#define FLOAT_TYPE_SIZE (TARGET_FLOAT32 ? 32 : 64) +/* In earlier versions, FLOAT_TYPE_SIZE was selectable as 32 or 64, + but that conflicts with Fortran language rules. Since there is no + obvious reason why we should have that feature -- other targets + generally don't have float and double the same size -- I've removed + it. Note that it continues to be true (for now) that arithmetic is + always done with 64-bit values, i.e., the FPU is always in "double" + mode. */ +#define FLOAT_TYPE_SIZE 32 #define DOUBLE_TYPE_SIZE 64 #define LONG_DOUBLE_TYPE_SIZE 64 @@ -200,12 +202,11 @@ extern const struct real_format pdp11_d_format; MUL_REGS are used for odd numbered regs, to use in 16-bit multiplication (even numbered do 32-bit multiply) -LMUL_REGS long multiply registers (even numbered regs ) - (don't need them, all 32-bit regs are even numbered!) GENERAL_REGS is all cpu LOAD_FPU_REGS is the first four cpu regs, they are easier to load NO_LOAD_FPU_REGS is ac4 and ac5, currently - difficult to load them FPU_REGS is all fpu regs +CC_REGS is the condition codes (CPU and FPU) */ enum reg_class diff --git a/gcc/config/pdp11/pdp11.opt b/gcc/config/pdp11/pdp11.opt index 033d1d7403e..5da3b39569c 100644 --- a/gcc/config/pdp11/pdp11.opt +++ b/gcc/config/pdp11/pdp11.opt @@ -42,14 +42,6 @@ mgnu-asm Target RejectNegative Report Mask(GNU_ASM) Negative(munix-asm) Use the GNU assembler syntax. -mfloat32 -Target Report Mask(FLOAT32) -Use 32 bit float. - -mfloat64 -Target Report InverseMask(FLOAT32, FLOAT64) -Use 64 bit float. - mfpu Target RejectNegative Report Mask(FPU) Use hardware floating point. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 89c2eda58c4..802cc642453 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1007,7 +1007,6 @@ Objective-C and Objective-C++ Dialects}. @emph{PDP-11 Options} @gccoptlist{-mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10 @gol -mint32 -mno-int16 -mint16 -mno-int32 @gol --mfloat32 -mno-float64 -mfloat64 -mno-float32 @gol -msplit -munix-asm -mdec-asm -mgnu-asm -mlra} @emph{picoChip Options} @@ -22722,18 +22721,6 @@ Use 16-bit @code{int}. This is the default. @opindex mno-int16 Use 32-bit @code{int}. -@item -mfloat64 -@itemx -mno-float32 -@opindex mfloat64 -@opindex mno-float32 -Use 64-bit @code{float}. This is the default. - -@item -mfloat32 -@itemx -mno-float64 -@opindex mfloat32 -@opindex mno-float64 -Use 32-bit @code{float}. - @item -msplit @opindex msplit Target has split instruction and data space. Implies -m45. -- 2.30.2