Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc Make sure the RISCV compiler defa...
details: https://anonhg.NetBSD.org/src/rev/d5fde0435149
branches: trunk
changeset: 807085:d5fde0435149
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 28 00:47:17 2015 +0000
description:
Make sure the RISCV compiler defaults to FDIV enabled.
diffstat:
external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c | 3 ++-
external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h | 2 +-
external/gpl3/gcc/dist/gcc/config/riscv/riscv.h | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r fe250de6d4f7 -r d5fde0435149 external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c
--- a/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c Fri Mar 27 23:35:40 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c Sat Mar 28 00:47:17 2015 +0000
@@ -119,7 +119,8 @@
#undef TARGET_DEFAULT_TARGET_FLAGS
#define TARGET_DEFAULT_TARGET_FLAGS \
- (riscv_flags_from_arch_string (RISCV_ARCH_STRING_DEFAULT) \
+ (TARGET_DEFAULT \
+ | riscv_flags_from_arch_string (RISCV_ARCH_STRING_DEFAULT) \
| (TARGET_64BIT_DEFAULT ? 0 : MASK_32BIT))
#undef TARGET_HANDLE_OPTION
diff -r fe250de6d4f7 -r d5fde0435149 external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Fri Mar 27 23:35:40 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Sat Mar 28 00:47:17 2015 +0000
@@ -27,7 +27,7 @@
#define DRIVER_SELF_SPECS ""
#undef TARGET_DEFAULT
-#define TARGET_DEFAULT MASK_FDIV
+#define TARGET_DEFAULT (MASK_ATOMIC | MASK_FDIV)
#define TARGET_OS_CPP_BUILTINS() \
do { \
diff -r fe250de6d4f7 -r d5fde0435149 external/gpl3/gcc/dist/gcc/config/riscv/riscv.h
--- a/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h Fri Mar 27 23:35:40 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h Sat Mar 28 00:47:17 2015 +0000
@@ -104,7 +104,7 @@
/* Default target_flags if no switches are specified */
#ifndef TARGET_DEFAULT
-#define TARGET_DEFAULT (TARGET_ATOMIC |
+#define TARGET_DEFAULT (MASK_ATOMIC)
#endif
#ifndef RISCV_ARCH_STRING_DEFAULT
Home |
Main Index |
Thread Index |
Old Index