re PR middle-end/52592 (compilation failure with undefined reference to `__builtin_ir...
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Mar 2012 13:30:04 +0000 (14:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Mar 2012 13:30:04 +0000 (14:30 +0100)
commitff63ac4d66fdcd9e0952b31b5dae947ffc638814
tree9c5c685efbb7fcf5539bf495c5fc114ab6f1a24f
parentb3781fcb265e24fd61be94e716027a33c0712ed0
re PR middle-end/52592 (compilation failure with undefined reference to `__builtin_iround')

PR middle-end/52592
* builtins.c (expand_builtin_int_roundingfn_2): If expanding
BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
calls instead of __builtin_ir{int,ound}*.

* gcc.dg/pr52592.c: New test.

Co-Authored-By: Andrew Pinski <apinski@cavium.com>
From-SVN: r185431
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr52592.c [new file with mode: 0644]