target.def (min_arithmetic_precision): New hook.
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 28 Oct 2016 21:04:51 +0000 (21:04 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 28 Oct 2016 21:04:51 +0000 (21:04 +0000)
commit894d8b416343817776946da50d0b660f20742921
tree6629e80a0c1643c5764bfcff920a90bf7a2fa59c
parent9a5e1efcaca6305711e7d44b355e98c923f27c6d
target.def (min_arithmetic_precision): New hook.

* target.def (min_arithmetic_precision): New hook.
* doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
* doc/tm.texi: Regenerate.
* internal-fn.c (expand_arith_overflow): Adjust handling of target
dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
* targhooks.c (default_min_arithmetic_precision): New function.
* targhooks.h (default_min_arithmetic_precision): Declare.
* config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
(sparc_min_arithmetic_precision): New function.

From-SVN: r241665
12 files changed:
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/internal-fn.c
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sparc/overflow-3.c
gcc/testsuite/gcc.target/sparc/overflow-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sparc/overflow-5.c [new file with mode: 0644]