gcc

~vcs-imports/gcc/+git/gcc:hjl/skip-rax/gcc-4_8-branch

Last commit made on 2014-12-18
Get this branch:
git clone -b hjl/skip-rax/gcc-4_8-branch https://git.launchpad.net/~vcs-imports/gcc/+git/gcc

Branch merges

Branch information

Name:
hjl/skip-rax/gcc-4_8-branch
Repository:
lp:~vcs-imports/gcc/+git/gcc

Recent commits

72345eb... by "H.J. Lu" <email address hidden>

X86-64: Add -mskip-rax-setup

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.

f65f510... by gccadmin <gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4>

Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218851 138bc75d-0d04-0410-961f-82ee72b054a4

83fec36... by gccadmin <gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4>

Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218803 138bc75d-0d04-0410-961f-82ee72b054a4

a70c11f... by gccadmin <gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4>

Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218770 138bc75d-0d04-0410-961f-82ee72b054a4

7c8c733... by jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>

 PR middle-end/58624
 Backported from mainline
 2014-03-07 Jason Merrill <email address hidden>

 * 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

03ff95a... by jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>

 PR sanitizer/64265
 * 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

f5b3bd2... by gccadmin <gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4>

Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218723 138bc75d-0d04-0410-961f-82ee72b054a4

e66bdc1... by gccadmin <gccadmin@138bc75d-0d04-0410-961f-82ee72b054a4>

Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@218712 138bc75d-0d04-0410-961f-82ee72b054a4

fcb485c... by dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>

Backport
2013-09-02 David Edelsohn <email address hidden>

        * 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

6987d71... by jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>

 Backported from mainline
 2014-12-12 Jakub Jelinek <email address hidden>

 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