<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gcc.git, branch hjl/skip-rax/gcc-4_8-branch</title>
<subtitle>gcc.gnu.org: git/gcc.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/'/>
<entry>
<title>X86-64: Add -mskip-rax-setup</title>
<updated>2014-12-18T13:21:53+00:00</updated>
<author>
<name>H.J. Lu</name>
<email>hjl.tools@gmail.com</email>
</author>
<published>2014-12-17T23:16:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=72345ebb4922b2bf38326dd64692e82dc1d58dd4'/>
<id>72345ebb4922b2bf38326dd64692e82dc1d58dd4</id>
<content type='text'>
The Linux kernel never passes floating point arguments around, vararg
functions or not. Hence no vector registers are ever used when calling a
vararg function.  But gcc still dutifully emits an "xor %eax,%eax" before
each and every call of a vararg function.  Since no callee use that for
anything, these instructions are redundant.

This patch adds the -mskip-rax-setup option to skip setting up RAX
register when SSE is disabled and there are no variable arguments passed
in vector registers.  Since RAX register is used to avoid unnecessarily
saving vector registers on stack when passing variable arguments, the
impacts of this option are callees may waste some stack space, misbehave
or jump to a random location.  GCC 4.4 or newer don't those issues,
regardless the RAX register value since they don't check the RAX register
value when SSE is disabled.

gcc/

	* config/i386/i386.c (ix86_expand_call): Skip setting up RAX
	register for -mskip-rax-setup when there are no parameters
	passed in vector registers.
	* config/i386/i386.opt (mskip-rax-setup): New option.
	* doc/invoke.texi: Document -mskip-rax-setup.

gcc/testsuite/

	* gcc.target/i386/amd64-abi-7.c: New tests.
	* gcc.target/i386/amd64-abi-8.c: Likwise.
	* gcc.target/i386/amd64-abi-9.c: Likwise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Linux kernel never passes floating point arguments around, vararg
functions or not. Hence no vector registers are ever used when calling a
vararg function.  But gcc still dutifully emits an "xor %eax,%eax" before
each and every call of a vararg function.  Since no callee use that for
anything, these instructions are redundant.

This patch adds the -mskip-rax-setup option to skip setting up RAX
register when SSE is disabled and there are no variable arguments passed
in vector registers.  Since RAX register is used to avoid unnecessarily
saving vector registers on stack when passing variable arguments, the
impacts of this option are callees may waste some stack space, misbehave
or jump to a random location.  GCC 4.4 or newer don't those issues,
regardless the RAX register value since they don't check the RAX register
value when SSE is disabled.

gcc/

	* config/i386/i386.c (ix86_expand_call): Skip setting up RAX
	register for -mskip-rax-setup when there are no parameters
	passed in vector registers.
	* config/i386/i386.opt (mskip-rax-setup): New option.
	* doc/invoke.texi: Document -mskip-rax-setup.

gcc/testsuite/

	* gcc.target/i386/amd64-abi-7.c: New tests.
	* gcc.target/i386/amd64-abi-8.c: Likwise.
	* gcc.target/i386/amd64-abi-9.c: Likwise.
</pre>
</div>
</content>
</entry>
<entry>
<title>Daily bump.</title>
<updated>2014-12-18T00:16:14+00:00</updated>
<author>
<name>gccadmin</name>
<email>gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-18T00:16:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=f65f51011942090e77fee81d5217b6918143641b'/>
<id>f65f51011942090e77fee81d5217b6918143641b</id>
<content type='text'>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218851 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218851 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>Daily bump.</title>
<updated>2014-12-17T00:16:13+00:00</updated>
<author>
<name>gccadmin</name>
<email>gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-17T00:16:13+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=83fec3680ae5596f8b1ac4aa616ee0ce9bc19733'/>
<id>83fec3680ae5596f8b1ac4aa616ee0ce9bc19733</id>
<content type='text'>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218803 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218803 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>Daily bump.</title>
<updated>2014-12-16T00:16:17+00:00</updated>
<author>
<name>gccadmin</name>
<email>gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-16T00:16:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=a70c11fadc87c9a8da7d1d20d46e738b8f2567af'/>
<id>a70c11fadc87c9a8da7d1d20d46e738b8f2567af</id>
<content type='text'>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218770 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218770 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>	PR middle-end/58624</title>
<updated>2014-12-15T10:36:16+00:00</updated>
<author>
<name>jakub</name>
<email>jakub@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-15T10:36:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=7c8c7338761bad0ce9b8cb5dcb4e8671e7522a0f'/>
<id>7c8c7338761bad0ce9b8cb5dcb4e8671e7522a0f</id>
<content type='text'>
	Backported from mainline
	2014-03-07  Jason Merrill  &lt;jason@redhat.com&gt;

	* g++.dg/plugin/plugin.exp (DEFAULT_CXXFLAGS): Remove -ansi.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218739 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Backported from mainline
	2014-03-07  Jason Merrill  &lt;jason@redhat.com&gt;

	* g++.dg/plugin/plugin.exp (DEFAULT_CXXFLAGS): Remove -ansi.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218739 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>	PR sanitizer/64265</title>
