aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaul Koning <ni1d@arrl.net>2018-10-05 13:37:56 -0400
committerPaul Koning <pkoning@gcc.gnu.org>2018-10-05 13:37:56 -0400
commitd5a9895595c126a5fa8b41c222f330908c3a7e72 (patch)
tree580e7104a383aaf77b367971af6c497de2cd7b1d /gcc
parent9a85d982cc52c200ac8530c05909df593a0d075c (diff)
downloadgcc-d5a9895595c126a5fa8b41c222f330908c3a7e72.zip
gcc-d5a9895595c126a5fa8b41c222f330908c3a7e72.tar.gz
gcc-d5a9895595c126a5fa8b41c222f330908c3a7e72.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/pdp11/pdp11.h17
-rw-r--r--gcc/config/pdp11/pdp11.opt8
-rw-r--r--gcc/doc/invoke.texi13
4 files changed, 17 insertions, 29 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3451e7b..3ca3c1c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2018-10-05 Paul Koning <ni1d@arrl.net>
+
+ * 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 <ubizjak@gmail.com>
* 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 f4c9186..c68a74d 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 033d1d7..5da3b39 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 89c2eda..802cc64 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.