summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2007-08-24 02:36:34 +0000
committerJie Zhang <jiez@gcc.gnu.org>2007-08-24 02:36:34 +0000
commit2c117a21b0260d2a5dd72729f34cef4a1324b538 (patch)
treea3457a9c9bbc3c4800069b476716f5f02848d190 /gcc
parent424a8b56b51f401c002fd9fd2ad9b3db31c1c0a3 (diff)
downloadgcc-2c117a21b0260d2a5dd72729f34cef4a1324b538.tar.gz
bfin.opt (mfast-fp): Add.
* config/bfin/bfin.opt (mfast-fp): Add. * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let libbffastfp override libgcc if -mfast-fp. * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise. * doc/invoke.texi (Option Summary): Mention -mfast-fp. (Blackfin Options): Document -mfast-fp. From-SVN: r127757
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/bfin/bfin.h6
-rw-r--r--gcc/config/bfin/bfin.opt4
-rw-r--r--gcc/config/bfin/linux.h3
-rw-r--r--gcc/doc/invoke.texi8
5 files changed, 25 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 630a5b61e24..b0b0b620bf7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2007-08-24 Jie Zhang <jie.zhang@analog.com>
+
+ * config/bfin/bfin.opt (mfast-fp): Add.
+ * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
+ libbffastfp override libgcc if -mfast-fp.
+ * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
+ * doc/invoke.texi (Option Summary): Mention -mfast-fp.
+ (Blackfin Options): Document -mfast-fp.
+
2007-08-24 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/32573
diff --git a/gcc/config/bfin/bfin.h b/gcc/config/bfin/bfin.h
index 9cb017e0a20..b78d39def9a 100644
--- a/gcc/config/bfin/bfin.h
+++ b/gcc/config/bfin/bfin.h
@@ -89,9 +89,9 @@ extern int target_flags;
# define SUBTARGET_DRIVER_SELF_SPECS
#endif
-#define LINK_GCC_C_SEQUENCE_SPEC \
- "%{mfdpic:%{!static: %L} %{static: %G %L %G}} \
- %{!mfdpic:%G %L %G}"
+#define LINK_GCC_C_SEQUENCE_SPEC "\
+ %{mfast-fp:-lbffastfp} %G %L %{mfast-fp:-lbffastfp} %G \
+"
/* A C string constant that tells the GCC driver program options to pass to
the assembler. It can also specify how to translate options you give to GNU
diff --git a/gcc/config/bfin/bfin.opt b/gcc/config/bfin/bfin.opt
index 6836033a6e7..2871cbf179b 100644
--- a/gcc/config/bfin/bfin.opt
+++ b/gcc/config/bfin/bfin.opt
@@ -64,6 +64,10 @@ mlong-calls
Target Report Mask(LONG_CALLS)
Avoid generating pc-relative calls; use indirection
+mfast-fp
+Target Report Mask(FAST_FP)
+Link with the fast floating-point library
+
mfdpic
Target Report Mask(FDPIC)
Enable Function Descriptor PIC mode
diff --git a/gcc/config/bfin/linux.h b/gcc/config/bfin/linux.h
index d391cd0a1fe..486bb776b39 100644
--- a/gcc/config/bfin/linux.h
+++ b/gcc/config/bfin/linux.h
@@ -35,7 +35,8 @@ asm (TEXT_SECTION_ASM_OP);
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC \
- "%{mfast-fp:-lbffastfp} %{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
+ "%{static:--start-group} %{mfast-fp:-lbffastfp} %G %L %{static:--end-group} \
+ %{!static:%{mfast-fp:-lbffastfp} %G}"
#undef LINK_SPEC
#define LINK_SPEC "\
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 4b1219b148e..8279e598301 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -450,7 +450,7 @@ Objective-C and Objective-C++ Dialects}.
-mstack-check-l1 -mid-shared-library -mno-id-shared-library @gol
-mshared-library-id=@var{n} -mleaf-id-shared-library @gol
-mno-leaf-id-shared-library -msep-data -mno-sep-data -mlong-calls @gol
--mno-long-calls}
+-mno-long-calls -mfast-fp}
@emph{CRIS Options}
@gccoptlist{-mcpu=@var{cpu} -march=@var{cpu} -mtune=@var{cpu} @gol
@@ -8612,6 +8612,12 @@ This feature is not enabled by default. Specifying
@option{-mno-long-calls} will restore the default behavior. Note these
switches have no effect on how the compiler generates code to handle
function calls via function pointers.
+
+@item -mfast-fp
+@opindex mfast-fp
+Link with the fast floating-point library. This library relaxes some of
+the IEEE floating-point standard's rules for checking inputs against
+Not-a-Number (NAN), in the interest of performance.
@end table
@node CRIS Options