<updated>2014-12-15T09:50:11+00:00</updated>
<author>
<name>jakub</name>
<email>jakub@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-15T09:50:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=03ff95ae56d06f413dad701fbec059977f37c20f'/>
<id>03ff95ae56d06f413dad701fbec059977f37c20f</id>
<content type='text'>
	* tsan.c (instrument_func_entry): Insert __tsan_func_entry
	call on edge from entry block to single succ instead
	of after labels of single succ of entry block.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218736 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	* tsan.c (instrument_func_entry): Insert __tsan_func_entry
	call on edge from entry block to single succ instead
	of after labels of single succ of entry block.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218736 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>Daily bump.</title>
<updated>2014-12-15T00:16:13+00:00</updated>
<author>
<name>gccadmin</name>
<email>gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-15T00:16:13+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=f5b3bd28f5c78c00cfb360597eb3d573a75bc008'/>
<id>f5b3bd28f5c78c00cfb360597eb3d573a75bc008</id>
<content type='text'>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218723 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218723 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>Daily bump.</title>
<updated>2014-12-14T00:16:15+00:00</updated>
<author>
<name>gccadmin</name>
<email>gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-14T00:16:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=e66bdc11c1773f96e5bbf4faf3577b03239e8c73'/>
<id>e66bdc11c1773f96e5bbf4faf3577b03239e8c73</id>
<content type='text'>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218712 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218712 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport</title>
<updated>2014-12-13T17:47:30+00:00</updated>
<author>
<name>dje</name>
<email>dje@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-13T17:47:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=fcb485c6530cbfcd009a28deb1b6316334613e44'/>
<id>fcb485c6530cbfcd009a28deb1b6316334613e44</id>
<content type='text'>
2013-09-02  David Edelsohn  &lt;dje.gcc@gmail.com&gt;

        * inclhack.def (aix_assert): New fix.
        * fixincl.x: Regenerate.
        * tests/base/assert.h [AIX_ASSERT_CHECK]: New check.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218708 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
2013-09-02  David Edelsohn  &lt;dje.gcc@gmail.com&gt;

        * inclhack.def (aix_assert): New fix.
        * fixincl.x: Regenerate.
        * tests/base/assert.h [AIX_ASSERT_CHECK]: New check.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218708 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
<entry>
<title>	Backported from mainline</title>
<updated>2014-12-13T08:57:05+00:00</updated>
<author>
<name>jakub</name>
<email>jakub@138bc75d-0d04-0410-961f-82ee72b054a4</email>
</author>
<published>2014-12-13T08:57:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/gcc.git/commit/?id=6987d71fe2ad2b3b8e54e5454f732d166789bea1'/>
<id>6987d71fe2ad2b3b8e54e5454f732d166789bea1</id>
<content type='text'>
	2014-12-12  Jakub Jelinek  &lt;jakub@redhat.com&gt;

	PR tree-optimization/64269
	* tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
	len2 or diff are too large.

	* gcc.c-torture/compile/pr64269.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218704 138bc75d-0d04-0410-961f-82ee72b054a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	2014-12-12  Jakub Jelinek  &lt;jakub@redhat.com&gt;

	PR tree-optimization/64269
	* tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
	len2 or diff are too large.

	* gcc.c-torture/compile/pr64269.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218704 138bc75d-0d04-0410-961f-82ee72b054a4
</pre>
</div>
</content>
</entry>
</feed>
