Module Name: src
Committed By: matt
Date: Sat Mar 28 00:47:18 UTC 2015
Modified Files:
src/external/gpl3/gcc/dist/gcc/common/config/riscv: riscv-common.c
src/external/gpl3/gcc/dist/gcc/config/riscv: netbsd.h riscv.h
Log Message:
Make sure the RISCV compiler defaults to FDIV enabled.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c
diff -u src/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c:1.2 src/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c:1.3
--- src/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c:1.2 Fri Mar 27 01:51:34 2015
+++ src/external/gpl3/gcc/dist/gcc/common/config/riscv/riscv-common.c Sat Mar 28 00:47:17 2015
@@ -119,7 +119,8 @@ static const struct default_options risc
#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
Index: src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h:1.1 src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h:1.2
--- src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h:1.1 Fri Sep 19 17:20:29 2014
+++ src/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Sat Mar 28 00:47:17 2015
@@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */
#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 { \
Index: src/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h
diff -u src/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h:1.2 src/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h:1.3
--- src/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h:1.2 Fri Mar 27 01:51:34 2015
+++ src/external/gpl3/gcc/dist/gcc/config/riscv/riscv.h Sat Mar 28 00:47:17 2015
@@ -104,7 +104,7 @@ along with GCC; see the file COPYING3.
/* 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