This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386] Fix PR66275 __attribute__((sysv_abi)) with x86_64-w64-mingw32-gcc generates incorrect code


Hello!

As explained in the PR, we have to consider attribute that switches
target ABI also for  ix86_function_arg_regno_p and
ix86_function_value_regno_p.

2015-06-03  Uros Bizjak  <ubizjak@gmail.com>

    PR target/66275
    * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
    to determine current function ABI.
    (ix86_function_value_regno_p): Ditto.

testsuite/ChangeLog:

2015-06-03  Uros Bizjak  <ubizjak@gmail.com>

    PR target/66275
    * gcc.target/i386/pr66275.c: New test.

Bootstrapped on x86_64-linux-gnu and by Kai on x86_64-w64-mingw32.

Committed to mainline SVN, will be committed to release branches in a week.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]