Check int_size_in_bytes in ix86_return_in_memory
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 9 Jul 2015 09:26:47 +0000 (09:26 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 9 Jul 2015 09:26:47 +0000 (02:26 -0700)
commit661c8707bf0629bb1b69efa14dfc3d8e89e61706
treeea2202259edd7a19acc779240272eeb8e92f407e
parentca87c493f78fc19c4196e28cfe137add40bf2932
Check int_size_in_bytes in ix86_return_in_memory

ix86_return_in_memory should check negative return from int_size_in_bytes,
similar to other ports.

gcc/

PR target/66817
* config/i386/i386.c (ix86_return_in_memory): Return true
if int_size_in_bytes returns negative for IA MCU.

gcc/testsuite/

PR target/66817
* gcc.target/i386/pr66817.c: New test.

From-SVN: r225605
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr66817.c [new file with mode: 0644]