https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81481
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Jan 16 09:51:57 2018 New Revision: 256731 URL: https://gcc.gnu.org/viewcvs?rev=256731&root=gcc&view=rev Log: 2018-01-16 Richard Biener <rguent...@suse.de> Backport from mainline 2017-09-29 Vladimir Makarov <vmaka...@redhat.com> PR target/81481 * ira-costs.c (scan_one_insn): Don't take into account PIC equiv with a symbol for LRA. * gcc.target/i386/pr81481.c: New. Added: branches/gcc-7-branch/gcc/testsuite/gcc.target/i386/pr81481.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/ira-costs.c branches/gcc-7-branch/gcc/testsuite/ChangeLog