Backport https://gcc.gnu.org/ml/gcc-patches/2014-10/msg02994.html to
gcc 4.9 branch.


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