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 gcc.target/i386/pr70027.c FAIL for x32 -fpic


Hello!

We have to pass word_mode (DImode for x86_64 target) call operand to
ix86_output_call_insn, otherwise invalid DWORD_PTR prefixed address is
generated in x32 case.

2016-05-12  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.md (*call_got_x32): Change operand 0 to
    DImode before it is passed to ix86_output_call_operand.
    (*call_value_got_x32): Ditto for operand 1.

Patch was bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

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]