This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/63815] [5 Regression] g++.dg/other/pr53811.C fails with -mcmodel=large -fpic
- From: "hjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Nov 2014 21:16:46 +0000
- Subject: [Bug target/63815] [5 Regression] g++.dg/other/pr53811.C fails with -mcmodel=large -fpic
- Auto-submitted: auto-generated
- References: <bug-63815-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63815
--- Comment #15 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Wed Nov 12 21:16:14 2014
New Revision: 217445
URL: https://gcc.gnu.org/viewcvs?rev=217445&root=gcc&view=rev
Log:
Initialize PIC register for large PIC model C++ thunk
gcc/
PR target/63815
* config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
from ...
(ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
(x86_output_mi_thunk): Set PIC register to %r11. Call
ix86_init_large_pic_reg to initialize PIC register.
gcc/testsuite/
PR target/63815
* g++.dg/other/pr63815.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/pr63815.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog