diff options
author | Kugan Vivekanandarajah <kuganv@linaro.org> | 2013-11-27 12:17:05 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2013-11-27 13:17:05 +0100 |
commit | 30b8f78b72ce08c5fdc00eead80282ca12e433ac (patch) | |
tree | 2bce9a61019a73e1ac15aec945ce47ae5c2c3b72 /gcc | |
parent | 536da97c4eaa6ac7b8a65205dafd23c904395a39 (diff) | |
download | gcc-30b8f78b72ce08c5fdc00eead80282ca12e433ac.zip gcc-30b8f78b72ce08c5fdc00eead80282ca12e433ac.tar.gz gcc-30b8f78b72ce08c5fdc00eead80282ca12e433ac.tar.bz2 |
tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
gcc/
* doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
* doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
libgcc/
* libgcc2.c (__udivmoddi4): Define new implementation when
TARGET_HAS_NO_HW_DIVIDE is defined, for processors without any
divide instructions.
From-SVN: r205444
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 8 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 8 |
3 files changed, 21 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 31e9670..15ce5e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org> + + * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define. + * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate. + 2013-11-27 Marek Polacek <polacek@redhat.com> PR sanitizer/59306 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 966576f..68b59b9 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5365,6 +5365,14 @@ If this macro evaluates to @code{false} the comparison functions return in @file{libgcc.a}, you do not need to define this macro. @end defmac +@defmac TARGET_HAS_NO_HW_DIVIDE +This macro should be defined if the target has no hardware divide +instructions. If this macro is defined, GCC will use an algorithm which +make use of simple logical and arithmetic operations for 64-bit +division. If the macro is not defined, GCC will use an algorithm which +make use of a 64-bit by 32-bit divide primitive. +@end defmac + @cindex @code{EDOM}, implicit usage @findex matherr @defmac TARGET_EDOM diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 63f4edb..1bb3806 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -4205,6 +4205,14 @@ If this macro evaluates to @code{false} the comparison functions return in @file{libgcc.a}, you do not need to define this macro. @end defmac +@defmac TARGET_HAS_NO_HW_DIVIDE +This macro should be defined if the target has no hardware divide +instructions. If this macro is defined, GCC will use an algorithm which +make use of simple logical and arithmetic operations for 64-bit +division. If the macro is not defined, GCC will use an algorithm which +make use of a 64-bit by 32-bit divide primitive. +@end defmac + @cindex @code{EDOM}, implicit usage @findex matherr @defmac TARGET_EDOM |