Subject: CVS commit: pkgsrc/lang/gcc49
From: Maya Rashish
Date: 2017-07-29 01:41:51
Message id: 20170728234151.D5EE1FACD@cvs.NetBSD.org

Log Message:
gcc49: backport upstream security fix

Incorrect codegen from rdseed intrinsic use (CVE-2017-11671)

We should not expand call arguments in between flags reg setting and
flags reg using instructions, as it may expand with flags reg
clobbering insn (ADD in this case).

Attached patch moves expansion out of the link. Also, change
zero-extension to non-flags reg clobbering sequence in case we perform
zero-extension with and.

2017-03-25  Uros Bizjak

Files:
RevisionActionfile
1.21modifypkgsrc/lang/gcc49/Makefile
1.14modifypkgsrc/lang/gcc49/distinfo
1.1addpkgsrc/lang/gcc49/patches/patch-gcc_config_i386_i386.c