]> git.ipfire.org Git - thirdparty/gcc.git/commit
In PR70010, a function is marked with target(no-vsx) to disable VSX code
authorguojiufu <guojiufu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 13:35:41 +0000 (13:35 +0000)
committerguojiufu <guojiufu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 13:35:41 +0000 (13:35 +0000)
commitb68acb47d313ccb05f33d57d395c0be3d63ee8eb
tree10b462439e9e18a577c0a2b016773bbfc30a7650
parentb37e7f080e54c57517e63f455f21ae07b992d2d1
In PR70010, a function is marked with target(no-vsx) to disable VSX code
generation.  To avoid VSX code generation, this function should not be
inlined into VSX function.  To fix the bug, in the current logic when
checking whether the caller's ISA flags supports the callee's ISA flags, we
just need to add a test that enforces that the caller's ISA flags match
exactly the callee's flags, for those flags that were explicitly set in the
callee.  If caller without target attribute then using options from command
line.

gcc/
2019-10-16  Peter Bergner <bergner@linux.ibm.com>
    Jiufu Guo  <guojiufu@linux.ibm.com>

PR target/70010
* config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
the callee explicitly disables some isa_flags the caller is using.

gcc.testsuite/
2019-10-16  Peter Bergner <bergner@linux.ibm.com>
    Jiufu Guo  <guojiufu@linux.ibm.com>

PR target/70010
* gcc.target/powerpc/pr70010.c: New test.
* gcc.target/powerpc/pr70010-1.c: New test.
* gcc.target/powerpc/pr70010-2.c: New test.
* gcc.target/powerpc/pr70010-3.c: New test.
* gcc.target/powerpc/pr70010-4.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277065 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr70010-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr70010-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr70010-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr70010-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr70010.c [new file with mode: 0644]